Add Windows/WinRM/install.ps1
This commit is contained in:
13
Windows/WinRM/install.ps1
Normal file
13
Windows/WinRM/install.ps1
Normal file
@@ -0,0 +1,13 @@
|
||||
# Enable WinRM on PC
|
||||
|
||||
Make sure your ethernet is connected to a non public network type.
|
||||
Windows 11 => open Settings => Network & Internet => Ethernet => switch to Private Network
|
||||
|
||||
# Powershell commands (run as Administrator)
|
||||
|
||||
```powershell
|
||||
Set-Service WinRM -StartupType Automatic -PassThru
|
||||
Start-Service WinRM -PassThru
|
||||
winrm quickconfig
|
||||
Set-Item WSMan:\localhost\Client\TrustedHosts -Value '10.0.0.0'
|
||||
```
|
||||
Reference in New Issue
Block a user