2020/09/21 #Exchangeのリモート管理やってみた
皆様おはようございます、
#猫でもできるPowerShell(備忘録)
#Exchangeのリモート管理やってみた
<# 元ネタ
リモート PowerShell を使用した Exchange サーバーへの接続
#>
$Uri = 'http://[ExchangeのFQDN]/PowerShell' #httpsでなく、httpらしい
$Cred = Get-Credential
$Session = New-PSSession -conf microsoft.exchange `
-ConnectionUri $Uri -Authentication kerberos -Credential $Cred
Import-PSSession $Session -DisableNameChecking
ModuleType Version Name
ExportedCommands
---------- ------- ----
----------------
Script 1.0 tmp_aoe3mbip.r0r
{Add-ADPermission, Add-AvailabilityAd...
#Exchangeの仕事が済んだらセッションをクリア
Remove-PSSession $Session
「2020/06/16 #Exchangeを少し楽に弄る」のネタを実際にやってみました
一度書いてメモ帳に保存しておけば、少しどころか結構楽かもしれん・・
ではまた;