PowerTip: Use PowerShell to Create Hash Table

Summary: Use a Windows PowerShell cmdlet to create a hash table.  How can I use Windows PowerShell to create a hash table if do not remember the special syntax?  Use the ConvertFrom-StringData cmdlet, and put each key-value pair on its own line.           (You can perform this on a single line by using backtick…

0

Phantom Elements in a Hash Table

Summary : Microsoft PFE and guest blogger, Chris Wu, talks about working with hash tables. Microsoft Scripting Guy, Ed Wilson, is here. Welcome back guest blogger, Chris Wu … Admittedly, hash tables didn’t catch my attention when I…(read more)

0

PowerTip: Display a Blinking Message by Using PowerShell

Summary : Use this one-line Windows PowerShell command to display a blinking message. Is there a one-line command that I could use to blink a message in the Windows PowerShell console to get the users attention? Pipe a range of numbers to the Foreach…(read more)

0

PowerShell Report for a Windows Failover Cluster

Summary : Use Windows PowerShell to create a report for a Windows failover cluster. Microsoft Scripting Guy, Ed Wilson, is here. Welcome back guest blogger, Rhys Campbell … I’m involved in the administration of several Failover Clusters…(read more)

0

Cmdlets Roasting on an Open Fire

Summary: Are there new cmdlets in the Active Directory PowerShell module in Windows Server 2012 R2? Microsoft Scripting Guy, Ed Wilson, is here. Today we have an extra guest post from Ian Farr, who explores if there are new cmdlets in the Active Directory PowerShell module in Windows Server 2012 R2. I like it when Christmas comes early… Are…

0

PowerTip: Debug a Workflow with PowerShell 4.0

Summary: Use Windows PowerShell 4.0 to debug a workflow.  How do I set a breakpoint in a Windows PowerShell script workflow?  Add the workflow to a script and use Set-PSBreakpoint to set a line breakpoint in the workflow: Set-PSBreakpoint -Script C:\Test-MyWorkflow1.ps1 -Line 12   ID Script                           Line Command   Variable  Action — ——                           —- ——-   ——– …

0

PowerTip: Use PowerShell to Discover Console Colors

Summary:  Use Windows PowerShell to discover console color assignment.  How can I see what colors are assigned in the Windows PowerShell console?  Use the Get-Host cmdlet and expand the PrivateData property: (get-host).privatedata

0

Migrating Host-Named Site Collections

Summary: Guest blogger and Microsoft PFE, Chris Weaver, talks about using Windows PowerShell to migrate host-named site collections. Microsoft Scripting Guy, Ed Wilson, is here. Welcome back today to guest blogger, Chris Weaver… This week I was onsite with a customer in North Carolina. They were migrating to SharePoint 2013, but they hit an issue with…

0

PowerTip: PowerShell One-Liner to Find Short Aliases

Summary:  Use this Windows PowerShell one-liner to find one-, two-, three-, and four-letter aliases.  How can I use a Windows PowerShell one-liner to find the number of default aliases that are one, two, three,           and four letters long?  Use the range operator to create an array with 1 through 4…

0

Store PowerShell Profile on SkyDrive

Summary: Guest blogger, JD Platek, talks about storing the Windows PowerShell profile on SkyDrive. Microsoft Scripting Guy, Ed Wilson, is here. Today I would like to introduce a new guest blogger. Please welcome JD Platek. JD has been in IT since 2003, and he is an Exchange Server 2010 and Office 365 MCM. He has supported…

0