tag:blogger.com,1999:blog-8755729291410145887.post2834325478597192713..comments2023-03-24T03:25:37.155-05:00Comments on Paul Kotlyar's .NET Adventures: "The SPPersistedObject, XXXXXXXXXXX, could not be updated because the current user is not a Farm Administrator" craziness in Sharepoint 2010Paul Kotlyarhttp://www.blogger.com/profile/04195795078140552910noreply@blogger.comBlogger24125tag:blogger.com,1999:blog-8755729291410145887.post-7061643037604610122015-05-18T03:28:19.631-05:002015-05-18T03:28:19.631-05:00Could you please post the script on the page itsel...Could you please post the script on the page itself.<br />I am unable to view attachment.Viveknoreply@blogger.comtag:blogger.com,1999:blog-8755729291410145887.post-53723858563594359112015-03-17T07:13:18.269-05:002015-03-17T07:13:18.269-05:00function Set-RemoteAdministratorAccessDenied-False...function Set-RemoteAdministratorAccessDenied-False()<br />{<br /> [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") > $null<br /> [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Administration") > $null<br /><br /> # get content web service<br /> $contentService = [Microsoft.SharePoint.Administration.SPWebService]::ContentService<br /> # turn off remote administration security<br /> $contentService.RemoteAdministratorAccessDenied = $false<br /> $contentService.Update() <br />}<br /><br />Set-RemoteAdministratorAccessDenied-FalseAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-8755729291410145887.post-27363810775457106622015-02-05T04:15:49.343-06:002015-02-05T04:15:49.343-06:00KB article can be found here that adresses the iss...KB article can be found here that adresses the issue: http://support.microsoft.com/kb/2564009?wa=wsignin1.0Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8755729291410145887.post-58818327176836298922015-02-05T04:09:17.477-06:002015-02-05T04:09:17.477-06:00The link is broken. It's supposed to be http:/...The link is broken. It's supposed to be http://cid-3d1aa7b9ba4b05fd.office.live.com/embedicon.aspx/Public/Set-RemoteAdministratorAccessDenied-False.ps1.<br /><br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8755729291410145887.post-62058431656922168552015-01-27T05:40:32.104-06:002015-01-27T05:40:32.104-06:00where is the script?where is the script?Anonymoushttps://www.blogger.com/profile/03391786623063916350noreply@blogger.comtag:blogger.com,1999:blog-8755729291410145887.post-21406366246196180942014-10-27T09:32:53.282-05:002014-10-27T09:32:53.282-05:00WHERE IS THE FRIGGIN SCRIPTTT???? BULLSHIT SITE IF...WHERE IS THE FRIGGIN SCRIPTTT???? BULLSHIT SITE IF THE SCRIPT ISNT EVEN HERE - JUST ALL WAFFLE!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8755729291410145887.post-68966907184669224812013-12-04T05:51:40.384-06:002013-12-04T05:51:40.384-06:00where is the script please, I need it asap. Please...where is the script please, I need it asap. Please help.Anonymoushttps://www.blogger.com/profile/09336235523990054074noreply@blogger.comtag:blogger.com,1999:blog-8755729291410145887.post-14997615926580788752013-10-04T14:14:01.714-05:002013-10-04T14:14:01.714-05:00This took care of the problem I was having in a Sh...This took care of the problem I was having in a SharePoint 2010 to SharePoint 2013 scenario as well. Activating a Site Feature was returning that I was not a Farm Administrator even though I was.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8755729291410145887.post-51262872196302320952013-09-11T05:32:17.550-05:002013-09-11T05:32:17.550-05:00where is the script please? where is the script please? Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8755729291410145887.post-34819663579632335952013-07-16T03:31:21.975-05:002013-07-16T03:31:21.975-05:00Thank you so much! After two days of searching and...Thank you so much! After two days of searching and cursing, I used the PowerShell script and it solved my Access Denied problem, when setting the content database to read-only.Unknownhttps://www.blogger.com/profile/08238945100145602807noreply@blogger.comtag:blogger.com,1999:blog-8755729291410145887.post-47236599758686887762012-10-26T08:53:35.809-05:002012-10-26T08:53:35.809-05:00Thank you. This solved our issue.Thank you. This solved our issue.KonManhttps://www.blogger.com/profile/01793475259402795513noreply@blogger.comtag:blogger.com,1999:blog-8755729291410145887.post-30068398828582418592012-10-24T20:15:46.342-05:002012-10-24T20:15:46.342-05:00Thank you! This worked perfectly for the DOC to ...Thank you! This worked perfectly for the DOC to PDF Event Reciever I coded.@SPJeffhttp://www.spjeff.comnoreply@blogger.comtag:blogger.com,1999:blog-8755729291410145887.post-52586168142407794022012-09-10T13:33:12.565-05:002012-09-10T13:33:12.565-05:00Excellent Script.Worked out for me. BUT, I am not ...Excellent Script.Worked out for me. BUT, I am not sure how far it is good to run this on Prod environment. Purpose I used it is for creating site collections with relevant content DBs, and we get "access denied" for using API, this will definitely unblock the road. Thankx for this script :).Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8755729291410145887.post-63390388196026873442012-02-27T06:40:51.239-06:002012-02-27T06:40:51.239-06:00Thanks! I needed to perform 2 extra steps:
- Make ...Thanks! I needed to perform 2 extra steps:<br />- Make sure the application pool user of your web application has db_owner right on the config database<br />- I had to redeploy the WSP. (maybe an app pool recycle was sufficient)Christophe DKnoreply@blogger.comtag:blogger.com,1999:blog-8755729291410145887.post-23553624456305937422012-01-04T13:28:11.374-06:002012-01-04T13:28:11.374-06:00I <3 you !!!! You resolve my problem :-DI <3 you !!!! You resolve my problem :-DMarcelãohttps://www.blogger.com/profile/00267376925224754160noreply@blogger.comtag:blogger.com,1999:blog-8755729291410145887.post-47736563223548885712011-08-15T13:21:35.130-05:002011-08-15T13:21:35.130-05:00Hello Paul... great post thanks! I am having an is...Hello Paul... great post thanks! I am having an issue that may fit this solution or may not... we have set up our DEV and PROD environments exactly the same besides the UAC level (Prod is tighter)... we are now seeing our workflow failing on "item level permission change" only in PROD! <br />any tips??Simonenoreply@blogger.comtag:blogger.com,1999:blog-8755729291410145887.post-18766025889383521062011-08-14T23:47:45.246-05:002011-08-14T23:47:45.246-05:00IM STILL THE CHEIF OF IMMERMAN SEAL INDUSTRIES NO ...IM STILL THE CHEIF OF IMMERMAN SEAL INDUSTRIES NO MATTER HOW MUCH U HACKERS STOLENelvisinmihttps://www.blogger.com/profile/18320688895410153046noreply@blogger.comtag:blogger.com,1999:blog-8755729291410145887.post-39890956378692713612011-07-27T12:15:10.969-05:002011-07-27T12:15:10.969-05:00I was scracthing my head for last two days.. Final...I was scracthing my head for last two days.. Finaly one of our developer found this URL and fixed the issue..<br /><br />Thanks a lot..Seenunoreply@blogger.comtag:blogger.com,1999:blog-8755729291410145887.post-48080284193687708202011-06-29T02:41:38.869-05:002011-06-29T02:41:38.869-05:00Excellent script - Solved my problem completely.Excellent script - Solved my problem completely.Matt Moriartynoreply@blogger.comtag:blogger.com,1999:blog-8755729291410145887.post-71412680690305382882011-05-23T18:33:52.328-05:002011-05-23T18:33:52.328-05:00Great script. Worked like a charm.Great script. Worked like a charm.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8755729291410145887.post-51767947919448704042010-11-16T15:46:36.166-06:002010-11-16T15:46:36.166-06:00The script I used is attached to this post, WHERE ...The script I used is attached to this post, WHERE IS IT please ?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8755729291410145887.post-31120044341050750772010-11-11T17:07:16.160-06:002010-11-11T17:07:16.160-06:00I am building a web service that creates site coll...I am building a web service that creates site collections and sets up an OfficialFileHosts on the SPWebApplication. I was getting the "Access Denied" error until I ran this script. Thanks for the help!<br /><br />Mike S.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8755729291410145887.post-2644837397795500962010-06-18T13:24:17.591-05:002010-06-18T13:24:17.591-05:00I see it will work if it is run by a PowerShell, s...I see it will work if it is run by a PowerShell, since the runner will be system admin.<br /><br />It worn't work if the API is called from a web application.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8755729291410145887.post-54001109062351342632010-06-18T13:16:02.100-05:002010-06-18T13:16:02.100-05:00Are you sure this works, by reading the code from ...Are you sure this works, by reading the code from reflector, it seems it doesn't work<br /><br />public bool RemoteAdministratorAccessDenied<br />{<br /> get<br /> {<br /> return this.m_RemoteAdministratorAccessDenied;<br /> }<br /> set<br /> {<br /> this.CheckForContentWebService();<br /> if (!base.Farm.CurrentUserIsAdministrator())<br /> {<br /> throw new SecurityException(SPResource.GetString("AccessDenied", new object[0]));<br /> }<br /> this.m_RemoteAdministratorAccessDenied = value;<br /> }<br />}<br /><br />The test of CurrentUserIsAdministrator() calls for<br /><br />public bool CurrentUserIsAdministrator()<br />{<br /> return this.CurrentUserIsAdministrator(false);<br />}<br /><br /> <br />The parameter means: (bool allowContentApplicationAccess)<br /><br />Since it is "false", it means "does not allow content application access".Anonymousnoreply@blogger.com