Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
LOCAL lcDomain, lcComputer, lcUser
*!* Replace these variables with your own values
*!* I am using the Wscript Network object just for
*!* this example
oWshNetwork = CreateObject("WScript.Network")
lcDomain = oWshNetwork.UserDomain
lcComputer = oWshNetwork.ComputerName
lcUser = oWshNetwork.UserName
?"DOMAIN: " + lcDomain
?"COMP NAME: " + lcComputer
?"USERNAME: " + lcUser
lcUser = "Administrator"
lcSID = GetSID(lcDomain, lcComputer, lcUser)
?"SID: " + lcSID + IIF(Right(lcSID, 4) = "-500", " (Default Admin Account)", "")
Function GetSID(tcDomain, tcComputer, tcUser)
LOCAL loWMI, loUserAccount
loWMI=GetObject("winmgmts://" + tcDomain + "/root/cimv2")
loUserAccount = loWMI.Get("Win32_UserAccount.Domain='" + tcComputer + "'" + ",Name='" + tcUser + "'")
Return(loUserAccount.SID)
Endfunc