Solved

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

Posted on 2011-09-09
3
189 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
ID: 36511732
$(Get-Item “your folder here”).Attributes = ‘Readonly’

0
 

Author Comment

by:MOSADMIN
ID: 36511835
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
ID: 36511900
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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
Synchronize a new Active Directory domain with an existing Office 365 tenant
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
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…

778 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