windows powershellを使用してリモートマシンから「Exchange Server 2007」に接続しようとしています。これが私のやり方です。Powershell exchange server
$server = '192.168.1.61';
$pwd = convertto-securestring '123' -asplaintext -force;
$cred = new-object -typename System.Management.Automation.PSCredential -argumentlist 'isshyd\Administrator', $pwd;
invoke-command -computername $server -credential $cred -scriptblock { Add-PSSnapin Microsoft.Exchange.Management.PowerShell.Admin;Get-MailboxDatabase | ft Name }
が、私はこのクエリを実行すると、私は私がここで使用される資格情報は、私のシステムの資格です。この
Active Directory server "machine name" is not available.
The supplied credential is invalid.
のようなエラーを取得しています。
isshydはリモートコンピュータ名またはドメイン名ですか? –
資格情報を指定せずにリモートマシン上でコードをローカルで実行しようとするとどうなりますか? –