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)
Microsoft Legacy OSPowershell

Avatar of undefined
Last Comment
johnb6767
Avatar of YZlat
YZlat
Flag of United States of America image

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

Avatar of MOSADMIN
MOSADMIN
Flag of Afghanistan image

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

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
Microsoft Legacy OS
Microsoft Legacy OS

The Microsoft Legacy Operating System topic includes legacy versions of Microsoft operating systems prior to Windows 2000: All versions of MS-DOS and other versions developed for specific manufacturers and Windows 3/3.1, Windows 95 and Windows 98, plus any other Windows-related versions, and Windows Mobile.

55K
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