Pages

mandag 28. juli 2014

Outlook Reply / Forward prefixes

Email clients can’t cope as well with a mix of prefixes from across the globe. It’s best to stick with RE and FW as a courtesy to other people. Outlook lets non-English language users do that with two setting buried in the options.
  • Use English for message flag labels
  • Use English for message headers on replies and forwards [and for forward notifications]

OUTLOOK 2013 AND OUTLOOK 2010
Go to File | Options | Advanced | International Options


OUTLOOK 2007 AND BEFORE
Go to Tools | Options | Mail Format | International Options

søndag 27. juli 2014

Windows: Time Synchronization

Hyper-V Integration Services synchronizes the time of virtual machines with the physical host because virtual machines tend to experience time drift over time. Never disable Hyper-V Time Synchronization, it's important when the virtual machine boots and resumes saved states.

Benjamin Armstrong talk about this topic in more detail in his Virtualization Blog. Here are some of the PowerShell commands I use to configure Time Synchronization in a domain.

# If the computer is a virtual machine running in Hyper-V, disable aspects of time synchronization from Hyper-V with:
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\VMICTimeProvider' -Name 'Enabled' -Value 0

# For the Domain Controller holding the PDC emulator role (chech with netdom /query fsmo), configure a remote time source:
& C:\Windows\System32\w32tm.exe /config /manualpeerlist:"0.no.pool.ntp.org,0×1 1.no.pool.ntp.org,0×1 3.no.pool.ntp.org,0×1 4.no.pool.ntp.org,0×1" /syncfromflags:manual /reliable:YES /update
Restart-Service w32time
& C:\Windows\System32\w32tm.exe /resync /rediscover

For member servers, configure synchronization with the domain:
& C:\Windows\System32\w32tm.exe /config /syncfromflags:DOMHIER /update
Restart-Service w32time
& C:\Windows\System32\w32tm.exe /resync /rediscover /force

lørdag 26. juli 2014

DPM: Configure a Backup Network

Let's say I have a production network, contoso.com with subnet 192.168.0.0/24. I already have two domain controllers (dc1 and dc2), a backup server (dpm1) and other member servers. The domain controllers and DPM servers are running Windows Server 2012 R2. I wan't to add a backup network. This is how I would do it:

First I add a network interface to each server. This will be used by the backup network. I name the interface BackupNet on each server.

The backup network will use subnet 192.168.10.0/24.

I create a DNS Zone, backup.contoso.com, using Powershell:
Add-DnsServerPrimaryZone -Name backup.contoso.com -ReplicationScope 'Domain' -PassThru -DynamicUpdate Secure -ComputerName dc1

On each DNS Server I open DNS Properties > Interfaces and verify that the backup interface is selected.

I configure backup interface on all servers using PowerShell:
Invoke-Command -ComputerName dc1 -ScriptBlock {Set-DnsClientServerAddress -InterfaceAlias 'BackupNet' -ServerAddresses ('192.168.10.5','127.0.0.1')}
Invoke-Command -ComputerName dc2 -ScriptBlock {Set-DnsClientServerAddress -InterfaceAlias 'BackupNet' -ServerAddresses ('192.168.10.6','127.0.0.1')}
Invoke-Command -ComputerName dpm1 -ScriptBlock {Set-DnsClientServerAddress -InterfaceAlias 'BackupNet' -ServerAddresses ('192.168.10.5','192.168.10.6')}
Invoke-Command -ComputerName dc1,dc2,dpm1 -ScriptBlock {Set-DnsClient –InterfaceAlias 'BackupNet' -ConnectionSpecificSuffix 'backup.contoso.com' –RegisterThisConnectionsAddress $true –UseSuffixWhenRegistering $true}
Invoke-Command -ComputerName dc1,dc2,dpm1 -ScriptBlock {ipconfig /registerdns}

Then I add Backup and Production Networks to DPM:
Add-DPMBackupNetworkAddress –DPMServerName dpm01.contoso.com –Address 192.168.10.0/24 –SequenceNumber 1
Add-DPMBackupNetworkAddress –DPMServerName dpm01.contoso.com –Address 192.168.0.0/24 –SequenceNumber 2
Restart-Service DPM