Background Service is not running
I am referring to the script in this thread: https://support.adminarsenal.com/hc/en-us/community/posts/220479147-Remote-deployment-Background-service-not-running?input_string=Background%20Service%20is%20not%20running
Which says:
$secpasswd = ConvertTo-SecureString "DOMAIN_ADMIN_PASSWORD" -AsPlainText -Force
$creds = New-Object System.Management.Automation.PSCredential ("DOMAIN\DOMAIN_ADMIN",$secpasswd)
$remotecomputer = Get-Content env:computername
Invoke-Command -ComputerName SERVER_RUNNING_PDQ_DEPLOY -Credential $creds -ScriptBlock { param($name) & 'C:\Program Files (x86)\Admin Arsenal\PDQ Deploy\PDQDeploy.exe' Deploy -Package 'PDQ_DEPLOY_PACKAGE_NAME' -Target $name } -ArgumentList $remotecomputer
However when I run this I get this error:
Comments
That's going to vomit red text all over a prompt.
In order for this to work, you have to do a couple of things.
Finally, the code should look like this:
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
Restart your background Service. That should fix that issue.
HA GOT IT!!
Thanks you Stephen.. and I found the video too.
Restart your background Service.