Start job that persists after logging off?

How do I go about kicking off a job in the background and have it persist upon exiting my powershell instance? I have tried to create a local session with new-pssession but am not able to do so. Seeing access is denied.

Thoughts?

June 19th, 2015 7:29pm

Can't realty be done the way you are thinking of it.

First we have to know what the job is supposed to do and why it has to keep running or why you have to log off.

Consider the task scheduler for some things.

Free Windows Admin Tool Kit Click here and download it now
June 19th, 2015 8:34pm

Yeah, that's what I ended up using. Coming from a linux background I am a little shocked that this isn't something that's readily available.
June 23rd, 2015 3:13pm

Unix allows you to send a session into the background.  PowerShell can do the same thing.  Just use start-process.

To use New-PsSession locally you must be in the admin role.

Free Windows Admin Tool Kit Click here and download it now
June 23rd, 2015 3:52pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics