Discussion Locked

NT permission problem

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I am looking for a way of being able to run a batch file which requires administrative permissions during the boot process, however this needs to be done when a user (without admin permissions) logs on. Is there somewhere, possibly the registry thatcan run a batch file during the boot process but before permissions for the user are set.

Any ideas welcome

Cheers

Nick

6 replies

by mckaytech

Actually, from the command line, you can logon by using the NET USER command so my thought would be to run a login script that logs on with the admin account and runs the batch file before returning control to the logged-on user.

paul

by bblunden

Put the .bat file in a shared folder and run it in the login script.

I hope this works for you.
Bill Blunden

by f_coallier

Open the registry editor and under "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run" put the name of your batch file.

by nick.riley

Thanks for the idea but I have tried this one and it runs with the permissions of the user and not with administrative permissions. I have found a utility which would do the job called autoexnt.exe ( an installable service ) which runs a batch file called autoexnt.bat before the ctrl+alt+del stage and hence as admin. Unfortunately I can't use this either as there is another job which runs on all the workstations which requires the service not to exist. Is there another utility somewhere which achieves a similar thing.

This discussion is closed to new replies.