Windows 컴퓨터에서 재부팅이 필요한 위치를 알기 위해 노력하고 있습니다. 그러나, 내 스크립트가 던지고 오류입니다.보류중인 재부팅을 어떻게 확인할 수 있습니까?
powershell "$key = Get-Item "HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired" -ErrorAction SilentlyContinue"
Error :
Get-Item : A positional parameter cannot be found that accepts argument
'Update\RebootRequired'.
At line:1 char:8
+ $key = Get-Item
HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Aut ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~
+ CategoryInfo : InvalidArgument: (:) [Get-Item], ParameterBindin
gException
+ FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell
.Commands.GetItemCommand
"명령 프롬프트"에서이 명령을 실행하고 있습니다. 그것이 무엇을 의미하는지 확실하지 않습니다!
안녕하세요 당신의 자신의 질문에 대답하고 심지어 그것을 받아들이는 완벽하게 허용 –
을 ".RebootPending (호출-WmiMethod -namespace 루트 \ CCM \ clientsdk -Class CCM_ClientUtilities -Name DetermineIfRebootPending)"대답 PowerShell을 얻었다. .. 귀하의 의견을 적절한 답변으로 추가하는 것을 고려해보십시오 - 다른 사람들에게 도움이 될 수 있습니다. – David
가능한 복제본 [C# : Windows 7에서 필요한 재부팅을 검색하는 방법] (https://stackoverflow.com/questions/15482174/c-how-can-a-required-reboot-be-detected-for-windows) -7) – TheIncorrigible1