Table of Contents
Table of Contents |
---|
Technologies
Microsoft Windows Server 2000
Microsoft Windows Server 2003 (R2)
...
- Start Registry Editor (Regedit.exe).
- Locate and then click the following registry subkey:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
- On the Edit menu, point to New, and then click Multi-string Value.
- Right-click the new value, click Rename, type ReservedPorts, and then press ENTER.
- Double-click the ReservedPorts value, type the range of ports that you want to reserve, and then click OK.
Note You must type the range of ports in the following format:
Code Block xxxx-yyyy
- To specify a single port, use the same value for x and y. For example, to specify port 4000, type 4000-4000.
- Warning If you specify the continuous ports separately and if one port is reserved and not used, the next port is not correctly reserved, and it is used.
- Click OK.
- Quit Registry Editor
Microsoft Windows Server 2008 (R2)
Windows Server 2008 R2 Print Logging
- Login to the server
- From Server Manager, expand Diagnostics and Event Viewer
- Expand Applications and Services Logs
- Expand the Microsoft folder, expand the Windows folder
- Expand the PrintServices folder
- Right-click on the Operational Log, and click Enable Log
Disabling UAC via Group Policy
...
- Open an elevated command prompt with domain administrative permissions.
Execute the following command line:
Code Block certreq -submit -attrib "CertificateTemplate: WebServer" visualsvn.req visualsvn.cer
- Choose the appropriate Certification Authority in the dialog box and press the OK button.
- If you have domain administrator access permissions, the issued certificate will be saved in a file named visualsvn.cer.
...
The Registry subkeys for services are located in the following path and can control how services are loaded.
Code Block |
---|
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\<Service name>
|
...
- Note If you have a service that needs to start late in the boot cycle but you do not have a specific service dependency, as explained above, then choose one of the services which startup last as the data value for the value "Depends on Service". Services commonly selected are Spooler and Messenger.
2008 R2 AD Recycling Bin
You can enable an Active Directory Recycling bin so that you can restore objects Accidentally Deleted. Following a summarized configuration in http://technet.microsoft.com/en-us/library/dd379481(WS.10).aspx#BKMK_2 :
- Click Start, click Administrative Tools, right-click Active Directory Module for Windows PowerShell, and then click Run as administrator
Insert the following Command:
Code Block Enable-ADOptionalFeature -Identity 'CN=Recycle Bin Feature,CN=Optional Features,CN=Directory Service,CN=Windows NT,CN=Services,CN=Configuration,DC=contoso,DC=com' -Scope ForestOrConfigurationSet -Target 'contoso.com'
Now you can restore objects quickly and easily.
- Click Start, click Administrative Tools, right-click Active Directory Module for Windows PowerShell, and then click Run as administrator
Insert the following Command:
Code Block Get-ADObject -Filter {String} -IncludeDeletedObjects | Restore-ADObject
Example:
Code Block Get-ADObject -Filter {displayName -eq "Mary"} -IncludeDeletedObjects | Restore-ADObject
How to restart services that require a restart otherwise
...
note: In 2008 you will have to start procexp.exe with "Administrator rights" in order to kill processes.
...
How to
...
cleanup the winsxs folder
The winsxs folder in c:\windows can be really big, the only way to cleanup is using the microsoft command line tools :
Windows Server 2003 : VSP1CLEAN.exe
Windows Server 2008 : COMPCLN.exe
Windows 7 and Server 2008 R2 : DISM.exe
I will explain the last one here. Start you’re command prompt As Administrator.
Usage:
Code Block | ||||
---|---|---|---|---|
| ||||
dism /online /cleanup-image /spsuperseded |
You can also run these commands :
Code Block | ||||
---|---|---|---|---|
| ||||
Takeown /f %windir%\winsxs\ManifestCache\*
Icacls %windir%\winsxs\ManifestCache\* /GRANT administrators:F
Del /q %windir%\winsxs\ManifestCache\* |