Set all users write permission on a folder

Greetings,
I have an application which creates a Data folder in the root directory of the C drive on installation and subfolders inside that folder when it first starts up.  It is installed on Windows XP or Vista using an administrator account.  However, I need all of the users on that computer to be able to read and write to the Data folder and its subfolders.  The default folder permissions when created are read-only for other users.
I have tried using the Set Permissions VI, but although I am setting all permissions (b111111111), and subsequent reads of those permissions return the same number, the actual permissions are not affected as far as I can tell by getting the properties of the folder in Windows Explorer.  I have read the help regarding the Set Permissions VI, and it sounds like the only thing it can actually do is set the write permission of the User (not all users), and Windows ignores the rest.
Can anyone advise me of the easiest way to set the write permissions for all users for a folder programmatically?  Even running something inside a CIN would be fine if the code was provided here.
Thanks much!
-Joe

Thanks smercurio_fc!  The CACLS solution in your linked post worked perfectly for me for Windows XP, and it turns out that in Vista all Authenticated Users (i.e. everyone but Guest) get modify priviledges by default on (sub)folders which are created by administrators in the root directory, so I don't need to do anything there.
This forum rocks. 

Similar Messages

  • How do I set all users to have complete permission access to all other users on a single Macbook?

    How do I set all users to have complete permission access to all other users on a single Macbook?  When one user uploads a picture from camera, the other user is told they don't have permission to view.  Same with music.

    Go to System preference> accouts>unlock>click+and add name of new user, Adrop dowm window will appear, new Account and set for Admi, fill in their name, to make things even more simple, use the same password for all,if it will allow it. Click ceate account. Click allow user to admin this computer.Then go to sys prefs, sharing and click all the things you want to let everyone use, If you use separeate paswords then each user can set their own preferences. All users can be set as as administrator, click allow access for all users. This will allow every one pretty much the same access.
    OH yeah reart the computer sfter added a new user, and test the new login, if it's good coninue.

  • How to change the permission of a folder of a website hosted on Microsoft Azure. I would like to know how to enable read write permission for this folder

    How to change the permission of a folder of a website hosted on Microsoft Azure. I would like to know how to enable read write permission for this folder
    Regards,
    John

    Hi,
    Please try to setting Folder Permissions on Web Publish, and then deploy it with Web Deploy, as far as I know, if we do that, Web Deploy will use the SetAcl operation to change permissions. Please have a look at the article below.
    #http://sedodream.com/2011/11/08/settingfolderpermissionsonwebpublish.aspx
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • I have a Windows 7 Professional, 64 bits on my computer and have recently installed iTunes 11.1.3.8. but i started having this msg :"The folder iTunes is on a locked disk or you do not have write permission for this folder" issues: how can i solve it?

    I have a Windows 7 Professional, 64 bits on my computer and have recently installed iTunes 11.1.3.8. but i started having this msg :"The folder iTunes is on a locked disk or you do not have write permission for this folder" issues: how can i solve it?

    Right-click on your main iTunes folder and click Properties, then go to the Security tab and click Advanced. If necessary grant your account and SYSTEM full control of this folder, subfolders and files, then tick the option to replace permissions on child objects which will repair permissions throughout the library. This is the XP dialog but Windows 7 shouldn't be too different.
    If it won't let you change the permissions use the Owner tab to take ownneship from an account with administror privileges.
    tt2

  • Getting a list of users and permission from a folder

    I run this command to get a a list of users and permission from a folder
    $project_folder = "\\servername\foldername"
    get-acl $project_folder | %{ $_.Access  } | ft -property IdentityReference, AccessControlType, FileSystemRights > folder.csv.
    This only lists information for 1 folder.
    If i have multiple folders how should the code be modified?

    this is the code i am looking for 
     $project_folder
    = "\\servername\foldername\foldername1"
    get-acl $project_folder | %{ $_.Access  } | ft -property IdentityReference, AccessControlType,
    FileSystemRights > folder.csv.
    I  run this code and this gives me the information for only the folder 'foldername1'.
    Ex. i need a list of users who have permmission in \\servername\foldername\foldername2.
    i run the code and it gives me the permissions and list of users in foldername2.
    This is the issue
    IF there are multiple folders \\servername\foldername\foldername2, \\servername\foldername\foldername1,
    i need to run the code each time for 1 folder. 
    is there a command where i can combine the path of these 2 or more folders and export
    it to csv
    Ex.  $project_folder
    = "\\servername\foldername\foldername1",
    "\\servername\foldername\foldername2"
    get-acl $project_folder | %{ $_.Access  } | ft -property IdentityReference, AccessControlType,
    FileSystemRights > folder.csv.
    This will give me the list of users and the type of access they have in foldername1 and
    foldername2

  • I can't launch itunes says it's on a locked disk and I don't have write permission for the folder,how do I fix this?

    I can't launch itunes on PC it says it's on a locked disk and that I don't have write permissions for the folder.So how would I go about fixing this,any information would be helpfull.Cuz' I wanna transfer stuff from my PC to my Ipad and understand You have to go through itunes to do that.

    The path C:/documents and setting/...iTunes.msi cannot be found. Verify that you have access to this location and try again, or try to find the installation package 'iTunes.msi' in a folder from which you can install the product iTunes.
    Download the Windows Installer CleanUp utility from the following page (use one of the links under the thingy on the Major Geeks page):
    http://majorgeeks.com/download.php?det=4459
    To install the utility, doubleclick the msicuu2.exe file you downloaded.
    Now run the utility ("Start > All Programs > Windows Install Clean Up"). In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
    Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time?

  • Getting a list of users and permission from a folder including nested groups

    $project_folder = "\\servername\foldername\foldername1"
    Get-Acl $project_folder | 
        ForEach-Object { 
            $_.Access | Add-Member -MemberType NoteProperty -Name Path -Value $_.Path -PassThru  
        } | 
        ft -GroupBy Path -Property IdentityReference, AccessControlType, FileSystemRights > foldertst.csv
    The above command gives me a list of all the users who have access to foldername1. (including users and groups).
    How do i modify this code to get the information of the nested groups for this folder

    Sorry, I won't be providing a complete solution, just a few suggestions and comments.
    first thing will be to determine for each ACE (access control entry) whether the IdentityReference refers to a user account or a group. If a group, you will then need to process each of its members, each of which will share the FileSystemRights of the current
    ACE.
    But... if any of the members are other groups, you will need to process them recursively as well. Recursively.
    There are a few gotcha's, though:
    you need to recognize and avoid infinite recursion when, for example, group A is a member of group B which is a member of group A. One way to do this is to keep a list of all groups encountered, processing each only once.
    if one ACE belongs to group C, another belongs to group D, group A is a member of C, and group B is a member of D, you must ensure that all members of A and B are listed with ACE C and ACE D.
    Once you have identified all user accounts you might find that some have multiple records. For example, user AA might belong to group A, and get unlimited access through the ACE owned by group C, but deny read access through the ACE owned by group D. If
    the first mention of this user in your output shows he has unlimited access, that will, of course be incorrect. at the very least the output should be sorted by username. You could attempt to amalgamate all of his various accesses (like the effective permissions
    tab) into a single one. But it would be difficult to show which group memberships contributed which aspects of his access permissions in any kind of simple or intuitive way.
    security configurations can easily become overly complex. The best solution is to simplify and standardize how permissions are applied and how groups are nested. I have had to do this on occasion, and the problem of determining how things should be permitted
    from how they actually are is probably the most complicated part of the job.
    good luck.
    Al Dunbar -- remember to 'mark or propose as answer' or 'vote as helpful' as appropriate.

  • Is a locked disk or don not have write permission for this folder

    I just got my retina displace macbook pro and when I open itunes I get the following: The folder "iTunes" is on a locked disk or you do not have write permissions for this folder. Help!

    Read the part about changing permissions on the iTunes folder in: https://discussions.apple.com/message/11583914

  • Powershell for setting all user set-mailbox -maxreceivesize

    hi,
    i can't get my exchange powershell script to change 'set-mailbox * -maxrecievesize 40Mb', please help.
    thanks.

    In Exchange (2010) there are four different places where you can set delivery size restrictions.
    1. On the complete Exchange Organisation.
    Console: Global Settings -> Transport Settings
    Shell:
    Get-TransportConfig %organizationname% | Set-Transportconfig %organizationname% -MaxReceiveSize 50 MB
    Get-TransportConfig %organizationname% | Set-Transportconfig %organizationname% -MaxSendSize 50 MB
    (you can find your organisationname with this command: Get-OrganizationConfig | ft name)
    2a. On a specific Receive Connector.
    Console: Server Configuration -> Hub Transport -> Receive Connectors
    Shell: Get-ReceiveConnector %connectorname% | Set-ReceiveConnector %connectorname% -MaxMessageSize 25 MB
    2b. On a specific Send Connector.
    Console: Organization Configuration -> Hub Transport -> Send Connectors -> $connectorname% -> General 
    Shell: Get-SendConnector %connectorname% | Set-SendConnector %connectorname% -MaxMessageSize 25 MB
    3. On a specific User.
    Console: Open User Mailbox -> Mail Flow Settings -> Message Size Restrictions
    Shell: Get-Mailbox %emailaddress% | Set-Mailbox %emailaddress% -MaxReceiveSize 10 MB

  • HT201210 Using Windows 7 and since updating to current iTunes yesterday I can not open iTunes. I receive error message "The folder "iTunes" in on a locked disk or you do not have write permission for this folder." I made no changes other than updating iTu

    I'd really like to be able to open iTunes and update my iPhone5 and iPad2 to IOS7. grr

    In my case its a new computer the old one was stolen and the time machine disk did not work for a restore but did for copying the info to the new mac

  • Setting Initial View Folder for All Users at Once and Forever. How???

    <p>Is there any way to make the initial view of all users to be a specific folder? What I want to acomplish it to show my public folders expanded and always showing a specific folder. I can do it for myselft but what about a global setting?</p>

    I tried the following code and it does not appear to work.  Why?
    Our goal is to take the destop preferences of a selected user and apply those preferences to all other users.  How can that be done?  Note:  We need to apply those preferences whether they have already set their preferences or not.
         Dim oSourceUser As InfoObject
                Dim oTargetUsers As InfoObjects
                bErrorOccurred = False
                oSourceUser = oInfoStore.NewInfoObjectCollection().InfoStore.Query("SELECT SI_NAME, SI_DATA FROM CI_SYSTEMOBJECTS WHERE SI_PROGID = 'CrystalEnterprise.User' And SI_Name = '" & vstrSourceUserID & "'").Item(1)
                If vstrTargetUserID.Length > 0 Then
                    oTargetUsers = oInfoStore.NewInfoObjectCollection().InfoStore.Query("SELECT SI_NAME, SI_DATA FROM CI_SYSTEMOBJECTS WHERE SI_PROGID = 'CrystalEnterprise.User' And SI_Name = '" & vstrTargetUserID & "'")
                Else
                    oTargetUsers = oInfoStore.NewInfoObjectCollection().InfoStore.Query("SELECT SI_NAME, SI_DATA FROM CI_SYSTEMOBJECTS WHERE SI_PROGID = 'CrystalEnterprise.User' And SI_Name != '" & vstrSourceUserID & "'")
                End If
                For Each oUser As InfoObject In oTargetUsers
                    Try
                        oUser.Properties.Add("SI_DATA", oSourceUser.Properties("SI_DATA").Properties)
                    Catch ex As Exception
                        bErrorOccurred = True
                        If ex.Message.Length = 0 Then
                            strLastError = "Unknown Error Occurred"
                        Else
                            strLastError = ex.Message
                        End If
                        Exit For
                    End Try
                Next
                If bErrorOccurred = False Then oInfoStore.Commit(oTargetUsers)

  • Can I direct all users in one OU to share a common desktop/my document? (Folder Redirection)

    Say we have a few OU's, each OU will only have 1 active user at any given time. Lets call it OU: A,B,C,D. When a person leaves, I want the new user to be able to access all of the same desktop/documents of the previous user. I don't want to have to come
    in and copy the desktop/my documents folder each time for this.  
    Say if  User in OU "A" leaves and there's a temp/replacement, can I just copy the existing user's profile and create a new one in OU A and have the new user be able to log in with their new account but have all the desktops and my documents
    of the previous user. Of course if this can be achieved, even when the machine gets replaced, the desktops/my documents are there. 
    At the moment, we have shared folder for those groups of people but we're not enforcing them to save to the mapped drive. Lots of them have no idea what a mapped drive is. :( I want to simplify this process and get away with spending hours of backing up/restoring
    people's my documents and desktops when they come and go.  
    Danny

    Hi,
    I don't think we can set multiple users to a same redirected folder.
    Under Basic - Redirect everyone's folder to the same location, there is only one option seems close to your purpose which is "Redirect to the following location". However to get it work, the user need to be the owner of the target folder, and it will not
    work even we set Everyone as the Owner. 
    Meanwhile I do not understand why you would like to share a redirected Desktop with all users. If you would like to share files or folders, you can map a folder for all users. If you would like to publish applications to all users, you can deploy application
    through Group Policy.
    If you have any feedback on our support, please send to [email protected]
    Yes you can and I confirm this works. The key is to uncheck
    "grant user exclusive rights"
    here's an example of what I did. 
    Created OU A and B
    OU A - Added user A1 and A2
    OU B - Added user B1 and B2
    Created Security Groups A and B
    Share folders \\PDC1\A\Desktop and \\PDC1\A\Documents grant permission to security group A (repeat for group B)
    Use basic folder redirect and the option to redirect everyone to the same shared drives as above. In the setting tab, uncheck "Grant user exclusive rights" 
    And to answer your question, we do you mapped folders. Each user have their own mapped drives but no one is using it. They don't even know what mapped drives are in most
    cases. They tend to like to save everything to their desktops or their whatever the default saved location is, in this case it's "Documents". There are plenty other reasons why I want this. 
    Danny

  • How do I set a Finder background for all users?

    I want to set a background in Finder for a folder hosted on a server, and I want all users who connect to that folder to see the background (and, necessarily, force them into Icon view for that folder). Is there a way to do this? Server is running 10.5.8, clients are running a mix from 10.6.7 to 10.7.1.

    But I dont know how to set a default website name that appears at the top of EVERY page.  Can you help?
    You cannot set a default name for your webpage.
    Each page is unique.
    But you can make a default page and duplicate it.

  • Jacob.dll requirees write permission for webutil

    we have to copy jacob.dll with write permission every time our network upgrades java version. is there any way we can avoid this...
    Thanks
    Lalitha

    I assume, that when you upgrade Java version, webutil attempts by default to download dll files to the
    new Java folder, and user do not have write permission to this folder.
    There is a new webutil configuration feature available from 10.1.2.3 plus latest super merge path.
    install.syslib.location.client
    You can specify this new parameter in webutil.cfg and set default destination folder where user have write permissions.

  • User cannot access redirected Documents folder, but can connect to share in Windows Explorer and access folder on server

    I am in the final stages of a cross-forest migration.  Users have Windows 7 workstations with redirected folders on a Windows Server 2012 box running in the old forest.  User accounts were not migrated.  The accounts in use have always
    been in the "new" forest.  One of our challenges was the large volume of data in redirected folders.  I made sure users in the target forest had continued to have access to their redirected folders in the old forest and robocopied
    the entire users share, copying the permissions with the files.  By doing incremental robocopies, we can get a final copy done now in about six hours.  The plan was simple: copy the files, do an incremental copy every night, on the night of the cutover
    change the folder redirection policy Documents path from
    \\oldserver\users\%USERNAME% to
    \\newserver\users\%USERNAME%. The policy is configured to NOT copy user files from the existing folder to the new redirected folder.  Everything was going well until I tested the policy change.  After the folder redirection policy is updated
    and applied, the user cannot access the private Documents folder.  For example, user Chester Tester logs on as ctester.  I open Windows Explorer and click the Documents shortcut.  I see one subfolder, which is subfolder of Public Documents. 
    So I can look at Public Documents but when I click on the Documents folder (Under the Documents library link) I get an access denied error.  Now for the kicker, if I open another Windows Explorer window and edit the address bar to
    \\newserver\users\ctester, I can navigate the Documents folder tree and see my thousands of documents. What the ....?
    I'm hoping this is something really simple to fix!
    TIA

    HI Vivian,
    Thank you for your reply.  Yes, the path in Group Policy Folder Redirection Root Path was updated to
    \\NEWSERVER\users.  I had planned to point this to the distributed file system, so the first used was actually
    \\domain\dfs\users.  To simplify things I have backed off to copying to just a normal share
    \\newserver\users. 
    We are using BASIC folder redirection and we create a folder for each user under the root path. 
    We did not want the policy to move content, as we were seeing users requiring 15-20 minute logon times  (or higher) after the policy is changed.
    Grant the User exclusive right to Documents - Disabled
    Move the contents of Documents to the new location - Disabled
    Related folder settings
    Video - Follow Documents
    Music - Follow Documents
    Pictures - Follow Documents
    Now when I change the folder redirection from old server to new server I now have TWO My Documents folders in the user's redirection folder on the server.  The redirected Documents points to an empty folder set.  The copied folders with all user
    data are there, but folder redirection refuses to recognize the original folder.
    I am looking at the full view of the folder, nothing hidden, so I'm wondering how a folder can have two subfolders with the exact same name.  For now, I just want the redirection to move from the old server to the new server properly.  I deleted
    the new My Documents folder, rebooted the user's workstation and tried again.  The behavior repeats itself, i.e., a new My Documents folder is always created when the redirection policy is changed from the old server to the new server.  The environment
    has about 1500 users with approximately 1.3TB of data in the redirected Documents folders.  OUCH!

Maybe you are looking for

  • Stupid security or how I lost all my data

    Hi Apple, All This has the potential to be a bit of a long story so bare with me. Thanks. I am a Apple user and so far I own several Apple products like iPhone 4S, iPhone 5, New iPad Retina(3) and iPad Air. All bought new and from official channels.

  • Gettin Entire cell in MS-Excel Sheet?

    Hi Friends, I'm trying to get the data from MS-Excel and then try to persists in the data base... here my code goes like this: try {                Long OID;                String Pricing_Type;                Float Min_Spend = null;                Fl

  • JNI findClass does't run properly

    Hello, I'm new with jni ... i'm tryng to access a java class from inside a c native code in order to map such class to a c struct. More in depth, for example, I have a java class with 2 fields of type int (final int id=1, final int value=2) ... once

  • HT204074 If I have additional music on my second computer that I authorize with iTunes Match, How do I upload it to iCloud?

    If I have additional music on my second computer that I authorize with iTunes Match, How do I upload it to iCloud?

  • Slingbox not working with RAZR

    Recently upgraded from Droid X to Droid RAZR. Tried to use the Slingbox app, and it wanted to download and charge Me $30.00, for an app I thought I had already bought. After working with Tech Support, I discovered the Sling product Pre-loaded on My p