Running Exchange Powershell Scripts

Comments

1 comment

  • Brigg Angus

    Hi Len,

    If you have deployed the command as above, I believe it is going to try and run C:\Program Files\Microsoft\Exchange Server\V14\Bin\exshell.psc1" -file "script.ps1 on every machine that the command is deployed to, which means every machine would need the "C:\Program Files\Microsoft\Exchange Server\V14\Bin\" directory and associated files.

    If the above is correct, and those files exist on all targets, then you might want to run this as an install step rather than a command step. For additional information on how to do that, please see the following (very short) video:

    How to Run .reg, .bat, .vbs and .ps1 Files in PDQ Deploy

    If those targets do not have the files listed in the command, you could place the script on \\server\share and ensure that permissions for that share allow the user in PDQ Deploy -> Preferences -> Credentials access to the share then deploy using the UNC path to the script.

    0
    Comment actions Permalink

Please sign in to leave a comment.