Redirecting non-www to a www prefix
This old chestnut again.
Create or edit the .htaccess file
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.YOURDOMAIN\.COM$ [NC]
RewriteRule ^(.*)$ http://www.YOURDOMAIN.COM/$1 [R=301,L][Snippet] Event ID 1056 Source Dhcp Server
Got the error
The DHCP service has detected that it is running on a DC and has no credentials configured for use with Dynamic DNS registrations initiated by the DHCP service. This is not a recommended security configuration. Credentials for Dynamic DNS registrations may be configured using the command line "netsh dhcp server set dnscredentials"
It suggests we use netsh dhcp server set dnscredentials. What it doesn't tell us is the full command, so here it is,
netsh dhcp server set dnscredentials <USERNAME> <DOMAIN> <PASSWORD>
Event ID 10015 Source DCOM
Got a locked down Active Directory? Or just a messy one? Getting
The machine wide limit settings do not grant Remote Launch permission for the COM Server application with CLSID {5A5AA0AA-1DEB-4683-96B0-B43301E83971}
errors?
Then read on!
Can’t install the Office Genuine Advantage Notifications (KB949810) update?
Do you get
"Installation Failure: Windows failed to install the following update with error 0x80070643: Office Genuine Advantage Notifications (KB949810)."
Simple. Start the Task Scheduler service.
[Snippet] Manually reset a Wordpress password
Wordpress stores user passwords in MD5 checksums, so using your SQL admin tool of choice you can easily reset it.
UPDATE `wp_users` SET `user_pass` = MD5('NEW PASSWORD') WHERE `wp_users`.`user_login` = "THE USER" LIMIT 1Synchronizing time on a Windows 2003 domain controller
In a Windows domain environment its incredibly important that all clients & servers share the correct time. Its also important that this time is correct, otherwise your users go home early.
Here we'll set your domain controller to get the time via NTP. Windows clients will then automatically collect the right time from their domain controller.
The currently selected KDC certificate was once valid…
Description:The currently selected KDC certificate was once valid, but now is invalid and no suitable replacement was found. Smartcard logon may not function correctly if this problem is not remedied. Have the system administrator check on the state of the domain’s public key infrastructure. The chain status is in the error data.
I had this error on a domain controller that shouldn't have this error. Theres pretty much no documentation for KDC or certificate debugging.
How can I specify the Global Catalog (GC) that I want my Microsoft Exchange Server system to use?
If you want to force the Exchange server to use a specific GC instead of letting the server automatically choose a GC, you can perform the following steps:
- Start the Microsoft Management Console (MMC) Exchange System Management (ESM) snap-in (Start, Programs, Microsoft Exchange, System Manager).
- In the treeview pane, navigate to Administrative Groups, <administrative group name>, Servers.
- Right-click the server and select Properties.
- Select the Directory Access tab.
- From the Show drop-down list, select Global Catalog Servers.
- Clear the "Automatically discover servers" check box.
- Click Yes in the confirmation box.
- Click Add.
- Enter the name of the GC to use.
- Click OK.
Microsoft recommends that you don't manually set the GC that Exchange Server uses; therefore, you should manually set the GC only when it's absolutely necessary.

