- August 7, 2016 at 5:32 pm #49508
Please let me know whether powershell or python, which will be better to set permissions of groups and users on copy folders.
I have copied folders from once location E:\IT_softwares to other location \\nas01\migration\IT_softwares
this powershell ACl command is giving errors.
Get-Acl E:\IT_softwares | Set-Acl \\nas01\migration\IT_softwares -confirm command gives error.
Set-Acl : Attempted to perform an unauthorized operation.
At line:1 char:94
+ Get-Acl E:\IT_Softwares\3DsMax2015\VirtualCloneDrive\SetupVirtualCloneDrive5470.exe | Set-Acl <<<< -path \\nasinnd01.ali.local\Migration_Test\Test\3DsMax2015\VirtualCloneDrive\ SetupVirtualCloneDrive5470.exe -confirm + CategoryInfo : PermissionDenied: (\\nasinnd01.ali...neDrive5470.exe:String) [Set-Acl], UnauthorizedAccessException + FullyQualifiedErrorId : System.UnauthorizedAccessException,Microsoft.PowerShell.Commands.SetAclCommanddoes robocopy or emcopy has any features that can copy same permissions from one location to other ??thanks everyone for reading and answering my post.August 8, 2016 at 3:55 am #49527
AnthonyParticipantAugust 8, 2016 at 10:47 am #49541
i was also considering icacls commands, i am testing this icacls and then i will post my conclusion.
Request any member, who reads my post, please suggest any more ideas.
You must be logged in to reply to this topic.