(Bahasa Inggris saya buruk) Hai Teknisi,
Saya mencoba mendapatkan statistik Kotak Surat menggunakan Remote PowerShell dengan cmd dijalankan sebagai Administrator.
powershell -command "$session=New-PSSession -ComputerName 'EX2' -Credential $cred; invoke-command -Session $session -ScriptBlock { Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010; dir env:}"
perintah ini oke,
tapi saya ubah perintahnya menjadi Get-MailboxDatabase
powershell -command "$session=New-PSSession -ComputerName 'EX2' -Credential $cred; invoke-command -Session $session -ScriptBlock { Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010; Get-MailboxDatabase -Status}"
Saya mendapatkan ADInvalidCredentialException
: