Does not work in French versions, presumably due to Users
being different
You have three options, detailed below:
Use the Use the Language Portal to get the translated name
Retrieve the localised name from the Users
SID
Use the Users
SID with icacls
Option 1: Use the Language Portal (canonical resource for Microsoft Terminology)
A search for Users returns:
Translations in Localized Microsoft Products
English Translation Product
Users Utilisateurs Windows 7
Users des utilisateurs Windows 7
Users Utilisateurs Windows 8 Modern Voice
Users Utilisateurs Windows 8
Users Utilisateurs Windows 8.1
USERS UTILISATEURS Windows 8.1
Users Utilisateurs Windows 10
Users des utilisateurs Windows 10
Users Utilisateurs Windows 10 Anniversary Update
users utilisateurs Windows 10 Anniversary Update
This suggests the following command may work:
icacls C:\FullyAccessibleFolder /grant Utilisateurs:(OI)(CI)F
Option 2: Retrieve the localised name from the Users
SID (S-1-5-32-545
)
SID: S-1-5-32-545
Name: Users
Description: A built-in group. After the
initial installation of the operating system, the only member is the
Authenticated Users group. When a computer joins a domain, the Domain
Users group is added to the Users group on the computer.
Source Well-known security identifiers in Windows operating systems
To retrieve the localised Users
group name:
This simple script
will give you actual name of 'Users' (S-1-5-32-545)
group on a given
PC:
Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")
Set objAccount = objWMIService.Get ("Win32_SID.SID='S-1-5-32-545'")
Wscript.Echo objAccount.AccountName
Put it into a file with vbs extension (Let's assume
usersName.vbs
).
Now run:
echo Y|for /f "delims=" %i in ('cscript -Nologo usersName.vbs') do cacls foldername /G "%i":F
Source Cacls, Windows 7, full permissions, local names by wmz
Option 3: Use the Users
SID with icacls
Use the following command:
icacls C:\FullyAccessibleFolder /grant *S-1-5-32-545:(OI)(CI)F
Source comment by Harry Johnston
2Just use the SID:
icacls C:\FullyAccessibleFolder /grant S-1-5-32-545:(OI)(CI)F
Works everywhere. – Ben – 2017-02-08T19:27:13.7132@Ben, that should be
icacls C:\folder /grant *S-1-5-32-545:(OI)(CI)F
, you left out the asterisk. – Harry Johnston – 2017-02-08T22:38:32.267