Public/Get-CurrentUser.ps1

1
2
3
4
5
6
7
8
Function Get-CurrentUser {
  [CmdletBinding()]
  [Alias('CUser')]
  param()
  [System.Security.Principal.WindowsIdentity]::GetCurrent().Name
}