Given the following:
get-wmiobject win32_networkadapterconfiguration -ComputerName SERVER1,SERVER2|select pscomputername,__SERVER
Only values ββfor __SERVER . However, PSComputerName is AliasProperty , which points to __SERVER . Therefore, I expect it to return values ββas well (the same values ββas mine in __SERVER ).
get-wmiobject win32_networkadapterconfiguration |gm pscomputername,__SERVER returns the following:
Name MemberType Definition ---- ---------- ---------- PSComputerName AliasProperty PSComputerName = __SERVER __SERVER Property System.String __SERVER {get;set;}
I am sure I have used PSComputerName in the past, successfully. What am I missing here, that he is failing? This happens with both PowerShell v2 and v3.
alroc source share