PowerTip: Find PowerShell Version

Summary: Easily find your Windows PowerShell version.  Is there a single command I can use to find the version of Windows PowerShell I am running, plus the version of           WSMan and the .NET Framework command-line reference (CLR)?  Use the $PSVersionTable automatic variable to display the Windows PowerShell version,        … Read more

Weekend Scripter: WMF, PowerShell, and Exchange Server Compatibility

Summary: Microsoft PFE and guest blogger, Mike Pfeiffer, talks about Windows PowerShell and Exchange Server compatability. Microsoft Scripting Guy, Ed Wilson, is here. Today we have a guest blogger who we haven’t seen for a while. Mike Pfeiffer is a premier field engineer for Microsoft. Since we last had Mike as a guest blogger, he… Read more

PowerTip: Use PowerShell to Clear the Trusted Hosts File

Summary: Use Windows PowerShell to clear the trusted hosts file.  How can I use Windows PowerShell to clear all values from my trusted hosts file? The trusted hosts file is part of the WSMAN configuration, and the easiest way to clear it is to use Clear-Item: £> Get-Item -Path WSMan:localhostClientTrustedHosts | fl Name, Value Name  :… Read more

Remoting Week: Non-Domain Remoting

Summary: Richard Siddaway explains how to use Windows PowerShell remoting to access machines that aren’t in your domain.  Hey, Scripting Guy! I’ve just starting learning Windows PowerShell, and I understand how to use it as a scripting language and shell on the local machine. How do I work with remote machines? —AP  Hello AP, Honorary… Read more

PowerTip: Remove PowerShell Web Access Authorization Rules

Summary: Learn how to remove Windows PowerShell Web Access authorization rules.  How can I remove Windows PowerShell Web Access authorization rules that are no longer required?  If you can identify the rule, use Remove-PswaAuthorizationRule from the PowerShellWebAccess module: Remove-PswaAuthorizationRule -Id 1 ~or~ Get-PswaAuthorizationRule -RuleName ‘server02 AD admin only’ | Remove-PswaAuthorizationRule To remove all rules for a particular server: Get-PswaAuthorizationRule… Read more

Remoting Week: Remoting Security

Summary: Richard Siddaway explains how to secure Windows PowerShell remoting sessions.  Hey, Scripting Guy! I’ve just starting learning Windows PowerShell, and I understand how to use it as a scripting language and shell on the local machine. How do I work with remote machines? —AP  Hello AP, Honorary Scripting Guy, Richard Siddaway, here today filling… Read more

PowerTip: Use PowerShell to Discover Certificate Thumbprints

Summary: Use Windows PowerShell to discover certificate thumbprints.  How can I use Windows PowerShell to discover the thumbprints of certificates that are installed on my machine?  Interrogate the certificate store, which is exposed as the cert: drive: Get-ChildItem -Path cert: -Recurse | select Subject, FriendlyName, Thumbprint | Format-List You will see a lot of entries like this:… Read more

Remoting Week: Configuring Remoting

Summary: Richard Siddaway explains how to configure remoting.  Hey, Scripting Guy! I’ve just starting learning WindowsPowerShell, and I understand how to use it as a scripting language and shell on the local machine. How do I work with remote machines? —AP  Hello AP, Honorary Scripting Guy, Richard Siddaway, here today filling in for my good… Read more

PowerTip: Determine Version of WSMAN on Remote Computer

Summary: Use Windows PowerShell to determine the version of WSMAN running on a remote computer.  How can I use Windows PowerShell to determine the version of WSMAN that is running on remote computers?     Use Test-WSMAN: Test-WSMan -ComputerName myserver wsmid           : http://schemas.dmtf.org/wbem/wsman/identity/1/wsmanidentity.xsd ProtocolVersion : http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd ProductVendor   : Microsoft Corporation ProductVersion  : OS: 0.0.0 SP: 0.0 Stack:… Read more

Remoting Week: Remoting Sessions

Summary: Richard Siddaway explains how to use WindowsPowerShell remoting sessions.  Hey, Scripting Guy! I’ve just starting learning Windows PowerShell, and I understand how to use it as a scripting language and shell on the local machine. But how do I work with remote machines? —AP  Hello AP, Honorary Scripting Guy, Richard Siddaway, here today filling… Read more