Installing SCOM 2012 agent on a non-domain workgroup Windows Server Core computer using the command line

The following are the list of steps that I took to install the Operations Manager (OpsMgr) 2012 agent on a workgroup based Windows Server Core 2008 R2 computer using certificates and without using a gateway server. Sometimes you might have a few servers in a workgroup e.g. DMZ that need to be monitored, so the below are the exact steps I took with the help of this article from Microsoft In fact, these steps for the certificate template, requesting certificates, adding certificates to the local computer store and using the momcertimport tool are all exactly the same for adding…

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…