Categories
Welcome Center
Education & Development
Discussions
Certification Preparation
Recent Posts
Groups
Free Resources
Ebooks
Free Workshops
Trending Certifications Infographic
Infosec Training
IT & Security Training
Live Boot Camps
Security Awareness Training
About Infosec Institute
Home
Discussions
Off Topic
Permission on Folder script
Lee H
Hi
Would someone kindly help me out with a script, my knowledge on scripts is pretty non existent but I am now in a situation were one would come in pretty handy for me
I have to change "view hidden files" and go into C:\documents and setting\all user\application data\"***" in here there is a folder I am adding "Everyone" and giving "Full Control"
I am also going into C:\Progame Files\"***" I am also adding "Everyone" and giving "Full Control"
Reason its a piece of software that needs to be updated when a standard user is logged in
I would love to be able to run a batch file that added "Everyone" to both these folders giving "Full Control" permission
Is this a simple one
Any help is much appreciated
Lee
Find more posts tagged with
Save $250 on 2025 certification boot camps from Infosec!
Book now with code EOY2025
Button
Comments
kriscamaro68
This is doable. You would want to use icacls. There is so much in there that you are better off opening up cmd and typing icacls /? so that you can fine tune it to what you want. I wouldn't give the everyone group full control though. You could do authenticated users instead. Also I wouldn't give full control they should only need modify.
Edit: here is something that should get you started if not be what you need:
icacls "C:\documents and setting\all user\application data\folder" /grant Users
M)
The frown is : ( without spaces
Lee H
Thing is I am vising about 20 sites and using a USB drive to install this said program and also making it update-able
by a standard user, the whole "Full Control" thing is me just following orders, I agree "Modify" would suffice
So my only tool would be a batch file I could run
Cheers for your help
Lee
qcomer
Bring it up that full control allows them to change permissions.
Why not push with a goo?
Quick Links
All Categories
Recent Posts
Activity
Unanswered
Groups
Best Of
INFOSEC Boot Camps
$250
OFF
Use code
EOY2025
to receive $250 off your 2025 certification boot camp!
BROWSE BOOT CAMPS