Powershell docker image, Restart-Computer cmd missing 'ComputerName' parameter
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 30/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- docker, powershell
調査の方向性
まず、報告されている Restart-Computer コマンドを使用し、mcr.microsoft.com/powershell イメージと PowerShell 7.4.2 で失敗を再現してから、動作する Windows 11 環境と比較します。欠落している ComputerName パラメーターの原因がコンテナー プラットフォームにあるのか、イメージにあるのかを特定します。検証済みの修正、または明確に文書化された制限事項と回避策が得られれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest image.
- Search the existing issues.
- Verified that this is not a Known Issue
- Verified this is not an issues in the underlying windows container that should be reported to Windows Feedback Hub
Steps to reproduce
Trying to remotely restart a windows computer with powershell and Restart-Computer command.
Powershell is running from a docker container with mcr.microsoft.com/powershell image, and from within the docker container i am running a powerhell script.
The script is also tested on a windows 11 machine with powershell and it works as expected.
Output from the script running from powershell in docker, PowerShell 7.4.2.
Expected behavior
Restart remote computer
Actual behavior
PS /> /root/scripts/restart.ps1
Restart-Computer: /root/scripts/restart.ps1:9
Line |
9 | Restart-Computer -ComputerName $server -Credential $credObject -Force …
| ~~~~~~~~~~~~~
| A parameter cannot be found that matches parameter name 'ComputerName'.
Error details
No response
Environment data
{
"schemaVersion": 2,
"mediaType": "application/vnd.docker.distribution.manifest.list.v2+json",
"manifests": [
{
"mediaType": "application/vnd.docker.distribution.manifest.v2+json",
"size": 742,
"digest": "sha256:73c08403182e3cd1a62176b6723645b2d2037cda8deefc0e2c2c01cb814abe43",
"platform": {
"architecture": "amd64",
"os": "linux"
}
},
{
"mediaType": "application/vnd.docker.distribution.manifest.v2+json",
"size": 1160,
"digest": "sha256:f7306ab20f28b5609264d6e49cb18a4804cafe7a78c33679e3a6ce907d692d0a",
"platform": {
"architecture": "arm",
"os": "linux",
"variant": "v7"
}
},
{
"mediaType": "application/vnd.docker.distribution.manifest.v2+json",
"size": 2001,
"digest": "sha256:055163474207105ca91482e142b923a65c0853feead3812d7f1cdc04203ab244",
"platform": {
"architecture": "amd64",
"os": "windows",
"os.version": "10.0.20348.2402"
}
}
]
}
Visuals
No response
- 主要言語
- Dockerfile
- スター
- 449
- フォーク
- 158
- 平均マージ
- 3日 10時間
- マージ済み PR(30日)
- 1
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
PowerShell/PowerShell-Docker のほかの issue
-
Git オープンIssue-Enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
PowerShell/PowerShell-Docker#857 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
PowerShell/PowerShell-Docker#856 · コメント 2 件 · リアクション 1 件 ·
-
Issue-Enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 48/100
PowerShell/PowerShell-Docker#854 ·
-
Issue-Enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
PowerShell/PowerShell-Docker#853 · コメント 6 件 · リアクション 17 件 ·
-
Issue-Enhancement
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
PowerShell/PowerShell-Docker#851 · コメント 2 件 · リアクション 2 件 ·
PowerShell/PowerShell-Docker の issue をすべて見る
似ている issue
-
Add dependabot オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
-
oblt-aw/detector/security
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
Type: AVM :a: :v: :m: Type: Bug :bug:
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
Azure/bicep-registry-modules#7386 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100