Jump to content


  • 0
mikedisd

Deploy App as Local Admin for std user

Question

Hi all, I need to an deploy an application (HP TRIM 7.1) to all Win7 x64 PCs that must install for the user, not system. However, it seems that TRIM can only install if the user is a local administrator. Management is adamant that noone is to be a local admin to any PC which makes it a bit difficult.

 

Are there any settings in SCCM 2012 that can elevate a standard Windows account momentarily for an app installation? If not, can this be done through a script? I don't know anything about TRIM, just that it deploys for local admins but not std users.

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

I thought I'd try a Powershell script that adds the current user to the Local Admins group, then installs the TRIM .msi file. As thus:

 

$cname = $env:computername
$localmachine = "$cname/" + "Administrators"
$uname = $env:username
$currentuser = "domain/" + "$uname"

 

[ADSI]$user="WinNT://$currentuser,User"
[ADSI]$LocalAdmin="WinNT://$localmachine,group"

$LocalAdmin.Add($user.Path)

 

I figured that if it was deployed from SCCM it would run under the SYSTEM account. It came up with an Access Denied error though. Any ideas on how I could get this working?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.