How to get $Env:LOGONSERVER varuable on remote computers?


how $env:logonserver varuable on remote computers?

that variable refers user's logon server, not specific computer. looking query logged in user?

if so, you'd want find logged on user's registry path:

then this:

get-itemproperty 'microsoft.powershell.core\registry::hkey_current_user\volatile environment\' | select logonserver



mike crowley | mvp
my blog -- baseline technologies




Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

some help on Event 540

WMI Repository 4GB limit - Win 2003 Ent Question

Event ID 1302 (error 1307) DFS replication service encountered an error while writing to the debug log file