Thread: How to query
View Single Post
  #3  
Old June 24th 15, 05:45 AM posted to alt.windows7.general
pjp[_10_]
external usenet poster
 
Posts: 1,183
Default How to query

In article ,
says...

On 24/06/2015 03:26, pjp wrote:
Just made a little batch file to find it doesn't run right without
choosing right click and Run As Administrator. How do I set that so I
can just double click instead. Changing Security settings didn't seem to
matter.


It depends. If the batch file is supposed to start a Windows service of
some kind then Administrator login is always required. Also, if the
batch file is creating a file in some protected folder then again
administrator user password is required. Apart from that, a batch file
should run normally.

Could you post the code here so that somebody can see if Admin privilege
is required or not.

If security is not a problem then why not change the profile to Admin
user? This will solve everything instantly. Now security is there for
a reason so think very hard before running everything as administrator.


The 2nd line came from a post from another thread, thank you for whoever
it was.
-----------------
echo off
VSSADMIN LIST SHADOWS

pause
-----------------

As said, just double click and VSSADMIN produces an error message, "Run
As Administrator" and it doesn't.

I have Administrator priveldges on account and it's the only account
besides the "Administrtaor" account itself as "Guest" is turned off.
Ads