Thursday, May 28, 2015

Customize the CM2012 console

This is how you can customize the CM2012 console.
Suppose you want the Description field to be always next to the DP name, in Administration workspace, Distribution points node.

Go to %ConfigMgrInstallPath%\AdminConsole\Bin.  Locate and open AdminUI.ConsoleBuilder.exe

Click on File > Open > ConnectedConsole
  

 The ConnectedConsole view will load.  Notice at the bottom left corner, you will see "text" representation of the ConfigMgr 2012 console workspaces.

 

On Left handside, click on Overview/Distribution Points

On Right side, click on Views tab, Edit.
 

Click Configure










In the Property Display Items section, under Class Properties, you can moved the fields up or down as you want.







Close the reopen you CM2012 Console.

Install Active Directory tools on Windows 7

First download RSAT for Windows 7.

The Remote Server Administration Tools (RSAT) for Windows 7 can be downloaded from Microsoft's web site:
https://www.microsoft.com/en-us/download/details.aspx?id=7887


After downloading and installing the tool on your Windows 7 computer, use the Turn Windows features on or off function from Control Panel, to enable AD management tools.

  • From the Control Panel, click on Programs.
  • Under Programs and Features, select Turn Windows features on or off.
  • Under Remote Server Administration Tools > Role Administration Tools, select AD DS and AD LDS Tools.

Friday, January 30, 2015

Install windows roles/features through Powershell in 2012 server

Run the below Powershell commands to list and install roles/features:

 Get-WindowsFeature












X means Installed.

From the Name, you can install a feature:

e.g. Install-WindowsFeature  FS-BrancCache

For some roles, you might need to provide the Windows installation folder.
(usually C:\Windows\WinSxS).

Thursday, January 29, 2015

Install CM2012 DP role through Powershell

In CM2012, there is a lot of support to automate tasks using Powershell. One of the tasks is installing CM2012 Distribution Points.

Here are the commands:

Install Site System:


New-CMSiteSystemServer –SiteCode 'XXXX' –UseSiteServerAccount –ServerName '<FQDN>'


Check that SiteSystem has been installed in the console of Primary CAS.
 


Once the site system has been added to the Configuration Manager environment we can then use Add-CMDistributionPoint to add the DP role. Wait for Site System to appear, before installing DP role!

Add-CMDistributionPoint –SiteCode 'XXXX' –SiteSystemServerName '<FQDN>' –CertificateExpirationTimeUtc '1/1/2113 1:00 AM' –MinimumFreeSpaceMB 10240 –InstallInternetServer
 
Set-CMDistributionPoint –SiteCode 'XXXX' –SiteSystemServerName '<FQDN>' -AllowPreStaging 1 –EnablePxeSupport 1 –AllowRespondIncomingPxeRequest 1 -EnableUnknownComputerSupport 1 -EnableMulticast 1 -StartUdpPort 64001 -EndUdpPort 65000  -EnableValidateContent 1 -EnablePullDP 1
 
Set-CMDistributionPoint –SiteCode 'XXXX' –SiteSystemServerName '<FQDN>'  -ComputersUsePxePassword (convertto-securestring -string 'Your PXE password' -force -asplaintext)

You can check sitecomp.log for DP role installation.