Sign in
Browse by Tags
TechNet Blogs
»
Hey, Scripting Guy! Blog
»
All Tags
»
error handling
Server & Tools Blogs
>
Server & Management Blogs
>
Hey, Scripting Guy! Blog
All About Windows Server
Windows Server
Windows Server Essentials Blog
Partner & Customer Solutions
Ask The
Performance Team
Ask Premier Field Engineering
Ask the Core Team
Cloud OS Blogs
Brad Anderson - In the Cloud
Building Clouds
Server & Cloud
Datacenter Management
The System Center Team Blog
System Center Virtual Machine Manager
System Center Service Manager
System Center Operations Manager
System Center Data Protection Manager
System Center Orchestrator
Partner & Customer Solutions
Client Management
System Center Configuration Manager
System Center Service Manager
MDOP
Malware Protection Center
Windows Intune
SUS
Partner and Customer Solutions
Virtualization, VDI & Remote Desktop
Virtualization Team Blog
Ben Armstrong’s Virtualization Blog
Jose Barreto Blog on Hyper-V
Partner & Customer Solutions
Remote Desktop Services
Windows Multipoint Server
Ask the Core Team on Hyper-V
File & Storage & High Availability
File & Storage
Jose Barreto
Partner & Customer Solutions
Ask the Core Team on Failover Cluster
Clustering & High Availability
Windows Server Management
PowerShell
Hey Scripting Guy (PowerShell)
Server Manager
Group Policy
Networking
Identity & Access
Ask Directory Services
Active Directory Team Blog
Hey, Scripting Guy! Blog
Learn about Windows PowerShell
Live Now on Server & Tools Blogs
Subscribe
Comments
Contact
Menu
Home
Atom
Translate this page
Powered by
Microsoft® Translator
Twitter Feed
Recent Posts
‘Twas the Night of Before Scripting: Part 1
Posted
6 hours ago
by
The Scripting Guys
The Scripting Guys
PowerTip: Debug a Workflow with PowerShell 4.0
Posted
18 hours ago
by
The Scripting Guys
The Scripting Guys
1
Comment
Security Series: Using PowerShell to Enable BYOD–Part 2
Posted
1 day ago
by
The Scripting Guys
The Scripting Guys
PowerTip: Use PowerShell to Discover Console Colors
Posted
1 day ago
by
The Scripting Guys
The Scripting Guys
Tags
2010 Scripting Games
2011 Scripting Games
Active Directory
basic hardware and firmware
Bhargav Shukla
CSV and other delimited files
getting started
Glenn Sizemore
Guest Blogger
Hardware
Klaus Schulte
Quick-Hits Friday
Scripting Guy!
scripting techniques
searching Active Directory
Weekend Scripter
Windows PowerShell
WMI
wrap up
Writing
Related Resources
Script Center Home
Scripting Library
Learn to Script
Script Repository
Scripting Forum
2012 Scripting Games
Archives
Archives
December 2013
(46)
November 2013
(60)
October 2013
(65)
September 2013
(61)
August 2013
(63)
July 2013
(63)
June 2013
(69)
May 2013
(68)
April 2013
(61)
March 2013
(62)
February 2013
(56)
January 2013
(62)
December 2012
(62)
November 2012
(68)
October 2012
(62)
September 2012
(62)
August 2012
(63)
July 2012
(32)
June 2012
(39)
May 2012
(33)
April 2012
(97)
March 2012
(44)
February 2012
(31)
January 2012
(31)
December 2011
(31)
November 2011
(30)
October 2011
(31)
September 2011
(30)
August 2011
(31)
July 2011
(31)
June 2011
(30)
May 2011
(31)
April 2011
(97)
March 2011
(41)
February 2011
(28)
January 2011
(31)
December 2010
(31)
November 2010
(30)
October 2010
(31)
September 2010
(30)
August 2010
(33)
July 2010
(31)
June 2010
(30)
May 2010
(67)
April 2010
(65)
March 2010
(34)
February 2010
(29)
January 2010
(23)
December 2009
(23)
November 2009
(22)
October 2009
(23)
September 2009
(22)
August 2009
(25)
July 2009
(24)
June 2009
(38)
May 2009
(22)
April 2009
(22)
March 2009
(22)
February 2009
(20)
January 2009
(22)
December 2008
(8)
November 2008
(17)
October 2008
(9)
September 2008
(8)
August 2008
(6)
July 2008
(5)
June 2008
(21)
May 2008
(21)
April 2008
(22)
March 2008
(21)
February 2008
(21)
January 2008
(22)
December 2007
(10)
November 2007
(20)
October 2007
(23)
September 2007
(19)
August 2007
(23)
July 2007
(21)
June 2007
(21)
May 2007
(22)
April 2007
(21)
March 2007
(22)
February 2007
(21)
January 2007
(21)
December 2006
(11)
November 2006
(20)
October 2006
(22)
September 2006
(20)
August 2006
(23)
July 2006
(20)
June 2006
(22)
May 2006
(22)
April 2006
(20)
March 2006
(23)
February 2006
(20)
January 2006
(21)
December 2005
(16)
November 2005
(20)
October 2005
(21)
September 2005
(21)
August 2005
(23)
July 2005
(20)
June 2005
(22)
May 2005
(21)
April 2005
(21)
March 2005
(22)
February 2005
(20)
January 2005
(21)
December 2004
(16)
November 2004
(20)
October 2004
(21)
September 2004
(21)
August 2004
(22)
More
▼
Less
▲
Tagged Content List
Blog Post:
Clean Up Your PowerShell History to Remove Error Entries
The Scripting Guys
Summary: Microsoft Scripting Guy, Ed Wilson, shows how to remove all error commands from your Windows PowerShell command history. Microsoft Scripting Guy, Ed Wilson, is here. One of the great things about being involved with a Windows PowerShell user group is all the great people I meet and all the...
on
11 Feb 2013
Blog Post:
Simplify Your PowerShell Script with Parameter Validation
ScriptingGuy1
Summary : Learn how to simplify your Windows PowerShell Script by using parameter validation attribute. Weekend Scripter Microsoft Scripting Guy, Ed Wilson, is here. I thought I would ask Glenn Sizemore to write today’s blog about parameter validation attributes. Glenn Sizemore is...
on
15 May 2011
Blog Post:
PowerShell Error Handling and Why You Should Care
ScriptingGuy1
Summary : Learn how to use error handling in your Windows PowerShell scripts. Microsoft Scripting Guy, Ed Wilson, is here. Guest Blogger Week continues with Bhargav Shukla. Bhargav Shukla is a senior premier field engineer—unified communications, with his primary focus on the Exchange...
on
12 May 2011
Blog Post:
Lessons Learned from the 2011 Scripting Games
ScriptingGuy1
Summary : The winner of the beginner division of the 2011 Scripting Games shares his thoughts and insights. Weekend Scripter Microsoft Scripting Guy, Ed Wilson, is here. This week we will have a combination of guest bloggers and me with a recap of the 2011 Scripting Games. Today we have Klaus Schulte...
on
8 May 2011
Blog Post:
Error Handling and Exporting Active Directory Users to CSV
ScriptingGuy1
Summary: Learn how to handle errors in Windows PowerShell and how to export user information from Microsoft Active Directory to a CSV file. In this post: Exporting Active Directory Users to CSV Adding Comments to a Script File Error Handling in Windows PowerShell Exporting...
on
12 Nov 2010
Blog Post:
Query Active Directory with PowerShell and Run WMI Commands
ScriptingGuy1
Summary : Use Windows PowerShell to Query Active Directory for computers and then run WMI commands on the remote machines. The Scripting Guys show you how. Hey, Scripting Guy! We have a major problem at my company. We have a standard corporate desktop we are deploying by using the Windows Deployment...
on
26 Aug 2010
Blog Post:
Query Active Directory and Ping Each Computer in the Domain by Using PowerShell
ScriptingGuy1
Summary : Query Active Directory and ping each computer in the domain by using Windows PowerShell. The Scripting Guys show you how. Hey, Scripting Guy! I am THE IT person at my company. I am also a chemical engineer who has daily production responsibilities in our process plant. You see, I am...
on
25 Aug 2010
Blog Post:
Hey, Scripting Guy! How Can I Use Windows PowerShell to Retrieve Information About Computer Hardware?
ScriptingGuy1
Hey, Scripting Guy! I need to use Windows PowerShell to retrieve information about my computer hardware. Specifically I am interested in the make, the model, and the speed of my CPU by using a script. Can this be done? -- DH Hello DH, Microsoft Scripting Guy Ed Wilson here. The 2010 Scripting...
on
4 Jun 2010
Blog Post:
Hey, Scripting Guy! How Can I Use Try/Catch/Finally in Windows PowerShell?
ScriptingGuy1
Hey, Scripting Guy! One thing I miss in Windows PowerShell is the ability to use a Try/Catch/Finally block that I can use in C#. To me it is an elegant solution to error handling. You attempt something, catch any resulting errors, and clean up the mess you made. Are there any plans in Windows PowerShell...
on
11 Mar 2010
Blog Post:
Hey, Scripting Guy! How Can I Use the Test-Path Cmdlet to Check for Resources?
ScriptingGuy1
Hey, Scripting Guy! Ignoring errors or bubbling up errors to the user of a script seems a bit inefficient. I mean, wouldn’t it be better to avoid the errors in the first place? I am only a beginner when it comes to writing scripts, and maybe I just do not get it, but why can’t you just write code that...
on
10 Mar 2010
Blog Post:
Hey, Scripting Guy! How Can I Use the –ErrorAction Preference Parameter?
ScriptingGuy1
Hey, Scripting Guy! I enjoyed reading your blog post yesterday about using $ErrorActionPreference to control the behavior of a script. One thing I never liked about using “On Error Resume Next” from VBScript was that it seemed to be an all-or-nothing type of proposition. There are certain errors I do...
on
9 Mar 2010
Blog Post:
Hey, Scripting Guy! How Can I Use $ErrorActionPreference to Control Cmdlet Handling of Errors?
ScriptingGuy1
Hey, Scripting Guy! One thing I liked about using VBScript is that I could add On Error Resume Next to the top of a script, and all my problems with the script went away. It was like magic, and I used it to fix many of my scripts. I really miss this capability in Windows PowerShell. -- MW Hello...
on
8 Mar 2010
Blog Post:
Hey, Scripting Guy! How Can I Find All the Users with Remote Access Permissions?
ScriptingGuy1
Hey, Scripting Guy! How can I find all the users with remote access permissions; that is, all those with the Dial-In or VPN property set to Allow ? -- RC Hey, RC. You know, it seems like people are always looking for something: true love, happiness, the meaning of life. We can’t help you...
on
25 Aug 2005