Friday, May 14, 2010

Scripts to query installed Service Packs, Patches/updates and Hotfixes

Scripts to query installed Service Packs, Patches/updates and Hotfixes

There are many known scripts which use WMI class Win32_QuickFixEngineering to enumerate hotfixes installed on a computer. These scripts can give you a list of installed updates like;

1.

This Script reports installed updates that are installed with Windows Update (v5) technology and the result will be written to %temp%\UpdateHistory.txt and then launched in Notepad.

USAGE: Cscript //nologo WUhistory.vbs

The output will look like;

Report run at 4/23/2006 2:42:14 PM
------------------------------------------------------------------
Title:   Security Update for Windows XP (KB908531)
Description:  A security issue has been identified in Windows Explorer that could allow an attacker to compromise your Windows-based system and gain control over it. You can help protect your computer by installing this update from Microsoft. After you install this item, you may have to restart your computer.
Date/Time in GMT: 4/18/2006 7:47:14 AM
Install mechanism: AutomaticUpdates
Install status:  Succeeded
------------------------------------------------------------------

'--------------------8<----------------------
' Script that reports installed updates that are
' installed with Windows Update v5 technology
'
' Result will be written to %temp%\UpdateHistory.txt
' and then launched in Notepad
'
' Author: Torgeir Bakken
' Date 2004-08-12
'
Option Explicit

Const OverwriteIfExist = -1
Const OpenAsASCII   =  0

Dim oWU, iTHCount, colUpdate, oUpdate, sStatus, iTotal
Dim iSuccess, iFailed, iAborted, iUnknown, sErrorCode
Dim oFSO, oShell, sFile, f

On Error Resume Next
Set oWU = CreateObject("Microsoft.Update.Searcher")

If Err.Number <> 0 Then
   MsgBox "WU5 programming interface does not exist.", _
          vbInformation + vbSystemModal, "Update history"
   WScript.Quit
End If
On Error Goto 0

iTHCount = oWU.GetTotalHistoryCount
If iTHCount > 0 Then

   Set oFSO = CreateObject("Scripting.FileSystemObject")
   Set oShell = CreateObject("Wscript.Shell")
   sFile = oShell.ExpandEnvironmentStrings("%TEMP%") & "\UpdateHistory.txt"
   Set f = oFSO.CreateTextFile(sFile, _
                      OverwriteIfExist, OpenAsASCII)

   iTotal = 0
   iSuccess = 0
   iFailed = 0
   iAborted = 0
   iUnknown = 0

   f.WriteLine "Report run at " & Now
     f.WriteLine "---------------------------------" _
           & "---------------------------------"

   Set colUpdate = oWU.QueryHistory(0, iTHCount)

   For Each oUpdate In colUpdate
     f.WriteLine "Title:" & vbTab & vbTab & vbTab & oUpdate.Title
     f.WriteLine "Description:" & vbTab & vbTab & oUpdate.Description
     f.WriteLine "Date/Time in GMT:" & vbTab & oUpdate.Date
     f.WriteLine "Install mechanism:" & vbTab & oUpdate.ClientApplicationID

     sErrorCode = ""
     Select Case oUpdate.ResultCode
       Case 2
         sStatus = "Succeeded"
         iSuccess = iSuccess + 1
       Case 4
         sStatus = "Failed"
         iFailed = iFailed + 1
         sErrorCode = oUpdate.UnmappedResultCode
       Case 5
         sStatus = "Aborted"
         iAborted = iAborted + 1
       Case Else
         sStatus = "Unknown"
         iUnknown = iUnknown + 1
     End Select

     If sStatus = "Failed" Then
       f.WriteLine "Install error:" & vbTab & vbTab & sErrorCode
     End If

     f.WriteLine "Install status:" & vbTab & vbTab & sStatus
     f.WriteLine "---------------------------------" _
           & "---------------------------------"

     iTotal = iTotal + 1
   Next

   f.WriteLine
   f.WriteLine "Total number of updates found: " & iTotal
   f.WriteLine "Number of updates succeeded: " & iSuccess
   f.WriteLine "Number of updates failed: " & iFailed
   f.WriteLine "Number of updates aborted: " & iAborted

   f.Close
   oShell.Run "notepad.exe " & """" & sFile & """", 1, False
Else

   MsgBox "No entries found in Update History.", _
          vbInformation + vbSystemModal, "Update history"

End If
'--------------------8<----------------------

2.

This script enumerate hotfixes installed on a computer and outputs some computer information.

USAGE: Cscript //nologo HotfixHistory.vbs > HotfixHistory.txt

The output will look like;

Hotfix report date: 4/23/2006 2:45:19 PM

OS version: Microsoft Windows XP Professional
SP version: Service Pack 2
OS language: English

HotFixID: KB873339
Description: Windows XP Hotfix - KB873339
InstalledBy: Administrator
InstallDate: 12/11/2005

'
' Description: Script that outputs some computer information
' and lists all installed hotfixes including installation date
'
' Author: Torgeir Bakken
' Date: 2004-10-19
'

Wscript.Echo "Hotfix report date: " & Now & vbCrLf

strComputer = "."   ' use "." for local computer

Const HKLM = &H80000002

'On Error Resume Next
Set objWMIService = GetObject("winmgmts:" _
        & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set colSettings = objWMIService.ExecQuery _
        ("Select * from Win32_OperatingSystem")

' get general info about the OS

' Caption value for different OS:
' Microsoft Windows 2000 ...
' Microsoft Windows XP ...
' Microsoft(R) Windows(R) Server 2003, ..... Edition
For Each objOperatingSystem in colSettings
    strOSCaption = objOperatingSystem.Caption
    Select Case True
      Case InStr(1, strOSCaption, "windows 2000", vbTextCompare) > 0
        strOS = "Windows 2000"
      Case InStr(1, strOSCaption, "windows xp", vbTextCompare) > 0
        strOS = "Windows XP"
      Case InStr(1, strOSCaption, "windows(r) server 2003", vbTextCompare) > 0
        strOS = "Windows Server 2003"
    End Select

    intOSLang = objOperatingSystem.OSLanguage
    strOSLangHex = Right("000" & Hex(intOSLang), 4)
    strOSServicePack = objOperatingSystem.CSDVersion
Next

Set objReg = GetObject("WinMgmts:{impersonationLevel=impersonate}!//" _
              & strComputer & "/root/default:StdRegProv")

strOSLanguage = "Unknown"  ' Init value
strKeyPath = "SOFTWARE\Classes\MIME\Database\Rfc1766"
strValueName = strOSLangHex
objReg.GetStringValue HKLM, strKeyPath, strValueName, strOSLanguage

' remove unnecessary stuff
arrOSLanguage = Split(strOSLanguage, ";")
strOSLanguage = arrOSLanguage(UBound(arrOSLanguage))
If Instr(strOSLanguage, "(") > 0 Then
    arrOSLanguage = Split(strOSLanguage, "(")
    strOSLanguage = Trim(arrOSLanguage(0))
End If

Wscript.Echo "OS version: " & strOSCaption
Wscript.Echo "SP version: " & strOSServicePack
Wscript.Echo "OS language: " & strOSLanguage

' start enumeration of hotfixes

Wscript.Echo vbCrLf & "Hotfixes Identified:"

strRegBaseUpdate = "SOFTWARE\Microsoft\Updates\" & strOS

Set colItems = objWMIService.ExecQuery _
        ("Select * from Win32_QuickFixEngineering",,48)

For Each objItem in colItems
    If objItem.HotFixID <> "File 1" Then
       Wscript.Echo "HotFixID: " & objItem.HotFixID
       Wscript.Echo "Description: " & objItem.Description
       Wscript.Echo "InstalledBy: " & objItem.InstalledBy
       strInstallDate = Null  ' init value
       If objItem.ServicePackInEffect <> "" Then
          strRegKey = strRegBaseUpdate & "\" & objItem.ServicePackInEffect _
                 & "\" & objItem.HotFixID
          objReg.GetStringValue HKLM, strRegKey, _
               "InstalledDate", strInstallDate
       End If

       If IsNull(strInstallDate) Then
          strInstallDate = "(none found)"
       End If
       Wscript.Echo "InstallDate: " & strInstallDate
       Wscript.Echo   ' blank line
    End If
Next
'--------------------8<----------------------

3.

I found this script in the community. Worth a try!

'--------------------8<----------------------

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
    & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colQuickFixes = objWMIService.ExecQuery _
    ("Select * from Win32_QuickFixEngineering")
For Each objQuickFix in colQuickFixes
    Wscript.Echo "Computer: " & objQuickFix.CSName
    Wscript.Echo "Description: " & objQuickFix.Description
    Wscript.Echo "Hot Fix ID: " & objQuickFix.HotFixID
    Wscript.Echo "Installation Date: " & objQuickFix.InstallDate
    Wscript.Echo "Installed By: " & objQuickFix.InstalledBy
Next

'--------------------8<----------------------

4.

Very recently, I found this GUI utility by name WinUpdatesList.

  • WinUpdatesList displays the list of all Windows updates (Service Packs and Hotfixes) installed on your local computer.
  • For hotfix updates, this utility also displays the list of files updated with these hotfixes.
  • In addition, it allows you to instantly open the Web link in Microsoft Web site that provides more information about the selected update, uninstall an update, copy the update information to the clipboard, or save it to text/HTML/XML file.

5.

You can also query list of updates /hotfixes installed by this simple command (one line). Replace 'server-name' with your server or your machine name;

wmic /node:'server-name' qfe GET description,FixComments,hotfixid,installedby,installedon,servicepackineffect

You can also output the result to a text / csv file;

wmic /node:'server-name' qfe GET description,FixComments,hotfixid,installedby,installedon,servicepackineffect > QFElist.txt

Saturday, May 8, 2010

create 1000 users

' Create 1000 Sample User Accounts


Set objRootDSE = GetObject("LDAP://rootDSE")

Set objContainer = GetObject("LDAP://cn=Users," & _
objRootDSE.Get("defaultNamingContext"))

For i = 1 To 1000
Set objLeaf = objContainer.Create("User", "cn=UserNo" & i)
objLeaf.Put "sAMAccountName", "UserNo" & i
objLeaf.SetInfo
Next

WScript.Echo "1000 Users created."

'Below script to create number of computers in AD--for testing

'Below script to create number of computers in AD--for testing

'==============================================================================
'
' Description: This script creates multiple sequential computer accounts
' in an AD OU. It appends a 3 digit number to the base name starting with
' the number entered at the prompt.
' ==============================================================================
Option Explicit
'Define Constants
Const ADS_SCOPE_ONELEVEL = 1
'Declare Variables
Dim DQ
Dim strAdmin
Dim intRecord
Dim objShell
Dim objNetwork
Dim intWarn
Dim objRootDSE
Dim strADsPath
Dim objConnection
Dim objCommand
Dim strOUPath
Dim objRecordSet
Dim strBaseName
Dim intRecordMax
Dim bEnabled
Dim objOU
Dim strNewComputerName
Dim objNewComputer
Dim strDomainDN
Dim strDomainFQDN
Dim intOULevel
Dim strSearchADsPath
Dim intStartNumber
'Set variables
DQ = Chr(34)
'Create Objects
Set objShell = CreateObject("Wscript.Shell")
Set objNetwork = CreateObject("WScript.NetWork")
'Verifies script was run using Cscript, and if not relauches it using Cscript
If Not WScript.FullName = WScript.Path & "\cscript.exe" Then

objShell.Popup "Relaunching script with Cscript in 5 seconds...", 5, _
"Script Host Message", 48

objShell.Run "cmd.exe /k " & WScript.Path & "\cscript.exe //NOLOGO " & _
DQ & WScript.scriptFullName & DQ, 1, False

Script.Quit 0
End If

'Warn User
intWarn = MsgBox("This will make changes to AD." & VbCr & _
"Are you sure you want to do this?", 308, "ID 10 T Check")
'308 = Yes/No (4) + 'Exclaimation (48) + Default Button 2 (256)
If intWarn = vbNo Then

WScript.Quit 0
End If
'Construct an ADsPath to the Current Domain with rootDSE
Set objRootDSE = GetObject("LDAP://rootDSE")
strADsPath = "LDAP://" & objRootDSE.Get("defaultNamingContext")
'Convert domain Distinguished Name to FQDN format
strDomainDN = objRootDSE.Get("defaultNamingContext")
strDomainFQDN = Replace(Replace(strDomainDN, "DC=", ""), ",", ".")
'Connect to Active Directory
Set objConnection = CreateObject("ADODB.Connection")
Set objCommand = CreateObject("ADODB.Command")
objConnection.Provider = "ADsDSOObject"
objConnection.Open "Active Directory Provider"
Set objCommand.ActiveConnection = objConnection
objCommand.Properties("Page Size") = 1000
objCommand.Properties("Searchscope") = ADS_SCOPE_ONELEVEL
'Prompt for Path to OU
Do

strOUPath = _
InputBox("Please enter the path to the OU where the computer accounts " & _
" will be created - Seperate OUs With a \", "OU Path Input", "TopOU\SubOU")
If strOUPath = False Then
WScript.Quit

End If
Loop Until strOUPath <> ""


'Split OU path by OU
strOUPath = UCase(strOUPath)
strOUPath = Split(strOUPath, "\")


'Prepare variables for search
intOULevel = 0
strSearchADsPath = strADsPath


'Search through each OU level in path provided
For intOULevel = 0 To UBound(strOUPath)

objCommand.CommandText = "SELECT ADsPath FROM '" & strSearchADsPath & _
"'" & " WHERE objectCategory='organizationalUnit' AND Name = '" & _
strOUPath(intOULevel) & "'"

Set objRecordSet = objCommand.Execute

'Verify OU was found

If objRecordSet.EOF Then

WScript.echo "OU named " & strOUPath(intOULevel) & _
" not found, Exiting script."

WScript.quit

Else

objRecordSet.MoveFirst
Do Until objRecordSet.EOF
strSearchADsPath = objRecordSet.Fields("ADsPath").Value
objRecordSet.MoveNext
Loop
End If
Next
'Get current username to use in description field
strAdmin = objNetwork.UserName
'Prompt for the base computer name
Do
strBaseName = _
InputBox("Please enter the base computer name to use for new accounts:", _
"Base Computer Name", "TestPC")
If strBaseName = False Then
WScript.Quit
End If
Loop Until strBaseName <> ""
strBaseName = UCase(strBaseName)
'Prompt for starting computer number
Do

intStartNumber = _
InputBox("Please enter the beginning number to use in computer names:", _
"Starting Computer Number", "001")
If intStartNumber = False Then

WScript.Quit

End If
Loop Until intStartNumber <> ""
intStartNumber = CInt(intStartNumber)
intRecord = intStartNumber
'Prompt for number of accounts to be created
Do

intRecordMax = _
InputBox("Please enter the number of accounts to be created", _
"Count Input", "10")
If intRecordMax = False Then

WScript.Quit

End If
Loop Until intRecordMax <> ""
intRecordMax = CInt(intRecordMax)


'Bind to OU that computers will be created in
Set objOU = GetObject(strSearchADsPath)

'Create the user accounts
Do Until intRecord = intRecordMax + intStartNumber
intRecord = Right("000" & intRecord, 3)
strNewComputerName = strBaseName & intRecord
WScript.Echo "Creating " & strNewComputerName
Set objNewComputer = objOU.Create("Computer", "cn= " & strNewComputerName)
objNewComputer.Put "samAccountName", strNewComputerName & "$"
objNewComputer.Put "userAccountControl", 4096
objNewComputer.Put "description", "Account created: " & Date() & " by: " _
& strAdmin
objNewComputer.SetInfo 'Writes settings to AD
intRecord = intRecord + 1
Loop

WScript.Echo
WScript.echo "Finished creating computer accounts."

Tuesday, May 4, 2010

Dell PowerEdge R510 server

Specifications

  • Processor: Up to two Intel Xeon 5500 and 5600 processors, up to six cores per socket, up to 12 sockets per server.
  • RAM: Up to 64 GB, 128 GB, or 192 GB DDR3 RAM, depending on which Dell resource you use. (See “RAM options are inconsistent” in the What’s wrong section below for more information.)
  • RAID: Wide variety of RAID controller options to support internal and external storage.
  • Drive bays: Chassis options include 4, 8, or 12 drive bays.
  • Drive options: Up to 12 disks at 2 TB each. Supports 2.5″ and 3.5″ SATA and DAS disks and includes a solid state disk option. The 12 disk chassis also has space for two more internal drives.
  • Network: 2 x 1 Gb Ethernet ports on board (Broadcom 5716).
  • Power: Redundant power supply available.
  • Additional information: Product Web site
  • Photos of the Dell PowerEdge R510

The target market

The Dell PowerEdge R510 server is aimed squarely at space-constrained data centers or small and medium-size organizations. I see these primary use cases:

  • Common platform: Organizations that want significant server use flexibility and also want a common platform to administrative ease. The Dell PowerEdge R510’s versatility makes it a natural fit for many applications.
  • Smaller is better: Organizations that need to pack more servers into a data center and that don’t want to move to blades to gain density. The Dell PowerEdge R510’s 26″ depth makes it possible to support this need.
  • Mega storage needed: Small and medium organizations that need a server with massive internal storage and that may not want to invest in a SAN.

What problem does it solve

Many organizations have a desire to standardize on a single server platform in order to make it easier to support the server environment and to keep spare parts on hand in the event of a failure; however, those organizations often have a wide variety of computing needs, each requiring different computing resources. A VMware host, for example, will need RAM and processing power and will generally be connected to a SAN. Exchange, on the other hand, needs RAM, processing power, and raw disk space. SQL Server has similar needs. With its flexible chassis options, dual quad-core processing capability, and support for triple digit GBs of RAM, the 2U Dell PowerEdge R510 can meet the needs for all but the most processor intensive applications. IT can deploy a wide array of services on this single computing platform without sacrificing in any area of the computing spectrum.

The Dell PowerEdge R510 is also a short server, measuring only 26″ deep. This makes it an ideal choice for smaller organizations that have small data centers and need to eke out as much space as possible without sacrifice.

Standout features

In addition to offering very flexible computing options and having a short depth, the Dell PowerEdge R510 offers an optional LCD display that allows administrators to quickly determine chassis status and choose boot options. The availability of the display is dependent on which chassis option is selected. For example, as you will see in the photo gallery, getting a display on the 12 chassis model would be tough.

What’s wrong

Processor density
This is not a specific product issue, but rather a gap in Dell’s line. Ideally, I’d love to see the company release a version of the Dell PowerEdge R510 with support for up to four processors. Obviously, with a short depth, support for a lot of RAM and 12 disks crammed in the existing chassis, this four-socket dream might be difficult to produce in this form factor.

RAM options are inconsistent
Another negative element of this server is not necessarily a knock on the server itself — instead, it’s directed at Dell’s marketing folks. I got frustrated when I looked at various views of the Dell PowerEdge R510 on Dell’s site. Depending on the page being viewed, the site lists the server’s maximum RAM at three values:

In purchasing a server, the maximum RAM configuration available at present is 128 GB.

In the Dell PowerEdge R510’s complete technical guide, there is mention that the chassis selected also impacts the availability of certain RAM configurations. The 4 drive chassis is listed as accepting 1, 2, and 4 GB memory modules; the 8 drive chassis is shown as accepting 1, 2, 4, 8, and 16 GB modules.

My recommendation: Work with your sales rep to make sure your system has the memory options you expect and need.

Competitive products

Bottom line for business

The Dell PowerEdge R510 server is a very welcome addition to Dell’s server lineup and certainly fills an important niche by providing a single-platform solution to organizations that have a wide variety of needs.

Monday, May 3, 2010

ConfigMgr 2007 Tool Kit v2

 

http://www.microsoft.com/downloads/details.aspx?FamilyID=5a47b972-95d2-46b1-ab14-5d0cbce54eb8&displaylang=en

direct http://download.microsoft.com/download/5/5/0/55078AC4-3D15-407B-948E-CEB72A0A5A50/ConfigMgrTools.msi

The following list provides specific information about each tool in the toolkit.

  • Client Spy - A tool that helps you troubleshoot issues related to software distribution, inventory, and software metering on Configuration Manager 2007 clients.
  • Delete Group Class Tool - A tool used to remove inventory group definitions along with history data, tables, views and stored procedures for the group.
  • Desired Configuration Management Migration Tool - A tool used to migrate from the DCM Solution for SMS 2003 to DCM in ConfigMgr 2007.
  • Desired Configuration Management Model Verification Tool - A tool used by desired configuration management content administrators for the validation and testing of configuration items and baselines authored externally from the Configuration Manager console.
  • Desired Configuration Management Substitution Variable Tool - A tool used by desired configuration management content administrators for authoring desired configuration management configuration items that use chained setting and object discovery.
  • Management Point Troubleshooter Tool - A tool that checks a computer system before and after a management point installation to ensure that the installation meets the requirements for management points.
  • Policy Spy - A policy viewer that helps you review and troubleshoot the policy system on Configuration Manager 2007 clients.
  • Preload Package Tool - A tool used to manually install compressed copies of package source files on Configuration Manager 2007 sites.
  • Security Configuration Wizard Template for Configuration Manager 2007 - 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. The Configuration Manager 2007 Service Pack 2 Security Configuration Wizard template supports new site system definitions and enables the required services and ports.
  • 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.
  • Trace32 - A log viewer that provides a way to easily view and monitor log files created and updated by Configuration Manager 2007 clients and servers.

Thursday, April 29, 2010

APP V

App-V 4.6 is only supported on Configuration Manager SP2 with R2. App-V 4.6 and SCCM SP2 add support for 64-bit client operating systems.

Note: App-V 4.5 is supported on Configuration Manager SP2 with R2, but no support is available for 64-bit clients in this configuration.

 

 

Yep I want to make it Zero as APPV does

Do you hate ConfigMgr / SCCM on below situation??? I hate them

  1. PKI and the DMZ
  2. Locating and repairing broken clients (SCCM and WSUS)
  3. Wouldn't it be nice if the 'copy package to new distribution point' wizard could alphabetize the distribution points?
  4. The AI reports (License 14A for example) don't work very well with some license keys.  Bugs from MS, wont be fixed until Windows 8. 
  5. OSD/TS process isn't documented very well from MS
  6. when you have the potential to lose log files and not see what went wrong when.
  7. Slow console!!
  8. App-V Integration in SCCM
  9. Migration Tools-
  10. There is no Microsoft supported migration tool to export packages from SMS to SCCM.
  11. Unable to fix broken Config Manager clients (most of the time) via the SCCM Console
  12. SCCM Client cache (C:\Windows\System32\ccm\cache) does not get cleared automatically after a client reaches its cache limit (5GB) 
  13. WQL/SQL...
  14. OSD....not reliably PXE booting into OSD every time ...Then after clearing advertisement and reboot, will boot into OSD just fine
  15. Lacking the ability to create collections using SQL.
  16. usmt, usb hard discs not being supported, pxe boot slow
  17. Windows Embedded Systems Management
  18. 3rd Party patching
  19. Anything involving Native-mode and PKI.
  20. Client Health

software updates

  1. The ability to postpone the reboot after the installation of updates(SUP).
  2. The WSUS categories are not granular enough => You select Windows XP and you receive updates for Internet explorer.

Updates : Superseding and Superseded Updates : Complete Story

Superseding and Superseded Updates

Typically, an update that supersedes other updates does one or more of the following:

  • Enhances, improves, or adds to the fix provided by one or more previously released updates.
  • Improves the efficiency of its update file package, which is installed on client computers if the update is approved for installation. For example, the superseded update might contain files that are no longer relevant to the fix or to the operating systems now supported by the new update, so those files are not included in the superseding update's file package.
  • Updates newer versions of a product, or in other words, is no longer applicable to older versions or configurations of a product. Updates can also supersede other updates if modifications have been made to expand language support. For example, a later revision of a product update for Microsoft Office might remove support for an older operating system, but add additional support for new languages in the initial update release.

Conversely, an update that is superseded by another update does the following:

  • Fixes a similar vulnerability in the update that supersedes it. However, the update that supersedes it might enhance the fix or modify the applicability to client computers that the superseded update provides.
  • Updates earlier versions or configurations of products.

On the WSUS console, the WSUS update page clearly indicates those updates that have a superseded or superseding relationship with an earlier version. The Details tab also includes "Superseded by" and "Supersedes" status information for updates, in addition to KB links containing more information about each update.

WSUS does not automatically decline superseded updates, and it is recommended that you do not assume that superseded updates should be declined in favor of the new, superseding update. Before declining a superseded update, make sure that it is no longer needed by any of your client computers. These are three possible scenarios in which you might need to install a superseded update:

  • If a superseding update supports only newer versions of an operating system, and some of your client computers run earlier versions of the operating system.
  • If a superseding update has more restricted applicability than the update it supersedes, which would make it inappropriate for some client computers.
  • If an update no longer supersedes a previously released update because of new changes. It is possible that, through changes at each release, an update no longer supersedes an update it previously superseded in an earlier version.

 

Expired Updates

An expired update is an update that has been invalidated by Microsoft. An expired update can also be an update that has been superseded by the release of another update (new or revised) that fixes or enhances functionality or applicability offered by the expiring update. In this case, the superseding update should be approved in place of the expired update. An update that is expired can no longer be approved for detection or installation.

 

Some of the sample such updates

 

MS10-006 superseded by KB980232
MS10-009 superseded by KB978338
MS10-015 superseded by KB979683

Wednesday, April 28, 2010

I want to download these movies

Monsters, Inc. (Two-Disc Collector's Edition) DVD ~ Billy Crystal
The Jungle Book (Limited Issue) DVD
Pinocchio (Disney Gold Classic Collection

The 7 Habits of Highly Effective People Book

http://rapidshare.com/files/143957910/Stephen_R_Covey_-_The_7_Habits_of_Highly_Effective_People.pdf

 

the above is the book location you can download it

Tuesday, April 27, 2010

Complete Application Virtualization

Simple Steps

Enable BITS on DP

Enable Checkbox for

  1. In the Configuration Manager console, navigate to System Center Configuration Manager / Site Database / Site Management / <site code> - <site name> / Site Settings / Site Systems, and then click the name of the server.

  2. To open the ConfigMgr Distribution Point Properties, in the results pane, right-click ConfigMgr distribution point, and then click Properties. On the General tab ensure Allow clients to transfer content from this distribution point using BITS, HTTP, and HTTPS (required for device clients and Internet-based clients). has been selected. Configuration Manager 2007 client computers that connect to a branch distribution point will run virtual application packages using SMB.

    Notes :--Important

    You must select Allow clients to transfer content from this distribution point using BITS, HTTP, and HTTPS (required for device clients and internet based clients). or Enable virtual application streaming option on the Virtual Applications tab will not be available.

  3. On the Virtual Applications tab, select Enable virtual application streaming.

  4. To close the distribution point properties, click OK.

Create package “” Install the Virtual Application Virtualization Desktop Client software

  1. In the Configuration Manager console, navigate to System Center Configuration Manager / Site Database / Computer Management / Software Distribution.

  2. If necessary, expand the Software Distribution node and select Packages. To open the Create Package from Definition Wizard, right-click Packages, and then click New / Package From Definition.

  3. On the welcome page, click Next.

  4. On the Package Definition page, to specify the publisher and definition for the new package, click Browse. Locate and select the AppVirtMgmtClient.sms file. The default location for the AppVirtMgmtClient.sms file is <ConfigMgrInstallationPath>\ Tools \ VirtualApp \ AppVirtMgmtClient.sms. The Name, Version, and Language associated with the specified .sms file are displayed in the Package definition pane. Click Next.

  5. On the Source Files page, select Always obtain files from a source directory to help ensure the latest version of the client software will be available, and then click Next.

  6. On the Source Directory page, specify the directory that contains the source files for the package. This is the directory that contains the Microsoft Application Virtualization Desktop Client or the Microsoft Application Virtualization for Terminal Services installation file depending on the version of the client you are planning to install. Specify the source location by providing the UNC path. Alternatively, click Browse to specify the location that contains the setup files for the type of client you want to install. Click Next.

  7. On the Summary page, review the Details for the package definition file. To create the package definition file and close the wizard, click Finish. To access the new package select the Packages node and the package will be available in the results pane.

  8. If you installed the Microsoft Application Virtualization for Terminal Services client, after the package has been created, you should select the Packages node, right-click the package in the in the Results pane and select Properties. On the General tab, update the Name of the package so that it reflects that it is the terminal services version of the client.

Enable Client Agent Settings:-

  1. In the Configuration Manager console, navigate to System Center Configuration Manager / Site Database / Site Management / <site code> - <site name> / Site Settings / Client Agents.

  2. Right-click Advertised Programs Client Agent, and then select Properties.

  3. On the General tab, to enable the client agent for running virtual applications, click Allow virtual application package advertisement.

  4. Click OK to exit the properties dialog box.

To work with clients you need below two software's requirements

The Microsoft Application Virtualization Desktop Client requires the following prerequisites be installed on the Configuration Manager 2007 client computer:

  • Microsoft Application Error Reporting – The install program for this software is included in the Support folder in the self-extracting archive file.
  • Microsoft Visual C++ 2005 SP1 Redistributable Package (x86) – For more information about installing Microsoft Visual C++ 2005 SP1 Redistributable Package (x86) http://go.microsoft.com/fwlink/?LinkId=116683

Microsoft Visual C++ 2005 SP1 Redistributable Package (x86) Silent install

This option will suppress all UI during installation.

Vcredist_x86.exe /q:a /c:"msiexec /i vcredist.msi /qn /l*v %temp%\vcredist_x86.log"

You need to import the (.xml) virtual package then you can create package and advertisement

my mistakes


I missed out Dynamic IT and Dynamic Systems in year 2003 and cry...............................I want to stop now... I will try my best
 
 

MMS 2010 Live @

http://www.studiosevent.com/newscenter/?id=mms

 

do you love mms then check it out here

Seven Habits of Highly Effective People

     HABIT ONE: BE PROACTIVE®

     HABIT TWO: BEGIN WITH THE END IN MIND®

     HABIT THREE: PUT FIRST THINGS FIRST®

      HABIT FOUR: THINK WIN – WIN ®

      HABIT FIVE: SEEK FIRST TO UNDERSTAND THEN TO BE UNDERSTOOD®

     HABIT SIX – SYNERGISE®

     HABIT SEVEN: SHARPEN THE SAW®

Sunday, April 25, 2010

To test the SCCM Console Connectivity with the WMI


Console connectivity test  WMI
Start à Run
2.       Type “wbemtest” and hit Enter
3.       Hit the Connect button
4.       In the namespace box, type “root\sms\site_XXX” (where XXX is your site code)
5.       Click Connect

Friday, April 23, 2010

Thursday, April 22, 2010

What's New in Configuration Manager 2007 R3

Source :- Microsoft Website

What's New in ConfigMgr07 R3

What's New in Configuration Manager 2007 R3

The following features are new and apply only to Configuration Manager 2007 R3:

· Power Management. Provides a set of tools to allow the site administrator to configure standard Windows power settings across computers

· Operating System Deployment Enhancements.  Prestaged Media is a way to integrate with OEM factory imaging in order to leverage imaging at the OEM to speed up new hardware deployments

· Dynamic Collection Evaluation. Allows you to more rapidly evaluate a collection membership by adding only newly discovered resources.

· Delta Discovery. Performs an intermediate discovery cycle adding only new resources to the Configuration Manager 2007 database.

· Collections. Allows you to search for and add resources to the specified collection.

· Desired Configuration Management. Allows you to easily create collection of compliant or noncompliant computers in desired configuration management.

· Supported Clients Per Hierarchy: Configuration Manager 2007 R3 supports up to 300,000 clients per hierarchy when using the default settings for all Configuration Manager 2007 features. This increase in supported clients is the result of improvements to the Active Directory synchronization and Collection Evaluation processes.

About Dynamic Collection Evaluation in Configuration Manager 2007 R3

Query-based collections in Configuration Manager 2007 are periodically evaluated, based on a schedule you specify to update their membership from the site database. Even if there are no changes in the collection being evaluated, the entire collection is still processed. The default period between collection evaluations is 1 day. You can decrease this period, but evaluating collections with many members might cause a high load on your site database.

Dynamic collection evaluation in Configuration Manager 2007 R3 allows you to evaluate only resources that have been newly added to a collection. Because this improves the speed at which you can evaluate collections and lessens the processing load on the site database, you can increase the frequency by which you evaluate collections and therefore keep the data shown in the administrator console more up to date.

Important: Dynamic collection evaluation does not replace the existing method of collection evaluation; it only evaluates newly added resources

The following resources can be evaluated by dynamic collection evaluation:

· Resources that have been initially discovered.

· Resources that have been provisioned with operating system deployment.

· Resources that have been scanned for initial hardware inventory.

· Resources that have been upgraded to a newer version of the Configuration Manager 2007 client.

About Delta Discovery in Configuration Manager 2007 R3

Delta Discovery in Configuration Manager 2007 R3 enhances the discovery capabilities of the product by discovering only new or changed resources in Active Directory instead of performing a full discovery cycle. The interval by which delta discovery searches for new resources can be configured by the user to a short interval as discovering new resources only does not affect the performance of the site server as much as a full cycle. Delta discovery can detect the following new resource types:

· Computer objects

· User objects

· Security group objects

· System group objects

Important: Delta discovery is not a replacement for other Configuration Manager 2007 discovery methods. Because it only finds new or modified resources in Active Directory, it must be used in conjunction with a discovery method that performs a full synchronization with Active Directory

Note: Delta discovery only reads Active Directory attribute changes which are replicated. Non-replicated attributes which are changed such as the memberof attribute are not collected by delta discovery unless a change to a replicated attribute is made at the same time.  Delta discovery is not enabled by default in Configuration Manager 2007 R3. When enabled, it will run, by default every 5 minutes

About Prestaged Media in Configuration Manager 2007 R3

Prestaged media for Configuration Manager 2007 R3 operating system deployment contains bootable media and image files that are copied to the hard drive of a computer. Prestaged media works in conjunction with your existing task sequences to provide a complete operating system deployment. The media can be accessed locally by a task sequence to install a new operating system instead of downloading them across the network. This allows operating system deployment where the computer cannot otherwise be provisioned completely. It can also reduce network traffic when deploying operating systems while still taking advantage of task sequences.

Prestaged media is generally copied to the hard drive of a new computer as a part of the computer manufacturing process or at an enterprise staging center before the computer is sent to the end user. The prestaged media consists of a .wim file that can be prestaged on a “bare metal” computer. When the computer boots for the first time after the prestaged media has been loaded, the computer will boot to WinPE and connect to the site management point to check for available task sequences.

When creating prestaged media, ensure the boot image you are using has the appropriate network and mass storage drivers need for the system to complete the provisioning process.

About Simplified Resource Management

Allows Administrators to search for and add resources to the specified collection using right click tool. 

About Power Management in Configuration Manager 2007 R3

The Microsoft System Center Configuration Manager 2007 R3 power management feature provides a set of tools and resources that can help apply power settings to client computers in the enterprise and monitor the power usage of computers. Click the associated link in the following section for detailed information about planning, configuring, managing, monitoring and troubleshooting power management.

Overview of Power Management

Power Management in Microsoft System Center Configuration Manager 2007 R3 addresses the need that many organizations have to monitor and reduce the power consumption of their computers. The feature leverages the power management features built in to Windows to apply relevant and consistent settings to computers in the organization. Different power settings can be applied during and outside of working hours. For example, it might be acceptable to apply a more restrictive power plan during non-peak hours. In cases where computers must always remain switched on, you can prevent power management settings from being applied.

There are three major components to power management in Configuration Manager 2007 R3:

1. Monitoring and Planning: Power Management extends the hardware inventory of Configuration Manager 2007 to collect information about computer usage and power settings for computers in the site. A number of reports are provided to allow you to analyze this data and determine optimal power management settings for computers.

2. Enforcement: Power management allows you to create power plans which can be applied to collections of computers in your site. These power plans configure Windows power management settings on computers. You can use the built in Windows power plans, Balanced, High Performance and Power Saver or you can configure your own custom power plans. Different power plans can be configured for peak and non-peak working hours.

3. Compliance: After applying power plans to computers in your organization, you can run reports to validate that power settings were correctly applied and to calculate power savings across collections of computers.

About Reports for Power Management

Power management in Configuration Manager 2007 R3 contains a number of reports to help you to analyze power consumption and computer power settings in your organization. These reports require SQL Reporting Services which was introduced in Configuration Manager 2007 R2.

Power Management Plan Settings for Power Management

Power plans in Configuration Manager 2007 R3 contain Windows power management settings which can be configured and applied to collections of computers in your Configuration Manager 2007 R3 site.

Important: Depending on the version of Windows you are using, some settings might not be configurable on the destination client computer. For more information about the settings supported by your version of Windows, see your Windows documentation

Prerequisites for Power Management

Power management in Configuration Manager 2007 R3 has both external dependencies and dependencies within the product.

Configuration Manager 2007 Dependencies

The following table describes the dependencies within Configuration Manager 2007 for using power management.

Dependency

More Information

The site server must be running Configuration Manager 2007 R3.

Power management requires Configuration Manager 2007 R3.

Client computers in your site must be running the Configuration Manager 2007 R3 client software.

For information about upgrading the Configuration Manager 2007 client software, see Planning and Deploying Clients for Configuration Manager 2007.

The Configuration Manager 2007 hardware inventory client agent must be enabled for the site in which you are using power management.

Power management in Configuration Manager 2007 R3 uses information collected by hardware inventory. To use power management, you must first enable hardware inventory for the site.

The site must be enabled for power management.

Before you can use power management in Configuration Manager 2007 R3, you must enable the power management client agent.

SQL Reporting Services integration must be installed and configured.

The provided reports for power management require SQL Reporting Services to run. SQL reporting services integration was introduced in Configuration Manager 2007 R2 and is also included with Configuration Manager 2007 R3. For information about installing and configuring SQL Reporting Services, see SQL Reporting Services in Configuration Manager 2007 R2.

Dependencies External to Configuration Manager 2007

The following table describes the dependencies within Configuration Manager 2007 for using power management.

Dependency

More Information

The site must have access to an installation of Microsoft SQL Reporting Services.

Power management in Configuration Manager 2007 R3 uses SQL Reporting Services to display reports. SQL reporting services must be installed and configured for Configuration Manager 2007 before you can display these reports. For more information, see SQL Reporting Services in Configuration Manager 2007 R2.

How to Enable or Disable the Power Management Client Agent

Enabling the power management client agent in Configuration Manager 2007 R3 makes it possible for client computers in this site to apply power management plans configured in the Configuration Manager console.

The power management client agent is not enabled by default when you install Configuration Manager 2007 R3.

Important: The power management feature in Configuration Manager 2007 R3 uses data from hardware inventory on client computers to work, therefore, enabling the power management client agent will also enable the hardware inventory client agent on computers in your site. If you disable the hardware inventory client agent for your site, the power management client agent will also be disabled.  Disabling the power management client agent prevents computers in your site from applying power plans created in the Configuration Manager console.

Note:  The content in this document is subject to change at any time.

What's New in Configuration Manager 2007 R3

Just released

What's New in ConfigMgr07 R3

What's New in Configuration Manager 2007 R3

The following features are new and apply only to Configuration Manager 2007 R3:

· Power Management. Provides a set of tools to allow the site administrator to configure standard Windows power settings across computers

· Operating System Deployment Enhancements.  Prestaged Media is a way to integrate with OEM factory imaging in order to leverage imaging at the OEM to speed up new hardware deployments

· Dynamic Collection Evaluation. Allows you to more rapidly evaluate a collection membership by adding only newly discovered resources.

· Delta Discovery. Performs an intermediate discovery cycle adding only new resources to the Configuration Manager 2007 database.

· Collections. Allows you to search for and add resources to the specified collection.

· Desired Configuration Management. Allows you to easily create collection of compliant or noncompliant computers in desired configuration management.

· Supported Clients Per Hierarchy: Configuration Manager 2007 R3 supports up to 300,000 clients per hierarchy when using the default settings for all Configuration Manager 2007 features. This increase in supported clients is the result of improvements to the Active Directory synchronization and Collection Evaluation processes.

About Dynamic Collection Evaluation in Configuration Manager 2007 R3

Query-based collections in Configuration Manager 2007 are periodically evaluated, based on a schedule you specify to update their membership from the site database. Even if there are no changes in the collection being evaluated, the entire collection is still processed. The default period between collection evaluations is 1 day. You can decrease this period, but evaluating collections with many members might cause a high load on your site database.

Dynamic collection evaluation in Configuration Manager 2007 R3 allows you to evaluate only resources that have been newly added to a collection. Because this improves the speed at which you can evaluate collections and lessens the processing load on the site database, you can increase the frequency by which you evaluate collections and therefore keep the data shown in the administrator console more up to date.

Important: Dynamic collection evaluation does not replace the existing method of collection evaluation; it only evaluates newly added resources

The following resources can be evaluated by dynamic collection evaluation:

· Resources that have been initially discovered.

· Resources that have been provisioned with operating system deployment.

· Resources that have been scanned for initial hardware inventory.

· Resources that have been upgraded to a newer version of the Configuration Manager 2007 client.

About Delta Discovery in Configuration Manager 2007 R3

Delta Discovery in Configuration Manager 2007 R3 enhances the discovery capabilities of the product by discovering only new or changed resources in Active Directory instead of performing a full discovery cycle. The interval by which delta discovery searches for new resources can be configured by the user to a short interval as discovering new resources only does not affect the performance of the site server as much as a full cycle. Delta discovery can detect the following new resource types:

· Computer objects

· User objects

· Security group objects

· System group objects

Important: Delta discovery is not a replacement for other Configuration Manager 2007 discovery methods. Because it only finds new or modified resources in Active Directory, it must be used in conjunction with a discovery method that performs a full synchronization with Active Directory

Note: Delta discovery only reads Active Directory attribute changes which are replicated. Non-replicated attributes which are changed such as the memberof attribute are not collected by delta discovery unless a change to a replicated attribute is made at the same time.  Delta discovery is not enabled by default in Configuration Manager 2007 R3. When enabled, it will run, by default every 5 minutes

About Prestaged Media in Configuration Manager 2007 R3

Prestaged media for Configuration Manager 2007 R3 operating system deployment contains bootable media and image files that are copied to the hard drive of a computer. Prestaged media works in conjunction with your existing task sequences to provide a complete operating system deployment. The media can be accessed locally by a task sequence to install a new operating system instead of downloading them across the network. This allows operating system deployment where the computer cannot otherwise be provisioned completely. It can also reduce network traffic when deploying operating systems while still taking advantage of task sequences.

Prestaged media is generally copied to the hard drive of a new computer as a part of the computer manufacturing process or at an enterprise staging center before the computer is sent to the end user. The prestaged media consists of a .wim file that can be prestaged on a “bare metal” computer. When the computer boots for the first time after the prestaged media has been loaded, the computer will boot to WinPE and connect to the site management point to check for available task sequences.

When creating prestaged media, ensure the boot image you are using has the appropriate network and mass storage drivers need for the system to complete the provisioning process.

About Simplified Resource Management

Allows Administrators to search for and add resources to the specified collection using right click tool. 

About Power Management in Configuration Manager 2007 R3

The Microsoft System Center Configuration Manager 2007 R3 power management feature provides a set of tools and resources that can help apply power settings to client computers in the enterprise and monitor the power usage of computers. Click the associated link in the following section for detailed information about planning, configuring, managing, monitoring and troubleshooting power management.

Overview of Power Management

Power Management in Microsoft System Center Configuration Manager 2007 R3 addresses the need that many organizations have to monitor and reduce the power consumption of their computers. The feature leverages the power management features built in to Windows to apply relevant and consistent settings to computers in the organization. Different power settings can be applied during and outside of working hours. For example, it might be acceptable to apply a more restrictive power plan during non-peak hours. In cases where computers must always remain switched on, you can prevent power management settings from being applied.

There are three major components to power management in Configuration Manager 2007 R3:

1. Monitoring and Planning: Power Management extends the hardware inventory of Configuration Manager 2007 to collect information about computer usage and power settings for computers in the site. A number of reports are provided to allow you to analyze this data and determine optimal power management settings for computers.

2. Enforcement: Power management allows you to create power plans which can be applied to collections of computers in your site. These power plans configure Windows power management settings on computers. You can use the built in Windows power plans, Balanced, High Performance and Power Saver or you can configure your own custom power plans. Different power plans can be configured for peak and non-peak working hours.

3. Compliance: After applying power plans to computers in your organization, you can run reports to validate that power settings were correctly applied and to calculate power savings across collections of computers.

About Reports for Power Management

Power management in Configuration Manager 2007 R3 contains a number of reports to help you to analyze power consumption and computer power settings in your organization. These reports require SQL Reporting Services which was introduced in Configuration Manager 2007 R2.

Power Management Plan Settings for Power Management

Power plans in Configuration Manager 2007 R3 contain Windows power management settings which can be configured and applied to collections of computers in your Configuration Manager 2007 R3 site.

Important: Depending on the version of Windows you are using, some settings might not be configurable on the destination client computer. For more information about the settings supported by your version of Windows, see your Windows documentation

Prerequisites for Power Management

Power management in Configuration Manager 2007 R3 has both external dependencies and dependencies within the product.

Configuration Manager 2007 Dependencies

The following table describes the dependencies within Configuration Manager 2007 for using power management.

Dependency

More Information

The site server must be running Configuration Manager 2007 R3.

Power management requires Configuration Manager 2007 R3.

Client computers in your site must be running the Configuration Manager 2007 R3 client software.

For information about upgrading the Configuration Manager 2007 client software, see Planning and Deploying Clients for Configuration Manager 2007.

The Configuration Manager 2007 hardware inventory client agent must be enabled for the site in which you are using power management.

Power management in Configuration Manager 2007 R3 uses information collected by hardware inventory. To use power management, you must first enable hardware inventory for the site.

The site must be enabled for power management.

Before you can use power management in Configuration Manager 2007 R3, you must enable the power management client agent.

SQL Reporting Services integration must be installed and configured.

The provided reports for power management require SQL Reporting Services to run. SQL reporting services integration was introduced in Configuration Manager 2007 R2 and is also included with Configuration Manager 2007 R3. For information about installing and configuring SQL Reporting Services, see SQL Reporting Services in Configuration Manager 2007 R2.

Dependencies External to Configuration Manager 2007

The following table describes the dependencies within Configuration Manager 2007 for using power management.

Dependency

More Information

The site must have access to an installation of Microsoft SQL Reporting Services.

Power management in Configuration Manager 2007 R3 uses SQL Reporting Services to display reports. SQL reporting services must be installed and configured for Configuration Manager 2007 before you can display these reports. For more information, see SQL Reporting Services in Configuration Manager 2007 R2.

How to Enable or Disable the Power Management Client Agent

Enabling the power management client agent in Configuration Manager 2007 R3 makes it possible for client computers in this site to apply power management plans configured in the Configuration Manager console.

The power management client agent is not enabled by default when you install Configuration Manager 2007 R3.

Important: The power management feature in Configuration Manager 2007 R3 uses data from hardware inventory on client computers to work, therefore, enabling the power management client agent will also enable the hardware inventory client agent on computers in your site. If you disable the hardware inventory client agent for your site, the power management client agent will also be disabled.  Disabling the power management client agent prevents computers in your site from applying power plans created in the Configuration Manager console.

Note:  The content in this document is subject to change at any time.

Monday, April 19, 2010

My Vlookup

 

 

=IF(ISNA(VLOOKUP(A:A,B:B:$B$97,2,0)),"No server IS In MY List","Yes server IS In MY List")

Another incident with Fake / Time Pass love – hate girls avoid Girls

 

New Source Eenadu.net on April 19th 2010

image

Friday, April 16, 2010

Deploy Office 2007 with SCCM

Office 2007 Dump Looks Like this….

image

Go to command prompt and change the working directory to office dump folder and type "setup.exe" /admin image

then you will see similar to below wizard

image

enter the values or choose the option that you want to customized then click on file and save now it will save as a FILE.MSP

Now lets try out our saved .MSP file and see if it works correctly before proceeding further

Now let's open CMD.
browse to your install and enter the following switch: "setup.exe" /adminfile file.msp
image

If this works create an Package and advertisement and push to the systems

Photos: Inside a Microsoft Data Center

Dublin Server Pod

Dublin Data Center

 

 

 

 

 

 

 

 

 

 

 

 

 

Dublin

Dublin Data Center AerialChicago

Dublin Data Center Rooftop Air Unitsimage

Chicago data centerChill out

Highly automated

image 

Inside a containerAir skates

Second floor server roomA lot to power

Keeping cool

Restoring Deleted All Systems Collection

Sometimes things just happen, sometimes you accidentally delete the All Systems collection because you were trying to do too many things at once.  I’ll fess up, I did it. 

Here’s how to restore the collection with the appropriate ID.  This solution was given to me by Microsoft Support.

Here is the VBS script that will do the restore:

####begin script

strSMSServer = "."
strParentCollID = "COLLROOT"
'This example creates the collection in the collection root.
'Replace COLLROOT with the CollectionID of an existing collection to make the new collection a child.

strCollectionName = "All Systems"
strCollectionComment = "This is the All Systems Collection."
Set objLoc = CreateObject("WbemScripting.SWbemLocator")
Set objSMS = objloc.ConnectServer(strSMSServer, "root\sms")
Set Results = objSMS.ExecQuery ("SELECT * From SMS_ProviderLocation WHERE ProviderForLocalSite = true")

For each Loc in Results
If Loc.ProviderForLocalSite = True Then
  Set objSMS = objLoc.ConnectServer(Loc.Machine, "root\sms\site_" & Loc.SiteCode)
End if
Next

Set newCollection = objSMS.Get("SMS_Collection").SpawnInstance_()

'Create new "All Systems" collection
newCollection.Name = "All Systems"
newCollection.OwnedByThisSite = True
newCollection.Comment = strCollectionComment
newCollection.CollectionID = "SMS00001"
path = newCollection.Put_

'Set the Relationship
Set newCollectionRelation = objSMS.Get("SMS_CollectToSubCollect").SpawnInstance_()
newCollectionRelation.parentCollectionID = strParentCollID
newCollectionRelation.subCollectionID = ("SMS00001")
newCollectionRelation.Put_

####end script

Once you’ve recreated the collection with the appropriate ID, then you’ll have to import the All Systems query for your membership rules.

Preload Package Tool for Configuration Manager 2007

http://download.microsoft.com/download/d/e/d/ded78c6e-59a4-43ee-b601-6527be7bd881/PreloadPkgOnSite.exe 

Overview

The Preload Package Tool (PreloadPkgOnSite.exe) is used to manually install compressed copies of software distribution package source files on Configuration Manager 2007 sites. After package source files are installed, a status message is sent up the site hierarchy indicating the presence of the new package source files. This avoids sites higher in the hierarchy from copying package source files over the network when distribution points at child site are selected to host software distribution package content that has already been preloaded on them.
The following feature enhancements have been made to the tool since it was released in the SMS 2003 Toolkit:

  • SQL Server named instance support
  • Administrator specified StoredPkgVersion value support

 

Problem Scenarios:

  1. When software distribution packages are created, information about them is sent to child sites in the hierarchy. If a child site has a distribution point installed that is listed in the package properties to host the content, the content is transferred over the network and uses available network bandwidth sending compressed copies of all required package source files. To avoid using network bandwidth, the Preload Package Tool can be used to copy compressed software distribution package source files to the remote child site before assigning the child site distribution point to host the package source files.
  2. If a child site fails that has a distribution point that is assigned to host software distribution package source files for a package created at a site higher in the hierarchy, all package source files will be resent over the network when the site is rebuilt and rejoined to the site hierarchy. To avoid this, the Preload Package Tool can be used to restore backed up compressed software distribution package source (.pck) files to the distribution point before rejoining the site to the hierarchy so they will already be present.
Instructions:
  1. Copy PreloadPkgOnSite.exe file to the .\program files installation directory\bin\i386 directory on the child site that you wish to preload compressed software distribution package source (.pck) files.
  2. Copy the applicable .pck files from the parent site or from a backup location to the distribution point share on the child site manually. After manually copying the files, ensure that the read-only NTFS file attribute for the .pck file is set.
  3. From a command prompt, run the tool using the following syntax: PreloadPkgOnSite.exe PkgID StoredPkgVersion.
  4. Running this command will update necessary software distribution package source location information for the site and forward this information up the hierarchy.
  5. After the package source file location information is sent up the hierarchy, the distribution point hosting the manually copied .pck files can be added to software distribution package source locations at without the need to transfer package source files over the network.
Checks:
  1. The command line usage is: PreloadPkgOnSite.exe PkgID StoredPkgVersion
  2. If software package information already exists for a package at the site where the tool is used, the tool cannot be used.
  3. This tool is meant only for child sites and cannot be used to preload packages that were created at the child site where the tool is run.
  4. The PkgID.pck file must exist at the child site before the tool is run.
Precautions:
  • When run, this tool modifies site database information at all sites higher in the hierarchy. This tool should only be run on fully functioning child sites and only when necessary.
  • If the Configuration Manager 2007 distribution manager process has already started processing software distribution package information to be preloaded, there is no need to run the tool

How To Check If A BITS Enabled Distribution Point Is Up And Running like how we check MP

To check if a Management Point is up and running we have the mplist and mpcert http URLs that we can open in Internet Explorer.  We don’t have such URLs to test if a Distribution Point (DP) is up. Management Point and Distribution Point servers are very different roles.  The Management Point is a conduit for the clients to get information from the SQL database i.e. their cert, their machine policy, etc.  That is why there is a way to use an http link to get that information from SQL through the MP.  A DP is nothing but a server share.  To use BITS for downloads, we expose that share through a virtual IIS directory.

clip_image002

There is no http link with a cert on a DP that we can query on, but you can create a package just to test the DP health.  Here is how:

1. Create a text file and write in it whatever you want to see when you use the http URL to test the DP.

2. Rename that file and change the txt extension to html.

3. Create a package that only contains that file and add your distribution points to the package.

4. Get the package ID and then go to the IIS Manager console and find the name of the DP virtual directory and make sure there is a folder for your DP health package.

5. Use IE and type the URL for the server, the virtual IIS directory, the package ID folder, and then your html file.  In my case it looks like this:

http://sccm/sms_dp_smspkge$/zzz0002e/dphealth.html

6. You should get back the content of the text file you created on step one:

clip_image004

If you get the content of your html file back, your BITS enabled DP is up.

During OSD, format first partition only

Our helpdesk asked me to make a task sequence that can be used on computers with more than one partition. In this case, I had to make sure that the operating system will install only on first partition and will not touch the data on other partitions.

To achieve this, I copied another TS and modified the following 2 steps:

  • removed any “Format and Partition Disk” step
  • in the “Apply Operating System Image” step, under “Select the location where you want to apply this operating system” made the following modifications:
    • Destination: Specific disk and partition
    • Disk: 0 (if all computers are installed on first hard disk)
    • Partition: 1 (if all computers have OS installed on first partition)

This way, when TS runs, it automatically wipes partition 1 from disk 0 and will not touch any other partition or disk.

Wiping volume C:\

 

 

=============================================================================================

Detailed steps are below…for dummies
Format and Partition Disk:

In SCCM console navigate to Computer Management, Operating System Deployment, Task Sequences. Suppose you already created or imported a new Microsoft Deployment Task Sequence. If not, do it now.

  • Select the desired Task Sequence and click Edit in the Actions pane

  • In the <Name> Task Sequence Editor window, in the left pane select Format and Partition Disk

TS-Properties

  • Click the yellow star to add a new partition
  • In the Partition name type the name of your system partition, this will be you disk C:
  • Under Partition options, select the Partition type as Primary
  • Choose how you want to set partition size, use a percentage of all hard disk drive or a fixed value. I use 50% of the HDD size, because not every time I know what HDD size new laptops/PCs will have but for sure it will be more than 80GB
  • Check the box to make this partition bootable
  • Under Formatting options, choose the file system you want and check the Quick format checkbox (optional) to save time during installation
  • Under Advanced options write a Variable name
  • Click OK when you’re done making your changes

TS 1st Partition properties

Now you’ll see this volume in the task sequence editor.

TS Properties

To add another partition click the yellow star again and fill in the following details:

  • In the Partition name type the name of your partition, this will be you disk D:

  • Under Partition options, select the Partition type as Primary

  • To use all the remaining disk space, select “Use a percentage of remaining free space” and set the Size(%) to 100

  • Under Formatting options, choose the file system you want and check the Quick format checkbox (optional)

  • Under Advanced options write a Variable name

  • Click OK when you’re done making your changes

clip_image008

Now you’ll see both volumes in your task sequence editor window. Next time you will deploy an operating system, the hard disk will format and create 2 partitions (C: and D:) and your computer will boot from the first partition (C:).

TS 2nd Partition properties

How does SCCM know that it needs to apply the OS image on the first partition and not the second? Well, it doesn’t, we will set this up in the “Apply Operating System Image” task.

Apply Operating System Image:

In SCCM console navigate to Computer Management, Operating System Deployment, Task Sequences.

  • Select the desired Task Sequence and click Edit in the Actions pane

  • In the <Name> Task Sequence Editor window, in the left pane select Apply Operating System Image

  • If you are installing the OS using the source media, then choose “Apply operating system from an original installation source” option using Browse choose one of the installation packages you have created when making the task sequence

  • If you have captured and OS image previously as a .wim file, you can select “Apply operating system from a captured image” option and select the image you want

  • Check to use a sysprep answer file and select the package using the Browse button

    • Now is the time to tell SCCM where you want your image to be applied.

              - To apply the image on a specific partition, under Destination select “Specific disk and partition”. Under Disk select 0 (zero) and under Partition select 1 (first partition). This is the option I use every time
              - To apply the image on the C: partition, under Destination select “Specific logical drive letter”. Under Disk letter select C:

    Format and Partition Disk

    This is it about these two tasks. Of course these tasks can be further customized using the Option tab of each task.

  • to find out linked report ID in all reports

    SELECT     TOP (100) PERCENT ReportID, Name, Category, DrillThroughReportID
    FROM       dbo.v_Report
    WHERE      (NOT (DrillThroughReportID IS NULL))
    ORDER BY   ReportID

    Upgrade Configuration Manager client from SMS 2003

    • Create a report that counts all client versions. (This is optional, just for information purposes).
      Report query is:

      SELECT TOP (100) PERCENT Client_Version0 AS [ConfigMgr client version], COUNT(Client_Version0) AS Total
      FROM dbo.v_R_System GROUP BY Client_Version0, Client0 HAVING (Client0 = 1)
      ORDER BY Total DESC, [ConfigMgr client version]

    • Create a collection (“Older Clients” for example) with all system resources with a client version not 4.00.6487.2000.
      Collection query is:

      SELECT SMS_R_SYSTEM.ResourceID, SMS_R_SYSTEM.ResourceType, SMS_R_SYSTEM.Name, SMS_R_SYSTEM.SMSUniqueIdentifier, SMS_R_SYSTEM.ResourceDomainORWorkgroup, SMS_R_SYSTEM.Client
      FROM SMS_R_System
      WHERE SMS_R_System.ClientVersion != "4.00.6487.2000"

      This way, system resources with older client version will be members of this collection.

    • Created a package and program with ConfigMgr client upgrade with custom command line parameters.
      Program command line is:

      CCMSETUP.EXE /noservice SMSSITECODE=CFM SMSCACHESIZE=1024 SMSSLP=CFM.DOMAIN.COM SMSMP=CFM.DOMAIN.COM RESETKEYINFORMATION=TRUE

    • Advertised it to “Older Clients” collection.

    Now, as system resources with older client version are members of this collection they will receive the advertisement and will silently install the latest ConfigMgr client.

    When the collection will have no system resources, I will know that all clients are upgraded. Also, I can check this by opening the same report from any browser on any computer.

    How to create a Windows Image (.wim) file

    Method one:- With SCCM build and capture

    Method two : WDS capture Wizard

    method three: details steps are below

    Depending on what you need the .wim file for, you can create it manually or automatically.

    - To manually create a .wim file (capture image) you need a bootable CD with Windows PE (with ImageX.exe included) that you can create using Windows Automated Installation Kit.

    The basics steps are:

    1. Boot your computer using Windows PE disk.
    2. In the Windows PE command prompt navigate to the folder with ImageX.
    3. To capture the C: partition, use the following example:
      imagex.exe /capture C: D:\CapturedImage.wim “My captured image”

      Where: C: is the partition to be captured; D:\CapturedImage.wim is the place of the captured file; “My captured image” is the name of the file.
      More switches can be found on the ImageX Command-Line Options page.

    If you need the image for deployment, do not forget to run sysprep before capturing the image!

    - To automatically create a .wim file you can use a capture media created using Configuration Manager.

    If you want to capture a Windows XP OS, copy sysprep files to C:\sysprep. Newer operating systems have sysprep files installed by default.

    To use capture media:

    1. Insert the CD into your CD/DVD drive and shortly autoplay will open Image Capture Wizard.
    2. Clicking Next will show you Image Destination page. Select where to save the wim file.
    3. On the next page enter some information about the image.
    4. On the Summary page click Finish. The task sequence will start sysprep and restart the computer. After restart, the computer will boot to Windows PE and will capture a image of the machine.

    Deploy Office 2007 SP2 with ConfigMgr 2007

    As Microsoft recently released Service Pack 2 for Office 2007 suite, it is a good idea to add the update files to the package so it it can be deploy during the installation.

    So, first of all we have to download the SP2 executable file from here: http://www.microsoft.com/downloads/details.aspx?FamilyID=b444bf18-79ea-46c6-8a81-9db49b4ab6e5&displaylang=en (see additional information bellow).

    Then, using a command prompt window, extract the content of the package to a folder you can browse to.

    Extract (Click the image for a larger view)

    Accept EULA and click Continue.

    image

    Select a folder to extract the files to.

    Browse For File

    When the extraction is complete, you should have the following files:

    Folder Structure

    At this point, you can delete the office2007sp2-kb953195-fullfile-en-us.exe file. Copy the other 9 files to “Updates” folder from your Office 2007 source folder.

    Updates folder

    Now you only have to update the distribution point/s and the next time Office 2007 will install, it will apply the SP2 update during Office 2007 installation.

    Applying Updates

    The same steps are valid for Visio and Project 2007.

    Microsoft Office Visio 2007 Service Pack 2 (SP2) can be downloaded from here: http://www.microsoft.com/downloads/details.aspx?familyid=78E36742-8BDA-471E-88E6-9B561BB06258&displaylang=en.
    Microsoft Office Project 2007 Service Pack 2 (SP2) can be downloaded from here: http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=c126fa4a-b43f-4f7e-a9d4-522e92a6cfee.

    Install drivers by computer model using WMI query

    When using task sequence, you might want to install different driver packages for different computer models. This can be accomplished by using a WMI query.

    First of all you need to have driver packages for all your computer models and know the exact model name for every computer.

    To find this, open a command prompt and type WMIC ComputerSystem GET Model (use this command on every computer to find it’s model).

    Then, Edit your task sequence. Add how many steps you need with “Apply Driver Package”. Select the driver package you have created for a certain computer model (HP dc5700 in my case).

    Apply Driver Package

    In the Options tab, click Add Condition and select Query WMI. In the WMI Query Properties window, make you sure you have root\cimv2 as WMI Namespace and write the following query in the WMI Query input box:

    SELECT * FROM Win32_ComputerSystem WHERE Model LIKE “%dc5700%” for HP Compaq dc5700 computer models.

    WMI Query

    Now, for every driver package, replace the model name with the computer model name the driver package is for. This way, the task sequence will install the correct drivers on every computer that will match the model specified in the query and will skip other steps sending the following status message: “The task sequence execution engine skipped the action (HP Compaq dc5700) in the group (Apply driver packages) because the condition was evaluated to be false”.