Saturday, March 13, 2010

Backup/Move/Migrate Windows Sharepoint Services 3 Sites

We know there are multiples way to backup an WSS ( Windows Sharepoint Services ) stsadm/Central Administration/BE Agent/System Center DPM, etc.

Out of all of them I prefer to use stsadm. Specially because it allows you me to backup and specific site collection and restore it to any other server in another AD ( Adtive Directory ) or the same AD.

It won't matter if it's a different Hardward or topology.

Here are the steps

Source server you just run

stsadm.exe -o backup -url http://wss-matostech -filename c:\site1.bak -overwrite
stsadm.exe -o backup -url http://wss-matostech/sites/main -filename c:\site2.bak -overwrite


Targe server

You must create two new sites http://new-server/s1-s2, or http://new-server/sites/s1-s2. Not doing this will override any new information of thi server.

stsadm.exe -o restore -url http://new-server/s1 -filename c:\site1.bak -overwrite
stsadm.exe -o restore -url http://new-server/s1 -filename c:\site2.bak -overwrite

Friday, March 12, 2010

Print all documents from a folder to default printer

This script will allow you to print multiple files ( words,Excel, pdf,etc. ) withou having to open one by one.

Create a notepad file and copy and paste this to a file.
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
set shApp = CreateObject("shell.application")
currentPath = CreateObject("Scripting.FileSystemObject").GetAbsolutePathName(".")
set shFolder = shApp.NameSpace( currentPath )
set files = shFolder.Items()
for each files in files

if files.name <> Wscript.ScriptName then
' msgbox("printing "&files.name)
files.invokeverb "&Print"
end if
next
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

Save this notepad named printall.vbs or any other name just make sure you end up with .vbs

Place this new .vbs in folder and it will print everything in the folder ( not sub folders ).

Tuesday, March 9, 2010

After upgrading to Exchange 2007, BES Alert Stop working

BES Alerts fix

Don't ask me why/how/when but add this and see what happend

HKEY_LOCAL_MACHINE\SOFTWARE\Research In Motion\BlackBerry Enterprise Server\BESAlert.

DWORD value - MxDisabled=1