Sorry for the seemingly simple question but i dont seem to be able to find the answer on google. What i need to know is, is it possible to pull the current authenticated users username as a variable without manually setting it? e.g.
PS H:\> $username
PS H:\> T180985
I want to use it as part of a description when creating snapshots
In that case, use
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Are you referring to a Windows user?
In that case, try using $env:USERNAME
There is also $env:USERDOMAIN
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Sorry i should have been more specific, i mean the username ive logged into vCenter with
In that case, use
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference