Thursday 28 January 2010

Powershell : Get inner errors for more info (sometimes)

Statement that fails
#                        Trap {
#  write-output "herea"
#  $_.Exception
#  $err = $_.Exception
#  while ( $err.InnerException )
#    {
#    $err = $err.InnerException
#    write-output $err.Message
#    };
#    continue
#  }


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



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