Trying to write a .bat file to stop services in Windows 7 as a Standard User

I am moving all of our users to Windows 7 from Windows XP. I have one network app that is giving me problems. It runs off of a Novell NetWare 6.5 server (we still use NetWare for authentication, no Active Directory or domains here). I have other apps running on other Novell NetWare 6.5 servers that work fine, so that's not the issue.

When the icon is double-clicked, it takes 4-7 minutes to fully start the app. Once it starts though, it behaves normally. I have found that it will start in just a few seconds if I stop the Workstation service or disable the Client for MS Networks.

I have written a .bat file that stops the Workstation service, runs the app, restarts the Workstation service and remaps a lost drive mapping to a Windows server that occurs when the Workstation service is stopped. It works perfectly as long as it is run by an Administrator user account on the Workstation.

However, I would prefer to have my users set up as Standard Users on their workstations, but they are unable to stop and start services. I have tried the Run As Administrator option, but they are prompted for the password to an Administrator account.

This is the .bat file so far:

NET STOP Workstation
START \\Novell server\volume\folder\targetapp.exe
NET START Workstation
NET USE N:\Windows Server\Folder

Is this even possible? Would it be easier to disable the Client for MS Networks to accomplish this and then re-enable it?

Thanks in advance.
Who is Participating?
Create a schedules task and modify the ACL of the scheduled task so that users may run it (run, NOT modify). The ACL can be modified in the properties of the task file in c:\windows\system32\tasks. Create one task for starting and one for stopping.
Call those tasks inside your batch
schtasks /run /tn stoptask
net use...
schtasks /run /tn starttask
Santosh GuptaCommented:
Try this for one machine first.

1. Create a Schedule task  to run the batch file.

2. a) on local machine, go to go to Computer Management, then Local Users and Groups, Users
b) Right-Click on the standard user account, Properties.  Member Of tab.
c)Add Power Users and Backup Operators.

now check if your is able to run the Schedule task.
Paul MacDonaldDirector, Information SystemsCommented:
Alternately, have the batch file check for a local copy of the program.  If the local copy doesn't exist, copy the program from the file server.  Then launch the program locally.
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

jgcneAuthor Commented:
Nope, sorry it didn't work. Same thing telling me "Access is Denied".
jgcneAuthor Commented:
Trying to run it locally didn't work either. It was looking for a .DLL that resides on the server. Probably the first of many.
Santosh GuptaCommented:
1. login with admin first and Try to run the schedule task,
2. could you pls share the error ?
jgcneAuthor Commented:
Sorry for the lack of response, but I have been having trouble figuring out how to schedule a task to stop or start a service. I don't use the Task Scheduler much.

My time table for completion of deployment got moved up by two weeks yesterday, so I don't have all the time I had hoped to have to polish things.
Just say what exactly you need help with.
I've requested that this question be deleted for the following reason:

Not enough information to confirm an answer.
McKnifeCommented: solved it, that's why I object. I use that solution myself, feel free to try it.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.