Boat Drinks  

Go Back   Boat Drinks > General > Computer and Consoles

Reply
 
Thread Tools Display Modes
Old 19-10-2007, 10:38   #1
Joe 90
Absinthe
 
Joe 90's Avatar
 
Join Date: Jan 2007
Location: Chester
Posts: 2,345
Default Creating a bat file to start a service...

Just wondering if anybody could offer some advice...

I've created a quick batch file this morning to start the print spooler service as we're having problems with it not starting on some student PCs...

Now, how can i get the bat file to 'run as' the local admin to run the command as it (in a perfect world) will be ran by staff under a standard user session.
__________________
360 Blog | Join GiffGaff | Twitter
Joe 90 is offline   Reply With Quote
Old 19-10-2007, 10:42   #2
Daz
The Stig
 
Daz's Avatar
 
Join Date: Jun 2006
Location: Swad!
Posts: 10,713
Default

You cant using any built in commands (runas wont accept a password that's not passed interactively). You need to identify why the spooler isn't starting, it's generally quite a reliable service on it's own so I'd imagine it'd be something fairly fatal.

The outside answer would be to grant non-admins rights to control the spooler service, but that's gonna be fiddly to set up centrally.
__________________
apt-get moo
Daz is offline   Reply With Quote
Old 19-10-2007, 10:56   #3
Joe 90
Absinthe
 
Joe 90's Avatar
 
Join Date: Jan 2007
Location: Chester
Posts: 2,345
Default

yeah - cheers daz, you never fail to get a speedy reply on all my 'techy' threads!

it certainly is a worrying issue - its only happening randomly at the moment so i just wanted an easy way of just running the file and not having to confuse some of our less technically minded support staff.

ah well - thanks again
__________________
360 Blog | Join GiffGaff | Twitter
Joe 90 is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:02.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.