Solved

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

Posted on 2011-09-09
3
178 Views
Last Modified: 2012-05-12
Does anyone have a good PS Script to ser users Desktop folder to 'Read Only'?

(C:\users\%username%\desktop)
0
Comment
Question by:MOSADMIN
3 Comments
 
LVL 35

Expert Comment

by:YZlat
Comment Utility
$(Get-Item “your folder here”).Attributes = ‘Readonly’

0
 

Author Comment

by:MOSADMIN
Comment Utility
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
0
 
LVL 66

Accepted Solution

by:
johnb6767 earned 500 total points
Comment Utility
I *really* would not do this.... Or at least test THOROUGHLY. Have seen negative consequences of this in the past.....

Desktop is a System Shell Folder, for the user, and any Shell Folders that have permissions restricted/missing etc. can have a negative impact on performance.

Check to see if there are no excessive delays when opening My Computer. ANYthing that might enumerate the Desktop namespace.  Check to make sure that your Common Dialogs work in EACH application. Office/Adobe/ETC. I have seen instances where severe delays happened when the Desktop was restricted. If you are trying to make sure that data is NOT saved locally, you would probably be better off with Folder Redirection.

I know this isn't what you asked, but I wanted to at least relay my experiences...

$.02



0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

"Migrate" an SMTP relay receive connector to a new server using info from an old server.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now