CCMEXEC.COM – System Center blog

CCMEXEC.COM – by Jörgen Nilsson

Browsing Posts in System Center Configuration Manager

System Center 2012 Configuration Manager 2012 is now released and that means that the Technet Forums for Configuration Manager 2012 is also live. Be sure to bookmark them!

http://social.technet.microsoft.com/Forums/en-US/category/systemcenter2012configurationmanager

cm2012forums

When it was time to rebuild my labb environment again I decided to write a little .CMD file that helps med in the future. I did it for SCCM 2007 but now there is not that much to configure now that Webdav is not needed anymore, but I did it anyway.
Yes, I could have written it in Powershell but I didn’t I like to keep it simple. The script will install:

  • .NET framework 4
  • Client Push Windows 2008 R2 server OS hotfix pre-req, KB2552033
  • Configure IIS
  • Install WDS, RDC, BITS

You can download .NET Framework 4 : http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=17718

You can download KB2552033 here: http://support.microsoft.com/kb/2552033

Create a cmd file and copy the content below to it and place it in the same directory as the two downloaded files like this:

CM2012_pre

ServerManagerCmd -i Application-Server
ServerManagerCmd -i Web-Server
ServerManagerCmd -i Web-Asp-Net
ServerManagerCmd -i AS-Web-Support
ServerManagerCmd -i AS-TCP-Activation
ServerManagerCMd -i Web-Metabase
ServerManagerCmd -i Web-Mgmt-Compat
ServerManagerCmd -i BITS
ServerManagerCmd -i RDC
ServerManagerCmd -i WDS
ServerManagerCmd -i FS-Fileserver
dotNetFx40_Full_x86_x64.exe /q /norestart
wusa.exe Windows6.1-KB2552033-x64.msu /quiet /norestart

Prereq.cmd content:


ServerManagerCmd -i Application-Server

ServerManagerCmd -i Web-Server

ServerManagerCmd -i Web-Asp-Net

ServerManagerCmd -i AS-Web-Support

ServerManagerCmd -i AS-TCP-Activation

ServerManagerCMd -i Web-Metabase

ServerManagerCmd -i Web-Mgmt-Compat

ServerManagerCmd -i BITS

ServerManagerCmd -i RDC

ServerManagerCmd -i WDS

ServerManagerCmd -i FS-Fileserver

dotNetFx40_Full_x86_x64.exe /q /norestart

wusa.exe Windows6.1-KB2552033-x64.msu /quiet /norestart

If you are going to use Client Push in System Center 2012 Configuration Manager which I at least use many times both for deploying the client and troubleshooting, there is a manual pre-req hotfix that you need to install:

“0×00000044″ Stop error on a computer that is running Windows 7 or Windows Server 2008 R2

http://support.microsoft.com/kb/2552033

It is included in the Technet documentation here: http://technet.microsoft.com/en-us/library/gg712320.aspx

I thought I would post it here as it is easy to miss.

When I answered a Technet forum question I thought I would post this report here as well, the report lists all physical and virtual servers in a collection:

To implement it you need to create a Prompt called @varcollection

here is the SQL query:

select v_R_SYSTEM.Name0 as 'Virtual Servers', @varcollection as Collection
from v_R_SYSTEM inner join V_GS_COMPUTER_SYSTEM on V_GS_COMPUTER_SYSTEM.ResourceID =v_R_SYSTEM.ResourceId inner join V_GS_OPERATING_SYSTEM on V_GS_OPERATING_SYSTEM.ResourceId = v_R_SYSTEM.ResourceId
join v_FullCollectionMembership FCM on FCM.ResourceID =V_GS_COMPUTER_SYSTEM.ResourceID
where V_GS_COMPUTER_SYSTEM.Model0 like '%Virtual%' and V_GS_OPERATING_SYSTEM.Caption0 like '%Server%' and
FCM.CollectionID = @varcollection and v_R_System.Client0= 1
Order by v_R_SYSTEM.Name0
select v_R_SYSTEM.Name0 as 'Physical Servers', @varcollection as Collection
from v_R_SYSTEM inner join V_GS_COMPUTER_SYSTEM on V_GS_COMPUTER_SYSTEM.ResourceID =v_R_SYSTEM.ResourceId inner join V_GS_OPERATING_SYSTEM on V_GS_OPERATING_SYSTEM.ResourceId = v_R_SYSTEM.ResourceId
join v_FullCollectionMembership FCM on FCM.ResourceID =V_GS_COMPUTER_SYSTEM.ResourceID
where V_GS_COMPUTER_SYSTEM.Model0 not like '%Virtual%' and V_GS_OPERATING_SYSTEM.Caption0 like '%Server%' and
FCM.CollectionID = @varcollection and v_R_System.Client0= 1
Order by v_R_SYSTEM.Name0

select v_R_SYSTEM.Name0 as 'Virtual Servers', @varcollection as Collection

from v_R_SYSTEM inner join V_GS_COMPUTER_SYSTEM on V_GS_COMPUTER_SYSTEM.ResourceID =v_R_SYSTEM.ResourceId inner join V_GS_OPERATING_SYSTEM on V_GS_OPERATING_SYSTEM.ResourceId = v_R_SYSTEM.ResourceId

join v_FullCollectionMembership FCM on FCM.ResourceID =V_GS_COMPUTER_SYSTEM.ResourceID

where V_GS_COMPUTER_SYSTEM.Model0 like '%Virtual%' and V_GS_OPERATING_SYSTEM.Caption0 like '%Server%' and

FCM.CollectionID = @varcollection and v_R_System.Client0= 1

Order by v_R_SYSTEM.Name0

select v_R_SYSTEM.Name0 as 'Physical Servers', @varcollection as Collection

from v_R_SYSTEM inner join V_GS_COMPUTER_SYSTEM on V_GS_COMPUTER_SYSTEM.ResourceID =v_R_SYSTEM.ResourceId inner join V_GS_OPERATING_SYSTEM on V_GS_OPERATING_SYSTEM.ResourceId = v_R_SYSTEM.ResourceId

join v_FullCollectionMembership FCM on FCM.ResourceID =V_GS_COMPUTER_SYSTEM.ResourceID

where V_GS_COMPUTER_SYSTEM.Model0 not like '%Virtual%' and V_GS_OPERATING_SYSTEM.Caption0 like '%Server%' and

FCM.CollectionID = @varcollection and v_R_System.Client0= 1

Order by v_R_SYSTEM.Name0

-------------------------------------------

Here is the query for the Collection prompt:


begin

if (@__filterwildcard = '')

select distinct CollectionID, Name from v_Collection order by Name

else

select distinct CollectionID, Name from v_Collection

WHERE CollectionID like @__filterwildcard

order by Name

end

The recording of the System Center Friday Livemeeting we hosted on friday, “System Center 2012 Configuration Manager – Nyheterna”(in Swedish) is now available online. http://youtu.be/8ShzeDY2Qio

Livemeeting

Be sure to check it out.

Hi,

System Center User Group Sweden will host a series of System Center 2012 livemeetings starting today!
With Myself and Stefan Schörling presenting the news in System Center 2012 Configuration Manager(in Swedish) at 15:00.

The details for joining the meeting are posted here: http://www.scug.se/?p=110

Me and Stefan will host to more livemeetings in the System Center Friday series:

System Center Friday – SC12 Configuration Manager design considerations

Friday 30 March 2012 at 10:00

System Center Friday – SC12 Configuration Manager Feature dive

Friday 11 May 10:00

Many more great sessions with Johan Arwidmark, Patrik Sundqvist and Anders Bengtsson will also be part of the System Center Friday series, be sure to check them out!

The complete schedule is posted in the System Center User Group Sweden Facebook group here: http://www.facebook.com/#!/groups/241438124169/

Have  a great System Center Friday!

Anyone experienced the problem when many admins are editing a Task Sequence at the same time in SCCM 2007? The last writer wins which can cause some unexpected results.

In ConfigMgr 2012 where many of the objects now are global data there, is new function that handles this named: “Serialized Editing of Data Objects” (SEDO).

SEDO will lock for instance a Task Sequence, Applications, Boot Images etc. when you edit them, to make sure that only one admin can edit the object at the time. If you are using a CAS an perhaps many primary sites the replication for the SEDO data is prioritized and replicated almost immediately to make sure that there are no objects edited by more than one admin at a time.

So how does this work? In this example I have a single primary site and two admins trying to edit the same Task Sequence. On computer one the administrator opens the Task sequence edit to edit the Deploy Windows 7 x64 task sequence:

Edit_TS1

When I log on with another admin account and launch the console and try the edit the same Task Sequence, the following message appears:

Edit_TS4

This will inform the admin that the object is being edited by another admin and you cannot edit it. You have the option to Retry Edit or open it in Read-Only mode.

Really awesome!

What happens if I open a Task Sequence for editing and then goes to lunch?

There are different scenarios:

  • There is a thirty minute timeout for the lock. So if I am not active the lock goes away after 30 minutes.
  • Another admin want to edit the object, in this case a task sequence I can press “Retry Edit” and if the first admin have been inactive more than five minutes then control is transferred to the Admin requesting to edit it. But in difference to SCCM 2007, there will not be conflict as I as the first admin cannot save the changes I make so there are no conflicts created.

This is a truly awesome feature!

In February me, Stefan Schörling and Anders Ahl did a livemeeting on Configuration Manager 2012 deep-dive livemeeting as part of the System Center 2012 livemeeting series at Technet Sweden. The recording of that livemeeting is now available on youtube, it is in Swedish though.

http://www.youtube.com/watch?v=iYakHwlQqfA&feature=youtu.be

djupdykning

Missa det inte!