0
我正嘗試使用Powershell在Office 365中創建用戶,聯繫人和通訊組列表。powershell transaction office 365
我需要設置一個事務,以確保我成功執行了所有這三個命令或什麼都沒有。
我的命令是:
New-MsolUser -DisplayName 'TEST TEST' -FirstName 'TEST' -LastName 'TEST' -UserPrincipalName '[email protected]' -UsageLocation US
New-MailContact -Name 'TEST TEST' -ExternalEmailAddress '[email protected]'
New-DistributionGroup -Name 'TEST TEST_TEST' -Members '[email protected]'