header image

PowerShell pack: PSuserTools

Posted by: | March 3, 2010 | 1 Comment |

The PSusertools module contains 4 functions:



get-currentuser uses System.Security.Principal.WindowsIdentitiy to identify the current user. One oddity is that the group information returns the SID of the group rather than the name.  We need a SID to name translator.

Test-IsAdministrator returns true if the user is an administrator. In PowerShell this equates to running the shell with elevated privileges – good test to put in your scripts to make sure that you have the permissions to do what you need

under: Modules, PowerShellV2, Windows 7

1 Comment

  1. By: Dave Willms on August 10, 2012 at 12:20 pm      

    How to download a copy of PSuserTools?