Background Service is not running

Comments

6 comments

  • Stephen Valdinger
    $remotecomputer = Get-Content env:computername

    That's going to vomit red text all over a prompt. 

    1.  You can't Get-Content that variable
    2.  it's $env:computername, not env:computername

     

    In order for this to work, you have to do a couple of things. 

    1.  You need to make sure the account you are using for the Creds of the Invoke-Command are listed in the Console Users section of preferences
    2. Use TCP not named Pipes
    • Location: HKEY_LOCAL_MACHINE\SOFTWARE\Admin Arsenal\PDQ Deploy
    • Value: ServicePort (DWORD value)
    • It can be any port you want

    Finally, the code should look like this:

    Invoke-Command -ComputerName <pdq server> -Credential $creds -ScriptBlock{ pdqdeploy.exe Deploy -Package <package name> -Targets $args[0] } -ArgumentList $RemoteComputer

     

    0
    Comment actions Permalink
  • Adukes

    Adding the port caused PDQ to not open. Is there a value I need to stay between?

    I remember them saying something about the service port in a video, but I can't find that video to save me

    0
    Comment actions Permalink
  • Stephen Valdinger

    Restart your background Service. That should fix that issue.

    0
    Comment actions Permalink
  • Adukes

    HA GOT IT!!

    0
    Comment actions Permalink
  • Adukes

    Thanks you Stephen.. and I found the video too. 

    0
    Comment actions Permalink
  • Cody Sartony

    Restart your background Service.

    0
    Comment actions Permalink

Please sign in to leave a comment.