Custom STSADM Command - reghost

In my previous post I talked about listing unghosted files on a page but wouldn't it be nice to also reset those ghosted files right from STSADM? It turns out it is pretty easy to create that custom STSADM command as well:

The magic is in the RevertContentStream() method of the SPFile class. You can download a copy of the custom STSADM reghost class here.


Posted 05-10-2007 8:41 AM by Raymond Mitchell

Add a Comment

(required)  
(optional)
(required)  
Remember Me?
Inetium, LLC. Disclaimer