Remote deployment - Background service not running

Comments

9 comments

  • David Hobbs

    I literally was getting ready to post a similar question 20 minutes ago until I stumbled onto how to get it to work. 

    You have to use this format at the start:

    psexec \\server -u <domain>\<username> -p <password> -h -accepteula

    I also have it set to use the IP instead of the hostname to avoid pesky DNS issues, so it's structured like this: 

    for /f "skip=1 delims={}, " %%A in ('wmic nicconfig get ipaddress') do for /f "tokens=1" %%B in ("%%~A") do set "IP=%%~B"
    psexec \\server -u <domain>\<username> -p <password> -h -accepteula "C:\Program Files (x86)\Admin Arsenal\PDQ Deploy\pdqdeploy.exe" Deploy -Package "Baseline" -Targets %ip%
    1
    Comment actions Permalink
  • Jeff Irvine

    Thanks David. That definitely works when entering the username and password. I was really hoping to avoid having to do that though since the password lives in plain text in a script, correct?

    0
    Comment actions Permalink
  • Stephen Valdinger

    Kris has a blog post here about storing credentials securely using a key file. Have a look at that. I'm with you on storing creds in plain text.

    You could then wrap all this up in Powershell to be able to utilize it.

    This sounds like a good topic for a write-up. I'll put it on my radar to get that done for the community.

    1
    Comment actions Permalink
  • David Hobbs

    It does on the initial image, but it's gone before it leaves our hands. We use FOG for imaging, so we just run a batch file that handles all the post-imaging steps. The very last thing it does is run a separate batch file that deletes the script with the login information.

    0
    Comment actions Permalink
  • Stephen Valdinger

    We use FOG here as well.. We just use a Collection for a specific AD group, and a heartbeat schedule deploys to it. Works really well.

    0
    Comment actions Permalink
  • Jeff Irvine

    That's awesome Stephen, thanks. I found Kris' blog post so I'll give that a read. And I think a write-up would be very helpful for a lot of users so thanks for any time you put into that.

     

     

    0
    Comment actions Permalink
  • Bouma, Colby

    I haven't watched this yet, but Admin Arsenal recently created a video about OS imaging and deployment. https://www.youtube.com/watch?v=Wr34pRoBiok

    0
    Comment actions Permalink
  • Stephen Valdinger

    Colby, 

     

    I was watching that webcast when it was live. It really wasn't that granular to be able to be used for ALL imaging scenarios. Missed the mark of what they were going for in my opinion.

    0
    Comment actions Permalink
  • Bouma, Colby

    Ah, ok. Good to know :)

    0
    Comment actions Permalink

Please sign in to leave a comment.