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!

Logon Script

Status
Not open for further replies.

Edge07

MIS
Oct 20, 2003
15
0
0
CA
I am new to VBScripting. I have created a logon script as a batch file. It does two things for me:
1) maps user drives based on group member ships
2) runs a software program that audits client software and hardware configuration.

The problem I am having is that the script is running minimized and users are closing out of it before the auditing software runs. I want to be able to hide the script so that users cannot close it. Any help would be greatly appreciated. Thanks

Here is an example of my script:

start \\server\trackit\audit32.exe


@Echo Off



net use K: \\server\share\%USERNAME%

:IfMaint
ifmember "domain\group_membership"
if not errorlevel 1 goto IfMIS
net use W: \\server\share
net use N: \\server\share


:IfMIS
ifmember "domain\group_membership"
if not errorlevel 1 goto Exit
net use P: \\server\share


:Exit
 
you might be better off putting this post to the BASIC:Microsoft forum.

or try one of the cmd parameters, say cmd /k or something like that
 
Can anyone tell me how i would get this to run in vbscript:

start \\server\trackit\audit32.exe
 
Have you tried this ?
Set Sh=CreateObject("WScript.Shell")
Sh.Run "\\server\trackit\audit32.exe"

Hope This Help
PH.
 
Once you have your script set up to run as a vbscript, you can have it executed by a GPO and then you can choose to have it run hidden so the user can not watch (or close out) of the script.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top