Category Archives: SCCM 2012

How to change SCCM 2012 Site name

1. Open to SQL Server management studio

2. Under databases

3. Open your SCCM DB

4. Search for Table called – dbo.SC_SiteDefinition

5. Right click – Edit top 200 Rows

 

clip_image002

6. Change the name.

SCCM 2012 – Error: some drivers cannot be imported successfully

 

As soon as you Detach an reattach the SCCM database in SQL, two properties are changed, and SCCM isn’t able to do certain operations, as importing drivers, or applications.

In my case I got this error when trying to import drivers to SCCM

Error: some drivers cannot be imported successfully

image

Solution:

Run the following queries:

1. ALTER DATABASE <ConfigMgr DB> SET TRUSTWORTHY ON

Also verify, that SA is still the owner of the database.

if not you can run this query:

EXEC sp_changedbowner 'sa'

image

 

 

Good luck!

Idit Bnaya – Senior IT consultant at Neway technologies

How to- Deploy Office 2010 using SCCM 2012

 

1. MSP file

The first step is to create a customize MSP file:

1. Open CMD type setup.exe /admin at the command line from the root of the network installation point that contains the Office 2010 source files for example use the following: d:installationoffice2010setup.exe /admin

clip_image001[4]

Choose to create a new Setup customization (.msp) file

clip_image002[4]

Configure the file according to your company requirements

More details on Office Customization Tool in Office 2010

Now that you MSP file is ready you can create you SCCM package

Steps for creating Office 2010 deployment using SCCM 2012

1. Create collection

· under Asset and Complaisance –> Device collections –> right click –> Create device Collection

clip_image003[4]

· Under name : write the name of the collection

· Under limiting choose “All systems”

clip_image004[4]

· Under membership rules leave empty (for now) and click Next

clip_image005[4]

· click OK

clip_image006[4]

· Click Next

clip_image007[4]

· Click Close

clip_image008[4]

2. Create Package

· Under Software library – Packages  – Right click –  Create package

clip_image009[4]

· Enter the package details

o Name

o Manufacture

o Language

o Version

o Under Source folder : Office 2010 installation folder

clip_image010[4]

· Click next

· Choose the default –  standard program

clip_image011[3]

· Click Next

· Under command line enter the msp file you created in the following format :

setup.exe /adminfile office2010.MSP

clip_image012[3]

· Click Next

clip_image013[3]

· Click next

· on the completion windows Click Close

clip_image014[3]

3. Distribute The package to the distribution point

· Right click on the package you created

· Distribute content

clip_image015[3]

· In the general window click next

clip_image016[3]

· on the content destination window click Add and select – Distribution point

clip_image017[3]

· Select your distribution point .

4. Deploy your package to the collection you created

· Right click on the package – Deploy

clip_image018[3]

· Select the Office 2010 collection you created earlier

clip_image019[3]

· Choose the deployment settings according to your company requirements.

SCCM – Collection Queries

Name: All sccm  clients requiring a reboot

Query:  select SMS_R_SYSTEM.ResourceID, SMS_R_SYSTEM.ResourceType, SMS_R_SYSTEM.Name, SMS_R_SYSTEM.SMSUniqueIdentifier,
SMS_R_SYSTEM.ResourceDomainORWorkgroup, SMS_R_SYSTEM.Client from sms_r_system AS sms_r_system
inner join SMS_UpdateComplianceStatus as c on c.machineid=sms_r_system.resourceid
where c.LastEnforcementMessageID = 9

____________________________________________________________________________________________________________________________

Name: All SCCM client  computers in a specific site

Description : show all SCCM client computers in a specific Active directory site , in this case the site name is “India”

Query : select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System where SMS_R_System.ADSiteName =’India’ and client=1

—————————————————————————————————————————–

Name: SCCM 2007 R3 client

Description : All SCCM clients with R3 version

Query : select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System where SMS_R_System.ClientVersion like “4.00.6487.2187″ or  SMS_R_System.ClientVersion  like “4.00.6487.2157″

_________________________________________________________________________________________

Name: All windows servers with client install

Description : show all SCCM servers with sccm client installed  on them

Query :

select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System where OperatingSystemNameAndVersion like ‘Microsoft Windows NT%Server%’ and client=1

_________________________________________________________________________________________

Name : All Windows 7 Computers

Query :

select sms_r_system.ResourceID,sms_r_system.ResourceType,sms_r_system.Name,sms_r_system.SMSUniqueIdentifier,sms_r_system.ResourceDomainORWorkgroup,sms_r_system.Client from sms_r_system where OperatingSystemNameandVersion like ‘%Workstation 6.1%’

 

_________________________________________________________________________________________

Name : Users in a specific OU

Query :

select SMS_R_USER.ResourceID,SMS_R_USER.ResourceType,SMS_R_USER.Name,SMS_R_USER.UniqueUserName,SMS_R_USER.WindowsNTDomain from SMS_R_User where SMS_R_User.UserOUName = “Idit.local/ISRAEL/USERS”

______________________________________________________________________________________________________

Name : Computers  in a specific OU

Query :

select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System where SMS_R_System.SystemOUName=”Idit.local/Israel/Computers/Accounting”

_________________________________________________________________________________________________

 

Name : Lync installed

Description: Collection That determine the workstations that have Lync installed (you can write any programs from “Add remove Program”)

Query:

select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System   where SMS_R_System.ResourceId   in   (select SMS_R_System.ResourceID  from SMS_R_System   inner join SMS_G_System_ADD_REMOVE_PROGRAMS   on SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceId = SMS_R_System.ResourceId  where SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName  LIKE ‘%Lync%’)

______________________________________________________________________________________________________________________

Name: Computers with no SCCM client

Description: Collection that shows all computers that don’t have  SCCM client  installed

Query:

select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from sms_r_system where Client = 0 or Client is null

______________________________________________________________________________________________________________________

Name: Windows Server 2008

Description: Collection that shows all discovered Windows Server 2008

Query:

select SMS_R_System.Name, SMS_R_System.SMSAssignedSites, SMS_R_System.IPAddresses, SMS_R_System.IPSubnets, SMS_R_System.OperatingSystemNameandVersion, SMS_R_System.ResourceDomainOrWorkgroup, SMS_R_System.LastLogonUserDomain, SMS_R_System.LastLogonUserName, SMS_R_System.SMSUniqueIdentifier, SMS_R_System.ResourceId, SMS_R_System.NetbiosName from SMS_R_System where SMS_R_System.OperatingSystemNameandVersion like “%Server 6.0%”

_____________________________________________________________________________________________________________________

 

Name: Windows 7

Description: Collection that shows all discovered Windows 7

 

select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,

SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System

inner join SMS_G_System_COMPUTER_SYSTEM on SMS_G_System_COMPUTER_SYSTEM.ResourceId = SMS_R_System.ResourceId

where SMS_R_System.OperatingSystemNameandVersion like “%Workstation 6.1%” or

SMS_R_System.OperatingSystemNameandVersion like “%Windows 7%

____________________________________________________________________________________________________________________

 

Name: Find Mac

Description: Query to mac address

 

select SMS_R_System.Name from  SMS_R_System where SMS_R_System.MACAddresses like ##PRM:SMS_R_System.MACAddresses##