Quantcast
Channel: Admins Goodies » privileges
Viewing all articles
Browse latest Browse all 10

Is there a way to do a “run as” in a command line?

$
0
0

Question

So, we are trying to push out the full .Net Framework 4 to all out client workstations within an Active Directory environment via the login batch file in the SYSVOL folder. I added the following command:

\serverdocumentsdotNetFx40_Full_x86_x64 /q /norestart

Works like a charm in terms of sielent initializing in the background when a user logs in. However, I noticed it wasn’t installing on some our lesser privelaged machines. Sure enough, when running the intaller, it reports “Blocking Issues” and says “You do not have sufficient privileges to complete the operations for all user of the computer.” I’m open to other ideas, but this would seem the simplest if it is possible.

Answer

To start an instance of the command prompt as an Administrator:

runas /user:<localmachinename>administrator cmd

Viewing all articles
Browse latest Browse all 10

Trending Articles