How do you get account that powershell session is being run under?
anybody know trick this? the $env:profile returns profile being used logon windows. i want return account being used run session when "runas". it nice domain user in too. why? i run powershell command in multiple domains laptop , want build way put "runas" user name , domain in window frame if have multiple windows open powershell can see domain in looking @ frame title.
Windows Server > Windows PowerShell
Comments
Post a Comment