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
Post a Comment