Category Archives: VBScript

VBScript to Get Domain Groups for Current User

This take me back a bit… [sourcecode language=”vb”] Option Explicit ‘ Get the current user’s domain and username. Dim wsxNetwork Set wsxNetwork = CreateObject(“WScript.Network”) Dim sDomain, sUser sDomain = wsxNetwork.UserDomain sUser = wsxNetwork.UserName ‘ Get the user. Dim objUser Set … Continue reading

Posted in VBScript | Leave a comment

Problem Starting Application Using VBScript?

Today, someone asked me about a problem he had running an application from VBScript. Here is the text of my reply: Adding the parameters to the end of the .exe name should work. Often, however, the problem is spaces / quotes in the command line. The … Continue reading

Posted in VBScript | Leave a comment