Before posting, and to avoid disappointment, please read the following:

  • This forum is not for 2BrightSparks to provide technical support. It's primarily for users to help other users. Do not expect 2BrightSparks to answer any question posted to this forum.
  • If you find a bug in any of our software, please submit a support ticket. It does not matter if you are using our freeware, a beta version or you haven't yet purchased the software. We want to know about any and all bugs so we can fix them as soon as possible. We usually need more information and details from you to reproduce bugs and that is better done via a support ticket and not this forum.

Shutdown command line parapeter does not work for regular user

For technical support visit https://support.2brightsparks.com/
Post Reply
mklaey
Newbie
Newbie
Posts: 3
Joined: Tue Jul 03, 2007 4:55 pm

Shutdown command line parapeter does not work for regular user

Post by mklaey »

On Windows 10 1607 - fully patched - I have set up a shortcut to execute a SyncBackPro profile with the -shutdown parameter, as explained in the knowledge base article "Windows 8 (or newer) cancels Shoutdown/Logoff during Profile run".

This works when I'm logged in with administrator rights. For a regular user, the profile is run but the machine is not shut down.
What could I do in this situation?

Regards, Matthias Kläy
mickyj
2BrightSparks Staff
2BrightSparks Staff
Posts: 470
Joined: Mon Jan 05, 2004 6:51 pm

Re: Shutdown command line parapeter does not work for regular user

Post by mickyj »

Hi, the problem is that Windows requires that the user have the correct privilege (SE_SHUTDOWN_NAME) to be able to shutdown or reboot the computer. As an administrator you have that privilege, but not as a standard user. As an administrator you can give this privilege to a user:

- Start the local security policy (secpol.msc) manager
- Go to Local Policies -> User Rights Assignment
- Double-click on "Shutdown the system" and add the user
mklaey
Newbie
Newbie
Posts: 3
Joined: Tue Jul 03, 2007 4:55 pm

Re: Shutdown command line parapeter does not work for regular user

Post by mklaey »

Thank you for the answer. However, the user already has the right to shut down the computer, so this is not a solution.

One thing that I remarked: SyncBackPro ist started with windows in this case - in order to avoid a UAC prompt. When I execute the shortcut to backup and shutdown, a second SyncBack icon appears in the taskbar.

Do you have any other ideas?

Regards, Matthias Kläy
mickyj
2BrightSparks Staff
2BrightSparks Staff
Posts: 470
Joined: Mon Jan 05, 2004 6:51 pm

Re: Shutdown command line parapeter does not work for regular user

Post by mickyj »

Hi, if you have a shortcut then that is going to run SyncBackPro again, not use the existing process, which is why there is another icon. I'm assuming it doesn't give a UAC prompt and therefore it is not being run elevated? If it's not run elevated then is perhaps why it cannot shutdown. If you enable output to the Windows Event Log (via Preferences->Options) then it will record any errors related to shutdown in the Windows event log.
mklaey
Newbie
Newbie
Posts: 3
Joined: Tue Jul 03, 2007 4:55 pm

Re: Shutdown command line parapeter does not work for regular user

Post by mklaey »

I found the error in the event log: I had --shutdown in the shortcut instead of -shutdown (two minus characters instead of one).
It now works.
Thank you very much for your help!

Regards, Matthias Kläy
Post Reply