The Official Microsoft IIS Site

Distribuir contenido
The platform that enables you to build rich, interactive communities
Actualizado: hace 1 día 10 horas

PowerTip: Use PowerShell to Create Hash Table

Vie, 27/12/2013 - 20:59
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 character plus n ( `n ) for a new line): PS C:\> convertfrom-stringdata "a=1`nb=2`nc=3" Name Value ---- ----- c 3 a 1 b 2...(read more)

PowerTip: Use PowerShell to Create Hash Table

Vie, 27/12/2013 - 20:59
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 Read More......(read more)

Phantom Elements in a Hash Table

Vie, 27/12/2013 - 09:01
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 Read More......(read more)

Phantom Elements in a Hash Table

Vie, 27/12/2013 - 09:01
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 thanks to its ability to assign names to values for fast lookup. Hash tables store key-value (or name-value) pairs, which means typically we use strings...(read more)

PowerTip: Display a Blinking Message by Using PowerShell

Jue, 26/12/2013 - 20:59
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, and then display the message, pause, clear the screen, and pause in the Process block: 1..3 | % -begin {cls} -process {"hello";sleep 1;cls;sleep 1}...(read more)

PowerTip: Display a Blinking Message by Using PowerShell

Jue, 26/12/2013 - 20:59
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......(read more)

PowerShell Report for a Windows Failover Cluster

Jue, 26/12/2013 - 09:01
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......(read more)

PowerShell Report for a Windows Failover Cluster

Jue, 26/12/2013 - 09:01
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. Enter Windows PowerShell. This Windows PowerShell script uses various FailoverCluster cmdlets to write information about a Windows Failover Cluster to a HTML...(read more)

PowerTip: Add Computer to Security Group with PowerShell

Mié, 25/12/2013 - 20:59
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” –members “STATION01$” Note The SAM account name has a “ $ ” added to its name...(read more)

PowerTip: Add Computer to Security Group with PowerShell

Mié, 25/12/2013 - 20:59
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 Read More......(read more)

‘Twas the Night Before Scripting: Part 5

Mié, 25/12/2013 - 09:01
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 Read More......(read more)