Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Asher01

    Detecting logged on user then adding to local admin group

    Hi, Many thanks for the answer. I found another script that does the same thing using WMI. I required to do this via config mgr,(SCCM). The above only works with local admin when you are logged on. Many thanks again. Regards, Asher.
  2. Asher01

    Detecting logged on user then adding to local admin group

    vbscript. ----------------------- Set wshShell = WScript.CreateObject("WScript.Shell") strUserName = wshShell.ExpandEnvironmentStrings( "%USERNAME%" ) WScript.Echo "User Name: " & strUserName 'the above script detects User logged on to the computer and it works fine, The botom script gets the...
  3. Asher01

    Vbscript detecting and adding logged on user to local admin

    vbscript. ----------------------- Set wshShell = WScript.CreateObject("WScript.Shell") strUserName = wshShell.ExpandEnvironmentStrings( "%USERNAME%" ) WScript.Echo "User Name: " & strUserName 'the above script detects User logged on to the computer and it works fine, The botom script gets...

Part and Inventory Search

Back
Top