Eswar Koneti's Blog

All about Configmgr and its connected objects…….

  • About Author
      View eswar koneti's LinkedIn profile
  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 99 other subscribers

  • Awards


  • FaceBook Updates

  • Catagories

  • Meta

  • Copyright!

    All the blog posts in this website are owned by Eswar Koneti and may not be reused in any mode without prior approval of Eswar Koneti. You may quote one paragraph from the blog posts if you link to the original blog post.
    Happy Reading!

Archive for the 'SMS 2003' Category

ConfigMgr(SCCM) report for subnets which are undefined

Posted by Eswar Koneti on 19th January 2012

SELECT
   COUNT(distinct ResourceID) as [Count],
   IP_Subnets0 as Subnet
FROM
   dbo.v_RA_System_IPSubnets
WHERE
   IP_Subnets0 NOT IN (SELECT IPSubnet FROM
dbo.v_SiteRoamingBoundary_IPSubnet)
GROUP BY
   IP_Subnets0
ORDER BY
   IP_Subnets0

Tags: , , , , ,
Posted in SCCM 2007, SCCM Reports, SMS 2003, SQL Quiries | No Comments »

Comparison between SMS2003, SCCM 2007 and SCCM 2012 Beta 2

Posted by Eswar Koneti on 2nd May 2011

I started listing down comparative differences between SMS 2003, SCCM 2007 and SCCM 2012 and with the help of Wei King to finish off the list, here is what we came up with Via http://www.myitforum.com/myITToolbar/frame-click.asp?url=http://mymomexperience.blogspot.com/2011/04/comparing-sms2003-sccm-2007-and-sccm.html

Tags: , , , ,
Posted in SCCM 2007, SCCM 2012, SMS 2003 | 2 Comments »

VBscript to get list of add remove progams with product code install date

Posted by Eswar Koneti on 10th March 2010

There are many tools like SMS /SCCM or scripting to get list of applications installed on computers(you dont use SMS/SCCM only for this kind of information :) ) but what if the clients are not reported back to site server for some other reason and there could lot of applications installed on computers then you will start troubleshooting the clients why it doesnt report.

 Use the below simple VB script to get list of applications installed on target computers with its installed date and product ID as well.

Collect list of computers that you are looking for and pipe all the computer names into computers.txt file.

create a notepad file and name it as applications.vbs and paste the following query into it.

Output will be piped into status.csv file on the same location where the VBscript runs from.

On Error Resume Next
Set fso=CreateObject(“scripting.filesystemobject”)
Set objinputfile=fso.OpenTextFile(“computers.txt“,1,true)
Set objoutputfile=fso.OpenTextFile(“status.csv“,2,true)
Do While objinputfile.AtEndOfLine <> True
strcomputer=objinputfile.ReadLine
 Set objWMIService = GetObject(“winmgmts:\\” & strComputer)
 If Err.Number <> 0 Then
  objoutputfile.WriteLine( strcomputer & ” ” & Err.Description)
  Err.Clear
  Else
                              Set colItems = objWMIService.ExecQuery(“SELECT * FROM Win32_Product”,,48)
objoutputfile.WriteLine (“computer name:” & strcomputer)
For Each objItem in colItems
   objoutputfile.WriteLine(“Name: ” & objItem.Name  & ” , ” & “ProductID: ” & objItem.ProductID & “,” &”Installed On:” & objItem.InstallDate )

Next
End if
Loop
msgbox(“done”)

PS:Both the computers file and VB script should be in same folder location.

 

Tags: , , , ,
Posted in SCCM 2007, Scripting, SMS 2003, Software Distribution, Windows, WMI | No Comments »

Batch file kickoff of multiple clients requiring HW inventory

Posted by Eswar Koneti on 12th November 2009

Having issues with hardware inventory in running on the machines ,there are several tools that does this job like Right click tools ,SMS collection commander from  Zander and can use batch script given below.

1.Cretea a folder called Temp in C drive.

2.Crete a new notepad file ,add list of computers that you want to kick the hinv on and save it as Computerlist.txt in c:\Temp folder.

3.Open a notepad and paste the below code and save it as filename.bat .

@echo off
REM It kickoffs the hinv on to the list of machines provided
WMIC /node:@c:\temp\Computerlist.txt /namespace:\\root\ccm path sms_client CALL TriggerSchedule “{00000000-0000-0000-0000-000000000001}”

4.double click the filename.bat file and it should trigger the hinv on the list of machines that you have proivded in the notepad list.

 

since the above script is created  to trigger hardware inventory action,You will have all the Actions ID given below for each.

 

    • Hardware Inventory – 00000000-0000-0000-0000-000000000001
    • Software Inventory – 00000000-0000-0000-0000-000000000002
    • Data Discovery – 00000000-0000-0000-0000-000000000003
    • Machine Policy Assignment Request – 00000000-0000-0000-0000-000000000021
    • Machine Policy Evaluation – 00000000-0000-0000-0000-000000000022
    • Refresh Default Management Point – 00000000-0000-0000-0000-000000000023
    • Refresh Location (AD site or Subnet) – 00000000-0000-0000-0000-000000000024
    • Software Metering Usage Reporting – 00000000-0000-0000-0000-000000000031
    • Source list Update Cycle – 00000000-0000-0000-0000-000000000032
    • Refresh proxy management point – 00000000-0000-0000-0000-000000000037
    • Cleanup policy – 00000000-0000-0000-0000-000000000040
    • Validate assignments – 00000000-0000-0000-0000-000000000042
    • Certificate Maintenance – 00000000-0000-0000-0000-000000000051
    • Branch DP Scheduled Maintenance – 00000000-0000-0000-0000-000000000061
    • Branch DP Provisioning Status Reporting – 00000000-0000-0000-0000-000000000062
    • Software Update Deployment – 00000000-0000-0000-0000-000000000108
    • State Message Upload – 00000000-0000-0000-0000-000000000111
    • State Message Cache Cleanup – 00000000-0000-0000-0000-000000000112
    • Software Update Scan – 00000000-0000-0000-0000-000000000113
    • Software Update Deployment Re-eval – 00000000-0000-0000-0000-000000000114
    • OOBS Discovery – 00000000-0000-0000-0000-000000000120

 

You can see all the above actions item IDs from WMI. From Run command,type wbemtest and use the name space as ‘root\CCM\Policy\Machine‘. It list all the classes (Dynamic or Static from WMI Repository).

 

 Hope it Helps !


Tags: , , , ,
Posted in SCCM 2007, Scripting, SMS 2003, Software Distribution, Trobleshooting Tips, Troubleshooting Issues | No Comments »

SCCM Report for computers with service status (started,stopped,disabled)

Posted by Eswar Koneti on 12th June 2009

select Distinct
CS.Name0,
SER.Displayname0,
SER.Started0,
SER.StartMode0,
SER.State0
from
dbo.v_GS_COMPUTER_SYSTEM CS,
dbo.v_GS_SERVICE SER,
dbo.v_FullCollectionMembership FCM
where
CS.ResourceId = SER.ResourceID
and CS.ResourceId = FCM.ResourceID
and SER.displayname0 like ‘%firewall%’
and (SER.State0 != ‘Running’ or Isnull(SER.State0,”)=”)
and FCM.CollectionID = ‘SMS00001′

Tags: , , , , , , , , , , , ,
Posted in SCCM 2007, SCCM Reports, SMS 2003, SQL Quiries | No Comments »

Ports used by SMS 2003

Posted by Eswar Koneti on 18th May 2009

Below are some of the ports which are required to be open for proper communication.

Port Requirements:

–>SMS site server to Active Directory

Service Name UDP TCP
LDAP 389 389
LDAP SSL N/A 636
RPC Endpoint Mapper 135 135
Global Catalog LDAP N/A 3268
Global Catalog LDAP SSL N/A 3269
Kerberos 88 88

–>  SMS 2003 Advanced Client to Active Directory

In an Active Directory environment, the Advanced client makes a Lightweight Directory Access Protocol (LDAP) query to the global catalog server to find a management point that matches the client’s IP address. The following ports are required in Active Directory to allow the client to contact the global catalog server.

–> Port 389 UDP (User Datagram Protocol) LDAP Ping

–> Port 389 TCP LDAP

–> Port 636 TCP LDAP (SSL Connection)

-> Port 3268 TCP (explicit connection to Global Catalog)

–> Port 3269 TCP (explicit SSL connection to Global Catalog)

–> SMS 2003 Advanced Client to Management Point or to distribution point

–> Port 80 Hypertext Transfer Protocol (HTTP)

–> Port 139 Client sessions (for non BITS-enabled DPs)

–> Port 445 Server Message Block (for non BITS-enabled DPs)

SMS Remote Control System service: Wuser32
Application protocol Protocol Ports
SMS Remote Chat TCP 2703
SMS Remote Chat UDP 2703
SMS Remote Control (control) TCP 2701
SMS Remote Control (control) UDP 2701
SMS Remote Control (data) TCP 2702
SMS Remote Control (data) UDP 2702
SMS Remote File Transfer TCP 2704
SMS Remote File Transfer UDP 2704

–> SMS Remote Control UDP

When you use NetBIOS over TCP/IP for SMS Remote Control, the following ports are used:

–> Port 137 Name resolution

–> Port 138 Messaging

–> Port 139 Client sessions

Tags: , ,
Posted in SCCM 2007, SMS 2003, Software Distribution | 2 Comments »