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 started using Windows PowerShell, but over time it has proven to be one of my favorites. This is largely…

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-Object cmdlet (% is an alias), clear the screen in the Begin block,          …

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, and I wanted to be able to easily report on these and get an alert for any changes in status….

0

PowerTip: Add Computer to Security Group with PowerShell

Summary: Use Active Directory PoweShell cmdlets to add a computer to a security group.  How can I use Windows PowerShell to add a computer to a security group?  Use the Add-ADGroupMember cmdlet, and remember to use the SAM account name on the computer: To add a computer called “STATION01” to a security group called “RDPEnabled”: ADD-ADGroupMember “RDPEnabled”…

0

‘Twas the Night Before Scripting: Part 5

Summary: Tonight, our Admin friend learns to migrate group memberships. Microsoft Scripting Guy, Ed Wilson, here. If you missed it, be sure to watch Sean’s video: Just Script It! Also to catch up with our story, read:  ‘Twas the Night of Before Scripting: Part 1 ‘Twas the Night of Before Scripting: Part 2 ‘Twas the Night…

0

PowerTip: Show Group Members with PowerShell

Summary: Use Windows PowerShell to get a list of group members in Active Directory.  How can I use Windows PowerShell to regularly show who is in an Active Directory group, for example, Domain Admins?  To show who is in the Domain Admins group in Active Directory, run the following command: Get-ADGroupMember DomainAdmins If you’d like…

0

‘Twas the Night Before Scripting: Part 4

Summary: Dr. Scripto shows our Admin friend how to determine which groups a computer is a member of. Microsoft Scripting Guy, Ed Wilson, here. If you missed it, be sure to watch Sean’s video: Just Script It! Also to catch up with our story, read:  ‘Twas the Night of Before Scripting: Part 1 ‘Twas the Night…

0

PowerTip: Create Computer Account in Active Directory with PowerShell

Summary: Use the Active Directory module to create a new computer account.  How can I use Windows PowerShell to create a computer account in Active Directory? To create a new computer called ScriptoPC, execute the following line in an Active Directory environment           with a domain controller running Windows Server 2012 R2,…

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