Archive

Archive for August, 2011

Restoring and upgrading the Content on the SharePoint 2010 Farm


http://microsoft-techies.blogspot.com/2014/07/restoring-and-upgrading-content-on.html

Advertisements
Categories: Uncategorized

Convert MOSS 2007 .stp files into SharePoint 2010 .stp files


$RootDir = “C:\Users\sp2010at\Desktop\New folder\List Template Moss 2007\”
#Ensure it has a trailing backslash (‘\’)
Set-Alias sz (“C:\Program Files\7-Zip\7z.exe”)
Set-Alias mcab (“C:\windows\system32\makecab.exe”)

# Get list of all STP files
$InputDir = get-childitem ($RootDir + “input”)

foreach ($item in $InputDir | where {$_.extension -eq “.stp”})
{
$targetFile = ($RootDir + “input\” +$item.name)
$extractPath = $targetFile.substring(0,$targetFile.length-4)

“Processing: ” + $targetFile

#Create directory
New-Item $extractPath -type directory

#Expand STP File
$extractPathOption = (“-o” + $extractPath)
sz x $extractPathOption $targetFile

#Replace files
$manifestFileIn = $extractPath + “\manifest.xml”
$manifestFileOut = $extractPath + “\manifestOut.xml”

(Get-Content $manifestFileIn | Foreach-Object {$_ -replace “3”, “4”} | Set-Content $manifestFileOut)

#Cleanup files
Remove-Item $manifestFileIn
Rename-Item $manifestFileOut $manifestFileIn

#Recompress (MakeCab)
$itemNoExtension = $item.name.substring(0,$item.name.length-4)
$CabFileName = ($RootDir + “\output\” + $itemNoExtension + “.cab”)
$NewSTPFileName = ($RootDir + “\output\” + $itemNoExtension + “.stp”)
mcab $manifestFileIn $CabFileName

#Rename cab, and move to output folder
Rename-Item $CabFileName $NewSTPFileName
Remove-Item $manifestFileIn
Remove-Item $extractPath

#Move original file to processed folder
Move-Item $targetFile ($RootDir + ‘processed’)
}

Categories: Uncategorized

How to Get list of all STP files


$InputDir = get-childitem ($RootDir + “input”)

foreach ($item in $InputDir | where {$_.extension -eq “.stp”})
{
$targetFile = ($RootDir + “input\” +$item.name)
$extractPath = $targetFile.substring(0,$targetFile.length-4)

“Processing: ” + $targetFile

#Create directory
New-Item $extractPath -type directory

#Expand STP File
$extractPathOption = (“-o” + $extractPath)
sz x $extractPathOption $targetFile

#Replace files
$manifestFileIn = $extractPath + “\manifest.xml”
$manifestFileOut = $extractPath + “\manifestOut.xml”

(Get-Content $manifestFileIn | Foreach-Object {$_ -replace “3”, “4”} | Set-Content $manifestFileOut)

#Cleanup files
Remove-Item $manifestFileIn
Rename-Item $manifestFileOut $manifestFileIn

#Recompress (MakeCab)
$itemNoExtension = $item.name.substring(0,$item.name.length-4)
$CabFileName = ($RootDir + “\output\” + $itemNoExtension + “.cab”)
$NewSTPFileName = ($RootDir + “\output\” + $itemNoExtension + “.stp”)
mcab $manifestFileIn $CabFileName

#Rename cab, and move to output folder
Rename-Item $CabFileName $NewSTPFileName
Remove-Item $manifestFileIn
Remove-Item $extractPath

#Move original file to processed folder
Move-Item $targetFile ($RootDir + ‘processed’)
}

Categories: Uncategorized

How to convert an .stp file to a .wsp file

Categories: Uncategorized

Sharepoint Migrate from 2007 to 2010

Categories: Uncategorized

Sharepoint Installation Error.


SharePoint Installation error

SharePoint Installation error

Any one help me how can i solve this?

Categories: Uncategorized

how to turn off Windows 7 Autolock?


Go to Control Panel of your system
Click on -Appearance and Personalization
Click on-Change Screen Saver
Unclick “On resume, display logon screen”.
If you are not able to unclick, just increase the time

Categories: Uncategorized