Solved

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

Posted on 2011-09-09
3
196 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Need help Creating a Powershell script 8 61
Exporting days since LastLogonTime 5 32
Powershell help for creating accounts 283 55
devops career advice 1 35
A procedure for exporting installed hotfix details of remote computers using powershell
Windows 10 came with  a lot of built in applications, Some organisations leave them there, some will control them using GPO's. This Article is useful for those who do not want to have any applications in their image (example:me).
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…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

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