PS C:\Windows\system32> $env:Path += ";C:\Windows\System32\WindowsPowerShell\v1.0" PS C:\Windows\system32> [Environment]::SetEnvironmentVariable("Path", $env:Path, "Machine") PS C:\Windows\system32> Restart-Service WinRM
PS C:\Windows\system32> $env:Path += ";C:\Windows\System32\WindowsPowerShell\v1.0" PS C:\Windows\system32> [Environment]::SetEnvironmentVariable("Path", $env:Path, "Machine") PS C:\Windows\system32> Restart-Service WinRM