With the following script you can yoin a workstation to a domain. Copy the script into notepad and save it as an batchfile.
netdom.exe JOIN %COMPUTERNAME% /Domain:corp.local
/UserD:WSimport /PasswordD:*** /OU:”OU=Workstations,DC=corp,DC=local”
Make sure the user you use in the script has administrative rights, so this user can join the workstations into de domain corp.local.
With the default installation of Windows 2008 Server, there will be created a file on the C: drive, called hyberfil.sys. To disable the hibernate function, you can use the following commando in de command prompt.
powercfg -h off
See the differents before, and after.
With the following commando, you can perform an offline defragmentation of the maildatabase. Be sure that you dismount the specific database before you start the commando.
“D:\ExchSvr\Bin\eseutil.exe” /d “E:\SG1MD1\SG1MD1.edb” /t “D:\TEMP\temp_defrag.edb”
The path to the de maildatabase can be different in some environments, so you have to change that path manualy.
E:\temp\temp_defrag.edb is the path and filename for the tempdatabase. This can also changed manualy.
Make sure you dismount the specific mailstore.