Link to home
Start Free TrialLog in
Avatar of MOSADMIN
MOSADMINFlag for Afghanistan

asked on

Does anyone have a good PS Script to ser users Desktop folder to 'Read Only'?

Does anyone have a good PS Script to ser users Desktop folder to 'Read Only'?

(C:\users\%username%\desktop)
Avatar of YZlat
YZlat
Flag of United States of America image

$(Get-Item “your folder here”).Attributes = ‘Readonly’

Avatar of MOSADMIN

ASKER

Thanks YZLat - but I naivelty thought that this would stop users saving files to their desktop, but obviosuly it hasn't...

Do you have a script that would set NTFS Permissons for the logged on user to Read Access only on their Desktop folder (I'm sure this is slightly more complicated)

Thanks very much!

Mike
ASKER CERTIFIED SOLUTION
Avatar of johnb6767
johnb6767
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial