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?
Technology Tips and News
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?
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.
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.