Category Archives: SCCM

How to Install Configuration Manager 2012 SP1 Clients on Linux Computers


You can accomplish this installation manually. Configuration Manager does not support the use of client push installation for Linux servers.

The following scenarios are supported by the Linux clients:

  • Hardware Inventory – Hardware inventory can be viewed through Resource Explorer and can be used to create collections of Linux computers.
  • Software Inventory – Through hardware inventory the list of natively installed software can be gathered from Linux computers – similar to add/remove programs for Windows systems.
  • Software Distribution – Deploy new software, update existing software and apply OS patches to collections of Linux computers (using a package and program). Run arbitrary maintenance scripts on a collection of Linux servers.
  • Secure and Authenticated Communications.
  • Consolidated Reports.

The Microsoft System Center 2012 Service Pack 1 Configuration Manager – Clients for Linux

http://www.microsoft.com/en-sa/download/details.aspx?id=36212

  1. Download the appropriate file for the operating system you wish to manage to a Windows computer.
  2. The downloaded file is a self-extracting exe and will extract tar files for the different versions of your operating system.
  3. extracting exe
  4. Copy the install script and the .tar file for your computer’s operating system version to a folder on your Linux computer.
  5. Install the client using these steps:
  •  use root credentials to run the following command to enable the script to run as a program: chmod +x insta
  •  run the following command to install the Configuration Manager client: ./install –mp <hostname FQDN> -sitecode <code> ccmRHEL5x86.tar

install_sccm2012_Linux64Client

Advertisements

Restoring All Systems Collection in SCCM 2007


بسم الله الرحمن الرحيم

Sometimes we accidentally deleted important things.I deleted the All System Collection from SCCM 2007 console. I search for restoring the All System Collection with the appropriate ID SMS00001. I found many solutions but this solution is the best one.

Here’s how to restore the All System Collection with the appropriate ID SMS00001

VBS script that will do the restore:

####begin script

strSMSServer = “.”  
strParentCollID = “COLLROOT”   
‘This example creates the collection in the collection root.    
‘Replace COLLROOT with the CollectionID of an existing collection to make the new collection a child.

strCollectionName = “All Systems”  
strCollectionComment = “This is the All Systems Collection.”   
Set objLoc = CreateObject(“WbemScripting.SWbemLocator”)   
Set objSMS = objloc.ConnectServer(strSMSServer, “root\sms”)   
Set Results = objSMS.ExecQuery (“SELECT * From SMS_ProviderLocation WHERE ProviderForLocalSite = true”)

For each Loc in Results  
If Loc.ProviderForLocalSite = True Then   
  Set objSMS = objLoc.ConnectServer(Loc.Machine, “root\sms\site_” & Loc.SiteCode)   
End if   
Next

Set newCollection = objSMS.Get(“SMS_Collection”).SpawnInstance_()

‘Create new “All Systems” collection  
newCollection.Name = “All Systems”   
newCollection.OwnedByThisSite = True   
newCollection.Comment = strCollectionComment   
newCollection.CollectionID = “SMS00001”   
path = newCollection.Put_

‘Set the Relationship  
Set newCollectionRelation = objSMS.Get(“SMS_CollectToSubCollect”).SpawnInstance_()   
newCollectionRelation.parentCollectionID = strParentCollID   
newCollectionRelation.subCollectionID = (“SMS00001”)   
newCollectionRelation.Put_

####end script

How to make this script?

1- Create New Text Document on your Desktop and copy script on New Text Document and save it.

2- Rename New Text Document.txt to RestoringAllSystemsCollection.vbs (.TXT to .VBS)

3- Run the command  C:\Users\administrator\Desktop>cscript.exe “RestoringAllSystemsCollection.vbs”

You will found the All System Collection with the appropriate ID under Collections node in SCCM console. But you will need to import the All Systems query for your membership rules.

Follow these steps to import the All Systems query : 

                            

       

There is an easy way. Re-apply SP2 (or SP1) and the collection will get re-create with the right ID SMS00001

Reference:

http://myitforum.com/cs2/blogs/cnackers/archive/2010/03/17/restoring-deleted-all-systems-collection.aspx