Connect to your Windows Server using PowerShell
You can manage your Windows Server using remote PowerShell.
Activate remote PowerShell on your Windows Server
Enable-PSRemoting -Force$SelfSignedCertificate = New-SelfSignedCertificate -DnsName $env:computername -CertStoreLocation Cert:\LocalMachine\My -FriendlyName "PowerShell Remoting" -NotAfter 2035-01-01Get-ChildItem WSMan:\localhost\Listener\ | Remove-Item -Recurse -ForceNew-Item -Path WSMan:\localhost\Listener -Transport HTTPS -Address * -CertificateThumbPrint $SelfSignedCertificate.Thumbprint -forceDisable-NetFirewallRule -DisplayName "Windows Remote Management (HTTP-In)"New-NetFirewallRule -DisplayName "Remote PowerShell in (HTTPS-In)" -Name "Remote_PowerShell_in_(HTTPS-In)" -group "Remote PowerShell" -Profile Any -LocalPort 5986 -Protocol TCPConnect to your server using PowerShell
Conclusion
Last updated
Was this helpful?