01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
# Enable WinRM
winrm quickconfig
 
<# Sample output
PS C:\Users\Administrator> winrm quickconfig
WinRM service is already running on this machine.
WinRM is not set up to allow remote access to this machine for management.
The following changes must be made:
 
Configure LocalAccountTokenFilterPolicy to grant administrative rights remotely to local users.
 
Make these changes [y/n]? y
 
WinRM has been updated for remote management.
 
Configured LocalAccountTokenFilterPolicy to grant administrative rights remotely to local users.
#>