Skip to main content

Script Center

Script Center
We are dedicated to the system administration scripters of the world. At the Microsoft Script Center, we focus on teaching people how to use Windows PowerShell and VBScript to reduce time spent performing mundane tasks.

Hey, Scripting Guy! Blog

Script Center Home Page

PowerTip: Check to See if a Command Completes Properly
Summary: Learn how to check for proper completion of a Windows PowerShell command. How can I tell if a Windows PowerShell command completes successfully? a. Query the $error automatic variable. If $error[0] reports no information, no errors have occurred.b. Query the $? automatic variable. If $? is equal to true, the command completed successfully.

Recent Posts