Deploying New Local User Administrator - Powershell Digitally Signed Error

Comments

7 comments

  • Stephen Valdinger

    Can you show your package step? Obfuscate sensitive data obvioiusly. That's strange behavior. The wrapper does pass the code with ExecutionPolicy set to Bypass by default, so that's a curious error. You might have to get with support on this one. What version are you on?

    0
    Comment actions Permalink
  • Rcollado

    Sure thing, super simplistic for now. Just trying to get this guy to run on a local test machine.

    Currently Running 13.2.0.0

    It doesn't seem like it's passing the Bypass syntax. I assumed that PDQ runs powershell with it defined?

     

    0
    Comment actions Permalink
  • Stephen Valdinger

    Hmm. I have the same version, and it works fine for me:

    I'd email support@pdq.com and they will get you taken care of! Sounds like something is amiss with your installation.

    0
    Comment actions Permalink
  • Rcollado

    Thanks for validating, that makes me feel more at easy. I was going crazy with the workarounds haha!

    0
    Comment actions Permalink
  • Chris James

    We've seen issues in the past where Group Policy has restrictions setup to block unsigned scripts and -ExecutionPolicy Bypass gets thwarted by Group Policy. 

    0
    Comment actions Permalink
  • Christian Bacher

    Keep it simple if your PDQ Deploy is not accessible by others.
    Use CMD or a BAT!

    Replace username and Password and remove the < >

    net user <username> <password> /add
    net localgroup administratoren /add <username>
    wmic UserAccount where Name='<username>' set PasswordExpires=False

    First line creates the user with the password
    Second line adds the user to the localgroup admin
    Third turns off the Password expiration

    Example:

    Creating the user "NoPowerShell" with the Password "justcmd"

    net user NoPowerShell justcmd /add
    net localgroup administratoren /add NoPowerShell
    wmic UserAccount where Name='NoPowerShell' set PasswordExpires=False

    Thats all

    0
    Comment actions Permalink
  • 0
    Comment actions Permalink

Please sign in to leave a comment.