Windows Remote Management (WinRM)
MITRE ATT&CK, Lateral Movement, Sub-technique T1021.006
Enabling PowerShell Remoting
Enable-PSRemoting –forceSet-Service WinRM -StartMode AutomaticGet-WmiObject -Class win32_service | Where-Object {$_.name -like "WinRM"}Set Remote Hosts to Trusted
Set-Item WSMan:localhost\client\trustedhosts -value *Get-Item WSMan:\localhost\Client\TrustedHostsEstablishing a Session
Enter-PsSession –ComputerName $hostReferences
Last updated