Solved

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

Posted on 2011-09-09
3
201 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

My attempt to use PowerShell and other great resources found online to simplify the deployment of Office 365 ProPlus client components to any workstation that needs it, regardless of existing Office components that may be needing attention.
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

726 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