Hi,
I am trying to run a startup script that will call a program (snetcfg). I would like to make it so that when the user logs in, the snetcfg file will run under administrator permisssions.
Here is a snippet of the batch file to call the program. Is there a way to make the script run at startup? (btw. This script is being called from the users login script)
and here is the fileprinton.bat contents:
If i figure out a solution, I will let everyone know. Thanks a bunch,
Chris
I am trying to run a startup script that will call a program (snetcfg). I would like to make it so that when the user logs in, the snetcfg file will run under administrator permisssions.
Here is a snippet of the batch file to call the program. Is there a way to make the script run at startup? (btw. This script is being called from the users login script)
Code:
@echo off
if exist c:\fileprinton.txt goto fileexists
goto nofile
:fileexists
goto end
:nofile
net use p: \\stclfs\netlogon
call p:\fileprinton.bat
xcopy p:\fileprinton.txt c:goto end
:end
and here is the fileprinton.bat contents:
Code:
call p:\snetcfg.exe -v -u MS_Server
call p:\snetcfg.exe -v -c s -i MS_Server
If i figure out a solution, I will let everyone know. Thanks a bunch,
Chris