Running PowerShell Script with Different ID and getting Not Digitally Signed Error RRS feed

  • Question

  • I am running PowerShell scripts from a remote server. I have 2 service IDs. The scripts run fine from this server using ID #1 but when trying to run with ID #2 I get a "Not Digitally Signed" error. It is the exact same scripts on the exact same server, ran from the exact same server, just with different IDs. How do I fix this so that I can run the scripts with ID #2 as well? Execution Policy is set to RemoteSigned.
    • Moved by Bill_Stewart Friday, March 15, 2019 3:01 PM Unanswerable drive-by question
    Sunday, December 9, 2018 11:38 PM

All replies

  • What IDs?  Do you mean accounts?

    What is the account setting.  Is it set to only run signed scripts?  Remember that each account can set its own signing policy.


    Monday, December 10, 2018 1:51 AM
  • check the result of below command from both the ID's.

    get-executionpolicy -list

    It will show you result like below, you can compare the results. Issue may be they are running scripts from different computers having different OU's.

    Scope          ExecutionPolicy
    -----          ---------------
    MachinePolicy  Undefined
    UserPolicy     Undefined
    Process        Undefined
    CurrentUser    AllSigned
    LocalMachine   RemoteSigned

    Monday, December 10, 2018 3:19 PM