Subscribe to Windows IT Pro
June 28, 2006 12:00 AM

Let Users Install Software Without Giving Them Administrator Rights

Windows IT Pro
InstantDoc ID #50102
Rating: (22)

I recently discovered a new way to remotely install software. When users require a program to be installed on their computers, they download the software to their desktops. I then use Sysinternals' PsExec utility (http://www.sysinternals.com/utilities/psexec.html) to remotely start the execution of the program, but I start the program interactively so that the user who is logged on to the target computer can complete the installation.

This approach is advantageous because you don't need to give Administrator privileges to users who need to install software on their computers. When you run PsExec without a username and password, the remote process runs under the same account from which you execute PsExec (in this case, the Administrator account). Because the remote process is impersonating that account, the user won't have access to network resources on the remote system. (When you specify a username and password, the remote process executes in the specified account and will have access to any network resources that the account has access to.) Using PsExec is handier than using the built-in RunAs command because you don't need to be physically sitting at a user's computer.

To use PsExec to remotely install software, you need to start the installer.exe program with the following command:

Psexec -i \\targetcomputer 
 \\targetcomputer\c$\ 
 documents and settings\ 
 username\desktop\installer.exe

The -i option starts installer.exe interactively for the user currently logged on to the machine specified by targetcomputer.

Related Content:

ARTICLE TOOLS

Comments
  • Diego Caccire
    2 years ago
    Aug 24, 2010

    one question, for install software in mode silent ? for example Acrobat or any other soft? thank u so much =D

  • Michael
    3 years ago
    Aug 20, 2009

    Awesome I will use this with our users in the field offices, it saves me from using RDP.

You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.