Showing category results for Windows PowerShell

Oct 14, 2016
Post comments count0
Post likes count0

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

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 7, 2016
Post comments count0
Post likes count0

PowerTip: How to detect phone numbers using regular expressions

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

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
Oct 5, 2016
Post comments count0
Post likes count0

Part 2 – Install .NET Core and PowerShell on Linux Using DSC

Doctor Scripto

Summary: Learn how to configure and use PowerShell, Bash, and desired state configuration (DSC) with Linux. Today, Cloud and Data Center MVP Stefan Roth returns for Part 2 of his three-part series about how to configure and use PowerShell, Bash, and desired state configuration (DSC) with Linux. Take it away Stefan … My previous post installed the...

Scripting Guy!Windows PowerShellguest blogger
Sep 30, 2016
Post comments count0
Post likes count0

PowerTip: How to escape characters in a string using regular expressions

Doctor Scripto

Summary: Cloud & Datacenter Management MVP, Thomas Rayner, shows how escape characters for use in regex. Is there a way to escape characters in a string automatically for use in regex?  Use the method to automatically escape characters in a string so you can use them in regex.

Windows PowerShellPowerTipguest blogger