Quantcast
Channel: ConfigMgr (SCCM) – All about Microsoft Endpoint Manager
Viewing all 252 articles
Browse latest View live

How to Create New Category folder in SCCM Configmgr 2012 reports

$
0
0

Configuration Manager 2007 gives you an option to create New folder (kind of Custom reports folder ) with New Category to create your Own reports what you required But in Configuration Manager 2012,i don’t see way to create New folder to create all the custom reports for your reference.

Creation of Custom folder is not available in configuration Manager 2012 ,the only option left out is to go with Category .

How do you create New Citatory ? If you right click on reports node from Configuration Console,you don’t get such option to create one.

You will have to go with web reports with enough rights to create it.

Open IE with SSRS report manager website : http://SCCMServername/reports

image thumb10 How to Create New Category folder in SCCM Configmgr 2012 reports

Click on the Report Folder (Configmgr_Sitecode)

image thumb11 How to Create New Category folder in SCCM Configmgr 2012 reports

Click on New Folder which is actually a Category to create reports underneath.

give A Name what you would like with some Description and click ok

image thumb12 How to Create New Category folder in SCCM Configmgr 2012 reports

the custom category what we created You see it below :

image thumb13 How to Create New Category folder in SCCM Configmgr 2012 reports

Now open the Console and go to monitoring node—>reporting–>reports

image thumb14 How to Create New Category folder in SCCM Configmgr 2012 reports

Now we can create our Custom reports in Custom Folder But how ? you don’t get an option to create new report under Custom Category.

Right click on reports node and select Create Report

image thumb15 How to Create New Category folder in SCCM Configmgr 2012 reports

Enter the right name for the report and then select the path where you want to store the report under ?

image thumb16 How to Create New Category folder in SCCM Configmgr 2012 reports

image thumb17 How to Create New Category folder in SCCM Configmgr 2012 reports

image thumb18 How to Create New Category folder in SCCM Configmgr 2012 reports

image thumb19 How to Create New Category folder in SCCM Configmgr 2012 reports

Once you are finished with the report,you will be prompted with Report Builder to enter the SQL query and more customizations.

image thumb20 How to Create New Category folder in SCCM Configmgr 2012 reports

Hope it Helps!


SCCM Configmgr 2012 SP1 is Reviewed and Launched Again!

$
0
0

SCCM Configmgr 2012 SP1 is already out to All Customers (General Available) brining several cool features ,several fixes, improvements. However, due to a recent problem (Installation error 0x800b0101 and binary installation Endpoint Protection for Linux and iOS.) on this component,Microsoft just review the ISO SCCM 2012 SP1 and launched it again, duly corrected. So if you downloaded the ISO before the day 25.01.2013,It would be recommend to download again.

If you already in Production with Configmgr 2012 SP1 media released before the date,you should have already applied the fix to correct the issue and there is no need to Deploy this new media.

But is there any  information to fix issue with Endpoint protection for linux and Ios except downloading the New ISO ?

image thumb22 SCCM Configmgr 2012 SP1 is Reviewed and Launched Again!

Download the New SCCM Configuration Manager 2012 SP1 ISO via below links :
·         Microsoft Volume Licensing Services (MVLS)
·          TechNet Subscriptions (Must have subscription)
·          MSDN Subscriptions (Must have subscription)
·          TechNet Evaluation Center (For Evaluation)

Hidden Files to control SCCM Configmgr 2012

$
0
0

Old post but useful to share from J.C.HornBeck .We all know there are some hidden files(they are kind of secret files) which are available since Since Many years( I would think from SMS 2003 or may be from 2.0) in order to activate or deactivate some features in SMS/SCCM 2007 /SCCM 2012 (now) on client side or server side, such as preventing Software Inventory for a particular folder or preventing the installation of ConfigMgr files on a machine. Here’s some information on some of those files and how you might use them to control your Configuration Manager environment. The files are as follows:

  • NO_SMS_ON_DRIVE.SMS
  • ARCHIVE_REPORTS.SMS
  • SKPSWI.DAT

So what do these files do?

SKPSWI.DAT

This file can be used for skipping the Software inventory Process for a partition or for a folder. If you want to prevent software inventory on a drive/partition or folder you can create a hidden file named SKPWI.DAT and place it on the root of the drive/partition/folder.

image thumb23 Hidden Files to control SCCM Configmgr 2012

When do you, or can you use it?

In order to avoid the overhead of running software inventory on large disks with a large number of files that you do not need collected, you can create a hidden file named Skpswi.dat and place it in the root folder of each disk drive that you want excluded from software inventory. From that point forward, no software inventory will occur for those drives or folders unless the Skpswi.dat file is removed.

The Skpswi.dat file can also be used to avoid a software inventory collection rule. For example, if you have a rule to inventory "\WINDOWS", that entire folder tree will be skipped on any Configuration Manager client that has a Skpswi.dat file in the \ WINDOWS folder. Disks with a Skpswi.dat file are not scanned to find files that are to be collected.

You can also place this file in the root of any folder structure you want to exclude from software inventory. This procedure can be used to disable software inventory on a single workstation or server client, such as a large file server. Software inventory will not inventory the client drive again unless this file is deleted from the drive on the client computer.

For more information see the following:

How to Exclude Folders From Software Inventory: http://technet.microsoft.com/en-us/library/bb632671.aspx

ConfigMgr (SCCM) – Skip Software Inventory : http://social.technet.microsoft.com/wiki/contents/articles/6568.configmgr-sccm-skip-software-inventory.aspx

ARCHIVE_REPORTS.SMS

This is a client side file and is used when hardware/software inventory troubleshooting needs to be done.

When troubleshooting ConfigMgr client software or hardware inventory, you might want to retain the XML files that contain details on what the latest scan discovered (regardless whether the scan was a full scan or just a delta). In order to do this, we have to create a file named “archive_reports.sms” within %systemroot%\system32\ccm\inventory\temp\ or within %systemroot%\SysWOW64\ccm\inventory\temp\ depending if the machine is x64 or x86. Normally, on a regular client this would be as follows: C:\WINDOWS\system32\CCM\Inventory\temp\

Read the rest of the post http://blogs.technet.com/b/configurationmgr/archive/2012/09/17/controlling-configuration-manager-2012-using-hidden-files.aspx

#SCCM / #Configmgr Script to delete packages from Assigned DPs

$
0
0

Long ago ,written SCCM report to list packages not used for 6 months as part of Package Archival process http://eskonr.com/2012/11/sccm-configmgr-package-archival-process-cleanup-activity/ .This report tells you to take further action to clean or move to Archive folder to wait for some more months before it goes for Deletion.

What next ? Delete these packages from Assigned DPs to get some disk space ?

You may find several scripts to do this task on the internet but, i  find this is easy for me to get this activity done.

Identify list of package which you want to remove ,pipe them to notepad .You can do more customizations if needed.

Script to delete packages from its assigned Distribution Points.

strComputer =inputBox("Please Enter the SMS provider OR Site where the packages are created" , "SCCM Server name")
Set FSO = CreateObject("Scripting.FileSystemObject")
Set packages=fso.OpenTextFile("C:\PACKAGESTODELETE.txt",1,true)
Set objoutputfile=fso.OpenTextFile("C:\DP_results.txt",2,true)

Do While packages.AtEndOfLine <> True
    ‘read the next line
    package = packages.Readline

Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\SMS\site_CEN")
if err.number<>0 then
    msgbox "server connection failed"
    wscript.quit
end if
Set colItems = objWMIService.ExecQuery("SELECT * FROM SMS_DistributionPoint where packageid=’" & Package & "’")
For Each objItem in colItems
        ‘Wscript.Echo "ServerNALPath: " & objItem.ServerNALPath
objoutputfile.WriteLine ( package & vbTab & " will be deleteting from" & VBTAB & objItem.ServerNALPath)

objitem.Delete_

If Err.number <> 0 Then

objoutputfile.WriteLine ( "Failed to delete" & vbTab & package & "from" &  vbTab & objItem.ServerNALPath)
      End If
    Next

loop

msgbox "Done"

Note: Please Replace the quotes.

SCCM Configmgr 2007 Script move packages to Archive Folder

$
0
0

This is Continuation to previous post package archival process.up on the query results,I would not delete the packages from console directly rather i delete them from its assigned Distribution points and move them to Archive folder and let be there for sometime until for sometime incase if it is required.

If you have large number of packages,you may find difficult in moving the packages by identifying where they reside (if you have subfolders).If you have less packages <10,you may use the report to know the root path of the package  and then right click on the package Move to archive folder by appending Retired to the existing package name to know package is retired.

If you have multiple packages,moving one by one is not easy thus you require something like script or tools.

Moving package using script may require to get the Source folder ContainerID number of  the packages(Folder of the package)  and Destination Folder ContainerID(Archival folder ID).

Here is the SQL query for the list of moving packages to know their Source Folder ContanerID.

 image thumb SCCM Configmgr 2007 Script move packages to Archive Folder

From the package clean up report,if you get multiple packages,just place them in IN condition separated by comma (,).

I have packageID cen00004 which i need to move to archive folder with containerID=4 from SQL query below

select  B.ContainerNodeID,B.NAME,A.InstanceKey from dbo.FolderMembers a,.dbo.Folders b where
a.ContainerNodeID=b.ContainerNodeID and b.Name like ‘%archive%’

Replace the folder name if you have other one.

Now we have list of packages with their source ContainerNodeID(which is nothing  but the package FolderID).

Create a VB script with below syntax with input of all package IDs separated by commas with their source folder and destination folder.

Note : Please replace quotes (‘”) as they are replaced by fancy.

Option Explicit
‘On error resume next

Dim strSMSServer, strSMSSiteCode, strPackageIDs
Dim intSourceFolder, intDestFolder, intObjectType
Dim loc, objSMS
Dim objFolder
Dim arrPackageIDs
Dim retval

strSMSServer   = "SCCM server Name"
strSMSSiteCode = "SiteCode"
strPackageIDs  = inputbox("Please input packageIDs separated by commas","List of packages to be moved")

intSourceFolder =inputbox("Please input Source folder ContainerID number", "Source ContainerID")  ‘This ID is what you see in above SQL query to move all packages from the same folder test =1.
intDestFolder   =4 ‘Destination Folder for Archived packages :In this case,My archive package folder is 4.

intObjectType   = 2  ’2=Package for type of object .This scripts works only for standard software distribution packages.

Set loc         = CreateObject("WbemScripting.SWbemLocator")
Set objSMS      = loc.ConnectServer(strSMSServer, "root\SMS\site_" & strSMSSiteCode)

Set objFolder = objSMS.Get("SMS_ObjectContainerItem")
arrPackageIDs = Split(strPackageIDs, ",")

retval = objFolder.MoveMembers(arrPackageIDs, intSourceFolder , intDestFolder , intObjectType)
If Err.Number <> 0 Then
    msgbox Err.Description
End If

MSGBOX "Script is completed"

You may get multiple packages with different source Folders.So you will have to run the script to move bulk packages from each source folder to Destination at one go.

It is better than moving one by one package each time.

Hope it helps!

SCCM VBScript to add shortcut files to users desktop profile OR favorites

$
0
0

How to add link URL or shortcut file to users desktop profile ? Easiest way to accomplish this task is with GPO(Group policy Object).

If you want to accomplish this task using Configuration manager(SCCM),you can create simple VB script that does this job.

 

Option Explicit
dim path
path=CreateObject(“WScript.Shell”).ExpandEnvironmentStrings(“%UserProfile%\desktop“)
dim objFSO
set objFSO=CreateObject(“Scripting.FileSystemObject”)

If objFSO.FileExists(path & (“\eskonr.url“)) = False Then

objFSO.CopyFile “\\servername\folder name\eskonr.url“, path & “\”

end if

Full Details http://social.technet.microsoft.com/Forums/en-US/configmgrswdist/thread/ba1647a1-0385-48a9-9e83-1fc5daa00976/#e9d4f330-500e-45db-b3e1-5e3954f50ea4

SCCM Migration report Collections with mix of users and computers

$
0
0

If you are planning to migrate your SCCM 2007 environment to SCCM 2012,you may have to think about your packages,collections,OSD and other stuff.

you cannot migrate all collections from SCCM 2007 to SCCM 2012.Couple of things to note before you migrate them.

Points to note  on collection migration:

1. Collection can contain only either devices or users but not both.

2.  Every collection must have Limitation.

3.   Sub collections are no longer exists instead you have folders.

blogged couple of posts on archiving/removing packages not been used for X days that will help you to not migrate them to CM12.

In this blog,will show you how to identify the collections that has both users and computers member of it  to look at the collections if you want to take of users/Computers query before you go on migration.

Configmgr Report:

select
fcm.CollectionID ‘Collection ID’,COLL.Name
from
v_FullCollectionMembership fcm,v_Collection COLL
where fcm.CollectionID=coll.CollectionID
group by
fcm.CollectionID,COLL.Name
having
count(distinct fcm.ResourceType) > 1

MMS 2013 Content Catalog for SCCM 2012 SP1

$
0
0

MMS 2013 is getting nearer , (Apr 4-Apr 8) with loads of technical sessions on newly released products with hands on lab. More info here

From Apr 4-8,total of 300+ sessions happening on various technologies .

Many folks who works on Configuration manager like me, look for what content catalog.

Here is the pdf file listing out all SCCM 2012 related stuff which might help you to follow up .

download MMS 2013 SCCM 2012 SP1 Content Catalog

These configuration manager Sessions will generally be available for streaming around 24 hours after the session is complete.

http://channel9.msdn.com/Events/MMS/2013?sort=sequential&direction=desc&term=Configuration%20Manager

How to participate in MMS 2013 even if you aren’t going http://myitforum.com/myitforumwp/2013/04/03/how-to-participate-in-mms-2013-even-if-you-arent-going/


Download SCCM 2012 SQL Views Documentation

$
0
0

Configuration Manager Queries SQL Server views in the Configmgr site database when retrieving the information displayed in reports .Configmgr database contains large information about computer,User related resource and other components as well.

If you are looking for some particular information while creating reports and if you are not sure which table the information has,you will stuck there else you will have guess the table/view to get what is desired.

SQL views contain the information you need for your reports to make reporting easier.

I cont find any document or related resources for SCCM 2012 SQL views .

Russ from Microsoft replied on the forums to get SQL views in SCCM 2012.

Here is the SQL query to get list of views with its columns Available in Configuration Manager 2012 Database.

Select distinct table_name,COLUMN_NAME From Information_Schema.columns

where table_name LIKE (‘v_%’)

Order by table_name

Download the excel sheet exported with Pivot Table from here

Creating Custom Reports By Using Configuration Manager 2007 SQL Views http://www.microsoft.com/en-us/download/details.aspx?id=22052

Script to Download all MMS 2013 SCCM Configmgr 2012 Sessions

$
0
0

Do you remember the Powershell script posted by SCOMFAQ  to download required MMS 2012 Sessions last year

Once again he come up with easy way to download all the required MMS 2013 sessions using Powershell script.

This basically contains 2 power shell scripts :

  • Create-MMS2013SessionFile.ps1 –> This file creates the sessions.txt file OR You can create sessions.txe and add all the Sessions codes for Ex:DC-B309.wmv and save the file.
  • MMS2013_Downloader.ps1 –> This file downloads the sessions which you have given in sessions.txt file.

Download the scripts from Sky drive,save it in one folder.I have listed out all SCCM Configmgr 2012 Sessions codes here,save it in same folder where you placed the scripts.

If you get any error like “script cannot be loaded”while running MMS2013_downloader.ps1 script to download the sessions,you may have to try setting execution policy to unrestricted.

image thumb Script to Download all MMS 2013 SCCM Configmgr 2012 Sessions Command line : Set-ExecutionPolicy Unrestricted

Try running the script now.During this process,it may prompt you security warning,Press Y.

image thumb1 Script to Download all MMS 2013 SCCM Configmgr 2012 Sessions

Next it ask for path to download the sessions with folder creation inside it called MMS2013Sessions.

Read Complete post Via http://blog.scomfaq.ch/2013/04/10/mms-2013-download-sessions-offline-viewing/

Enojy !

SCCM Report for Optional and Mandatory Advertisements

$
0
0

SQL Code used in SCCM Reporting to get list of Advertisements that are Mandatory!

select adv.AdvertisementName as [Adv Name],
adv.PresentTime as DistributionDate,
pkg.Name as PackageName, pgm.ProgramName, coll.Name as CollectioName,
adv.AdvertisementID
from v_Advertisement adv
join v_Package pkg on adv.PackageID=pkg.PackageID
join v_Program pgm on adv.PackageID=pgm.PackageID and adv.ProgramName=pgm.ProgramName
join v_Collection coll on adv.CollectionID=coll.CollectionID
join v_ClientAdvertisementStatus stat on adv.AdvertisementID=stat.AdvertisementID
where (adv.AssignedScheduleEnabled != 0 or adv.AdvertFlags & 0X720 != 0)
group by adv.AdvertisementID, adv.AdvertisementName, adv.PresentTime,
pkg.Name, pgm.ProgramName, adv.SourceSite, coll.Name
order by adv.AdvertisementName

SQL Code used in SCCM reporting to get list of advertisements that are Optional.

select adv.AdvertisementName as [Adv Name],
adv.PresentTime as DistributionDate,
pkg.Name as PackageName, pgm.ProgramName, coll.Name as CollectioName,
adv.AdvertisementID
from v_Advertisement adv
join v_Package pkg on adv.PackageID=pkg.PackageID
join v_Program pgm on adv.PackageID=pgm.PackageID and adv.ProgramName=pgm.ProgramName
join v_Collection coll on adv.CollectionID=coll.CollectionID
join v_ClientAdvertisementStatus stat on adv.AdvertisementID=stat.AdvertisementID
where (adv.AssignedScheduleEnabled = 0 or adv.AdvertFlags & 0X720 = 0)
group by adv.AdvertisementID, adv.AdvertisementName, adv.PresentTime,
pkg.Name, pgm.ProgramName, adv.SourceSite, coll.Name
order by adv.AdvertisementName

Configmgr SCCM 2012 R2 Preview is available for Download

$
0
0

Quick Update from Microsoft about System Center 2012 R2 Preview is available for Download from MSDN /Evaluation(below).

This prerelease version is not supported in a production environment and is for testing only. 

This prerelease version does not support an upgrade from previous versions of System Center 2012 Configuration Manager. Install this prerelease version as a new installation of Configuration Manager. In addition, Configuration Manager does not support the import of objects between different versions of Configuration Manager.

To know more about Release notes and Known Issues with SCCM 2012 R2 Preview Release http://technet.microsoft.com/library/dn236347.aspx

I have just extracted all the direct download links for the System Center 2012 R2 components that will save time without Sign in Required.

Content is in Size 680 MB after Unzip.

image thumb3 Configmgr SCCM 2012 R2 Preview is available for Download

Download the Evolution products directly using below links.

Download Configmgr / SCCM 2012 R2 from here

Other System Center 2012 R2 Components are

Download SCOM 2012 R2 from here

Download SCVMM 2012 R2 from here

Download SCSM 2012 R2 from Here

Download SCO 2012 R2 from here

Download SCDPM 2012 R2 from Here

Download SCAC 2012 R2 from Here

Download Windows server 2012 R2 from Here

Update: David oBrien blogged about New Features about SCCM 2012 R2 (whats new in SCCM 2012 R2) http://www.david-obrien.net/2013/06/25/configmgr-2012-r2-whats-new/

For more information check http://www.microsoft.com/en-us/server-cloud/system-center/system-center-2012-r2-configuration-manager.aspx

To know more about what’s new in SCCM 2012 R2,read Henks blog http://henkhoogendoorn.blogspot.de/2013/06/updates-and-new-features-in-configmgr.html

Configmgr SCCM 2012 R2 Preview is available for Download is a post from: Eswar Koneti's Blog

#SCCM / #Configmgr How to get Client Cache Size using MOF file for Reporting

$
0
0

By Default,Client Cache information is not collected by Configuration Manager.You should do some customizations to get it working.

This blog post talks about how to create Custom MOF file and import into SCCM as custom hardware inventory class which will be applied onto clients as policy to get the information from WMI .

Save the below code into file with file_name.mof.

[ SMS_Report (TRUE),
  SMS_Group_Name ("SMS Advanced Client Cache"),
  SMS_Class_ID ("SMS_ADVANCED_CLIENT_CACHE"),
  Namespace ("\\\\\\\\.\\\\root\\\\ccm\\\\softmgmtagent") ]
class CacheConfig : SMS_Class_Template
{
    [ SMS_Report (TRUE), key ]
    String     ConfigKey;
    [ SMS_Report (TRUE) ]
    Boolean     InUse;
    [ SMS_Report (TRUE) ]
    String     Location;
    [ SMS_Report (TRUE) ]
    UInt32     Size;
};

Note:Please Replace the Quotes (‘”) ,blog converts them to fancy.

Open Configmgr 2012 Console,Move onto Administration pane—>Client Settings ,you see Default Client settings.

Note :Don’t try to do it on custom client hardware inventory settings which you have created ,If you do so,it will not work.

Below is error code what you get if you try to import to Custom hardware inventory settings.

The following classes for which you are trying to import settings do not exist.  Import the required class definitions and then try to import the settings again.”

image thumb #SCCM / #Configmgr How to get Client Cache Size using MOF file for Reporting Always import /Add the custom hardware inventory classes onto Default Client settings .These changes will be automatically flow into Custom client hardware inventory settings.

image thumb1 #SCCM / #Configmgr How to get Client Cache Size using MOF file for Reporting Click on Set Classes and then Click on Import

image thumb2 #SCCM / #Configmgr How to get Client Cache Size using MOF file for Reporting

Select the MOF file that we created above.

image thumb3 #SCCM / #Configmgr How to get Client Cache Size using MOF file for Reporting 

Select what is required for you.

image thumb4 #SCCM / #Configmgr How to get Client Cache Size using MOF file for Reporting Monitor dataldr.log on the site server if these changes successfully processed or not ?

image thumb5 #SCCM / #Configmgr How to get Client Cache Size using MOF file for Reporting

From above we conclude that,these changes are inserted into Database.

You can also verify from UI ,select what fields you required and what not .image thumb6 #SCCM / #Configmgr How to get Client Cache Size using MOF file for Reporting

From the SCCM client machine,you see the following changes when the hardware inventory schedule runs:

Inventoryagent.log

image thumb7 #SCCM / #Configmgr How to get Client Cache Size using MOF file for Reporting

Below is the collection, you can create to know how man clients do not meet the required cache size.

select *  from  SMS_R_System inner join SMS_G_System_SMS_ADVANCED_CLIENT_CACHE on SMS_G_System_SMS_ADVANCED_CLIENT_CACHE.ResourceId = SMS_R_System.ResourceId where SMS_G_System_SMS_ADVANCED_CLIENT_CACHE.Size < 10240 

Thanks to MOF Master Sherry for providing the MOF file.

#SCCM / #Configmgr How to get Client Cache Size using MOF file for Reporting is a post from: Eswar Koneti's Blog

Script to Change SCCM Configmgr Client Cache Size

$
0
0

My Previous Blog post talks about How to know Client Cache folder size in your Environment using Custom MOF.What is you are deploying Larger packages or Your Cache size is full with applications and software updates ?

By Default,Configuration Manager Client stores the Deployed packages (could be applications,Packages,Software updates etc) in C:\windows\SysWOW64\CCM\Cache (CM07) and C:\Windows\ccmcache(CM12).

The Size of the Cache folder can be specified while installing SCCM Client using parameter SMSCACHESIZE .If you do not set this property while installing SCCM Client, the folder defaults to a maximum size of 5120 MB. The lowest value you can specify is 1 MB.

For More information how Client Cache Works,Read TechNet Article

Note From TechNet Article:If you reinstall a client, you cannot use the SMSCACHESIZE installation properties to set the cache size to be smaller than it was previously. If you try to do this, your value is ignored and the cache size is automatically set to the last size it was previously.

What happens when the Specified Cache limit size is full or no space to download the BIG Packages since there is no auto mechanism to delete the content ?

Two Options you have: 1) Either Delete the content which was not used since X days or Delete all the Content.

I have blogged about how to delete the Software Updates from the Cache folder http://eskonr.com/2012/05/vb-script-to-delete-software-update-files-from-sccm-client-cache-folder/

2) Increase the Cache Size Limit ,Blog talks about this Option.

Create Notepad File and save it as Filename.vbs

On Error Resume Next

Dim UIResManager
Dim Cache
Dim CacheSize

CacheSize=10240

Set UIResManager = createobject ("UIResource.UIResourceMgr")

Set Cache=UIResManager.GetCacheInfo()

Cache.TotalSize=CacheSize

Note:Replace the double quotes(“) as blog converts them fancy.

To Increase size of Cache folder on Bulk Machines,You can advertise this as a package onto Collection.

You can also Achieve this using powershell script http://www.david-obrien.net/2013/02/07/how-to-configure-the-configmgr-client/

Hope It helps!

Script to Change SCCM Configmgr Client Cache Size is a post from: Eswar Koneti's Blog

SCCM Configmgr Script Tool Add Delete Refresh packages on Distribution Points

$
0
0

Various tools,scripts are available to add,delete and refresh packages(Standard software Packages only) on the Distribution Points but i feel this is easy to compare with others what i have seen so far in Configuration Manager 2007.

If you have single package to do any specific action like add,delete ,refresh ,you can do it Via Console but what if you build new site and you are required to add the bunch of packages in SCCM 2007,do it Via Console or Script based ?

I will be using tool called dpmod written by Bernard White in a batch script with the help of excel sheet.

This process requires 3 files to be in one folder. 1)dpmod.exe 2)add.bat and 3) run_add.bat

–> Download the installer file,Run it to get dpmod.exe.

–> For a single package to take action,you can do with command line:

dpmod.exe  -addpkg PRI00001 \\INCHDP01 -sdk INHYCM01

PRI00001=PackageID

INCHDP01=Target site to receive Packages.

INHYCM01=Central Site where packages Created.

3.For multiple packages,you can not add line by line to the batch file as we did above

How to achieve it in simple way?

You can Download the excel sheet from here and change the values for PackageID,Target Site and Central /Primary Site to get batch script.

image thumb8 SCCM Configmgr Script Tool  Add Delete Refresh packages on Distribution Points

If you have multiple packages for multiple sites,you can add them to excel sheet .

Take the last column “batch script results” and paste it into add.bat

Create 3rd file which is run_add.bat with following command:

cd D:\Tools\Dpmod

D:

add.bat >>.\add.log

You are done now. when you execute run_add.bat ,it will create log file for you with results which package has been added and which not.

You can also do the same for refresh package,delete package for multiple packages on multiple sites at one Go.

SCCM Configmgr Script Tool Add Delete Refresh packages on Distribution Points is a post from: Eswar Koneti's Blog


SCCM Configmgr 2012 Clients failed to download Content using Custom Port “Error sending DAV request. HTTP code 600”

$
0
0

Testing the basic Functions of Newly Build Configuration Manager 2012 primary and Secondary Sites by its SCCM clients to see if they work or not.

Have installed Configuration manager client on windows 7,windows 8 and server OS .Created Configmgr 2007 toolkit V2 package,distributed to DP’s and deployed to these machines.

Did Machine Policy on the clients,new application shown in Software Center,till now everything is good as expected.

When i look at the status of this app from Software Center,it failed.Why ? Download of Content did not happen.

Next is to look at DataTransferService.log records all BITS communication OR Package Access relation issues.

I find something in Red Color.

Error sending DAV request. HTTP code 600, status ”

GetDirectoryList_HTTP mapping original error 0x80072efe to 0x800704cf.

failed in winhttpreceiveresponse API Errorcode=0x2efe

successfully sent location services HTTP failure message

image thumb SCCM Configmgr 2012 Clients failed to download Content using Custom Port “Error sending DAV request. HTTP code 600”

What does the above error codes mean?

0x80072efe/0x2efe:The connection with the server was terminated abnormally

0x800704cf:The network location cannot be reached. For information about network troubleshooting, see Windows Help.

With the above error codes,we can predict ,client had some issues connecting to DP server to download the content.

Note:I am  using Custom port (CCMHTTPPORT:port that the client should use when communicating over HTTP to site system servers) rather default port 80 while installing SCCM client.

I did telnet from client to DP server to see if it works (by default telnet is not enabled win 7 and later OS,you will need to enable it from programs and features) but failed to do so. Tried self telnet on DP server,it works.

Issue seems to be Firewall which is blocking the communication on custom port from clients.

Solution:

You will have to add the custom port (ccmhttp) to the firewall (if it is enabled) on windows server to allow communication from clients.

Follow the TechNet Guide how to add port to windows firewall http://technet.microsoft.com/en-us/library/ms175043.aspx

If you are running on windows server 2012,Use the batch script to fix it.

@echo =========  ccmhttpport  ===================
netsh advfirewall firewall add rule name = "ccmhttpport 800" dir = in protocol = tcp action = allow localport = 800 profile = DOMAIN

Telnet works good now.

Back to Client workstation,,Control panel,Configuration Manager applet–>Trigger Application Deployment Evaluation Cycle

Run the application now from Software Center, It ran.

Long Story but Simple Fix icon smile SCCM Configmgr 2012 Clients failed to download Content using Custom Port “Error sending DAV request. HTTP code 600”

SCCM Configmgr 2012 Clients failed to download Content using Custom Port “Error sending DAV request. HTTP code 600” is a post from: Eswar Koneti's Blog

SCCM Configmgr 2007 Replace Source Package path from Local Drive to UNC path for list of packages

$
0
0

In My Previous post,I blogged about SCCM Report list packages that do not use UNC path (i.e package Uses local Drive) and this is not good if you are migrating the packages from SCCM 2007 to Configuration Manager 2012.

After you get list of packages that use local drive,you will have to change them to UNC .

Note: This script will change the source path from Local drive(D:) to UNC path(\\servername\) for all the list of given packages at one Go.

For ex: Current pkg source path: D:\applications\adobe 9.2 Eng ,change to UNC: \\servername\applications\Adobe 9.2 Eng

If you have different UNC path for each package and not same what i have, modify the script.

You can either use custom Tools like package source changer from coretech OR Powershell or other scripts.

I wrote Simple Script that works only for Standard Software Distribution Packages but not for Software Update /OSD/ Driver packages.

Pipe the list of packages from the report to pkgs.txt.

strComputer = "SCCM Server name"

Set objfso = CreateObject ("Scripting.filesystemObject")
Set pkgs = objfso.OpenTextFile ("C:\pkgs.txt", 1)
Set outputList = objfso.OpenTextFile ("C:\outputList.txt", 2, True)

Do While Not pkgs.AtEndOfStream
pkgName = pkgs.ReadLine

Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\SMS\site_CEN")

Set colItems = objWMIService.ExecQuery( _
    "SELECT * FROM SMS_Package WHERE PackageID = ‘" & pkgName & "’")

For Each objItem in colItems
‘        Wscript.Echo "PkgSourcePath: " & objItem.PkgSourcePath
outputList.WriteLine pkgName & vbTab & "Old Path"& vbTab & objItem.PkgSourcePath

tmp = replace((objItem.PkgSourcePath),"D:", "\\servername") 
objItem.PkgSourcePath = tmp
  objItem.put_

outputList.WriteLine pkgName & vbTab & "New Path" & vbTab & objItem.PkgSourcePath

Next

loop

After you change the package source path,packages will start updating on all the Sites where ever it was targeted previously.So please be careful while doing this task because of network traffic.

Hope it helps!

SCCM Configmgr 2007 Replace Source Package path from Local Drive to UNC path for list of packages is a post from: Eswar Koneti's Blog

SCCM Configmgr 2012 Manage Workgroup Computers for Deployment,Remote tools etc

$
0
0

 

In this blog post,we are going to see how to manage workgroup computers using SCCM Configmgr 2012. The procedure involves working with lmhost and host files on both sccm server and work group machines.

Technet library is not so clear on how to manage workgroup computers http://technet.microsoft.com/en-us/library/bb680962.aspx.

In my earlier post,we saw how to manage work group computers using SCCM Configmgr 2007.http://www.windows-noob.com/forums/index.php?/topic/2029-managing-workgroup-computers-in-sccm-sms-environment/

Before installing SCCM client on workgroup machines,we do some configurations on the workgroup computer.

If you are managed workgroup computer using previous versions earlier ,you find the steps more or like same.

Do the below steps on Work Group.

Disable the Firewall,If you don’t want to disable,allow the required ports http://technet.microsoft.com/en-us/library/hh427328.aspx

Go to the control Panel–>Network Connections–>Local Area Network
Go to Internet TCP IP Protocol .Click on Properties—> click on Advanced —>Go to DNS Tab .
add the DNS suffix as shown below.

 

image thumb18 SCCM Configmgr 2012 Manage Workgroup Computers for Deployment,Remote tools etc

Next to DNS,WINS Tab,select ‘Enable NetBIOS Over TCP\IP

 

image thumb19 SCCM Configmgr 2012 Manage Workgroup Computers for Deployment,Remote tools etc

Next Go to C:\Windows\System32\drivers\etc

open lmhost file with admin rights using notepad

copy the below lines to the host file

192.168.1.10 SGCMCEN                        #PRE
192.168.1.10 "MP_PRI         \0x1A"      #PRE

Where SGCMCEN is SCCM site name and PRI is Site code

Make sure you have 20 characters (Including blank Spaces) between the quotes .

Note:am not adding SLP entries to lmhost file since SLP is integrated into MP in CM12.

 

image thumb20 SCCM Configmgr 2012 Manage Workgroup Computers for Deployment,Remote tools etc

save as “lmhost” in C:\Windows\System32\drivers\etc

image thumb21 SCCM Configmgr 2012 Manage Workgroup Computers for Deployment,Remote tools etc

 

open cmd with admin rights again and run the below commands

nbtstat –R

 

image thumb22 SCCM Configmgr 2012 Manage Workgroup Computers for Deployment,Remote tools etc

nbtstat -c

image thumb23 SCCM Configmgr 2012 Manage Workgroup Computers for Deployment,Remote tools etc

You see the changes are loaded into cache.

Next is to have local administrator Account for remote control using SCCM 2012 .If you do not have this account,remote control will not work.

Now we are done with the required changes for the client installation.

Copy the sccm client installation files to local drive on work Group machine.

Run the command prompt with local admin rights .

use the below command to install sccm client.

ccmsetup.exe /source:C:\client SMSSITECODE=PRI SMSMP=sgcmcen.cm12lab.com DNSSUFFIX=cm12lab.com

monitor ccmsetup.log from C:\Windows\ccmsetup\Logs

notice from ccmsetup.log installation is completed.

image thumb24 SCCM Configmgr 2012 Manage Workgroup Computers for Deployment,Remote tools etc

lets look at configuration manager applet from control panel

image thumb25 SCCM Configmgr 2012 Manage Workgroup Computers for Deployment,Remote tools etc

go to Site and try to discover the site to see if it work or not

image thumb26 SCCM Configmgr 2012 Manage Workgroup Computers for Deployment,Remote tools etc

look at Actions Tab if all the agents are loaded or not

image thumb27 SCCM Configmgr 2012 Manage Workgroup Computers for Deployment,Remote tools etc

This is because ,client is not approved in SCCM yet.

go back to console and approve it.

image thumb28 SCCM Configmgr 2012 Manage Workgroup Computers for Deployment,Remote tools etc

Right click on the computer and approve.

Go back to the client,see if you see more than 2 actions or not.

image thumb29 SCCM Configmgr 2012 Manage Workgroup Computers for Deployment,Remote tools etc

If you have issues appearing the client in console,you will have to check clientIDmanagerStartup.log,clientlocation.log and locationservices.log

Till now we find to manage the Workgroup SCCM client is able to communicate MP,getting policies etc.

Now we see if Application Deployment,Remote Tools and Other functions work not.

Try to create simple application or if you already have any ,Deploy it to workgroup computer.

Note: Make sure you configured Network Access Account to access resources from domain for the workgroup computer.

I deployed 7zip application and it appears in software center.

image thumb30 SCCM Configmgr 2012 Manage Workgroup Computers for Deployment,Remote tools etc

run the installation

image thumb31 SCCM Configmgr 2012 Manage Workgroup Computers for Deployment,Remote tools etc

You see it is successfully ran.

image thumb32 SCCM Configmgr 2012 Manage Workgroup Computers for Deployment,Remote tools etc

same way,you can also deploy software updates,packages and what else you can,Do it.

What next ,Remote Control ?

For this to happen,you need to add the workgroup IP address,hostname in your sccm server host file(C:\windows\system32\drivers\etc\hosts

After you do this,try to do remote control of the Workgroup computer from sccm console,you get prompt for authentication since domain cred wont work.

workgroup hostname\administrator and password.

 

image thumb33 SCCM Configmgr 2012 Manage Workgroup Computers for Deployment,Remote tools etc

On the workgroup computer,you see something like this ,you can change the settings to not ask user permission in client agent settings.

image thumb34 SCCM Configmgr 2012 Manage Workgroup Computers for Deployment,Remote tools etc

Hope it helps!

SCCM Configmgr 2012 Manage Workgroup Computers for Deployment,Remote tools etc is a post from: Eswar Koneti's Blog

SCCM Configmgr 2012 SP1 CU3 is available to Download

$
0
0

Microsoft just released Cumulative Update 3 for System Center 2012 Configuration Manager (Configmgr) SP1.This update fixes issues on OSD,Powershell,Software Distribution,Windows In tune,Endpoint Protection,Site Systems,Reporting,Software Updates.

Supported Platforms:

This update adds support for Windows 8.1-based client computers in Microsoft System Center 2012 Configuration Manager Service Pack 1. Windows 8.1 is added to the supported platform list for the following features:

  • Software distribution
  • Software update management
  • Compliance Settings

To download the Update and know more about issues that are fixed,Please refer http://support.microsoft.com/kb/2882125.

Note: This update do not require Restart.

SCCM Configmgr 2012 SP1 CU3 is available to Download is a post from: Eswar Koneti's Blog

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

Viewing all 252 articles
Browse latest View live