Day: January 20, 2020

  • Retrieving User information in VBScript

    We have an issue where %userdomain% & %username% doesn’t resolve at all. Therefore we found a “work-a-round” Dim ntsys Set ntsys = CreateObject(“WinNTSystemInfo”) wscript.echo “User: ” & ntsys.UserName wscript.echo “Computer: ” & ntsys.ComputerName wscript.echo “Domain: ” & ntsys.DomainName wscript.echo “PDC: ” & ntsys.PDC