/build/static/layout/Breadcrumb_cap_w.png

How do I elevate all post-install tasks?

We are deploying an application called Admin By Request, which removes user accounts from the local Administrators group and allows them the specific permissions we configure. Our local admin account used for scripted installations is excluded, so it remains in the local Administrators group.


The problem is that when this app installs, it also re-enables UAC and prevents subsequent processes from running as admin. I have successfully disabled UAC again by setting the registry value HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\EnableLUA back to 0. This allows the local admin account to install applications and elevate automatically, but it breaks while trying to restore UAC, because it isn't running everything as admin by default. The reason I think this is the issue is that if I open Command Prompt during a scripted installation, it opens in a standard user context, which I can then elevate from. When I don't install Admin By Request, it is elevated automatically.


How does the SDA tell the local account to run everything as admin normally? If there's a registry value I can reset immediately after deploying Admin By Request, that would be an easy fix.


0 Comments   [ + ] Show comments

Answers (2)

Posted by: Unsullied 6 months ago
Senior White Belt
1

Hi Emma,

May I suggest that you move the 'Admin By Request' software installation towards the end of the post-install task sequence, perhaps just before the KACE cleanup in the SDA. Hence, all previous tasks requiring admin elevation will not be affected by this privilege management software yet.

If you have the KACE SMA, you can utilise smart labels & managed installation to install 'Admin By Request' as a post OS deployment installation. There are many ways you could go about. Cheers.

Posted by: EmmaF 5 months ago
Yellow Belt
0
Good thinking, but we've tried both of those. If we simply move it to the end of the post-install task sequence, KACE cleanup fails. We've also tried an MI with a smart label looking for "SDA Deployment Time is within last two hours," but that comes with its own problems. If a scripted installation takes longer than two hours, it breaks. If it takes less than two hours before our techs box it up, it may be delivered without the application present
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ