Important Notice: On February 29th, this community was put into read-only mode. All existing posts will remain but customers are unable to add new posts or comment on existing. Please feel to join our Community Discord for any questions and discussions.

powershell script issue

I opened a ticket on this as well but in case anyone in here has an idea....

We are trying to work with a custom Microsoft Teams ps1 script where it imports modules to do what it needs to do. If i run the script locally it works great but in PDQ i'm having an issue where it immediately says it was successful (maybe 5 seconds in) and then nothing else happens.  i've tried an install step pointing to the .ps1, a Powershell step inserting the code as well as copying the ps1 locally and running a cmd step calling the ps1 and nothing seems to work

0

Comments

1 comment
Date Votes
  • I had a very similar issue when I first got going with PDQ, and it came down to being a permission issue. Please make sure that the background service account has:

    1) "Log on as service" rights
    2) Admin privileges on the boxes that you'll be running this script against.
    3) Proper access to the network share (if using) where the scripts are located

    Depending on the script, it may actually have to run as the current logged on user or the system. Try these as well.

    0