Direkt zum Inhalt

Run a pre/post command not as administrator

Thread needs solution
Beginner
Beiträge: 1
Kommentare: 0

I have some commands that do not allow to be run as administrator.
How can I run command as not an administrator?

This is the command I am trying to run
C:\Users\Admin\AppData\Local\Microsoft\OneDrive\OneDrive.exe /background

0 Users found this helpful

Pavel, welcome to these public User Forums.

See webpage: [SOLVED] - Run Program as Different User Through Batch File - which may offer you some ideas on how to do what you want here.

Or webpage: Batch file that runs cmd as a different user and executes command lines

Or webpage: How to Run a Program as a Different User (RunAs) in Windows 10?