Update Windows/WinRM/install.md
This commit is contained in:
@@ -10,4 +10,7 @@ Set-Service WinRM -StartupType Automatic -PassThru
|
|||||||
Start-Service WinRM -PassThru
|
Start-Service WinRM -PassThru
|
||||||
winrm quickconfig
|
winrm quickconfig
|
||||||
Set-Item WSMan:\localhost\Client\TrustedHosts -Value '10.0.0.0'
|
Set-Item WSMan:\localhost\Client\TrustedHosts -Value '10.0.0.0'
|
||||||
|
$c=New-SelfSignedCertificate -DnsName "10.0.0.0" -CertStoreLocation cert:\LocalMachine\My
|
||||||
|
netsh advfirewall firewall add rule name="WinRM-HTTP" dir=in localport=5985 protocol=TCP action=allow
|
||||||
|
netsh advfirewall firewall add rule name="WinRM-HTTPS" dir=in localport=5986 protocol=TCP action=allow
|
||||||
```
|
```
|
||||||
Reference in New Issue
Block a user