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

Round Robin is killing performance on our network

WMI Repository 4GB limit - Win 2003 Ent Question

Change home folder default permission?