List of users with their email adresses

csvde -f yourfile.csv -r "(&(objectCategory=Person)(objectClass=user))" –l "sAMaccountname,mail"

Delete all thumbs.db

Windows creates in every folder with pictures a thumbs.db file.

Linux doesn’t need them, so here is a simple command to get rid of them.

sudo find /home/user -name Thumbs.db -exec rm {} \;

Remove empty directories

To remove empty directories in a directory structure use the following command :

sudo find /begin/here -type d -empty -delete

Taskkill command

taskkill /f /im notepad.exe

Kills the open notepad task, if open.

taskkill [/s Computer] [/u Domain\User [/p Password]]] [/fi FilterName] [/pid ProcessID]|[/im ImageName] [/f][/t]Continue reading

Create backup file with date of today

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