Remotely Managing IIS on Windows Server Core 2008 R2

You might get an error when trying to manage a remote IIS server core session using the IIS management console from a remote computer. You might receive the following error message.   Could not connect to the specified computer. Details: Unable to connect to the remote server There are three things that you need to do all on the server core machine running IIS: Run the following command: Dism /online /enable-feature /featurename:IIS-ManagementService Enable Remote Management: Set EnableRemoteManagement to 1 under HKLM\Software\Microsoft\WebManagement\Server Start the Web Management Service as this is set to manual: Net start wmsvc

Installing SCCM 2012 on Windows Server 2008 R2

When installing System Center Configuration Manager 2012, there are a number of prerequisites. Below are my install steps, step by step with notes. Schema Extensions Configuration Manager Active Directory schema extensions are not required for site server installation, but are recommended to fully support the use of all Configuration Manager features. For more information about the advantages of extending the schema extensions, see the Configuration Manager product documentation. Simply map a drive to the \SMSSETUP\BIN\X64 folder of the installation DVD, and run extadsch.exe from the command prompt. The screenshot below shows I mapped the drive as T:\ drive. WSUS SDK…

Windows Server Core Virtual Memory configuration of the Paging File

Configuring the Paging File on Windows Server Core or Hyper-V Server 2008 R2 can be difficult, as this needs to be done via the command prompt. To check the current paging file configuration, check the registry HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management or run the following: wmic pagefile list /format:list Turn off automatic paging files wmic computersystem where name="%computername%" set AutomaticManagedPagefile=False Create a new paging file on a separate drive wmic.exe pagefileset create name="S:\pagefile.sys" Manually configure the new paging file wmic.exe pagefileset where name="S:\\pagefile.sys" set InitialSize=64509,MaximumSize=65000 Delete the default C:\ drive paging file wmic.exe pagefileset where name="C:\\pagefile.sys" delete

Managed Service Accounts

Creating Managed Service Accounts is fairly strait forward – no passwords are required. These steps are for Windows Server 2008 R2. There is one catch, while it will allow you to create a Managed Service Account more than 15 characters, it won’t let you install a Managed Service Account more than 15 characters on servers. Best to keep under 15 characters as a rule of thumb. This is the error that you would get if you tried to install a Managed Service Account on a server – Cannot install service account. Error Message: ‘Unknown error (0xc0000017)’ Also, you cannot use…

Exchange Online breaks AutoDiscover for additional Exchange mailboxes

I was getting an error message on a single physical Windows 7 machine, which was a brand new install of Windows 7 with Office 2010 SP1. Outlook is connecting to Exchange 2010 SP2 which hosts all mailboxes for the company. I was getting this error on the first Outlook setup screen where I enter, name, email address and password: (An encrypted connection to your mail server is not available. Click next to attempt using an unencrypted connection) This error was happening the first time I configured Outlook 2010, right after installation. The Windows 7 machine is not on the domain….

Hyper-V cluster host maintenance, mass live migration of virtual machines

If you have Hyper-V running on Windows Server 2008 R2 in a cluster, there are times when you will need to live migrate all virtual machine guests to another host for scheduled planned maintenance on a specific host. You can live migrate all virtual machines one by one, one after the other from one host to another host by automatically running the following PowerShell script: Import-Module failoverclusters get-cluster "$CL" | Get-Clusternode "$SH" | Get-ClusterGroup | Move-ClusterVirtualMachineRole -node "$DH" As an example: get-cluster "dc-au-hvc-03" | Get-Clusternode "dc-au-hv-12" | Get-ClusterGroup | Move-ClusterVirtualMachineRole -node dc-au-hv-13 If you want to live migrate one specific…

Exchange 2010 Service Pack 2 (SP2) installation issues/problems

When I installed Exchange 2010 SP2 by the GUI, it gave me an error: Setup cannot use domain controller ‘<server>’ because it belongs to Active Directory site ‘<site>’. Setup must use a domain controller in the same site as this computer (<site>). So how do you install Exchange 2010 SP2 forcing the setup to use the correct domain controller in the same site? Simple fix is to kick off the installation from the command line and watch it install from there. setup.com /mode:upgrade /domaincontroller:dcname.contoso.local This works perfectly. Also for any Unified Messaging rolls, I got this error: All the Unified…