Removing modify/sync NTFS permissions using removeaccessruleall in Powershell

Hi,
I've got a script together which removes all non-inherited groups from a user's home folder. It's working fine until I run into groups which have modify/sync permission. Even though I'm using the removeaccessruleall permission, those groups just don't
remove. I've attached the code I'm using below and I can provide the full script if needed.
$objAccessRule1 = New-Object System.Security.AccessControl.FileSystemAccessRule($strAccount,"FullControl","ContainerInherit,ObjectInherit","None","Allow")
$objACL.RemoveAccessRuleAll($objAccessRule1)
I'd appreciate any insight anyone can provide.
Cheers,
Ed Narayan


Hi Rohn,
Still no luck. The modify/sync permission still remains. Here's my code:
import-module activedirectory
$StrInvocation = (Get-Variable MyInvocation).Value
$strRunDir = Split-Path $StrInvocation.MyCommand.Path
$strDate = get-date -format "dd-MMM-yyyy-HHmm"
# Set everyone to list folder contents - this folder only and remove extra groups on folder
function phase1
$strSharePath = $args[0]
$objACL = Get-Acl $strSharePath
# Define permissions
$strPermission1 = "Everyone","ListDirectory","None","None","Allow"
# Attach permissions to access rules
$objAccessRule1 = New-Object System.Security.AccessControl.FileSystemAccessRule $strPermission1
# Attach access rules to ACL object
$objACL.SetAccessRule($objAccessRule1)
$objACL.PurgeAccessRules([System.Security.Principal.NTAccount]"AccountAdmins")
$objACL.PurgeAccessRules([System.Security.Principal.NTAccount]"SHR-MDRIVE")
$objACL.PurgeAccessRules([System.Security.Principal.NTAccount]"SYSTEM")
# Set access rules on ACL object
Set-Acl $strSharePath $objACL
# For each folder processed, turn on inheritance if it's off, remove orphaned acls and non-inherited groups
function phase2
[CmdletBinding()]
Param([Parameter(Mandatory=$True,ValueFromPipeline=$True,ValueFromPipelinebyPropertyName=$True)]
[string]$strFolder)
PROCESS{
# Set variables
$strLog = "$strRunDir\Logs\log-$strDate.txt"
$arrGroups = @()
$objACEs = @()
$objACL = get-acl $strFolder
$objACEs = $objACL.Access | Where-Object {!$_.IsInherited} | select-object IdentityReference -unique
[bool]$blnIsInherit = [bool](get-inheritance $strFolder | select-object -expandproperty inheritanceenabled)
[bool]$blnGroupExists = $false
$objChildObjects = Get-ChildItem $strFolder -recurse
write-output "`n" | Out-file $strLog -append
write-output "FOLDER:$strFolder `n" | Out-file $strLog -append
write-output "Inheritance enabled - $blnIsInherit `n" | Out-file $strLog -append
# If inheritance is turned off, enable it
if(!$blnIsInherit)
write-output "Enabling inheritance for $strFolder`n" | Out-file $strLog -append
$objACL.SetAccessRuleProtection($False, $True)
# If non-inherited permissions exist, process each of them
if(($objACEs| Measure-Object).Count -gt 0)
foreach($objACE in $objACEs)
[bool]$blnIsGroup = $false
[string]$strAccount = $objACE.IdentityReference
if($strAccount -like "*\*")
$arrSplit = $strAccount.split("\")
$strAccount= $arrSplit[1]
# Check if permission is for a group
$blnIsGroup = [bool](get-adgroup $strAccount -erroraction silentlycontinue)
# If permission is for a group, create an acl entry for removing it. Multiple remove entries can be created depending on the number of groups found
if($blnIsGroup)
Write-output "Removing:$strAccount`n" | Out-file $strLog -append
$objACL.PurgeAccessRules([System.Security.Principal.NTAccount]$strAccount)
if($strAccount-like "*SYSTEM*" -or $strAccount-like "*CREATOR OWNER*" -or $strAccount-like "*USERS*" -or $strAccount-like "*Administrators*" -or $strAccount-like "*S-1-5-*")
Write-output "Removing:$strAccount`n" | Out-file $strLog -append
$objACL.PurgeAccessRules([System.Security.Principal.NTAccount]$strAccount)
Set-acl $strFolder $objACL
Phase 1 changes the everyone group to list folder contents on this folder only and removes a bunch of groups from the root folder.
Phase 2 removes all orphaned sids and non-inherited groups from the folder and turns on inheritance if it's turned off.
At this stage, this feels like a bug within the ACL cmdlets.
Cheers,
Ed

Similar Messages

  • NTFS Permissions - Need Read, List, Delete not Write or Modify

    I don't think you can have delete, but not write or modify.

    I'm setting up Network printing to a shared folder on a server.  I want the users to be able to browse and see the files the printer's scan there and delete them when moved off.  I don't want the folder to be used for long term storage so I don't want write or modify on it (ie user opens a scaned file makes changes and just clicks save).  How do I go about setting this up with NTFS permissions?
    This topic first appeared in the Spiceworks Community

  • My iPhone has two computers in (iTunes wifi sync), how can I remove one of them without using it ?

    Hello everyone.
    My iPhone has two computers in (iTunes wifi sync) how can I remove one of them without using that computer?
    because that PC stopped working so I had to recover it. Now everything is gone on that PC.
    Also I bought a new computer (MacBook Pro) and I use iTunes on it in the mean time. Now I want to remove the old computer!
    here is a photo of my (iTunes WiFi sync)
    is there any way that I can use to do that?
    Thanks

    Hello,
    Did you ever find a solution for this ?
    I have the same issue and i dont know how to fix it.

  • A friend gave me her VAIO laptop.How can I remove her ITUNES library and use mine which I want to sync with my Ipad and Iphone?

    A Friend gave me her VAIO laptop.How can I remove her ITUNES library and use my library.  Want to sync my Ipad and Iphone to My library.

    I believe when you plug her old iPhone in to your computer it will notify you that the phone is synced with another library and ask if you want to register it with your library.  At least this is how iPods work.  I'm not sure about iPhones.  If you want to actually use the phone as your own you may need to go through AT&T.
    If you're just looking to use the iPhone as an iPod (without the phone portion of it) you may run in to some problems.  The iPhone really wants to be on a cell network all the time.  I think you'd have to jailbreak it to get it to work properly as an iPod.
    Let us know what happens when you plug the phone in to your computer.

  • Removing advanced ntfs permissions in powershell

    Hi,
    I am trying to remove special permissions of a folder
    I found a technet article that helps me understand the concept but couldn't get it to
    work for special permissions. 
    I am trying to remove create files special permissions for c:\temp
    $colRights = [System.Security.AccessControl.FileSystemRights]"CreateFiles" 
    $InheritanceFlag = [System.Security.AccessControl.InheritanceFlags]::None 
    $PropagationFlag = [System.Security.AccessControl.PropagationFlags]::None 
    $objType =[System.Security.AccessControl.AccessControlType]::Allow 
    $objUser = New-Object System.Security.Principal.NTAccount("BUILTIN\Users") 
    $objACE = New-Object System.Security.AccessControl.FileSystemAccessRule `
    ($objUser, $colRights, $InheritanceFlag, $PropagationFlag, $objType) 
    $objACL = Get-ACL "c:\temp" 
    $objACL.RemoveAccessRule($objACE) 
    Set-ACL "C:\temp" $objACL

    Thank you for your time to explain and provide sample code
    The cool thing about your code is no matter how many special permissions I give, it removes them all though I pass one right, like AppendData.
    After running the code like
    $acl = get-acl C:\temp
    $rules=$acl.GetAccessRules($true,$true,[Security.Principal.NTAccount])|?{$_.IdentityReference -eq 'BUILTIN\Users'}
    $rules|%{$acl.RemoveAccessRule($_)}
    $newrules=$rules|Remove-AcePermission -FileSystemRight 'AppendData'
    I run $acl | set-acl
    Then it removes all the special permissions and keeps only the standard ones. Works as expected
    But when I tried this for C:\, for some reason it didn't work as I get the error when I run Set-Acl
    Set-Acl : The security identifier is not allowed to be the owner of this object.
    At line:20 char:8
    + $Acl | Set-Acl
    +        ~~~~~~~
        + CategoryInfo          : InvalidOperation: (C:\:String) [Set-Acl], InvalidOperationException
        + FullyQualifiedErrorId : System.InvalidOperationException,Microsoft.PowerShell.Commands.SetAclCommand
    But the rule modification does work as expected like shown here:
    Without special permissions:
    PS C:\WINDOWS\system32> $rules
    FileSystemRights  : ReadAndExecute, Synchronize
    AccessControlType : Allow
    IdentityReference : BUILTIN\Users
    IsInherited       : False
    InheritanceFlags  : ContainerInherit, ObjectInherit
    PropagationFlags  : None
    With Special permissions CreateFiles and AppendData:
    PS C:\WINDOWS\system32> $rules
    FileSystemRights  : CreateFiles, AppendData, ReadAndExecute, Synchronize
    AccessControlType : Allow
    IdentityReference : BUILTIN\Users
    IsInherited       : False
    InheritanceFlags  : ContainerInherit, ObjectInherit
    PropagationFlags  : None
    After using the code:
    PS C:\WINDOWS\system32> $newrules
    FileSystemRights  : CreateFiles, ReadAndExecute, Synchronize
    AccessControlType : Allow
    IdentityReference : BUILTIN\Users
    IsInherited       : False
    InheritanceFlags  : ContainerInherit, ObjectInherit
    PropagationFlags  : None
    But only thing is that I couldn't set this new rule on C:\ ...
    Am I missing anything while setting it on C:
    I've seen that you did mention "The above makes some assumptions and is not designed to work with
    all scenarios. "  But was wondering what I was missing

  • During a routine verify permissions using my disc utility, I'm getting a WARNING: SUID file "Systems/Library/CoreService-.ent" has been modified and will not be repaired.

    During a routine verify permissions using my disc utility, I'm getting a WARNING: SUID file "Systems/Library/CoreService….ent" has been modified and will not be repaired. What does this mean?? I'm not awawre that I did anything to cause this and is it somethingI should try to fix?

    1. It means that the current software is installed.
    2. It's not something you should try to fix.
    3. Verifying and repairing permissions shouldn't be done as routine tasks.
    (94115)

  • Unable to set NTFS permissions on share using PowerShell. The user shows up with no rights checked off.

    I am having a little problem here with setting NTFS permissions via PowerShell. 
    Basically I am able to make a new directory on the share, and assign a user NTFS permissions however it just assigns the select user without any permissions set.
    $username = "test.user"
    $directory = "\\testlab-sv01\Share\newfolder"
    New-Item -Path $directory -ItemType Directory
    $colRights = [System.Security.AccessControl.FileSystemRights]"FullControl"
    $InheritanceFlag = [System.Security.AccessControl.InheritanceFlags]::ContainerInherit
    $PropagationFlag = [System.Security.AccessControl.PropagationFlags]::InheritOnly
    $objType =[System.Security.AccessControl.AccessControlType]::Allow
    $objUser = New-Object System.Security.Principal.NTAccount("$username")
    $objACE = New-Object System.Security.AccessControl.FileSystemAccessRule($objUser, $colRights, $InheritanceFlag, $PropagationFlag, $objType)
    $objACL = Get-ACL $directory
    $objACL.AddAccessRule($objACE)
    Set-ACL $directory $objACL
    A side question, why isn't this native in Powershell? Is it for security reasons? I expected there to be a cmdlet for it. 
    Thanks. 
    Kyle

    When you say there are no permissions, do mean that the ACL Editor is showing 'Special permissions' and none of the other boxes are checked?
    Try changing the inheritance and propagation flags to this:
    $InheritanceFlag = [System.Security.AccessControl.InheritanceFlags] "ContainerInherit, ObjectInherit"
    $PropagationFlag = [System.Security.AccessControl.PropagationFlags]::None
    That sets the ACE to apply to the folder (InheritOnly propagation flag isn't set) , subfolders (ContainerInherit inheritance flag is set), and files (ObjectInherit inheritance flag is set), which is necessary for the ACE to not be considered 'special' in
    the ACL Editor.
    Awesome. Thanks. That did work. 
    And yes I did mean that it was showing special permissions with nothing checked. 
    Kyle

  • Defining NTFS Permissions for High Volume Security

    The default NTFS file permissions for the boot volume in Windows 8.1 appear to give Modify access to "Authenticated Users".   That is really permissive.   I have a lot of folders I do not want anyone not authenticated as Administrator
    to touch.   Of course I could change every folder manually and test for side effects, but I am hoping someone has already tested this and has published a document.   I am looking for a detailed description of how to secure the volume so that ordinary
    users cannot modify attributes, filenames, or data for most files on the volume.
    Will

    Ronald, thanks for your reply.  Now we are talking the right topic.    
    1) How did you modify the root permissions?  One way to do that might be to remove Modify and Create authority for the "Authenticated Users" entity and replace that with just Read & Execute.
    2) I understand that Microsoft tightened things to prevent normal users from having modify access inside subfolders.   This works fine for well behaved applications that use things like the "Program Files" subfolder.   Unfortunately, many
    applications are badly behaved and put themselves directly under the root of the boot volume.  AMD for example puts its video drivers in c:\amd by default.     Since that folder inherits from the root, and the root gives permissive access to
    users to create and modify files, now many sensitive DLLs in this install folder could be easily modified by any user.
    One of the worst viruses I ever had was a denial of service virus that acted simply by hiding every single file on your file system.   We had locked down NTFS permissions but had forgotten to lock down file attributes.   It took forever to recover
    from that.   
    So, bottom line, I like to run as tight a file security as possible, and I like to stay logged in as a normal user and greatly restrict what normal users can change.    
    Microsoft definitely tightened things up in Windows 8 and that's great.
    Will

  • Failed to update permissions used for end-user recovery on . Permissions update failed for the following reason: (ID 3123)

    I patched 2012 to the SP1 level and now I'm getting these warnings on many servers.
    It seems to be considering these items as removable media?
    DPM 2012, SP1, version 4.1.3313.0
    Failed to update permissions used for end-user recovery on skutter.pmuk.net. Permissions update failed for the following reason: (ID 3123)
    Affected area: skutter.pmuk.net
    Occurred since: 11/01/2013 09:04:43
    Description: Failed to update permissions used for end-user recovery on skutter.pmuk.net. Permissions update failed for the following reason: (ID 3123)
     DPM is unable to enumerate contents in 2aad3f75a7e54a0f91b640d7f158f00a , 5702fef3756e4ca8af0554013951f32d , 78f9e6070fbd43aeb328700a88a3c926 , aquaria.pmuk.net_MTATempStore$ , ariel.pmuk.net_MTATempStore$ , atlantis.pmuk.net_downloads , atlantis.pmuk.net_MTATempStore$
    , atlantis.pmuk.net_print$ , capricorn.pmuk.net_MTATempStore$ , CCM.pmuk.net_IvrDirectory , CCM.pmuk.net_MTATempStore$ , CHIRON.pmuk.net_MTATempStore$ , cpeserv-i03.pmuk.net_IMAGING , defiant.pmuk.net_idsc , defiant.pmuk.net_MTATempStore$ ,firebird.pmuk.net_Accts_serve
    , firebird.pmuk.net_case , firebird.pmuk.net_Control ,firebird.pmuk.net_Fuel Cell , firebird.pmuk.net_HADCAD , firebird.pmuk.net_haddesign , firebird.pmuk.net_hadendurancelab , firebird.pmuk.net_HADEngCad , firebird.pmuk.net_HADPCLGainspeed ,firebird.pmuk.net_HADPCLProjects
    ,firebird.pmuk.net_HADPCLQuality  , firebird.pmuk.net_HADPCLStandards , firebird.pmuk.net_hrXerox , firebird.pmuk.net_hs , firebird.pmuk.net_ITXerox , firebird.pmuk.net_JunHigashimura , firebird.pmuk.net_MTATempStore$ ,firebird.pmuk.net_office  ,firebird.pmuk.net_OMPM
    , firebird.pmuk.net_Outplacement ,firebird.pmuk.net_personal , firebird.pmuk.net_PJSESCANNER  ,firebird.pmuk.net_pmuk ,firebird.pmuk.net_pwa ,firebird.pmuk.net_pwa2 , firebird.pmuk.net_scanfret ,firebird.pmuk.net_Siebel8  ,firebird.pmuk.net_Spares 
    ,firebird.pmuk.net_test   ,firebird.pmuk.net_TVDC ,firebird.pmuk.net_xeroxcpe$  ,firebird.pmuk.net_xeroxrd$ , HALLEY.pmuk.net_MTATempStore$ ,legion.pmuk.net_dfs ,legion.pmuk.net_MTATempStore$ , legion.pmuk.net_NETLOGON  ,legion.pmuk.net_SYSVOL
    , nemesis.pmuk.net_KEvin  ,nemesis.pmuk.net_MTATempStore$ , PLEIDES.pmuk.net_Archive , PLEIDES.pmuk.net_DGHOME , PLEIDES.pmuk.net_MTATempStore$  ,PLEIDES.pmuk.net_print$ , roosevelt.pmuk.net_ARCserve$ ,roosevelt.pmuk.net_CHEYALERT$ , roosevelt.pmuk.net_HADQCEOLP
    ,roosevelt.pmuk.net_home3 , roosevelt.pmuk.net_MTATempStore$ ,roosevelt.pmuk.net_smssource , roosevelt.pmuk.net_WindowsEasyTransfer ,roosevelt.pmuk.net_XeroxScan , sagittarius.pmuk.net_MTATempStore$ ,sagittarius.pmuk.net_print$ , sakura.pmuk.net_MTATempStore$
    ,scorpia.pmuk.net_MTATempStore$ ,scorpion.pmuk.net_chandleram, scorpion.pmuk.net_Control  ,scorpion.pmuk.net_CPE ,scorpion.pmuk.net_Digital  ,scorpion.pmuk.net_Electrical , scorpion.pmuk.net_MTATempStore$ , scorpion.pmuk.net_NASUtils ,scorpion.pmuk.net_Personal
    ,scorpion.pmuk.net_QA ,scorpion.pmuk.net_QC , scorpion.pmuk.net_Technical , silverberg.pmuk.net_dfs  ,silverberg.pmuk.net_MTATempStore$ ,silverberg.pmuk.net_NETLOGON , silverberg.pmuk.net_SYSVOL ,skutter.pmuk.net_dfs , skutter.pmuk.net_MTATempStore$ ,skutter.pmuk.net_NETLOGON
    ,skutter.pmuk.net_sharepoint-saver ,skutter.pmuk.net_SYSVOL , tempest.pmuk.net_MTATempStore$ , tempest.pmuk.net_Quarantine ,tempest.pmuk.net_SiteBackups , tempest.pmuk.net_tsdp , titania.pmuk.net_MTATempStore$ , valiant.pmuk.net_domino , valiant.pmuk.net_hadprod
    , valiant.pmuk.net_MTATempStore$ ,valiant.pmuk.net_oracle ,vindaloo.pmuk.net_MTATempStore$ , virgon.pmuk.net_faxclient ,virgon.pmuk.net_FxsSrvCp$ ,virgon.pmuk.net_MTATempStore$ , xavier.pmuk.net_Address ,xavier.pmuk.net_downloads ,xavier.pmuk.net_drivers ,
    xavier.pmuk.net_Exchange IS Starter ,xavier.pmuk.net_ExchangeOAB , xavier.pmuk.net_ExchangeUM , xavier.pmuk.net_MTATempStore$ , xavier.pmuk.net_out-arch , xavier.pmuk.net_Resources$ on the protected computer tower.pmuk.net. Recycle Bin, System Volume Information
    folder, non-NTFS volumes,  DFS links,  CDs,  Quorum Disk (for cluster) and other removable media cannot be protected. (ID 38 Details: )
    Any Ideas? backups are OK, recovery points/sync's etc.
    Mark.

    I am using DPM 2012 R2, what finally worked to me to resolve my problem with EUR was to:
    In DPM I disabled EUR
    In Computer Management delete all DPM Shares (\\?\c:\Program Files\...)
    Using ADSI edit go to CN=MS-ShareMapConfiguration,CN=System,DC=X,DC=Y (Replace X & Y for your domain)
    Delete all of the mappings within the container
    In DPM enable EUR
    In DPM on a protection group I created a new recovery point and selected “Only synchronize (available only for file data)”
    Related article on ADSI Edit and DPM -
    http://social.technet.microsoft.com/Forums/en-US/e0258384-8422-408c-8839-2580d616a9ec/edsi-edit-related-to-data-protection-manager?forum=dpmfilebackup
    I hope this helps
    JD Young

  • Most efficient/quickest way to set NTFS permissions in PowerShell

    Hello all,
    Trying to figure out what the most efficient/quickest way to set NTFS permissions via PowerShell is. I am currently using ICACLS but it is taking FOREVER as I can't figure out how to make inheritance work with this command.
    This has prompted me to begin looking at other options for setting NTFS permissions in PowerShell, and I wondered what everyone here likes to use for this task in PowerShell?

    Ah ok. Unfortunately, my ICACLS is taking FOREVER. Here is the code I'm using:
    ICACLS "C:\users\[user]\Desktop\test" /grant:r ("[user]" + ':r') /T /C /Q
    However:
    1.  I can't figure out how to make the inheritance parameter work with ICACLS
    2. If I do make the inheritance parameter work with ICACLS, I still need a way to add the permission to child objects that aren't inheriting.
    Any tips on how to improve performance of ICACLS?
    1. icacls folder /grant GROUPNAME:(OI)(CI)(F)  (i will post corrected code later, this works in CMD but not powershell couse of bracers)
    2.  get-childitem -recurse -force |?{$_.psiscontainer} |%{icacls ....}  (or u can list only folders where inheritance is disabled and apply icacls just on them)
    I think jrv and Mekac answered the first question about inheritance flags. I would just add that you probably don't want to use the /T switch with icacls.exe because that appears to set an explicit entry on all child items (that's probably why it's taking
    so long).
    For your second question, I'd suggest using the Get-Acl cmdlet. It throws terminating errors, so I usually wrap it in a try/catch block. Something like this might work if you just wanted the paths to files/folders that aren't inheriting permissions:
    dir $Path -Recurse | ForEach-Object {
    try {
    Get-Acl $_.FullName | where { $_.AreAccessRulesProtected } | ForEach-Object { Convert-Path $_.Path }
    catch {
    Write-Error ("Get-Acl error: {0}" -f $_.Exception.Message)
    return
    If you're looking for speed/performance, you don't want to just use the PowerShell Access Control (PAC) module that Mike linked to above by itself. It's implemented entirely in PowerShell, so it's incredibly slow right now (unless you use it along with Get-Acl
    / see below for an example). I'm slowly working on creating a compiled version that is much faster, and I think I'm pretty close to having something that I can put in the gallery.
    Since I wasn't sure which command would give you the best results, I used Measure-Command to test a few different ones. Each of the following four commands should do the exact same thing. Here are my results (note that I just ran the commands a few times
    and averaged the results on a test system; this wasn't very rigorous testing):
    # Make sure that this folder and user/group exist:
    $Path = "D:\TestFolder"
    $Principal = "TestUser"
    # Native PowerShell/.NET -- Took about 15 ms
    $Acl = Get-Acl $Path
    $Acl.AddAccessRule((New-Object System.Security.AccessControl.FileSystemAccessRule(
    $Principal,
    "Read", # [System.Security.AccessControl.FileSystemRights]
    "ContainerInherit, ObjectInherit", # [System.Security.AccessControl.InheritanceFlags]
    "None", # [System.Security.AccessControl.PropagationFlags]
    "Allow" # [System.Security.AccessControl.AccessControlType]
    (Get-Item $Path).SetAccessControl($Acl)
    # PAC Module 3.0 w/ PowerShell/.NET commands -- Took about 35 ms
    $Acl = Get-Acl $Path | Add-AccessControlEntry -Principal $Principal -FolderRights Read -PassThru
    (Get-Item $Path).SetAccessControl($Acl)
    # icacls.exe -- Took about 40ms
    icacls.exe $Path /grant "${Principal}:(OI)(CI)(R)"
    # PAC Module 3.0 w/o Get-Acl -- Took about 350 ms
    Add-AccessControlEntry -Path $Path -Principal $Principal -FolderRights Read -Force
    Unless I messed something up, it looks like the native PowerShell/.NET commands are faster than icacls.exe, at least for modifying a single folder's DACL.

  • DPM 2012 Failed to update permissions used in end-user recovery

    Hello everyone,
    I'm going to try the clearest way possible to describe the problem.
    Our test server is Windows Server 2012 with DPM 2012 SP1 CU2 (BKP-SRV01) with a Remote SQL server 2012 (PBASC)
    I protected a share folder on a DC on Windows Server 2008 R2 (PAD)
    When I activate End-User Recovery I get a warning in the monitor tab that say this
    Failed to update permissions used for end-user recovery on pad. Permissions update failed for the following reason: (ID 3123)
    DPM is unable to enumerate contents in pad_PartageTest on the protected computer BKP-SRV01. Recycle Bin, System Volume Information folder, non-NTFS volumes, DFS links, CDs, Quorum Disk (for cluster) and other removable media cannot be protected. (ID 38 Details:
    the end user recovery is working, but i do not know if it affect other things. I also get that message when i try to browse on the DPM server when creating a protection group
    When I go see the DPM Server / File and Storage Services / Shares on Server Manager i get  "Failed to retrieve folder permission" in the properties of the Protected server share.
    I tried to search for almost 2 days without finding anything about that particular issue.
    Is there a way (clean way) to fix the issue?
    Thanks in advance for the help!

    Closing for housekeeping.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Mike J. [MSFT] This
    posting is provided "AS IS" with no warranties, and confers no rights.
    That's not very helpful. I've got the same issue :(
    Comes up for servers where a protection group related to it errors out (recovery point failure usually).

  • Renaming folder resets NTFS permissions

    Hi
    I have installed a new file server, running Server 2012 R2. I have created a shared folder and set the NTFS permissions. I then renamed the folder and noticed that the NTFS permissions had ben removed and reset.
    I have never seen this behavior before, and I find it a bit worrying???
    Lasse
    /Lasse

    Hi Amy
    The steps I initially did:
    1. Create folder in the root of D:
    2. Disabled inheritance
    3. Added the necessary permissions (The user I use is a domain admin, and is also added)
    4. Shared the folder to Everyone with full control
    5. Right click on the shared folder and selected rename and gave the folder a different name
    6. Vupti dupti, the permissions has changed to the following:
    SYSTEM
    MY USERNAME
    Administrators (LocalServer\Administrators)
    I have just done the same thing on a different server, and it's the exact same behavior, both servers running Server 2012 R2.
    I have also tested it on a Server 2008 R2, and it gives me the same warning as you and if I press continue the folder is renamed and the permissions has NOT been changed.
    So it seems to be a Server 2012 R2 "issue".
    /Lasse

  • Making NTFS permissions read/write without ability to create/delete folders

    Out at one of our job sites we have a server running Windows Server 2012 R2 that's got a file share accessible to our onsite people. Our project managers have devised a very strict folder structure for this file share, and for auditing purposes they want
    to stick as close to this structure as possible.
    Therefore, although people onsite must have read/write access to create, modify and delete files, they do not want them to be able to create or delete folders. They want them to use the existing folders and not tuck stuff away into folders that no one knows
    exists except the person who created them.
    The closest way I've found to do this is to deselect the advanced permissions 'Create folders / append data' and 'Delete subfolders and files.' This has a few side effects however, the most noticeable being that due to not being able to append data to files,
    certain files (such as CAD drawings) can't be edited by anyone except the person who created them.
    Is there a way using just NTFS permissions to accomplish what the project managers want? And if not, are there any useful third-party utilities that will help us do this?
    Thanks in advance for any assistance.

    Hi,
    I'm not much familiar with AutoCAD- what's the exact behavior which is stopped by the restricted folder permission?
    For example, if AutoCAD will create a folder in editing, we will not have a solution as users needed to create folders so that AutoCAD could run properly. 
    And if AutoCAD works like Office files, that create a temp file for editing, this will be the solution:
    1. Give Domain Admins - Full Control - This folder, subfolders and files.
    This is to allow all admin could access and edit all data.
    2. Give SpecificUsers group (a group contain all normal users) - Full Control without "Change permissions" and "Take Ownership" -
    Files Only.
    This is to give that group most permissions to create, edit and delete files but not Folders.
    3. Give SpecificUsers group another permission:
    Traverse folder
    List FOlder
    Read Attributes
    Read extended attributes
    Create files - this is important. Without this permission you will not able to save Office files. 
    Read permissions.
    Give above permissions to "This Folder, subfolders and files".
    This is to allow users to access all subfolders. 
    If you have any feedback on our support, please send to [email protected]

  • Using the FIM PowerShell Module to Remove a Manager

    Just added a sample for using the FIM PowerShell module to
    Remove a Person's Manager.

    Hello,
    Modify this script as per your requirement. This script will help you to get all broken permission from site list and items.
    http://manditech.wordpress.com/2011/08/05/finding-lists-and-items-with-unique-permissions-broken-inheritance/
    To remove group permission, look at here:
    http://sharepoint.stackexchange.com/questions/70071/need-to-remove-permission-level-from-a-sharepoint-group-using-powershell
    http://stackoverflow.com/questions/2278289/remove-unwanted-user-permissions-from-sharepoint
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • I have hidden unwanted books from the purchased area of the iBooks store, but they're are still appearing on the front page of iOS as cloud downloads, is there a way to remove these from iBooks without using the hide iCloud books button?

    I have hidden unwanted books from the purchased area of the iBooks store, but they're are still appearing on the front page of iOS as cloud downloads, is there a way to remove these from iBooks without using the hide iCloud books button?
    Let me explain a little more. I had downloaded a lot of free books in the past as a trial when iBooks was first released and since then I have decided I no longer want them, because of this I hid them from the purchased section of the iBooks store. The 5 books left are ones I decided to keep as seen in the following picture.
    This is how it appears in iBooks on my mac. There are 4 books downloaded and 1 book that I have decided not to download at this time. I would still like to keep this book available in the cloud incase I want to download it again in the future. You’ll notice that hide iCloud books is not selected, if I wanted to hide the book that I have chosen to keep in the cloud, but have not downloaded yet I could.
    This is exactly how I think this feature should work. If you have hidden a book from your purchases it should not show up in the mac Ibooks app. (I am aware you can never actually delete a purchase, just hide them and that hidden purchases can be restored to your account from within the account management section of the iBooks store).
    The iOS app is working differently for me. Here is a picture of the purchased tab on the iBooks store in iOS Ibooks. Again notice that pictures of Lilly is still yet to be downloaded. This is how I expected it to look.
    If we visit the front page of iOS iBooks the view is very different from what I expected. Here we can see the 4 books I wanted to keep on my device and have downloaded. We can also see the 1 book I wanted to keep, but did not want to store locally on the device and left in iCloud (Pictures of Lilly). However we can also see all the books I had hidden from the purchased section of my iTunes account and which I believe should no-longer be visible, Dracula, frankenstein etc…
    I am aware of the hide iCloud books button within the iOS app, but I did not need to use this to hide the books I had removed from the my purchased section of the iBooks store on the mac, why are they still appearing in iOS?
    I’m still not sure if this is a software glitch or not. This article suggests to me that books can be hidden, but I had already completed these steps.
    https://support.apple.com/en-us/HT201322
    A browse of google also suggests people may have been able to hide past purchases from the front page of iBooks on iOS in the past.
    In case there was an issue with syncing I tried logging in and out of my iTunes account via settings in iOS. Force closing the app, disabling automatic downloads and removing my device from iTunes in the cloud. Syncing with iTunes on the mac did not correct the issue either.
    Interestingly I have the same issue on my iPhone 6 running iOS 8.3 as I do on my iPad mini suggesting that this might be an issue either with my account or with iOS iBooks software in general.
    If there is a way to remove the already hidden iBooks in your account from the front page of iBooks on iOS without using the hide iCloud downloads button? Please help community!

    My apologies for the lack of photos, here is my post again with photos.
    I have hidden unwanted books from the purchased area of the iBooks store, but they're are still appearing on the front page of iOS as cloud downloads, is there a way to remove these from iBooks without using the hide iCloud books button?
    Let me explain a little more. I had downloaded a lot of free books in the past as a trial when iBooks was first released and since then I have decided I no longer want them, because of this I hid them from the purchased section of the iBooks store. The 5 books left are ones I decided to keep as seen in the following picture.
    This is how it appears in iBooks on my mac. There are 4 books downloaded and 1 book that I have decided not to download at this time. I would still like to keep this book available in the cloud incase I want to download it again in the future. You’ll notice that hide iCloud books is not selected, if I wanted to hide the book that I have chosen to keep in the cloud, but have not downloaded yet I could.
    This is exactly how I think this feature should work. If you have hidden a book from your purchases it should not show up in the mac Ibooks app. (I am aware you can never actually delete a purchase, just hide them and that hidden purchases can be restored to your account from within the account management section of the iBooks store).
    The iOS app is working differently for me. Here is a picture of the purchased tab on the iBooks store in iOS Ibooks. Again notice that pictures of Lilly is still yet to be downloaded. This is how I expected it to look.
    If we visit the front page of iOS iBooks the view is very different from what I expected. Here we can see the 4 books I wanted to keep on my device and have downloaded. We can also see the 1 book I wanted to keep, but did not want to store locally on the device and left in iCloud (Pictures of Lilly). However we can also see all the books I had hidden from the purchased section of my iTunes account and which I believe should no-longer be visible, Dracula, frankenstein etc…
    I am aware of the hide iCloud books button within the iOS app, but I did not need to use this to hide the books I had removed from the my purchased section of the iBooks store on the mac, why are they still appearing in iOS?
    I’m still not sure if this is a software glitch or not. This article suggests to me that books can be hidden, but I had already completed these steps.
    https://support.apple.com/en-us/HT201322
    A browse of google also suggests people may have been able to hide past purchases from the front page of iBooks on iOS in the past.
    In case there was an issue with syncing I tried logging in and out of my iTunes account via settings in iOS. Force closing the app, disabling automatic downloads and removing my device from iTunes in the cloud. Syncing with iTunes on the mac did not correct the issue either.
    Interestingly I have the same issue on my iPhone 6 running iOS 8.3 as I do on my iPad mini suggesting that this might be an issue either with my account or with iOS iBooks software in general.
    If there is a way to remove the already hidden iBooks in your account from the front page of iBooks on iOS without using the hide iCloud downloads button? Please help community!
    iPhone 6, iOS 8.3, Also an issue on my iPad mini iOS 8

Maybe you are looking for

  • Error in vednor creation throu PRAA?

    Hi experts, while creating vendor master using transaction code PRAA with reference to employee master data. System throwing below error. "No entry in table T001 for argument 0618" How to rectify the same. In which system problem occurred, whether it

  • How to hold the main thread, till response is received from the server?

    I have a program in which the GUI client(View program in Swings) sends a request to server (Manager program) , and waits for the response from Manager. The method used is waitForResponse() as follows <code> private void waitForResponse() m_blWaitFlag

  • Header text manipulation (VA22)

    Hi, Is there any way we can manipulate header texts in sales documents in runtime, i.e can I fill the header texts through userexits while users use va21 or va22 ? Complete scenario: We have not configured text determination because the there are no

  • Xml tag

    Hello, I'm on Java and I put a xml in a dom. Now I need to check that all "mytag" as a ddiferent "id" value: <xml........................>   <mttag id="one"............./>   <mttag id="two"............./>   <mttag id="one"............./> //--error  

  • Where is the Restore button for iCloud?

    I've safely backed up my iPad to the cloud but don't seem to be able to find the Restore button in case I have to do a restore. Grateful if someone can help. I'm using IOS5 on my iPad 2.