Windows 10でPowerShell 3.0を起動できない


1

私は非常に奇妙な問題を抱えています。powershellは起動時にハングするようですが、バージョン3でのみです:

C:\WINDOWS\system32>powershell -version 2.0
Windows PowerShell
Copyright (C) 2009 Microsoft Corporation. All rights reserved.

PS C:\WINDOWS\system32> exit

C:\WINDOWS\system32>powershell -version 3.0
Windows PowerShell
Copyright (C) 2016 Microsoft Corporation. All rights reserved.

_ (blinking cursor here)

ctrl-breakを押すと、powershellがクラッシュします。Windowsエラーレポートには、Microsoft.PowerShell.ConsoleHost.BreakIntoDebuggerの例外が表示されるため、関連している可能性があります。Windows 10でのPowerShellの再インストールに関する情報が見つからないため、続行する方法がわかりません。プログラムや機能にpowershell 2を追加したり削除したりしても助けにはならず、再起動もしません。私もpowershell -noprofile同じ結果を試しました。私も試してみましたがpowershell -Command {echo "test"}、それは永遠にハングし、ctrl-breakできません。

WER:

Version=1
EventType=PowerShell
EventTime=131305552298905352
ReportType=1
Consent=1
UploadTime=131305552299996306
ReportIdentifier=7f7872e4-e9a7-11e6-8287-6245b4ec6498
AppSessionGuid=00002eac-0001-000f-73e4-9681b37dd201
TargetAppId=W:0000f519feec486de87ed73cb92d3cac802400000000!0000044a0cf1f6bc478a7172bf207eef1e201a18ba02!powershell.exe
TargetAppVer=2016//09//15:16:31:49!789c3!powershell.exe
BootId=4294967295
Response.BucketId=c8f5b6fc0a27bdd03326cfefd2006eb7
Response.BucketTable=5
Response.LegacyBucketId=127762705495
Response.type=4
Sig[0].Name=NameOfExe
Sig[0].Value=powershell.exe
Sig[1].Name=FileVersionOfSystemManagementAutomation
Sig[1].Value=10.0.14393.693
Sig[2].Name=InnermostExceptionType
Sig[2].Value=System.NullReferenceException
Sig[3].Name=OutermostExceptionType
Sig[3].Value=System.NullReferenceException
Sig[4].Name=DeepestPowerShellFrame
Sig[4].Value=Microsoft.PowerShell.ConsoleHost.BreakIntoDebugger
Sig[5].Name=DeepestFrame
Sig[5].Value=Microsoft.PowerShell.ConsoleHost.BreakIntoDebugger
Sig[6].Name=ThreadName
Sig[6].Value=unknown
DynamicSig[1].Name=OS Version
DynamicSig[1].Value=10.0.14393.2.0.0.256.48
DynamicSig[2].Name=Locale ID
DynamicSig[2].Value=3081
UI[3]=powershell has stopped working
UI[4]=Windows can check online for a solution to the problem.
UI[5]=Check online for a solution and close the program
UI[6]=Check online for a solution later and close the program
UI[7]=Close the program
State[0].Key=Transport.DoneStage1
State[0].Value=1
FriendlyEventName=PowerShell
ConsentKey=PowerShell
AppName=powershell
AppPath=C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
ApplicationIdentity=00000000000000000000000000000000
MetadataHash=-149969992

DISM修復の出力:

C:\WINDOWS\system32>DISM /Online /Cleanup-Image /CheckHealth

Deployment Image Servicing and Management tool
Version: 10.0.14393.0

Image Version: 10.0.14393.0

No component store corruption detected.
The operation completed successfully.

1
システムの状態を修復するDISMコマンドの結果を投稿しますか?
ラムハウンド

1
-noprofileスイッチの追加は役立ちますか?
ベンN

-noprofile助けにならなかった。質問を更新しました。ありがとう@BenN
elRobbo

@RamhoundがDISM修復情報で更新されました。SFCも試しましたが、問題はありませんでした。私が考えることができる他の唯一のものは、私がドメインアカウントにいるが、ドメインコントローラーが現在利用できないことです。ローカルユーザーとしてログインし、それが役立つかどうかを確認します。
elRobbo

うーん、これは私のアンチウイルス(AVG)の問題のようです。無効にすると、PowerShellが修正され、再度有効にした後でも機能し続けます。非常に奇妙な。
elRobbo

回答:


1

これは私のウイルス対策スキャナー(AVG)の問題であるようです。それを無効にすると問題が解決し、アンチウイルスを再度有効にするとpowershellが動作し続けます。

弊社のサイトを使用することにより、あなたは弊社のクッキーポリシーおよびプライバシーポリシーを読み、理解したものとみなされます。
Licensed under cc by-sa 3.0 with attribution required.