Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5afaf00

Browse files
removed comment
1 parent ea63d97 commit 5afaf00

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

‎LearnPowerShell/EP9 - PowerShell Remoting.ps1

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ Restart-Computer -ComputerName $devices -Credential $Creds -Force
4646

4747
#region WinRM
4848

49+
#verify that WinRM is setup and configured locally
50+
Test-WSMan
51+
4952
# basic WinRM configuration with default settings
5053
winrm quickconfig
5154

@@ -67,9 +70,6 @@ Listener
6770
CertificateThumbprint
6871
ListeningOn = 10.0.3.253, 127.0.0.1, 192.168.1.253, ::1,
6972

70-
#verify that WinRM is setup and configured locally
71-
Test-WSMan
72-
7373
#verify that WinRM is setup and responding on a remote device
7474
#you must specify the authentication type when testing a remote device.
7575
#if you are unsure about the authentication, set it to Negotiate
@@ -125,7 +125,6 @@ Invoke-Command -Session $sessions -ScriptBlock {
125125
return $perFree
126126
}
127127

128-
#stop the BITS service on all remote devices
129128
#get the number of CPUs for each remote device
130129
Invoke-Command -Session $sessions -ScriptBlock {(Get-CimInstance Win32_ComputerSystem).NumberOfLogicalProcessors}
131130

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /