Avatar of Ben Conner
Ben ConnerFlag for United States of America

asked on 

Security settings for Program Files (x86)

Hi,

Was looking at a secondary drive (D:) I have in Windows 10 and noticed the Program Files (x86) folder permissions seem a little peculiar.
User generated image
I would think the Administrators group would have full control over this, but it looks like it isn't even an option. ??

--Ben
Windows 10Windows OS

Avatar of undefined
Last Comment
Ben Conner
Avatar of McKnife
McKnife
Flag of Germany image

Hi Ben.

Please share the following details:
1 the output of
icacls d:\Program Files (x86)

Open in new window

2 how and why you created d:\Program Files (x86)
Avatar of John
John
Flag of Canada image

What you see is normal (i.e., what I see on my machines).  Application packages can use Program Files but it is restricted against users and users (any kind of user) should not use this folder. It is specifically not for data storage.
I have a d:\Program Files (x86) as well.  I created it because I install almost everything onto my D:\ drive.  But my folder permissions a very different.
 
icacls output:
D:\Program Files (x86)>icacls .
. BUILTIN\Administrators:(F)
  BUILTIN\Administrators:(OI)(CI)(IO)(F)
  NT AUTHORITY\SYSTEM:(F)
  NT AUTHORITY\SYSTEM:(OI)(CI)(IO)(F)
  NT AUTHORITY\Authenticated Users:(M)
  NT AUTHORITY\Authenticated Users:(OI)(CI)(IO)(M)
  BUILTIN\Users:(RX)
  BUILTIN\Users:(OI)(CI)(IO)(GR,GE)

Successfully processed 1 files; Failed processing 0 files

D:\Program Files (x86)>

User generated image
Avatar of McKnife
McKnife
Flag of Germany image

Ben, I just noticed a typo. Take the command
icacls "d:\Program Files (x86)"

Open in new window

Avatar of Ben Conner
Ben Conner
Flag of United States of America image

ASKER

Hi,

Here's the results of the icacls command:
C:\Windows\system32>icacls "d:\Program Files (x86)"
d:\Program Files (x86) NT SERVICE\TrustedInstaller:(F)
                       NT SERVICE\TrustedInstaller:(CI)(IO)(F)
                       NT AUTHORITY\SYSTEM:(M)
                       NT AUTHORITY\SYSTEM:(OI)(CI)(IO)(F)
                       BUILTIN\Administrators:(M)
                       BUILTIN\Administrators:(OI)(CI)(IO)(F)
                       BUILTIN\Users:(RX)
                       BUILTIN\Users:(OI)(CI)(IO)(GR,GE)
                       CREATOR OWNER:(OI)(CI)(IO)(F)
                       APPLICATION PACKAGE AUTHORITY\ALL APPLICATION PACKAGES:(RX)
                       APPLICATION PACKAGE AUTHORITY\ALL APPLICATION PACKAGES:(OI)(CI)(IO)(GR,GE)
                       APPLICATION PACKAGE AUTHORITY\ALL RESTRICTED APPLICATION PACKAGES:(RX)
                       APPLICATION PACKAGE AUTHORITY\ALL RESTRICTED APPLICATION PACKAGES:(OI)(CI)(IO)(GR,GE)

Successfully processed 1 files; Failed processing 0 files

The problem is I can't even copy (xcopy/robocopy) this folder.  I'm trying to migrate it to a new drive as this one is failing and am unable to. Nor can I add permissions for domain admins to it.

--Ben
Avatar of John
John
Flag of Canada image

You need to install into Program Files, not copy installations into it.
Avatar of McKnife
McKnife
Flag of Germany image

As your command output shows, the group administrators has full access. Your screenshot needs to be scrolled down a little and you'll see a checkmark at "special permissions". Why "special"? Because you set both modify and full for some odd reason.

->So why doesn't it work the way you want? Because of UAC. Try the actions elevated and anything will just work.
Avatar of Ben Conner
Ben Conner
Flag of United States of America image

ASKER

How do I assign full access to domain admins for this folder?  I copy stuff around at times logged in with that level but don't see a way to add a user/group.
How do I assign full access to domain admins for this folder?  I copy stuff around at times logged in with that level but don't see a way to add a user/group.
Domain Admins have full access to this folder. They are part of the Administrators group
Avatar of McKnife
McKnife
Flag of Germany image

...as Shaun says. However, Domain admins are also governed by UAC, which means, you need to elevate to make changes to that folder even as admin/domain admin.

To prove it, do the following: activate the local admin account like this
net user administrator /active temppassword

Open in new window

(set a temporary password instead of temppassword)
Now logon with that account and all will just work (accounts named "administrator" are not governed by UAC).
Avatar of Ben Conner
Ben Conner
Flag of United States of America image

ASKER

Sorry, will have to set this aside for the moment.  Acronis Trueimage tanked a new drive on this workstation so badly that even the BIOS won't complete booting with it attached.  Need to unwind that first.  Am at a loss of words to describe how enthused I am about this.

--Ben
Avatar of Ben Conner
Ben Conner
Flag of United States of America image

ASKER

Hi,

Well that was a PITA; the vendor sent the wrong model on that drive.  Wasn't obvious at all.  

Yes, local accounts (including Administrator) have all the functionality enabled with no issues.  What can I do to get the domain admin group access to that same level of access?  Other side-effects I'm seeing are I can't open the Action Center; search next to the Windows icon is inactive.  
Left-clicking the Windows icon does nothing.  All work with a local account.

--Ben
Avatar of McKnife
McKnife
Flag of Germany image

Domain admins should NEVER even be used on endpoints. Don't even think about it, it's too risky.
I'll tell you how to get along: if you are using a domain account that is local admin on a machine and you copy to that folder, UAC will kick in with a confirmation prompt. You confirm it and that's it, file copied - normal and expected behavior.

If you use programs that are not UAC aware, like for example notepad and you try to modify a text file (be it an .ini file) within a folder of program files, you will need to elevate the program (notepad), first, by right clicking notepad and selecting "run as administrator". That's all.
Avatar of Ben Conner
Ben Conner
Flag of United States of America image

ASKER

I'm getting to that point but am still trying to understand why a domain admin can't access basic functionality that disappeared when I logged in with those credentials.  I know of no way to open the action center or left click on the Windows icon with 'run as administrator' elevation.  Am I missing something?

--Ben
Avatar of McKnife
McKnife
Flag of Germany image

Describe what you are trying to elevate exactly. If it's an application, we right click the executable.
If it's just copying within explorer, UAC (unless it's turned off) will even automatically offer to elevate explorer via the consent dialogue.
Avatar of Ben Conner
Ben Conner
Flag of United States of America image

ASKER

Good morning,

Not so much elevating an app as significant functionality in Win 10 while logged on as a domain admin is non-functional.  Left-clicking on the Windows icon does nothing.  The 'Type here to search' is disabled. On the right side of the task bar, right-clicking the notifications icon and clicking on Open Action Center does nothing.

All these work when I log in as a local admin/normal user, so there has to be something tweaked in UAC somehow.
Avatar of McKnife
McKnife
Flag of Germany image

What you describe is not connected to your original question and has nothing to do with permissions or UAC.
If these problems occur, usually, the user profile is toast and needs to be renewed.
Avatar of Ben Conner
Ben Conner
Flag of United States of America image

ASKER

Oh!  That's interesting.  Would that be as simple as logging in with a local admin account and killing the \users\... domain admin folder, then logging back in as the domain admin?
Avatar of McKnife
McKnife
Flag of Germany image

No, never just delete the folder. Logon as another user, press winkey+pause together, at the left, go to advanced system settings ->user profiles ->settings and delete it there (after backing up its data if any).
Avatar of Ben Conner
Ben Conner
Flag of United States of America image

ASKER

Where do I go to see its data first?  It may not have anything I really care about.
Avatar of McKnife
McKnife
Flag of Germany image

You logon as that user and look at the documents folder or wherever that admin saves his data (if any).
ASKER CERTIFIED SOLUTION
Avatar of Ben Conner
Ben Conner
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Windows OS
Windows OS

This topic area includes legacy versions of Windows prior to Windows 2000: Windows 3/3.1, Windows 95 and Windows 98, plus any other Windows-related versions including Windows Mobile.

129K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo