I have a few scripts that set and get user expiration using VBS... however, I am wondering where this information is stored. Is it in the registry? If so, what key should I be looking for?
My VBS Example:
' Retrieve local computer name. Set objNetwork = CreateObject("Wscript.Network") strComputer = objNetwork.ComputerName ' Specify local user name. strName = "Loaner" ' Bind to local user object. Set objUser = GetObject("WinNT://" & strComputer & "/" & strName & ",user") Wscript.echo "This computer is due back to the office on: " & objUser.AccountExpirationDate
Would like to know if objUser.AccountExpirationDate is set somewhere in the registry, even if its stored but not easily editable.