Showing results for troubleshooting - Scripting Blog [archived]

Oct 5, 2015
0
0

Troubleshoot WinRM with PowerShell—Part 1

Doctor Scripto
Doctor Scripto

Summary: Ed Wilson, Microsoft Scripting Guy, talks about using Windows PowerShell to look at WinRM logs.  Hey, Scripting Guy! I am having problems with WinRM. When I use the Get-CimInstance cmdlet, it fails. When I specify the –DCOM protocol for Get-CimInstance, it works. I suspect I have a WinRM problem. How can I go about troubleshooti...

Scripting Guy!Windows PowerShelltroubleshooting
Apr 2, 2015
2
3

Update or Add Registry Key Value with PowerShell

Doctor Scripto
Doctor Scripto

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to update or add a registry key value.  Hey, Scripting Guy! I am having a problem trying to update the registry. I am using the New-ItemProperty cmdlet, but it fails if the registry key does not exist. I added the –Force parameter, but it still will not cre...

Scripting Guy!Windows PowerShellscripting techniques
Mar 31, 2015
0
0

Help Comparing Objects in PowerShell

Doctor Scripto
Doctor Scripto

Summary: Microsoft Scripting Guy, Ed Wilson, helps a reader compare two objects in Windows PowerShell.  Hey, Scripting Guy! I am having a problem with a script. I wrote a function to compare virtual machines with virtual drives that I have on my hard drive, and it works just fine. But when I try to put the thing into a larger script, and get t...

Scripting Guy!Windows PowerShellscripting techniques
Dec 5, 2014
0
0

Use the PowerShell Debugger

Doctor Scripto
Doctor Scripto

Summary: Boe Prox shows how to debug scripts in Windows PowerShell. Honorary Scripting Guy and Windows PowerShell MVP, Boe Prox, here today filling in for my good friend, The Scripting Guy. This is the final part in a series of five posts about troubleshooting Windows PowerShell scripts and functions. The series includes: Over the course ...

Scripting Guy!Windows PowerShellBoe Prox
Dec 4, 2014
0
0

Trace Your Commands by Using Trace-Command

Doctor Scripto
Doctor Scripto

Summary: Boe Prox uses Trace-Command to understand commands. Honorary Scripting Guy and Windows PowerShell MVP, Boe Prox, here today filling in for my good friend, The Scripting Guy. This is the fourth part in a series of five posts about troubleshooting PowerShell scripts/functions. The series includes: Today I am talking about using Tra...

Scripting Guy!Windows PowerShellBoe Prox