Script question... - TechRepublic
General discussion
June 20, 2001 at 10:58 AM
thomasjhancock

Script question…

by thomasjhancock . Updated 25 years, 1 month ago

I have alot of utility programs I would like to run, possibly in a script, but I don’t know how to do it. Here is an example of some things I would like to do in my script:

delprof.exe /q /i
net time \\primary_server /Set /y
del tree c:\temp
md c:\temp
**and possibly updates to service packs

But the problem is that when I put these commands into users logon scripts (made in the form of .BAT), the users don’t have enough rights to execute them. I don’t want to give them admin. privliedges. I have tried using SU but I couldn’t get it working. I want to be able to apply this WITHOUT going around and manually doing something to the computers. I want it all though scripting. Next, I tried using a service “instsrv”. It installedthe service (I still had to log on as administrator) to a batch file, but the service wouldn’t start becuase it said it was invalid or something like that. All I did was make a service that pointed to a batch file in the C:\temp directory with the commands above. Anyways, the users don’t have enough rights to use the “net start” command! It wouldn’t start in automatic and I would also like to be able to update the file that the service will be using though a script. It would even be better if I could use a service that pointed to a file in \\primary_server\NETLOGON. Any other ideas/suggestions would be GREATLY APPRECIATED!!! I HAVE BEEN WORKING ON THIS FOR OVER A WEEK AND AM GOING CCCRRRAAAZZZYYY!!!!!

This discussion is locked

All Comments