Category Archives: SCCM2007

SCCM – Adding driver package to a task sequence

1. First we need to create a folders and copy the Network, Display, Chipset, Audio, Modem, SATA drivers in to it.

For example OptiPlex3020Win7X64

2. Create a driver package in SCCM Console:

Give the package a name matching the folder name

Note: When you create a new driver package you must provide a network share that is not in use by other driver packages.

Distribute your driver package to DP’s

image

 

3. Add the  driver package to a task sequence

First we need to get the model name from the existing machine by Opening CMD on the Machine and type:  WMIC CSProduct Get Name

image

In task sequence “Apply driver package” task

 

image

Choose the Driver package you created

In the options tab, enter a task sequence variable of model equals "model name"

image

you can also use a WMI query instead such as

Select * from Win32_computersystem where model like "%OptiPlex 3020%"

 

Good luck סמיילי

SCCM–Client installation failed with error :Could not access network location %APPDATA%\.

Error:

File C:\Windows\ccmsetup\{4D87A80B-6971-43EF-A59F-8088D214378A}\client.msi installation failed. Error text: ExitCode: 1603
Action: CostFinalize.
ErrorMessages:
Could not access network location %APPDATA%\.
Could not access network location %APPDATA%\.

 

Solution :

Change the "AppData" value for the LocalSystem account in registry to – “%USERPROFILE%\AppData\Roaming”

The LocalSystem account can be found at: [HKEY_USERS\S-1-5-18\]

The entry  located here:

[HKEY_USERS\S-1-5-18\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders]

Befor:

image

After:

image

 

This solution applies also for the 1606 error when trying to deploy software.

 

Good luck סמיילי

SCCM 2012 R2 Error 80070057

I got this error on the Apply Operating System Image step when running a Task Sequence.

In my case the time wassan`t set correctly in the bios.

but, when i searched for solution i also came across this solution : Empty variable name

in this case,  the partition step did not have a variable name specified – once you set a name for the partiotion disk the task will run without any errors

image

Convert EXE to MSI – http://www.silentinstall.org/

Today one of my clients asked me to distribute  an exe file  that has no switches for silent installation using SCCM 2007

I found a nice and easy free program that convert EXE files to MSI in seconds.

I would like to strongly recommend it .

 

http://www.silentinstall.org/

 

image

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##

 

How to uninstall sms 2003 clients

If you have old SMS 2003 clients installed on computers in your organization, and  the SMS 2003 server is  no longer available, you will have trouble to install SCCM 2007 clients. In order to install SCCM 2007 clients ,you will first need to uninstall the SMS 2003 clients you will need to download and install the sms 2003 toolkit-http://www.microsoft.com/download/en/details.aspx?id=18153

 

 

Local Uninstall: 1. copy the ccmclean.exe file from the SMS 2003 toolkit folder –  “C:\Program Files (x86)\SMS 2003 Toolkit 2″ to your SMS 2003 to the SMS 2003 client computer *for examlple to the path  c:\install\uninstallsms 2. Start-Run 3. Type: c:\install\uninstallsms\ccmclean.exe /client /q ”

Remote uninstall with psexec :

1. install psexec.exe on the computer you will send the uninstall command from 2. Start – Run – cmd 3.Copy the ccmclean.exe file in to a share folder on your computer in my case its in – c:\packages 4. In cmd go to the psexec.exe file location path 5.Type:  “psexec.exe -s \\ClientComputername \\servername\packages\ccmclean.exe 2003  /client /q ”

How to uninstall sccm client localy and remotly:

For x86 Operating Systems: On the client computer -Start -Run – Type: %windir%system32\ccmsetup\ccmsetup.exe /uninstall For x64 Operating Systems: On the client computer -Start -Run – Type: %windir%\ccmsetup\ccmsetup.exe /uninstall

How to uninstall sccm client remotly with psexec:

1. install psexec.exe on the computer you will send the uninstall command from
2. Start – Run – cmd
3. In cmd go to the psexec.exe file location path
4.For x86 Operating Systems:
type : psexec -s \\xxx c:\Windows\system32\ccmsetup\ccmsetup.exe /uninstall
5. For x64 Operating Systems:
type : psexec -s \\xxx c:\Windows\ccmsetup\ccmsetup.exe /uninstall
*If you don’t have permissions, you will need to add user name and password for user with permission for this action
For example:

psexec -u domain\username -p Password -s \\xxx c:\WinNT\system32\ccmsetup\ccmsetup.exe /uninstall

SCCM 2007 – Import SCCM power management reports

After installing and configuring SCCM R3 , the power management reports will not appear automatically , you will need to import them  into SCCM console

Steps to Import SCCM power management reports : 1. Make sure SQL Reporting Services component is installed and configured 2. Go to Reporting Services under : Computer Management > Reporting. Right-click the Reporting Services server role and select Copy Reports to Reporting Services

3. Select Database server name and database instance name for SCCM. 4. Select database authentication method to gain access to connect to database and press Next. 5.  Select the second option to Import Reports from a cabinet file, and click Browse

6. Browse to “%ConfigMgr install folder%\Reports\Power Management” folder and select MicrosoftReportsPack.cab file.

This will list all Power Management reports which will be imported.

7. Press Next twice.