|
|
Browse by Tags
All Tags » C# » PowerShell
-
In PowerShell Enums are used a lot but you're not able to create them directly in PowerShell
I made a post about a workaround using reflection on my old blog here : /\/\o\/\/ PowerShelled: PowerShell : making Custum Enums ,as this is using reflection it is a bit hard to grasp, and we can not create enums within a namespace only ...
-
A very interesting post : Which Groups Does WindowsIdentity.Groups Return?
Also very interesting is comparing the code in C# + .NET 3.0 in this article against this PowerShell example :
$wi = [System.Security.Principal.WindowsIdentity]::GetCurrent()
$wi.groups |% {$_.Translate([System.Security.Principal.ntaccount])} |
select ...
|
|
|