Skip Ribbon Commands
Skip to main content
www.iwkid.com > Blog > Posts > Just for fun – Disabling SharePoint Designer access WITH SharePoint Designer
April 15
Just for fun – Disabling SharePoint Designer access WITH SharePoint Designer

While doing the initial R&D for blocking SharePoint Designer access, Brian and I discovered something else that is kind of fun.  Since we now know that you can block SPD access by setting a value in an SPWeb’s PropertyBag, and we also know how to modify PropertyBag variables in SPD, the next logical step is to use SharePoint Designer to DISABLE access to a web using SharePoint Designer.


* Again, this is just for fun.  Once you disable access via SPD you obviously can’t get in and undo your change.  There also isn’t an out of the box way to modify PropertyBag values through SharePoint’s Web UI so you’d be stuck having to use PowerShell or some other method to undo this silly change. *

 

  1. Open your Web in SharePoint Designer
  2. Choose Site Settings from the Site menu:

    image
  3. On the Parameters tab, add a new parameter named “vti_disablewebdesignfeatures2” with a value of “wdfopensite”.

    image
  4. Close SharePoint Designer (you must close all the way out, the Open Service method’s response is cached by SPD and won’t change until you come restart SPD)
  5. Attempt to open the site again:

    image

 

And there you have it!  :-)

Comments

Enable access for Site through SPD

I have disabled the site from opening in sharepoint. Now how to enable the site as default to be opened in SPD. Is there any solution.
 on 5/4/2009 1:22 AM

How to reverse

I followed uour instructions, it worked nicely.
Now, I would like to reverse, but, I cannot. How can I remove this setting?
 on 7/27/2009 11:49 AM