I am trying to do the following but I have some exceptions, I dont know whats wrong with this.
$site = Get-SPSite -Identity "http://url/workspaces/TS1/" $list = $site.RootWeb.GetList("/workspaces/TS1/Lists/WorkspaceAccessRights")
I tried this simple 1. and it says
Exception calling "GetList" with "1" argument(s): "Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))" At line:15 char:30 + $list = $site.RootWeb.GetList <<<< ("/workspaces/TS1/Lists/WorkspaceAccessRights/") + CategoryInfo : NotSpecified: (:) , MethodInvocationException + FullyQualifiedErrorId : DotNetMethodException