# encoding: ascii # api: powershell # title: WhoAmI # description: function whoami # version: 0.1 # type: function # author: William # license: CC0 # x-poshcode-id: 2381 # x-archived: 2010-12-01T23:57:09 # # { # [System.Security.Principal.WindowsIdentity]::GetCurrent().Name # } # function whoami { [System.Security.Principal.WindowsIdentity]::GetCurrent().Name }