PowerShell RemoteHosting

未分類

操作される側
管理者ユーザーを作る必要がある
Administratorでは動かない

Enable-PSRemoting

net start WinRM

Set-Item WSMan:\localhost\Client\TrustedHosts -Value “操作される側のIP(*)”

使い方
Enter-PSSession -ComputerName 操作される側のIP -Credential ログイン名