Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.



Windows 7: .batch file to restart SQL server

25 Mar 2013   #1
tys

Windows 7 Professional x64
 
 
.batch file to restart SQL server

Hi all,

I have a simple but effective way of restarting our SQL server from .bat file. this works from my computer. But from other Windows 7 it doesn't.

It comes up with .<5> access if denied.

I'm guessing it is something to with permissions. I've tried adding the users as administrators, but still not working.Even given them same permissions I have on my laptop and still no luck.

Please,
any help?!

thanks!

My System SpecsSystem Spec
.

27 Mar 2013   #2
tys

Windows 7 Professional x64
 
 

For users for future reference. You need to enable the users that are going to be using the batch file to have access to the computer you're going to be shutting down and for them to have administrative rights on that computer aswell.
My System SpecsSystem Spec
29 Mar 2013   #3

Windows 7 Ultimate x64
 
 

Most likely it's due to UAC, as it "converts" admins to non-admins under the hood (and restarting services require administrator privileges).
Try running the file with right click => run as administrator.
My System SpecsSystem Spec
.


Reply

 .batch file to restart SQL server





Thread Tools




Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 05:45 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33