header1   header
header
header Register : : Login header
header
connector   connector
menuleft menuright
submenu   submenu
left
SetAccessRule Error [System.Object[]]
Last Post 17 Aug 2010 02:14 AM by Beast1812. 0 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages Not Resolved
Beast1812User is Offline
New Member
New Member
Posts:1
Avatar

--
17 Aug 2010 02:14 AM
    Hi Guys, First post and very new to powershell. What I am trying is to get ACL from each user on a local machine then apply new everyone settings then run some basic remove-item (after that apply original settings) but I keep running into an error and I do not know why or how to fix it, any help would be fantastic. Im getting this error:- (script attatched) Method invocation failed because [System.Object[]] doesn't contain a method named 'SetAccessRule'. At C:\Users\Martyn\Desktop\cleanall.ps1:38 char:20 + $acl.SetAccessRule <<<< ($accessRule) + CategoryInfo : InvalidOperation: (SetAccessRule:String) [], RuntimeException + FullyQualifiedErrorId : MethodNotFound

    cleanall.ps1

    You are not authorized to post a reply.


    Active Forums 4.3
    right
    footer   footer
    footer Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 R2 footer
    footer   footer