PoshCode Archive  Artifact Content

Artifact 5fbce31ea577c9f1628d4ee83c46ebf8924971aa551a67d282e58eab68f0cd05:

  • File WhoAmI.ps1 — part of check-in [9e3dffc1be] at 2018-06-10 13:33:51 on branch trunk — function whoami (user: William size: 428)

# encoding: ascii
# api: powershell
# title: WhoAmI
# description: function whoami
# version: 0.1
# type: function
# author: William
# license: CC0
# x-poshcode-id: 3979
# x-archived: 2013-02-27T05:26:49
# x-published: 2013-02-21T09:18:00
#
# {
# [System.Security.Principal.WindowsIdentity]::GetCurrent().Name		
# }
#
function whoami
{
     [System.Security.Principal.WindowsIdentity]::GetCurrent().Name		
}