logon VBscript to run BGinfo - TechRepublic
Question
November 6, 2007 at 10:22 AM
kevin

logon VBscript to run BGinfo

by kevin . Updated 18 years, 1 month ago

What I’m looking for is a VBscript that I can use as a logon script in Group Policy to run BGinfo from Sysinternals. I have a batch script setup that works, but we block the CMD prompt for users in group policy, so the script doesn’t run. I have a VBscript that works to open BGinfo.exe, but I don’t know how to get the switches that you would use in CMD to work in VBscript. Here is what my VBscript looks like:

Set objShell = CreateObject(“WScript.Shell”)
objShell.Run “C:\bginfo.exe”

My batch script that works is:

@ECHO OFF
cd\
%LOCALDIR%\Bginfo.exe %LOCALDIR%\bgconfig.bgi /timer:0 /nolicprompt
@ECHO OFF
exit

I hope what I need is clear in my description, if not I’ll explain further.

This discussion is locked

All Comments