Statement that fails # Trap { # write-output "herea" # $_.Exception # $err = $_.Exception # while ( $err.InnerException ) # { # $err = $err.InnerException # write-output $err.Message # }; # continue # } |
Thursday, 28 January 2010
Powershell : Get inner errors for more info (sometimes)
Posted by
Ook
at
01:32
0
comments
Wednesday, 20 January 2010
Powershell : IUnable to install CTP3 - Access Denied Error
Reason was a anti-confickr strategy of adding a permission to stop values being changed in a registry key : HKLM, Software\Microsoft\Windows Nt\CurrentVersion\Svchost This has advanced acl perms set to Deny Everyone Set Value |
Posted by
Ook
at
07:21
0
comments
Tuesday, 12 January 2010
Powershell - Performance Diagnostics reports error
When using powershell to query performance counters (via New-Object Diagnostics.PerformanceCounter) getting an errors (The network path was not found) Fix - Assuming wiondows firewall on the target machine is turned on enable File and Printer Sharing in the exceptions on the target |
Posted by
Ook
at
08:48
0
comments
Subscribe to:
Posts (Atom)