3
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

PowerShell リモート操作

Last updated at Posted at 2015-10-28

操作される側の設定

PowerShellを管理者として実行する。

Enable-PSRemoting

操作する側の設定

PowerShellを管理者として実行する。

Set-Item WSMan:\localhost\Client\TrustedHosts -Value 接続先のIPアドレス

TrustedHostsを削除する場合は下記を実行する。

Clear-Item WSMan:\localhost\Client\TrustedHosts

リモートホストへの接続(ワークグループ環境の場合)

PowerShellを管理者として実行する。

Enter-PSSession 接続先のIPアドレス -Credential 接続先アカウント名

接続の切断

Exit-PSSession

または

exit
3
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?