Ask the Expert

Can I give a client temporary local admin rights?

Hi, I am trying to copy a file at logon to one of the users' Program Files folders. The problem is that they only have read access to this folder, so the file copy is not completing due to Access Denied. Is there a way I can copy the file temporarily using a separate domain account or even through the script temporarily given them local admin rights?

    Requires Free Membership to View

This is a common problem -- how to run actions in the context of an administrative user without allowing that user full administrative permissions. I've written about a number of different approaches to this before, which you can read about here:

 

This was first published in July 2004

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: