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
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