본문 바로가기

프로그래밍/[powerShell]

[powershell]5.1버전 업데이트, Get-CimInstance 가 안되요

powershell 예제를 따라하던중 일부명령어가 없어서 버전을 맞추기 위해 업데이트 하였다.

https://docs.microsoft.com/ko-kr/powershell/scripting/samples/changing-computer-state?view=powershell-6

 

 

뭔가 많이 바뀌었다.

 

잘 검색해서 자기 환경에 맞는거 업데이트 하면 된다.

 

 

 

맨위가 광고라서 헷갈리는데 좀너 내리면 나온다.

 

나는 64비트 윈7환경이다 지금은.
이제 예제코드가 나온다.