March 7th, 2014

PowerTip: Protect the Data Produced by PowerShell Jobs

Doctor Scripto
Scripter

Summary: Learn how to protect the data in a Windows PowerShell job.

Hey, Scripting Guy! Question How can I protect the data that is produced by a Windows PowerShell job?

Hey, Scripting Guy! Answer If the job is running and your Windows PowerShell session or computer crashes, you’ll lose the data.
          One possibility is that you can write the data to disk before the job finishes so that its available if the
          session or machine stops. This would be a good approach for overnight jobs where the machine
          is unattended and might be restarted by an outside process.

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.

Feedback