Showing results for October 2016 - Page 2 of 3 - Scripting Blog [archived]

Oct 17, 2016
Post comments count0
Post likes count0

Speed up remote PowerShell connection to Exchange

Doctor Scripto
Doctor Scripto

Summary: Speed up the connection to Exchange by importing only the cmdlets that you need. Is there a way to speed up the initial PowerShell connection to Exchange? Yes, of course! With a little modification to Import-PSSession, we can speed up the connection. Normally, you would connect to Exchange 2010/2013/2016 like this: $session = New-PS...

Scripting Guy!Windows PowerShellguest blogger
Oct 14, 2016
Post comments count0
Post likes count0

PowerTip: How to detect a valid Active Directory user name using regular expressions

Doctor Scripto
Doctor Scripto

Summary: Cloud and Datacenter Management MVP, Thomas Rayner, shows how use regex to detect if a string is a valid Active Directory user name. The invalid characters for an Active Directory user name are and . How do I tell if a string is a valid Active Directory user name?   You can treat this array of characters as a pattern and see if t...

Windows PowerShellPowerTipguest blogger
Oct 14, 2016
Post comments count0
Post likes count1

PowerShell regex crash course – Part 3 of 5

Doctor Scripto
Doctor Scripto

Summary: Thomas Rayner, Microsoft Cloud & Datacenter Management MVP, shows the basics of working with regular expressions in PowerShell. Hello! I’m Thomas Rayner, a proud Cloud & Datacenter Management Microsoft MVP, filling in for The Scripting Guy! this week. You can find me on Twitter (@MrThomasRayner), or posting on my blog, workingsysa...

Windows PowerShellguest bloggerThomas Rayner
Oct 7, 2016
Post comments count0
Post likes count0

PowerTip: How to detect phone numbers using regular expressions

Doctor Scripto
Doctor Scripto

Summary: Cloud and Datacenter Management MVP, Thomas Rayner, shows how to use regex to detect if a string is a phone number. I have an array like , and I need to know which array items are phone numbers. How can I do this? You can compare each item in the array with all its non-digit characters removed and see if that matches your requirements f...

Windows PowerShellPowerTipguest blogger
Oct 7, 2016
Post comments count0
Post likes count1

PowerShell regex crash course – Part 2 of 5

Doctor Scripto
Doctor Scripto

Summary: Thomas Rayner, Microsoft Cloud and Datacenter Management MVP, shows the basics of working with regular expressions in PowerShell. Hello! I’m Thomas Rayner, a proud Cloud and Datacenter Management Microsoft MVP, filling in for The Scripting Guy! this week. You can find me on Twitter (@MrThomasRayner), or posting on my blog, workingsysadmin...

Windows PowerShellguest bloggerThomas Rayner