PoshCode Archive  Artifact Content

Artifact a1aaa903240b9dadd1e74661cf56c570ee7caa64651fa2a36e458cab13038132:

  • File WhoAmI.ps1 — part of check-in [9b49d7ba2e] at 2018-06-10 13:09:21 on branch trunk — function whoami (user: William size: 392)

# 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		
}