Dallas Smetter
asked on
Powershell with multiple commands
If I create a this.ps1 and add
Enable-Mailbox -Identity ayla@contoso.com -RemoteArchive -ArchiveDomain "archive.contoso.com"
Enable-Mailbox -Identity ayla2@contoso.com -RemoteArchive -ArchiveDomain "archive.contoso.com"
Enable-Mailbox -Identity ayla3@contoso.com -RemoteArchive -ArchiveDomain "archive.contoso.com"
will it run all three lines?
If not, what syntax can I use to do that?
Enable-Mailbox -Identity ayla@contoso.com -RemoteArchive -ArchiveDomain "archive.contoso.com"
Enable-Mailbox -Identity ayla2@contoso.com -RemoteArchive -ArchiveDomain "archive.contoso.com"
Enable-Mailbox -Identity ayla3@contoso.com -RemoteArchive -ArchiveDomain "archive.contoso.com"
will it run all three lines?
If not, what syntax can I use to do that?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER