Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

"Access is denied" when restarting QVS from cmd line

I'm using QVS 11 and for some reason the ClearCacheTimesPerDay in the regedit doesn't really work.

So I tried to restart the "QlikView Server" service from cmd (net stop/start) and got an error massage "access is denied".

The service is set to the same user account as the one I'm logged in to and the password is OK - when I'm restarting the service manually I'm getting no errors.

Any suggestions?

Thanks

1 Solution

Accepted Solutions
StefanBackstrand
Partner - Specialist
Partner - Specialist

UAC levels don't care about the users group membership, as far as I know, if configured strictly. You still need to run scripts with the "Run as Administrator" option to get full privileges. Also, executing these kind of commands from a cmd shell might require an extra level of elevation.

View solution in original post

9 Replies
Not applicable
Author

Anyone? 🙂

StefanBackstrand
Partner - Specialist
Partner - Specialist

This does not originate from QVS itself, but from the Windows Services subsystem - the account running the script (and subsequently the net start/stop commands) needs elevated privileges to restart services. This is most likely due to UAC (Windows User Account Control) settings, or the lack of correctly configured setting "Run as Administrator" on the job that triggers the script.

Not applicable
Author

Thanks a lot for your answer.

I'm running the script manually and also I tried the command from the cmd itself..

Another thing is that the user can stop/start/restart the service manually.

So do you still think this is a UAC problem?

Not applicable
Author

BTW

The user is administrator

StefanBackstrand
Partner - Specialist
Partner - Specialist

UAC levels don't care about the users group membership, as far as I know, if configured strictly. You still need to run scripts with the "Run as Administrator" option to get full privileges. Also, executing these kind of commands from a cmd shell might require an extra level of elevation.

Not applicable
Author

OK

I ran it with a task and it worked

Thanks a lot!

StefanBackstrand
Partner - Specialist
Partner - Specialist

Glad to help!

Not applicable
Author

Hello

Please tell, where documentation is about

ClearCacheTimesPerDay

Thanks

StefanBackstrand
Partner - Specialist
Partner - Specialist

There is no official documentation available for this setting, since it is an unsupported debug flag that in no way is meant to be used in a production environment.