Victor Vogelpoel

Excellence is in the details

The PowerShell advantage: debugging anytime

Leave a comment


Today I was reminded of a great PowerShell feature: I can even debug script on a production server. Take that, compiled C# program!

The system administrator installed scripts I devised to update SharePoint online User Profile properties in bulk, but something failed in our tests. Well, just open PowerShell ISE, load the culprit script, set a break-point, start it and see what’s happening.

Oh, we forgot to set the IE proxy properly, so the script had no connection to internet. Easily found and fixed and the scripts started to work their magic.
Got to love PowerShell!

Advertisements

Author: Victor Vogelpoel

Dad, SharePoint technical specialist, PowerShell architect, photographer and just a guy whose life happens while trying planning it.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s