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

Scenario

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”?

Solution

  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 http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=15123
  5. Make sure you SharePoint site is added as “trusted site
Advertisements

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

Scenario

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.

Solution

$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
$item.UpdateOverwriteVersion()
$fromWeb.Dispose()

 

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

Scenario

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?

Why is it returning different time?

Because?

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.

Solution

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 

Right

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

</Template>

Wrong

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

</Template>

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