SharePoint 2010: “Your client does not support opening this list with windows explorer”


We want to open the document library in explorer view, but somehow it’s popping up with the message “Your client does not support opening this list with windows explorer”?


  1. Update your windows with all the latest updates
  2. Use 32 bits IE, because it’s the featured for this browser
  3. If your using windows server 2008, enabled “Desktop Experience” feature
  4. If you don’t want to update with all the latest update, try download Software Update for Web Folder (KB907306) from
  5. Make sure you SharePoint site is added as “trusted site

PowerShell: How to read CSV files

Let’s say if we got a spreadsheet like the following

Column 1 Column 2 Column n

$filePath = “c:\path\file.csv”

$csv = Import-Csv $filePath

#we can loop through each row by using the foreach statment

foreach($row in $csv) {

#To access the column value, we could use the following

$row.”Column 1″


SharePoint 2010 and PowerShell: How to copy files from document library to another document library in the same site collection?


We want to copy item to another document library for archive or some other purpose like added extra column/information for searching, etc.

We want to get this achieved by using PowerShell.


$fromWeb = Get-SPWeb “http://….”
$libFile = $fromWeb.GetFile(“http://…/item.docx”)
$folder = $web.GetFolder(“Target Document Library”)
#Copy the file into the document library using file stream
$f = $folder.Files.Add($File.FileName, $libFile.OpenBinary(), $overwrite)
#Copy across the existing data
$item = $f.Item
$item[“Modified”] = $libFile.TimeLastModified.ToLocalTime()
$item[“Created”] = $libFile.TimeCreated.ToLocalTime()
$item[“Author”] = $libFile.Author
$item[“Modified By”] = $libFile.ModifiedBy

#To overwrite the property


SharePoint 2010 & Powershell: GetFile returns different date time than the web server


When we trying to retrieve item from PowerShell, when we tried to see the created and modified time of the item, it look different to what shown in the list item view in the SharePoint UI?


Why is it returning different time?


In PowerShell, when you try to get the file like the following:

$web = Get-SPWeb “http://…”

$file = $web.GetFile(“http://…/file.docx”)  or foreach($file in $web.GetFolder(“folder name”).files) …

When we try to access the file “TimeLastModified” or “TimeCreated” property, it will return you a date time that is different than what you see in the list item UI?

Because it is returning the time adjusted in summer time format.


By using ToLocalTime() solves the problem, it will return time with adjusted time to our server time, like the following:

$file.TimeLastModified.ToLocalTime() and $file.TimeCreated.ToLocalTime()


SharePoint 2010: Site Definition Failed to instantiate file “default.master” from module “DefaultMasterPage”

Why this happen is because user modified the Template Name in the webtemp_SiteDefinitionName.xml to something else that isn’t matching the package get deploy under ../14/Template/SiteTemplate/SiteDefinitionName 


<Tempate Name=”SiteDefinitionName” ID=”10000″>



<Tempate Name=”CustomSiteDefinitionName” ID=”10000″>


The SiteDefinitionName in the template name must be the exactly same as what will get deployed to the site template folder