Quantcast
Channel: SCCM – All about Microsoft Endpoint Manager
Viewing all 243 articles
Browse latest View live

SCCM Configmgr SSRS Report: Count of PC’s By Role

$
0
0

With the default report,you can get Count or list of PC’s from domain Eg: Computers in a specific workgroup or domain.

If you want to know the count of PC’s with specific role like standalone workstation a.k.a Workgroup computers,member workstation,member server,standalone server etc,use the below report .

I use property called DomainRole0 from V_GS_Computer_system view with case statement.

select "Role"=
case domainrole0
when 0 then ‘Standalone Workstation’
when 1 then ‘Member Workstation’
when 2 then ‘Standalone Server’
when 3 then ‘Member Server’
when 4 then ‘Backup Domain Controller’
when 5 then ‘Primary Domain Controller’
else ‘No’
end,
Count(*) [Total] from v_GS_COMPUTER_SYSTEM
group by DomainRole0

Here is the referral link which you can get information about domainrole and its values. http://msdn.microsoft.com/en-us/library/aa394102(v=vs.85).aspx

SCCM Configmgr SSRS Report: Count of PC’s By Role is a post from: Eswar Koneti's Blog


SCCM Configmgr 2012 SSRS Report:Count of Client Versions

$
0
0

With the recent Cumulative Update releases CU1,CU2 and now CU3 for Configuration Manager 2012 SP1,as Configmgr admin,you will have make sure to get the Configmgr clients on to the latest version.

Each cumulative update will have its new Version with its previous Cumulative Update. so if you are upgrading from previous CU’s to Newly Released Cumulative Update,you may have to look at the client versions in your environment if they are all on same boat or not.

Use this below SQL query to count the Client Versions from Configmgr environment.You can create list of PC’s with the specific client version to drill down.

select "Client Version"=
case sys.Client_Version0
when ’5.00.0000.0000′ then ‘RTM (5.00.0000.0000)’
when ’5.00.7804.1000′ then ‘SP1 (5.00.7804.1000)’
when ’5.00.7804.1202′ then ‘SP1 CU1 (5.00.7804.1202)’
when ’5.00.7804.1300′ then ‘SP1 CU2 (5.00.7804.1300)’
when ’5.00.7804.1400′ then ‘SP1 CU3 (5.00.7804.1400)’
when ’5.00.7958.1000′ then ‘R2 (5.00.7958.1000)’
else ‘Others(non-Clients)’
End,count(*) [Total]
from v_R_System sys
where sys.Name0 not like ‘unknown’
group by sys.Client_Version0
order by 2 desc

SSRS Report:

 

image thumb7 SCCM Configmgr 2012 SSRS Report:Count of Client Versions

SCCM Configmgr 2012 SSRS Report:Count of Client Versions is a post from: Eswar Koneti's Blog

SCCM Configmgr 2007:Software Updates Stuck at Preparing for Installation Error sending DAV request. HTTP code 404, status ‘Resource Not Found’

$
0
0

Second Tuesday of every month called Microsoft patch Day icon smile SCCM Configmgr 2007:Software Updates Stuck at Preparing for Installation Error sending DAV request. HTTP code 404, status Resource Not Found Patches get released and configmgr* guys busy in testing ,moving them to production.

As usual, I have Downloaded the patches,added to the package,deployed to Distribution Points ,all returned success (Decompressed the PCK successfully).Until here Good.

While testing the patches on one of the server,it just stands at downloading /Preparing for installation for quite long but nothing happens.Huh ? (login with mstsc /admin)

image thumb SCCM Configmgr 2007:Software Updates Stuck at Preparing for Installation Error sending DAV request. HTTP code 404, status Resource Not Found

ok,start with basic troubleshooting by looking at contentTransfermanager.log and datatransferservice.log because these two logs plays the role whether the client attempts to download content or not

ContentTransferManager.log–> logs when  client attempts to download content from the first distribution point listed in the content location.

DataTransferService.log —>Logs if a job has been created to download the files to the client or not.

Here is what i have from the logs:

Datatransferservice.log:

Error sending DAV request. HTTP code 404, status ‘Resource Not Found’ ,

GetDirectoryList_HTTP(‘http://servername:8530/SMS_DP_SMSPKGH$/packageID/14eb1517-9a6f-461d-9dd6-656d876efbe4′) failed with code 0x8004027e.

 

image thumb1 SCCM Configmgr 2007:Software Updates Stuck at Preparing for Installation Error sending DAV request. HTTP code 404, status Resource Not Found

Contenttransfermanager.log

Error sending HEAD request. HTTP code 500, status ‘Internal Server Error’

image thumb2 SCCM Configmgr 2007:Software Updates Stuck at Preparing for Installation Error sending DAV request. HTTP code 404, status Resource Not Found

From the above logs,we know ,client is having issues while getting the required patch content from the Distribution Point.Client keeps trying for longer period but nothing happens.

take a look at IIS logs if it gives any further clues.

On windows server 2003,Logs located at  C:\WINDOWS\system32\LogFiles\W3SVC1

image thumb3 SCCM Configmgr 2007:Software Updates Stuck at Preparing for Installation Error sending DAV request. HTTP code 404, status Resource Not Found

2013-10-10 00:02:25 W3SVC1 10.83.1.14 HEAD /SMS_DP_SMSPKGH$/PackageID/14eb1517-9a6f-461d-9dd6-656d876efbe4 – 8530 – 10.83.1.14 SMS+CCM 401 1 0

From the above snippet,you can see an error code 401 which is access denied.

I then looked at the Update ID if it really exist in the package folder or not ? Browse H:\smspkgh$\packageID for content  14eb1517-9a6f-461d-9dd6-656d876efbe4 .

I can not find it though my package is successfully decompressed and sent the status message to central site.

I compared the patch package properties with working server properties,i see there are 100+ files missing.

image thumb4 SCCM Configmgr 2007:Software Updates Stuck at Preparing for Installation Error sending DAV request. HTTP code 404, status Resource Not Found

something interesting to know ? why did this happened ? have no time now to troubleshoot why did this happened may be later but for now ,try to fix Preparing for Installation .

Solution that worked for me:

I don’t know if there is hash value for each update that is created and downloaded by Configmgr but i gave a try to copy the missing Update IDs manually from working server to Issue DP.

Close the Configmgr software update applet (if you just close it it will be running in the background),to kill it,go to task manager,you see process called smscliui.exe ,end the process

Restart the SMS agent host service

open configuration manager applet from control panel,initiate software update deployment evaluation cycle  and software update scan cycle ,few min later you will see prompt asking to install the Windows updates if the deadline is not reached.

This time,all the required patches installed successfully icon smile SCCM Configmgr 2007:Software Updates Stuck at Preparing for Installation Error sending DAV request. HTTP code 404, status Resource Not Found

To confirm , if this solution works for all,logged into other server where in,it require different patches which are not available in DP,do a manual copy of the missing patches (which you can get from the contentransfermanager.log) from working server

Restart the SMS agent host,end the sccm client user interface,initiate the software update actions,it DID .

To avoid this issue on other clients,get the missing patch content from working server .

Hope you find this article useful.

SCCM Configmgr 2007:Software Updates Stuck at Preparing for Installation Error sending DAV request. HTTP code 404, status ‘Resource Not Found’ is a post from: Eswar Koneti's Blog

Download SCCM Configmgr 2012 R2 SQL Views

$
0
0

Long ago,posted Configmgr SP1 SQL Views in spreadsheet which you can download it via post http://eskonr.com/2013/04/download-sccm-2012-sql-views-documentation/.

SQL Views are very useful while working with reports and it saves lot of time in searching the particular information if you are unsure where it resides.

SQL Views provides the information help you in creating custom reports, determine which configmgr 2012 R2 SQL views contain the information you need for your reports, and identify the path between the necessary SQL views and determine what columns can be used to join them.

With the release of Configmgr 2012 R2,there has been some SQL Views added extra from its previous version (i.e Configmgr 2012 SP1),with this,i would like to share the updated spread sheet with the available SQL Views.

Total number of SQL Views in Configmgr 2012 R2:1434 and columns :21104,for list of total sql views,its column and its datatype (int,varchar,varbinary etc) Download the spreadsheet from TechNet gallery

Download SCCM Configmgr 2012 R2 SQL Views is a post from: Eswar Koneti's Blog

SCCM Configmgr report:Count specific inventory file on computers

$
0
0

Sccm Configmgr 2012 :Patch Compliance Summary Report Month Wise

$
0
0

If you search on the web for patch compliance report in configmgr,you get various reports of which you can customize it if you still need the way you want.I don’t see any standard report that tell the compliant % for each month in one line ?

How do you monitor the overall progress of the current month and its previous months ? let say,for the current month,compliant machines are 500(which have got all approved patches) and noncompliance and its % in one line ?

image thumb Sccm Configmgr 2012 :Patch Compliance Summary Report Month Wise

How about something like this ?

Not sure how many of you already seen post from Alexsemi who has developed report by month wise since from beginning(based on the patch date posted).

Criteria’s used in the query:

1. Category: Security patches

2. Products: All

3. Severity: Critical and Important

4. One missing patch brings entire computer to noncompliance.

If you are into configuration manager 2007 and using classic report feature,you can use the below SQL code which is also available here to download .

if you are into Configuration manager 2012 ,you will have to create SSRS report ,for which i have uploaded the .RDL file here ,so download and upload it to your SSRS reports.

SELECT D.MonthPosted , Compliant , Incompliant [Non-Compliant],Compliant + Incompliant [Total], cast(Compliant / ( (Compliant + Incompliant) /100.0) as decimal(5,2) ) as [Compliant %],
cast(Incompliant / ( (Compliant + Incompliant) /100.0) as decimal(5,2) ) as [Non-Compliant %]
FROM
(
Select MonthPosted, Count(1) as Compliant FROM
(
SELECT MonthPosted, ResourceID
FROM (SELECT TOP (100) PERCENT v_UpdateComplianceStatus.ResourceID, v_UpdateComplianceStatus.Status, CAST(DATEPART(yyyy,
v_UpdateInfo.DatePosted) AS varchar(255)) + ‘-’ + RIGHT(’0′ + CAST(DATEPART(mm, v_UpdateInfo.DatePosted) AS VARCHAR(255)), 2)
AS MonthPosted, COUNT(1) AS Count
FROM v_UpdateComplianceStatus INNER JOIN
v_UpdateInfo ON v_UpdateComplianceStatus.CI_ID = v_UpdateInfo.CI_ID INNER JOIN
v_R_System ON v_UpdateComplianceStatus.ResourceID = v_R_System.ResourceID
WHERE (v_R_System.Obsolete0 = 0 AND v_R_System.Client0 = 1 AND v_R_System.Active0 = 1) AND (v_UpdateInfo.Severity IN (8, 10)) AND (v_UpdateInfo.IsSuperseded = 0) AND (v_UpdateInfo.IsEnabled = 1)
GROUP BY v_UpdateComplianceStatus.ResourceID, v_UpdateComplianceStatus.Status, CAST(DATEPART(yyyy,
v_UpdateInfo.DatePosted) AS varchar(255)) + ‘-’ + RIGHT(’0′ + CAST(DATEPART(mm, v_UpdateInfo.DatePosted) AS VARCHAR(255)), 2)) A
where Status =3
AND not exists
(
SELECT B.MonthPosted, B.ResourceID
FROM (SELECT TOP (100) PERCENT v_UpdateComplianceStatus.ResourceID, v_UpdateComplianceStatus.Status, CAST(DATEPART(yyyy,
v_UpdateInfo.DatePosted) AS varchar(255)) + ‘-’ + RIGHT(’0′ + CAST(DATEPART(mm, v_UpdateInfo.DatePosted) AS VARCHAR(255)), 2)
AS MonthPosted, COUNT(1) AS Count
FROM v_UpdateComplianceStatus INNER JOIN
v_UpdateInfo ON v_UpdateComplianceStatus.CI_ID = v_UpdateInfo.CI_ID INNER JOIN
v_R_System ON v_UpdateComplianceStatus.ResourceID = v_R_System.ResourceID
WHERE (v_R_System.Obsolete0 = 0 AND v_R_System.Client0 = 1 AND v_R_System.Active0 = 1) AND (v_UpdateInfo.Severity IN (8, 10)) AND (v_UpdateInfo.IsSuperseded = 0) AND (v_UpdateInfo.IsEnabled = 1)
GROUP BY v_UpdateComplianceStatus.ResourceID, v_UpdateComplianceStatus.Status, CAST(DATEPART(yyyy,
v_UpdateInfo.DatePosted) AS varchar(255)) + ‘-’ + RIGHT(’0′ + CAST(DATEPART(mm, v_UpdateInfo.DatePosted) AS VARCHAR(255)), 2)) B
where Status =2
and B.MonthPosted = A.MonthPosted and B.ResourceID = A.ResourceID
Group By MonthPosted, ResourceID
)
Group By MonthPosted, ResourceID
) C
Group By MonthPosted
) D,
( SELECT MonthPosted, Count(1) as Incompliant
FROM (SELECT TOP (100) PERCENT v_UpdateComplianceStatus.ResourceID, v_UpdateComplianceStatus.Status, CAST(DATEPART(yyyy,
v_UpdateInfo.DatePosted) AS varchar(255)) + ‘-’ + RIGHT(’0′ + CAST(DATEPART(mm, v_UpdateInfo.DatePosted) AS VARCHAR(255)), 2)
AS MonthPosted, COUNT(1) AS Count
FROM v_UpdateComplianceStatus INNER JOIN
v_UpdateInfo ON v_UpdateComplianceStatus.CI_ID = v_UpdateInfo.CI_ID INNER JOIN
v_R_System ON v_UpdateComplianceStatus.ResourceID = v_R_System.ResourceID
WHERE (v_R_System.Obsolete0 = 0) AND (v_UpdateInfo.Severity IN (8, 10)) AND (v_UpdateInfo.IsSuperseded = 0) AND (v_UpdateInfo.IsEnabled = 1)
GROUP BY v_UpdateComplianceStatus.ResourceID, v_UpdateComplianceStatus.Status, CAST(DATEPART(yyyy,
v_UpdateInfo.DatePosted) AS varchar(255)) + ‘-’ + RIGHT(’0′ + CAST(DATEPART(mm, v_UpdateInfo.DatePosted) AS VARCHAR(255)), 2)) F
where Status =2
Group By MonthPosted ) E
where D.MonthPosted = E.MonthPosted
order by MonthPosted Desc

Sccm Configmgr 2012 :Patch Compliance Summary Report Month Wise is a post from: Eswar Koneti's Blog

Configmgr 2012:Powershell script add packages, applications,Drivers to Distribution Point

$
0
0

In my previous blog post,i talked about how to compare 2 distribution points to see if they both have any applications mismatch.This blog post talks about how to distribute the missing apps to the Distribution Point.

I have used basic inbuilt Configmgr powershell commands for this activity,more via here

Note:Use the package names as input file rather Package ID’s.

Below powershell script works for applications,packages,driver packages,boot images and OS images.You need to remove the # tag(to uncomment) to distribute specific package type.

#change the path of psd1
import-module F:\sccm\AdminConsole\bin\ConfigurationManager.psd1
#Change the site Code
cd P01:
$SiteCode = “P01
#provide the path for list of applications to be distributed
$packages =GC “C:\users\eswar\desktop\pkglist.txt
$server=‘DPname.eskonr.com’
foreach ($packagename in $packages)
{
#for applications
#Start-CMContentDistribution -ApplicationName  “$packagename” -DistributionPointName “$server”

#For packages
#Start-CMContentDistribution -PackageName  “$packagename” -DistributionPointName “$server”

#For Driverpackage names
#Start-CMContentDistribution -DriverPackageName  “$packagename” -DistributionPointName “$server”

#For Bootimages
#Start-CMContentDistribution -BootImageName  “$packagename” -DistributionPointName “$server”

#For OSImages
#Start-CMContentDistribution –OperatingSystemImageName  “$packagename” -DistributionPointName “$server”

#output results

“Pkg:” + $packagename + ” “+ “distributed to” + ” “+ “Server:” +$server | Out-File -FilePath C:\users\eswar\desktop\server-distribute-results.txt -Append
}

download the powershell script from technet Gallery

How to refresh package on many DP’s : http://eskonr.com/2013/09/sccm-configmgr-powershell-script-refresh-package-on-multiple-distribution-points/

Configmgr 2012:Powershell script add packages, applications,Drivers to Distribution Point is a post from: Eswar Koneti's Blog

SCCM 2012 SSRS report: Site Servers and its assigned boundary information

$
0
0

Quick post on the Boundaries and its assigned Site Servers which are nothing but Distribution Points.Simply creating boundaries does not make clients to get connected to DP and download the content.

you will have create assign these boundaries to boundary group and boundary group to Site+Content location.

Here is report to list all Boundaries and its connected Distribution Points.

image thumb SCCM 2012 SSRS report: Site Servers and its assigned boundary information

Note: Boundary Name is nothing but Description what you gave.

I have uploaded the .RDL ile onto TechNet gallery.Download it from here.

SCCM 2012 SSRS report: Site Servers and its assigned boundary information is a post from: Eswar Koneti's Blog


SCCM Configmgr 2012 R2 Toolkit Available for download

$
0
0

Microsoft released System center 2012 R2 Configuration manager tool kit which contains fifteen downloadable tools to help you manage and troubleshoot Microsoft System Center 2012 R2 Configuration Manager both clients and server.

List of tools available after you install the Configmgr 2012 R2 tool kit are listed below:

Note:* mark represents the the tool is new in R2 and its requires Configmgr 2012 R2 for full functionality.

 image thumb1 SCCM Configmgr 2012 R2 Toolkit Available for download

Client Based Tools:

  • Client Spy – A tool that helps you troubleshoot issues related to software distribution, inventory, and software metering on System Center 2012 Configuration Manager clients.
  • Configuration Manager Trace Log Viewer – A tool used to view log files created by Configuration Manager components and agents.
  • Deployment Monitoring Tool – The Deployment Monitoring Tool is a graphical user interface designed help troubleshoot Applications, Updates, and Baseline deployments on System Center 2012 Configuration Manager clients.
  • Policy Spy – A policy viewer that helps you review and troubleshoot the policy system on System Center 2012 Configuration Manager clients.
  • Power Viewer Tool – A tool to view the status of power management feature on System Center 2012 Configuration Manager clients.
  • Send Schedule Tool – A tool used to trigger a schedule on a client or trigger the evaluation of a specified DCM Baseline. You can trigger a schedule either locally or remotely.
  • Wakeup Spy – A tool that provides a view of the power state of Configuration Manager client computers and which operate as managers or manages.

Server Based Tools:

image thumb3 SCCM Configmgr 2012 R2 Toolkit Available for download

  • * DP Job Manager – A tool that helps troubleshoot and manage ongoing content distribution jobs to Configuration Manager distribution points.
  • * Collection Evaluation Viewer – A tool that assists in troubleshooting collection evaluation related issues by viewing collection evaluation details.
  • * Content Library Explorer – A tool that assists in troubleshooting issues with and viewing the contents of the content library.
  • Security Configuration Wizard Template for Microsoft System Center 2012 R2 Configuration Manager – The Security Configuration Wizard (SCW) is an attack-surface reduction tool for the Microsoft Windows Server 2008 R2 operating system. Security Configuration Wizard determines the minimum functionality required for a server’s role or roles, and disables functionality that is not required.
  • Content Library Transfer – A tool that transfers content from one disk drive to another.
  • Content Ownership Tool – A tool that changes ownership of orphaned packages (packages without an owner site server).
  • Role-based Administration Modeling and Auditing Tool – This tool helps administrators to model and audit RBA configurations.
  • Run Metering Summarization Tool – The purpose of this tool is to run the metering summarization task to analyze raw metering data

 

  •  

Download the tool Via http://www.microsoft.com/en-us/download/details.aspx?id=36213

SCCM Configmgr 2012 R2 Toolkit Available for download is a post from: Eswar Koneti's Blog

Configmgr 2012:PXE Boot Error Windows Failed to Start \Boot\BCD

$
0
0

When you install the Distribution Point role from Configmgr 2012 primary site,it automatically install +Configure IIS ,WDS for you .Later,you can configure the WDS settings to support for unknown computers etc.

Recently,i had issue with unknown/Known clients that,they get IP address from DHCP ,prompts to press F12 , try to connect to WDS server but immediately start giving \boot\BCD error.

The below picture shows that,Configmgr 2012 is not responding to clients after Client try to connect to WDS.

image thumb13 Configmgr 2012:PXE Boot Error Windows Failed to Start \Boot\BCD

Upon this error,we straight away check if boot images are available on the DP or not,check the remoteinstall folder on the DP server if they are correctly placed.

try to restart the Windows Deployment server service if that helps in otherway what else ? None of the above solve the problem.

For all PXE booting related things,configmgr create log file called smspxe.log which provides information about PXE service point.

On the Distribution Point server,you will find this log from <Installation Drive>:\SMS_DP$\sms\logs. SMSPXE.log shows old date(2 months Ago)

image thumb14 Configmgr 2012:PXE Boot Error Windows Failed to Start \Boot\BCD

from above screen,you can see,smsdpprov.log is updated with today’s date but smspxe.log is OLD.There is something wrong with PXE service Point role installation/Configuration ?

 

How to Fix it ?

Solution: Remove the PXE support role ,wait for sometime until it remove and enable it back again.

Go back to your Configmgr console,administration pane—Distribution Point,properties of the Distribution Point,uncheck the PXE support for clients.

image thumb15 Configmgr 2012:PXE Boot Error Windows Failed to Start \Boot\BCD

 

wait for the removal of PXE support on the target DP.How do you confirm it is success of nor ?

From your RemoteInstall Folder on the DP,SMSimages,SMSboot folders will be deleted.

Upon confirmation,try enabling the PXE Support function(you don’t need to redistribute the boot images if you have already distributed to the DP),PXE role will be configured correctly,clients will be able to boot .

More information from  SMSPXE.log.

 

************************************** If you have many Remote Distribution Points that also server PXE support,how do you check before clients reporting this issue ?*****************************

Use the simple vbscript to find servers which are not updated the SMSPXE.log since long.

ON ERROR RESUME NEXT
Set objfso = CreateObject ("Scripting.FileSystemObject")
set servers = objfso.OpenTextFile ("servers.txt", 1)
Set objoutputfile = objfso.OpenTextFile ("Results.txt", 2, True)
filename="SMSPXE.log"
Do While Not servers.AtEndOfStream
strcomputer = servers.ReadLine
If objFSO.fileExists("\\" & strComputer & "\F$\SMS_DP$\sms\logs\" & filename) Then
set objfile=objfso.GetFile ("\\" & strComputer & "\F$\SMS_DP$\sms\logs\" & filename)
objoutputfile.WriteLine  strcomputer & vbTab & objFile.DateLastModified
Else
objoutputfile.WriteLine filename & vbTab & "do not Exist" & vbtab & strcomputer
End If
loop
msgbox("done")

Until next icon smile Configmgr 2012:PXE Boot Error Windows Failed to Start \Boot\BCD

Configmgr 2012:PXE Boot Error Windows Failed to Start \Boot\BCD is a post from: Eswar Koneti's Blog

Configmgr 2012 SSRS Report:Know how many clients your Secondary Site is Supporting

$
0
0

Some information about proxy MP before we jump into the subject. Proxy Management Point(On Secondary Site) used mainly to avoid the excessive bandwidth usage over Slow Network links between clients located in the boundaries of a secondary site

By Default,Proxy management Point and Distribution Point role will be enabled and installed with secondary site. More information about Proxy Management Point,read Technet and msdn blog

The concept of Boundaries are changed in SCCM 2012 comparing with its previous version SCCM 2007.You should configure the Boundaries and Boundary group correctly .To know more ,refer Jason Blog explaining about Secondary Site and boundary Groups

Recently ,I come across request asking for ,how many clients,specific secondary site is supporting /responsible for.

Did you ever come across ,knowing the Client secondary Site Proxy management or Resident Management point ? How to get the Secondary Site code for clients residing in its boundaries into Database ?

As you know,you can not create report or collection based on the Secondary site Code because the site code for clients residing in boundaries of secondary always show as  Primary Site Code(PRI) .

If you look at the Configuration manager applet of client which is residing in the secondary site boundary, you can see proxy Management ,Resident Management Point and its Assigned Management Point information.

image thumb Configmgr 2012 SSRS Report:Know how many clients your Secondary Site is Supporting

From the above screen,we are sure that,this information is pulling from wmi isn’t it ? .we need to find out the Namespace and classes.

Client properties information is stored in root\ccm namespace.You will find interesting information from this name space about client like its client ID,Client ID Change Date, Installed Components, User Logon events etc, which is not available by default in Configmgr Database.To know more about available classes,you can run wbemtest and connect to \\root\ccm name space,click enum classes,recursive and explore the existing classes like SMS_LOCALMP and SMS_MPProxyInformation.

 

image thumb1 Configmgr 2012 SSRS Report:Know how many clients your Secondary Site is Supporting

How do we get this information into SCCM Database ?as usual,through MOF file ? Nope ,now we are in 2012 not in 2007.SCCM 2012 made it very easy to enable custom inventory classes.

Go to your primary Site console,administration node—>Client settings—>Click on the properties of Default client settings.(You can not import any custom inventory classes to custom Client agent settings,you should always enable them in default Client agents),click on set Classes from hardware inventory

image thumb2 Configmgr 2012 SSRS Report:Know how many clients your Secondary Site is Supporting

Click on Add

image thumb3 Configmgr 2012 SSRS Report:Know how many clients your Secondary Site is Supporting

Click on connect,you can connect to wmi of any SCCM Client computer to get the required WMI classes

image thumb4 Configmgr 2012 SSRS Report:Know how many clients your Secondary Site is Supporting

connecting to the computer which has sccm client installed.

image thumb5 Configmgr 2012 SSRS Report:Know how many clients your Secondary Site is Supporting

image thumb6 Configmgr 2012 SSRS Report:Know how many clients your Secondary Site is Supporting

if you are interested in other classes,you can select them as well.Click ok,ok

image thumb7 Configmgr 2012 SSRS Report:Know how many clients your Secondary Site is Supporting

Before you confirm the changes,make sure what information do you really required.Click ok and ok on the Default Client agent settings.

These changes are tracked by dataldr.log(F:\sccm\logs) for the creation of views in Database.You see something like this.

image thumb8 Configmgr 2012 SSRS Report:Know how many clients your Secondary Site is Supporting

It takes a while to load the policy to the client machines(based on machine policy interval) ,send client inventory information to site server to process into Database.

If you need quick results,trigger machine policy and hardware inventory policy on the local server,wait for results to come up in the Database.

The two SQL views created are: V_GS_LOCALMP and V_GS_SMS_MPPROXYINFORMATION
Below is SQL Query to know the count of computers under the Secondary Sites.

select LM.name0 [Secondary Site],LM.sitecode0 [Site Code],LM.mastersitecode0[Master Site],
Count(*) [Total Clients] from v_gs_sms_localmp  LM,v_R_System sys
where sys.ResourceID=lm.resourceid
and sys.Active0=1 and lm.index0=1
group by lm.name0,lm.sitecode0,LM.mastersitecode0

image thumb9 Configmgr 2012 SSRS Report:Know how many clients your Secondary Site is Supporting

Configmgr 2012 SSRS Report:Know how many clients your Secondary Site is Supporting is a post from: Eswar Koneti's Blog

Configmgr 2012:Error sending DAV request.HTTP Code 500,Status ‘Internal server Error’ datatransferservice.log

$
0
0

couple of days ago,I have got request says, configmgr clients are failed to install the applications from software center on specific Site .This leads me to check the client logs.

datatransferservice.log says,successfully sent location service HTTP Failure message, Error sending DAV Request.HTTP Code 500,Status ‘Internal server Error’.

As you can see from below screen,client are unable to download the content Via IIS with error code:500 which tells you that,something went Wrong with IIS.

 

image thumb10 Configmgr 2012:Error sending DAV request.HTTP Code 500,Status ‘Internal server Error’ datatransferservice.log

Logged into the server ,open IIS manager(inetmgr),tried to browse SMS_DP_SMSPKG$ share using http://localhost:80/SMS_DP_SMSPKG$/pkglib

image thumb11 Configmgr 2012:Error sending DAV request.HTTP Code 500,Status ‘Internal server Error’ datatransferservice.log

Physical path Drive:\sccmcontentlib is set correctly .what could be the issue ?

Before I Dig into solution,first step always ,compare the applicationhost.config file with working server ( file path C:\Windows\System32\inetsrv\config).

How do you compare it ? manually checking or any tools that compare for you ? I use WinMerge Tool does the comparison.(There could be better tools than this).

open the tool,input both the files(not working and working).This tool compare line by line and display the unmatched lines with Yellow Color.

Start looking with SMS distribution(ctrl+F find Option) ,this is what we should look for the difference If any.

image thumb12 Configmgr 2012:Error sending DAV request.HTTP Code 500,Status ‘Internal server Error’ datatransferservice.log

As you can above,’Enable32BitAppOnWin64 is set to True which supposed to be False for SMS Distribution Points Pool.

Go back to IIS,Application Pools,Locate SMS Distribution Points Pool—Right click –>Advanced Settings

Change the Setting ‘Enable 32-Bit Applications’=False

Note: There could be several reasons that you get error:500,it doesn’t mean,all the 500 error is causing because of this setting.

image thumb13 Configmgr 2012:Error sending DAV request.HTTP Code 500,Status ‘Internal server Error’ datatransferservice.log

Click Ok (no need to restart the IIS service)

Browse the Content http://localhost:80/SMS_DP_SMSPKG$/pkglib, this time it list all the configuration files.

Back to Clients,Retry the installation,it connect to IIS ,download the content ,install the App.

Configmgr 2012:Error sending DAV request.HTTP Code 500,Status ‘Internal server Error’ datatransferservice.log is a post from: Eswar Koneti's Blog

SCCM Configmgr 2012 SP1 Cumulative Update 4 (KB2922875) is available

$
0
0

Cumulative Update (CU) 4 which replaces Cumulative Update 3 for Configuration manager 2012 SP1 is now available that describes the issues that are fixed and the functionality updated.

CU4 addresses the below issues that are fixed:

  • Software distribution
  • Operating System Deployment
  • Administrative console
  • Application Virtualization
  • Endpoint Protection
  • Site Server

For all the details and a download link ,refer http://support.microsoft.com/kb/2922875

Restart Information: You do not have to restart the computer after you apply this update.
Note :It is recommend to close the Configuration Manager Administrator Console before you install this update.

SCCM Configmgr 2012 SP1 Cumulative Update 4 (KB2922875) is available is a post from: Eswar Koneti's Blog

Configmgr Client Error:ccmsetup failed with Exit Code: 1603, MSI Could not access network location %APPDATA%

$
0
0

Recently,I was troubleshooting configmgr 2012 client issue ,the installation keeps failing with error code :1603 (from ccmsetup.log) ,error says ,”Fatal error during installation”.

in addition to this,I see something interesting about network access location %APPDATA%.

MSI: Could not access network location %APPDATA%\.

File C:\Windows\ccmsetup\{181D79D7-1115-4D96-8E9B-5833DF92FBB4}\client.msi installation failed. Error text: ExitCode: 1603
Action: CostFinalize.
ErrorMessages:
Could not access network location %APPDATA%\.
Could not access network location %APPDATA%\.

From CCMSETUP.Log:

image thumb Configmgr Client Error:ccmsetup failed with Exit Code: 1603, MSI Could not access network location %APPDATA%

 

while installing sccm client,It requires to access the environmental variable %APPDATA% from registry location which are are corrupted/Changed for several reasons .

How do I Fix it ?

There is fix available on the support.Microsoft.com and msdn but with different Error Code Error 1606: Could Not Access Network Location.

I have applied the similar fix on the problem computer before reinstalling the ccmsetup.exe.it worked

Here is the simplified fix for you :

1. Open the Registry editor
2. Navigate to the following registry keys HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders

image thumb1 Configmgr Client Error:ccmsetup failed with Exit Code: 1603, MSI Could not access network location %APPDATA%

If you look at all the values for the variables in the above pic,you can identify the odd one which is appdata.
3. The correct and default value for AppData should be: %USERPROFILE%\AppData\Roaming

4. It would be better to also check and correct the Appdata Value for the below registry keys as well before we start the installation.

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\

 

Hope it helps !

Configmgr Client Error:ccmsetup failed with Exit Code: 1603, MSI Could not access network location %APPDATA% is a post from: Eswar Koneti's Blog

Configmgr 2012 Report Applications packages assigned to specific collection

$
0
0

A question asked in the forum recently about,way to get list of applications ,packages assigned to specific collection.I looked at the default reports if there is any or similar which can be customized but cannot find.

It is hard to see always what apps/packages assigned to collection using manual method.Here is the SSRS /SQL query to get list of apps assigned.

This contains 2 queries 1) apps assigned and 2) packages assigned both excluding the software updates and endpoint protection updates.

I always use Configmgr 2012 R2 SQL views excel spreadsheet to find the correct view for what you need.For this report,application name is available from v_ApplicationAssignment and package name(legacy) from v_advertisement.

 

image thumb5 Configmgr 2012 Report Applications packages assigned to specific collection

Applications Assigned:

select CA.ApplicationName,
case when NotifyUser=1 then ‘Yes’ Else ‘No’ End as ‘Notify User’,
case when  UserUIExperience=1 then ‘Yes’ Else ‘No’ End as ‘UserUIExperience’,
case when AssignmentAction=2 then ‘Install’ Else ‘Uninstall’ End as ‘Action’,
CA.CreationTime,CA.LastModificationTime,CA.LastModifiedBy from v_ApplicationAssignment CA,v_Collection coll
where ca.CollectionID=coll.CollectionID and
coll.CollectionID=@collection and (CA.AssignmentName not like ‘%Software Update%’ and CA.AssignmentName not like ‘%Endpoint Protection%’)

Package Assigned:

select SUBSTRING(adv.AdvertisementName, 1, CHARINDEX(‘_’, adv.AdvertisementName) – 1) aS [Advertisement Name],
adv.ProgramName,adv.ExpirationTime from v_Advertisement adv,v_Collection coll
where adv.CollectionID=coll.CollectionID
and coll.CollectionID = @Collection

Prompt:

select CollectionID,name from v_Collection
order by name

Download the RDL file from Technet Gallary:

Some information about Notify User and UserUIExpeirnce from Phil .

Application Deployments which are marked as Available will have two options:

Display in Software Center and show all notifications
Display in Software Center, and only show notifications for computer restarts

Deployments marked as Required also have a third option to “Hide in Software Center and all notifications”

The NotifyUser value determines whether the user sees notifications for new applications in the system tray, and the UserUIExperience determines whether the user sees anything at all related to the application.  Thus an available deployment set to show all notifications would have a value of 1 for both, an Available or Required deployment set to only show notifications for reboots would have NotifyUser set to 0 and UserUIExperience set to 1, and a Required deployment set to hide everything would have both set to 0

Configmgr 2012 Report Applications packages assigned to specific collection is a post from: Eswar Koneti's Blog


Configmgr 2012 Delete duplicate ,Obsolete records etc using collections

$
0
0

Few days back,I was working on Client health remediation issues.for this activity,I created some cool SSRS reports based on client health statistics(soon,will post them on the blog) how many are with client,without client etc.

count of missing clients are not too bad (few hundreds) but still need to get possible clients* into configmgr console using different client installation methods like client push,logon script etc.

During this process,I found many clients are with duplicate records,obsolete ,multiple resource ID with same computer name.More via http://social.technet.microsoft.com/Forums/systemcenter/en-US/8f3fd7cd-0e3d-4429-bcde-02b2ec77324d/report-showing-servers-showing-two-os?forum=configmgrgeneral#ac775d37-141a-404c-a345-7d882b1bbe17

the above issues are addressed in multiple blogs—- how to create collection to find duplicate records and delete them from database but I thought of presenting all in this blog including new issue—One computer with different Resource IDs

I ran below SQL query on SSMS (management Studio) ,found many entries .pick one computer and ran select * from v_r_system where name0=’computer name’ .This results 2 entries for one computer name,both the computers are active,No Obsolete,Client is 1 ,what else I can check to differentiate between .This is really confusing ,you should try to fix it by somehow else you will impact on patch compliance % because only one computer will send the compliance report but no other.

select sys.name0
from v_r_system sys
group by  sys.name0
having count(sys.name0) >=2

How do you cleanup this mess from Database ?

Created a collection with all these entries using query based or what ever you prefer and delete them from database.don’t worry though,these deleted computers will be back to the console with their next DDR cycle.

List of collection you need to have in place to cleanup duplicate entries are:

Duplicate Computer Names:

select R.ResourceID,R.ResourceType,R.Name,R.SMSUniqueIdentifier,R.ResourceDomainORWorkgroup,R.Client from SMS_R_System as r full join SMS_R_System as s1

on s1.ResourceId = r.ResourceId full join SMS_R_System as s2 on s2.Name = s1.Name where s1.Name = s2.Name and s1.ResourceId != s2.ResourceId and R.Client = null

Duplicate Resource ID with same Computer Name(based on Active Status):

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.Active is null  and SMS_R_System.Name in (select Name  from  SMS_R_System where SMS_R_System.Active = "1")

Obsolete Computers:

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.Obsolete = "1" and SMS_R_System.Name not like "Unknown"

 

You can either manually delete the entries from collection or create schedule job which performs delete resources from the collection using task scheduler .

Configmgr 2012 Delete duplicate ,Obsolete records etc using collections is a post from: Eswar Koneti's Blog

Configmgr 2012 Content Prestage Error from distmgr log -Will reject STA for DP as it does not exist in the PkgServers table

$
0
0

Content Prestage in Configmgr 2012 is a new/Updated feature from its previous Version Configmgr 2007(Preloading).Content Prestaging is mainly used for the sites which has Slow or costly network connectivity.

When you are creating new site Distribution Point at remote location with Slow connectivity,you cannot distribute the missing packages due to bandwidth constraints.Configmgr 2012 allows you to create Prestage Content means,You can Export the content from One DP (Note: Only DPs under this particular Site could be Primary or Secondary will be listed but not from Other sites) ,copy to Disk,ship it and then import to the newly configured DP.

To know more about how to export content,Import Content using ExtractContent.exe refer TechNet  and Kent’s blog.

Lets jump into the Issue Now.As usual,configured New DP,copied the exported content (.pkgx) to ship,imported the content to newly Created server and started prestaging the content using ExtractContent.exe.

As  I have hundreds of packages to prestage,I created batch script and leave the server for day to complete the process. Next day,I ran query to see how many packages missing on the server ,report show few of them though the prestage is successfully done. I took one random package,do the prestage on the newly configured DP manually using command:extractcontent.exe /P:J:\Compressed_Packages\P0100035.pkgx /F to see its progress.

Monitor J:\SMS_DP$\sms\logs\PrestageContent.log for progress,it says “Sent P0100035.3 package state message to site”.

Immediately look into distmgr.log on the Site server(primary or Secondary where the DP is created attached ),search with package ID ‘P0100035’ ,found below message.

Will reject STA for DP ["Display=\\INSCCM1.eskonr.com\"]MSWNET:["SMS_SITE=P01"]\\INSCCM1.eskonr.com\ as it does not exist in the PkgServers table

Will not process this invalid package status file from remote DP ["Display=\\INSCCM1.eskonr.com\"]MSWNET:["SMS_SITE=P01"]\\INSCCM1.eskonr.com\, delete F:\SCCM\inboxes\distmgr.box\INCOMING\Q01XWOHT.STA

image thumb9 Configmgr 2012 Content Prestage Error from distmgr log  Will reject STA for DP as it does not exist in the PkgServers table

The error says,the prestaged package do not exist in ‘PkgServers’ table thus,site system cannot accept the STA file to process it.this leads me to think about, I have not added any of the imported packages to this DP prior running ExtractContent.exe

and why is it giving error only for few packages ? Question Remains ?

How do I make sure the content is available on the server without utilizing the WAN link ?

Get list of packages (mix of all package types like apps,OSD,Packages,drivers etc) that are having issue with prestaging,use the script to available here to distribute to DP.

On the DP server,do prestage content for missing packages using :extractcontent.exe /P:J:\Compressed_Packages\P0100035.pkgx /F

Monitor distmgr.log on Primary/Secondary ,you will see package being processed processed and content will not send over the WAN as site already received status message(.STA) saying package is already installed.

image thumb10 Configmgr 2012 Content Prestage Error from distmgr log  Will reject STA for DP as it does not exist in the PkgServers table

 

I have also seen other issues with content prestaging from distmgr.log like ‘Discarding old status update for package P01003BE for distribution point ["Display=\\INSCCM1.eskonr.com\"]MSWNET:["SMS_SITE=P01"]\\INSCCM1.eskonr.com\.’

which means,the prestaging file version(for ex: 10)  is older than the version (Ex:11) that exist on the Primary site.For this ,you will have to either export the updated content or let the content transfer via WAN link.

image thumb11 Configmgr 2012 Content Prestage Error from distmgr log  Will reject STA for DP as it does not exist in the PkgServers table

 

Conclusion: It is good practice to have all the production packages assigned to DP group(DP group contains list of all DPs).So ,If you build New DP,you don’t have to target packages individually instead,you can DP to DP Group.

hope it helps!

Configmgr 2012 Content Prestage Error from distmgr log -Will reject STA for DP as it does not exist in the PkgServers table is a post from: Eswar Koneti's Blog

Configmgr 2012 R2 Cumulative Update 1 –KB2938441 Released

$
0
0

Most awaited and First Cumulative Update which was expected to be released in Q2 (as per the news from various forums) but Microsoft decided to release it early and here it is for you.

There has been many DCR’s(Design Change Request) raised by several of Configmgr guys and my self raised support ticket with Microsoft about software center available date after showing old date(1998) ,more info here and Microsoft tried to resolve most of them in Cumulative Update 1.

As this is the first Cumulative Update,it will not replace any other previous Update.

so what are the issues that are fixed and functionality Cumulative Update 1 (CU1) ?

  • Administrative console
  • Mobile Device Management
  • Reporting
  • Application Virtualization
  • Internet-based clients
  • Software Center
  • Operating system deployment
  • Endpoint Protection
  • Application management
  • Site systems
  • Windows PowerShell http://support.microsoft.com/kb/2932274
  • Wake-up proxy

If you look at above ,we can understand ,CU1 fixes issues in almost all areas of Configmgr 2012 R2.

More about issues that are fixed with full description and download Hotfix http://support.microsoft.com/kb/2938441/en-us and Powershell issues http://support.microsoft.com/kb/2932274

How do you check if the Cumulative Update has been installed and what changes made to the Admin Console,Client and what else ?

On the Site systems,check the registry key located under the following Subkey

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SMS\Setup

The CULevel value is set to 1 for Cumulative Update 1.

The version of Administrative Console will be 5.0.7958.1203

Configmgr 2012 R2 Client Version will be 5.00.7958.1203

Endpoint Protection Client Anti-malware Client Version will be 4.5.0216.0

 

How to Install CU1 on Primary and secondary ,admin console and clients ,http://eskonr.com/2014/03/how-to-install-configmgr-2012-r2-cu1-part-1/

Configmgr 2012 R2 Cumulative Update 1 –KB2938441 Released is a post from: Eswar Koneti's Blog

How to Install Configmgr 2012 R2 CU1 Part 1

$
0
0

Configmgr 2012 R2 Cumulative Update 1 released today(Mar 28,2014), to know more about this update,refer http://eskonr.com/2014/03/configmgr-2012-r2-cumulative-update-cu1-released/

Installation of any Cumulative Update is straight forward process (so Far) by clicking Next,Next ,Next and is simple to consider but you should be cautious before doing the upgrade like taking up the backup of Configmgr and should be recent one,make sure your site is running in good condition.

My Lab Hierarchy Consists of 1 Primary,1 Secondary and 2 Distribution points with several clients. all servers running on windows server 2012 OS.

What is the Hierarchy to install the Update ? You should come from top to bottom (Means from CAS if you have, else Primary to secondary’s).

You can install this Update on the following:

  • Central Administrative Site
  • Primary Site (Standalone)
  • Secondary Site(Hierarchy)
  • Provider and Console

I have divided this task into 2 posts  1) How to install Configmgr 2012 R2 CU1 on Primary Site 2) How to install Configmgr 2012 R2 CU1 on Secondary Site and upgrade Clients.

so,we are now ready to upgrade Primary Site to CU1 after having good backup of Site.Make sure you close the Configmgr Console connections if any.

Here is my Primary Site properties.You might be wondering why did i capture the screenshot,This is not because to check the Version of Site is updated to New(of course it is one of the Reason) but also compare if any Information available in the Properties of Primary site about what is the CU level and What version are we running like R2 etc as you might have seen in Configmgr 2007 about R2 or R3 etc in Site Properties.

image thumb12 How to Install Configmgr 2012 R2 CU1 Part 1

R2 running on Version:5.00.7958.1000.

Download the Hotfix,Unzip and install CM12-R2CU1-KB2938441-X64-ENU.exe.

From above,you can notice that, Where all you can install this Update on and what

image thumb13 How to Install Configmgr 2012 R2 CU1 Part 1

image thumb14 How to Install Configmgr 2012 R2 CU1 Part 1

Small Prerequisite Check

you can also check the log what is happening on the backend ,log located at:C:\windows\temp\cm12-r2cu1-kb2938441-x64-enu.log

image thumb33 How to Install Configmgr 2012 R2 CU1 Part 1

image thumb34 How to Install Configmgr 2012 R2 CU1 Part 1

Click Next

image thumb35 How to Install Configmgr 2012 R2 CU1 Part 1

Select ,Yes,Update the Database

image thumb36 How to Install Configmgr 2012 R2 CU1 Part 1

this step will create packages with programs which you can deploy to other configuration manager systems like SMS provider,Console and clients.

image thumb37 How to Install Configmgr 2012 R2 CU1 Part 1

By Default,It will select the default location ,if you want to provide custom name,you can do so but i like the default options.

image thumb38 How to Install Configmgr 2012 R2 CU1 Part 1

This package is for Configmgr Admin Console.

image thumb39 How to Install Configmgr 2012 R2 CU1 Part 1

This package is for X86 and X64 clients.

image thumb40 How to Install Configmgr 2012 R2 CU1 Part 1

we are done with most of the steps, and ready to start the installation.

image thumb41 How to Install Configmgr 2012 R2 CU1 Part 1

Click Next

image thumb42 How to Install Configmgr 2012 R2 CU1 Part 1

Installation Started ,meantime start looking at log file to see the progress ,log at C:\windows\temp\cm12-r2cu1-kb2938441-x64-enu.log

image thumb43 How to Install Configmgr 2012 R2 CU1 Part 1

back to the installation wizard,setup completed. (It took 15 min to complete the setup wizard)

image thumb44 How to Install Configmgr 2012 R2 CU1 Part 1

Click Next

image thumb45 How to Install Configmgr 2012 R2 CU1 Part 1

We have successfully installed CU1 on Primary Site.

Before you open the Configmgr Console,lets have a look at folder structure for the packages what has been created during the installation.

Browse to your Configmgr installation Directory F:\SCCM\hotfix\KB2938441

image thumb46 How to Install Configmgr 2012 R2 CU1 Part 1

so you basically have 4 packages created 1) Console 2) clients 3) Update Publisher 4)Site servers

you can see these packages created in Console.

image thumb51 How to Install Configmgr 2012 R2 CU1 Part 1

How do you check What version of CU level applied onto the Site server ? You can find this using Registry Key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SMS\Setup with CULevel=1

image thumb47 How to Install Configmgr 2012 R2 CU1 Part 1

Now lets open the Console and see what has been changed to the console ?

Check the properties of Primary Site

Go to administration node—Site configuration –Sites—right click on Primary Site,properties,

image thumb48 How to Install Configmgr 2012 R2 CU1 Part 1

If you compare the above pic and the one which we capture before we upgrade to CU1,both are same.there are no changes with respect to displaying the CU information in Site properties but lets check the console if it has updated or not.

From the Console ,on the top Left Corner,click on about Configuration manager

image thumb49 How to Install Configmgr 2012 R2 CU1 Part 1

As you can see,the Version is changed to .1203

image thumb50 How to Install Configmgr 2012 R2 CU1 Part 1

so we are done with Installation of Configmgr 2012 R2 CU1 on primary Site and verified it is successfully installed by looking at Registry Key and also from admin Console.

As this hotfix also has some updates to boot images,you should also require to update all Boot Images to Distribution Points,for more info on this,refer http://support.microsoft.com/kb/2938441/en-us

Note:You do not have to restart the computer after you apply this update.

Next part,we will see how to Update Secondary Sites,Consoles and Clients http://eskonr.com/2014/03/how-to-install-configmgr-2012-r2-cu1-part-2/

How to Install Configmgr 2012 R2 CU1 Part 1 is a post from: Eswar Koneti's Blog

How to Install Configmgr 2012 R2 CU1 – Part 2

$
0
0

This is continues to my Previous post (Part 1) that we saw yesterday on how to install Configmgr 2012 R2 CU1 on Primary Site.

In this post,we will see how to install CU1 on Site Server s Secondary Sites,Admin Console and Clients.

Installation of CU1 on secondary Site can be done in 2 ways depends on hierarchy.If you have more number of secondary sites,prefer to go with software distribution method OR if you have limited say 1 or 2 ,prefer to CU manually on the secondary Site .

In this blog post,I will talk through the installation of CU using software distribution method on Secondary Site.

After the packages created in Console,we need to make sure they available on the DP’s.Lets distribute all the 4 created packages to DP’s.

Note:By Default,configuration manager create packages with simple command line(uses .exe) ,you can make use of msi to add /norestart and log file (l*v) etc.

Next,create collection for secondary sites,admin console and clients (x86 and x64).

Collection for R2 CU1-Site server to get all secondary Sites:

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.SystemRoles = “SMS Component Server

Collection for R2 CU1-Console Update:

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_ADD_REMOVE_PROGRAMS on SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID = SMS_R_System.ResourceId where SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName = “System Center 2012 R2 Configuration Manager Console” and SMS_R_System.Client = “1″ and SMS_R_System.Active = “1″

Collection for R2 CU1 Client x86:

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_SYSTEM on SMS_G_System_SYSTEM.ResourceID = SMS_R_System.ResourceId inner join SMS_G_System_SMS_ADVANCED_CLIENT_STATE on SMS_G_System_SMS_ADVANCED_CLIENT_STATE.ResourceID = SMS_R_System.ResourceId where SMS_R_System.Client = “1″ and SMS_G_System_SYSTEM.SystemType = “X86-based PC” and SMS_R_System.Active = “1″ and SMS_G_System_SMS_ADVANCED_CLIENT_STATE.DisplayName = “CCM Framework” and SMS_G_System_SMS_ADVANCED_CLIENT_STATE.Version != “5.00.7958.1203″

Note: Before you deploy CU1 patch on x86 collection,make sure ,all of your clients are running on configmgr 2012 R2 Version (5.00.7958.1000)

Collection for R2 CU1 client x64:

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_SYSTEM on SMS_G_System_SYSTEM.ResourceID = SMS_R_System.ResourceId
inner join SMS_G_System_SMS_ADVANCED_CLIENT_STATE on SMS_G_System_SMS_ADVANCED_CLIENT_STATE.ResourceId = SMS_R_System.ResourceId
where SMS_R_System.Client = “1″ and SMS_G_System_SYSTEM.SystemType = “X64-based PC”
and SMS_R_System.Active = “1″ and SMS_G_System_SMS_ADVANCED_CLIENT_STATE.DisplayName = “CCM Framework”
and SMS_G_System_SMS_ADVANCED_CLIENT_STATE.Version != “5.00.7958.1203″

Note: Before you deploy CU1 patch on x64 collection,make sure ,all of your clients are running on configmgr 2012 R2 Version (5.00.7958.1000)

 

image thumb52 How to Install Configmgr 2012 R2 CU1 – Part 2

with this,we are almost there to deploy the CU1 on respective collections.

Go to software library—application management—packages.

Deploy CU1 packages to respective collections and monitor the status of deployment.

Login to the secondary Site server,open software center,check for the status ..you can also monitor log execmgr.log from client logs (could be c:\windows\ccm or SMS_CCM)

image thumb53 How to Install Configmgr 2012 R2 CU1 – Part 2

also from registry(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SMS\Setup) ,you can check CULevel =1

image thumb54 How to Install Configmgr 2012 R2 CU1 – Part 2

If you look at client version from configuration manager applet,you will see the updated version of client to .1203

image thumb55 How to Install Configmgr 2012 R2 CU1 – Part 2

Until Next!

How to Install Configmgr 2012 R2 CU1 – Part 2 is a post from: Eswar Koneti's Blog

Viewing all 243 articles
Browse latest View live