Skip to content

Latest commit

 

History

History
35 lines (29 loc) · 1.24 KB

winrm.md

File metadata and controls

35 lines (29 loc) · 1.24 KB

Windows Remote Management

WinRM auf Client aktivieren

https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_remote_requirements?view=powershell-7.3

# active WinRM on CLIENT
# must skip network check for ppublic network connections
Enable-PSRemoting -SkipNetworkProfileCheck -Force
# client computer, e.g. Server01
Enable-PSRemoting
New-PSSession

# connect to remote host
Enter-PSSession Server01
Exit-PSSession

WinRM allow access on ADMIN workstation to clients

# Allow Admin Access to client PCs on ADMIN-Workstation
# change "*" to desired IP-Range
Set-Item WSMan:\localhost\Client\TrustedHosts -Value "*" -Force

# check values
Get-Item WSMan:\localhost\Client\TrustedHosts