SharePoint 2010 | Powershell | Download all files in document library to Network Share (File share)

I was recently working on a client requirement to download all the content of a list/document library to a file share. This script should ensure the folder structure of the document library to be replicated in the file share. ######################## Start Variables ################################################ Varun’s Script######################$destination = “C:\\tools\\Folder”$webUrl = “<Url of the specific site>”$listUrl = “<Url…

18

SharePoint 2010 | Get Solution File Name from Feature activated

I was working on a custom solution with a client. This project has a high level of custom auditing, which means any custom feature being activated or deactivated, any solution being added/retracted etc. is logged. As part of the logging they also log the name of the solution file in question. They have multiple Farm…

0

SharePoint 2010 | Clear SharePoint Cache

SharePoint caches the content (Could be images, etc.) in two of its system folders. The cache is composed of these 2 folders: %APPDATA%\Microsoft\Web Server Extensions\Cache %USERPROFILE%\AppData\Local\Microsoft\WebsiteCache In order to clear the cache, simply delete the files in these two folders. I even created a batch file for doing this, which allows you to automate this…

3

SharePoint 2010 | Copy text to clipboard

I was recently working on a web part which had to copy the data in the datagrid to clip board. Servers side code tends to get messy and I found an easy way to copy to client’s clip board using Javascript. <Javascript code> The javascript for copying to clip board is     function copy_to_clipboard(text)     …

1

Achievements in Visual Studio 2010

What if Visual Studio supported achievements, just like games on Steam, Xbox or PS3? Bragging to your coworkers about which one you’ve just unlocked, imagine that! Now that has become a reality. MSDN has released an extension for Visual Studio 2010, which allows you to have achievements.  Some of the achievements are really hilarious: You…

0

Search Center | List of site and site collections | SharePoint 2010

I found an easy way to get the list of Sites and site collections just by using search. (No Code or customization required.) Thanks Corey Roth’s article – http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2012/01/13/how-to-query-site-and-site-collections-using-sharepoint-search.aspx?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+CoreysDotNetTipOfTheDay+%28Corey+Roth+-+DotNetMafia.com%29 To achieve this we make use of the managed property : ContentClass. Simply put the text – contentclass:”STS_Web” in the search box and hit enter. You…

4

Visual Studio 2011 & SharePoint 2010

Just got my hands on Visual Studio 2011 Developer preview and it looks damn good. The SharePoint developer tools in Visual Studio 11 Developer Preview contain new designers and templates to facilitate SharePoint development, as well as new options for deploying and testing SharePoint sites. See the following descriptions to learn about these and other…

5

SharePoint 2010 | AD Account gets locked down

I must say that SharePoint 2010 has been absolutely awesome in integrating all my office client applications – WorkSpaces, One Note files, etc. I typically have my one note files uploaded on sharepoint which I can open anywhere – Office, client location ,etc and work and use the files. Recently one of my clients had…

0