Powershell session

Home Forums Scripting PowerShell Powershell session

Viewing 1 post (of 1 total)
  • Author
    Posts
  • Avatar
    jason0923
    Member
    #167061

    I’m trying to script some account stuff into one PS script. We use Local AD. Office 365 and hosted Exchange. Individually things work but for example I want to disable an account. The disable cmds have to run on local AD, the remove licenes and mailbox functions have to run on both the local and Office 365 Exchange servers. In the script I can connect to office 365 but some of the commands error out because they need to connect to local Exch and vice versa. Can I designate which connection to use for each command?

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.