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]'