@@ -46,6 +46,9 @@ Restart-Computer -ComputerName $devices -Credential $Creds -Force
46
46
47
47
# region WinRM
48
48
49
+ # verify that WinRM is setup and configured locally
50
+ Test-WSMan
51
+
49
52
# basic WinRM configuration with default settings
50
53
winrm quickconfig
51
54
@@ -67,9 +70,6 @@ Listener
67
70
CertificateThumbprint
68
71
ListeningOn = 10.0 .3.253 , 127.0 .0.1 , 192.168 .1.253 , ::1 ,
69
72
70
- # verify that WinRM is setup and configured locally
71
- Test-WSMan
72
-
73
73
# verify that WinRM is setup and responding on a remote device
74
74
# you must specify the authentication type when testing a remote device.
75
75
# if you are unsure about the authentication, set it to Negotiate
@@ -125,7 +125,6 @@ Invoke-Command -Session $sessions -ScriptBlock {
125
125
return $perFree
126
126
}
127
127
128
- # stop the BITS service on all remote devices
129
128
# get the number of CPUs for each remote device
130
129
Invoke-Command - Session $sessions - ScriptBlock {(Get-CimInstance Win32_ComputerSystem).NumberOfLogicalProcessors}
131
130
0 commit comments