Register
: :
Login
Home
News
Forums
Scripts
User Groups
Resources
About
Forums
Search
Members
Unanswered
Active Topics
Forums
>
Using PowerShell
>
General PowerShell
SetAccessRule Error [System.Object[]]
Last Post 17 Aug 2010 02:14 AM by
Beast1812
. 0 Replies.
Sort:
Oldest First
Most Recent First
Prev
Next
You are not authorized to post a reply.
Author
Messages
Beast1812
New Member
Posts:1
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.
Using PowerShell
--General PowerShell
--Books, Tools, and Videos
--Exchange Server
--Active Directory
--System Center Family
--Non-Microsoft Products
--SharePoint
--SQL Server
--Working with .NET
--Peer Review
--Testing, Testing...
PowerShell Development
--Cmdlet Development
--PSDrive Provider Development
--Hosting the Shell
Looking Ahead
--Using PowerShell v2.0
--Developing for PowerShell v2.0
PowerShellCommunity.org
--Community Announcements and Assistance
--Completely Unrelated
--User Groups
--Community Business
----Suggestion Box
Forums
>
Using PowerShell
>
General PowerShell
Active Forums 4.3
Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 R2