This VBS Script will allow you to enter a site server name, site code and a machine name to allow you to see if the specified machine is a SMS or ConfigMgr 2007 client.
VBS Script:
strComputer = InputBox ("Enter Site Server Name")
strSiteCode = InputBox ("Enter Site Code")
strMachineName = InputBox ("Enter Machine Name")
Set objWMIService = GetObject("winmgmts://" & strComputer & "\root\sms\site_" & strSiteCode)
Set colItems = objWMIService.ExecQuery _
("Select * from SMS_R_System Where Name ='" & strMachineName & "'")
For Each objItem in colItems
If objItem.Client = 1 Then
MsgBox objItem.Name & " Is A Client"
Else
MsgBox objItem.Name & " Is Not A Client"
End If
Next
This VBS Script will send all of the Collections with advertisements to an Excel spreadsheet.
strServer = InputBox ("Enter Site Server Name")
strDatabase = InputBox ("Enter Three Letter Site Code")
Set objExcel = CreateObject("Excel.Application")
objExcel.Visible = True
objExcel.Workbooks.Add
intRow = 2
objExcel.Cells(1, 1).Value = "Collection Name"
objExcel.Cells(1, 2).Value = "Collection ID"
objExcel.Cells(1, 3).Value = "Advertisement Name"
objExcel.Cells(1, 4).Value = "Advertisement ID"
Const adOpenStatic = 3
Const adLockOptimistic = 3
Set objConnection = CreateObject("ADODB.Connection")
objConnection.Open "Provider=SQLOLEDB;Data Source =" & strServer & ";" & _
"Trusted_Connection=Yes;Initial Catalog =SMS_" & strDatabase
Set objRecordSet = CreateObject("ADODB.Recordset")
objRecordSet.Open "Select C.Name, C.CollectionID, A.AdvertisementName, A.AdvertisementID" & _
" From v_Collection C" & _
" Join v_Advertisement A On C.CollectionID = A.CollectionID", objConnection, adOpenStatic, adLockOptimistic
objRecordSet.MoveFirst
Do Until objRecordSet.EOF
objExcel.Cells(intRow, 1).Value = objRecordSet.Fields("Name").Value
objExcel.Cells(intRow, 2).Value = objRecordSet.Fields("CollectionID").Value
objExcel.Cells(intRow, 3).Value = objRecordSet.Fields("AdvertisementName").Value
objExcel.Cells(intRow, 4).Value = objRecordSet.Fields("AdvertisementID").Value
objRecordSet.MoveNext
intRow = intRow + 1
Loop
objExcel.Range("A1:D1").Select
objExcel.Selection.Font.ColorIndex = 11
objExcel.Selection.Font.Bold = True
objExcel.Cells.EntireColumn.AutoFit
Set objSheet = objExcel.ActiveWorkbook.Worksheets(1)
Set objRange = objExcel.Range("A1")
objRange.Sort objRange,1,,,,,,1
MsgBox "Done"
This VBS script will allow you to send the members of a specified NT or Active Directory (AD) domain to an excel spreadsheet.
strDomain = InputBox ("Enter Domain Name")
strGroup = InputBox ("Enter Group Name")
objExcel.Cells(1, 1).Value = "Group Name"
objExcel.Cells(1, 2).Value = "Member"
Set objGroup = GetObject("WinNT://" & strDomain & "/" & strGroup)
Set strMembers = objGroup.Members
For Each strMember In strMembers
objExcel.Cells(intRow, 1).Value = strGroup
objExcel.Cells(intRow, 2).Value = strMember.Name
objExcel.Range("A1:B1").Select
objExcel.Selection.Interior.ColorIndex = 19
Set objRange = objExcel.Range("B1")
This VBS script will allow you to enter a ConfigMgr 2007 site server name and site code and will list the supported platforms and write them to an excel spreadsheet.
strComputer = InputBox ("Enter SMS Server Name")
objExcel.Cells(1, 1).Value = "Operating System"
Set colItems = objWMIService.ExecQuery("Select * from SMS_SupportedPlatforms")
objExcel.Cells(intRow, 1).Value = objItem.DisplayText
objExcel.Range("A1").Select
This SQL Query will gather the following information for Portables, Laptops and Notebook resources: Machine Name, Asset Tag, Manufacturer, Model, Serial Number and Operating System version information.
SQL Query:
Select
SD.Name0 'Machine Name',
SE.SMBIOSAssetTag0 'Asset Tag',
CS.Manufacturer0 Manufacturer,
CS.Model0 Model,
SN.SerialNumber0 'Serial Number',
OS.Caption0 + Space(1) + OS.CsdVersion0 'Operating System'
From v_R_System SD
Join v_GS_COMPUTER_SYSTEM CS On SD.ResourceID = CS.ResourceID
Join v_GS_SYSTEM_ENCLOSURE SE On SD.ResourceID = SE.ResourceID
Join v_GS_PC_BIOS SN ON SD.ResourceID = SN.ResourceID
Join v_GS_OPERATING_SYSTEM OS On SD.ResourceID = OS.ResourceID
Where SD.Client0 = 1
-- (8) Portable, (9)Laptop, (10) Notebook
And SE.ChassisTypes0 In ('8', '9', '10')
This SQL Query will list all of the subnets discovered that are not included in your ConfigMgr 2007 subnet site Boundaries
Select Distinct
IP_Subnets0
From v_Ra_System_IpSubnets
Where v_Ra_System_IpSubnets.IP_Subnets0
Not In
(Select Value From v_BoundaryInfo)
This SQL query will count the resources for your ConfigMgr 2007 site boundaries. The usefulness of this script is that it will allow you to see any site boundaries that currently do not have any resources. This will allow you to adjust your site boundaries as needed.
Select BI.Value Boundary,
Count(SD.ResourceId) Resources
From v_BoundaryInfo BI
Join v_Ra_System_IPSubnets SN On SN.IP_Subnets0 = BI.Value
Join v_R_System SD On SD.ResourceId = SN.ResourceId
Group By BI.Value
The Server Core Configurator enables you to quickly and easily accomplish tasks you need to do upon installation of Windows Server Core or Hyper-V Server. You can cover tasks such as activation, network and firewall settings, and Windows updates all via an easy-to-use GUI.
Windows 2008 Server Core Configurator
http://www.codeplex.com/CoreConfig
During the War of 1812 Samuel Wilson (1776-1854) from Troy New York had a contract to supply beef to the U.S. Army which was shipped in wooden barrels. The barrels were then stamped with "U.S." for United States. As a result the teamsters who transported them as well as the soldiers joked that the initials stood for "Uncle Sam" Wilson.
Later the cartoonist Thomas Nast (1840-1902) who came up with the Republican Party elephant and the Democratic Party donkey along with Sir John Tenniel (1820-1914) added the goatee.
Use the online password checker from Microsoft to test your password strength. As you enter your password each character is evaluated and the password is rated as being Weak, Medium, Strong or Best.
Password Checker
http://www.microsoft.com/protect/yourself/password/checker.mspx
At myITforum things are changing frequently to better serve the IT community at large and the System Management community in particular. Frequently new resources are added for the community to use to get the information or assistance they need quickly.
The daily newsletter that so many anticipate receiving each weekday morning and the
MyITforum home pages “Most Current Articles” are updated daily and are some times taken for granted. We expect to see them and low and behold each day there they are. It is not magic or some kind of automated task that they appear it is through the fingers of Rod Trent that we see them.
The myITforum webpage is updated daily simply because the pages are viewed daily by both new and long time myITforum readers. New content is found on the pages of myITforum each and every day and during the week hourly. Since the myITforum community is a world wide community it is always noon somewhere in the world and there are always noon time posters. This is quite evident if you are an RSS subscriber to the forums or the Blog pages. The same can also be said of the many fine email lists available on myITforum.
Tools are also provided free of charge to the community such as the Community File Share service and the many fine downloads are provided free of charge by myITforum contributors. MyITforum is also a place to have some fun through the myITforum polls and myITforum TV.
The home page and the Blogs have also been updated over the years for us and they will continue to be updated by the generously of Rod Trent. MyITforum never sleeps however sometimes Rod does so in the meantime let Rod know that you appreciate all that he does for us and let him know if there is a feature or an improvements that you want to see.
The Cumulative Update 1 (CU1) has been released for SQL Server 2008 and includes several hot fixes for the Microsoft SQL Server 2008 issues that have been fixed since the initial release of SQL Server 2008.
The CU1 package build number is 10.00.1763.00.
SQL Server 2008 CU1 Download:
http://support.microsoft.com/kb/956717
Provided here you will find the steps necessary to upgrade your ConfigMgr 2007 SQL Server 2005 backend to SQL Server 2008.
Note: This was tested on the following: Windows 2008 Enterprise Server Service Pack (SP) 1, ConfigMgr 2007 SP1 and SQL 2005 Server SP 2.
1. Apply the appropriate required hotfix below:
ConfigMgr 2007 RTM – No Service Pack
http://support.microsoft.com/kb/955229
ConfigMgr 2007 SP1
http://support.microsoft.com/kb/955262
2. Insert the SQL 2008 Server installation media and start Auto run if it does not start automatically or double click on Setup.Exe
3. Select “OK” at the Microsoft SQL Server 2008 Setup dialog box stating:
SQL Server 2008 setup requires Microsoft .NET Framework and an updated Windows Installer to be installed
To install these prerequisites and continue with Setup, click Ok. To exit Setup, click Cancel.
4. At this point the files will then be extracted and the Setup task process bar will start loading the installation components and may take several minutes to complete.
5. Next the Microsoft .NET Framework 3.5 SP1 Setup dialog box will appear. Review the license agreement and select ‘I have read and ACCEPT the terms of the License Agreement” and then select “Install” to begin.
6. The Download and Install Progress screen will appear and the install will begin and this process will take some time to install and can take from 5 to 15 minutes depending on your server speed and internet connectivity speed.
7. At the Setup Complete Microsoft .NET Framework 3.5 SP1 Setup dialog box stating: Microsoft .NET Framework 3.5 SP1 has been installed successfully select “Exit”
8. Reboot the server to finish installing the updates.
9. Log back onto the server and repeat step # 2 if necessary and allow several seconds for the SQL Server 2008 dialog box stating: Please wait while SQL Server 2008 Setup processes the current operation message disappears.
10. At the SQL Server Installation Center task list dialog box select “Installation” or select “Upgrade Documentation” for additional upgrade information.
11. From the Installation task pane select “Upgrade from SQL Server 2000 or SQL Server 2005” and wait for the message box in step # 9 to disappear.
12. At the SQL Sever 2008 Setup dialog box for the Setup Support Rules select “OK” to continue unless you have any “Failed” or “Warning” issues that need to be resolved. If this is the case leave the dialog box open and then correct the issues to resolve them and select “Re-run” to initiate the checks again.
13. After the message box in step # 9 disappears at the Product Key task leaf enter your product key in the space provided and select “Next” to continue.
14. At the License Terms task leaf review the license terms and select “I accept the License Terms” and then select “Next”
15. At the Setup Support Files task leaf select “Install” to begin the upgrade process which will take just a few minutes to complete.
16. After the message box in step # 9 disappears at the Setup Support Files dialog review the Setup Support Rules task leaf status for any “Failed” or “Warning” status messages and then select “Next” to continue.
17. At the Select Instance task leaf select “Next” to continue.
18. At the Select Features task leaf accept the defaults or change them as needed and then select “Next” to continue.
19. At the Instance Configuration task leaf select “Next” to continue.
20. At the Disk Space Requirements task leaf select “Next” to continue.
21. At the Server Configuration task leaf select “Next” to continue.
22. At the Full-Text Upgrade task leaf accept the default of “Import” or select “Rebuild” or “Reset” as needed and then select “Next” to continue.
23. At the Error and Usage Reporting task leaf select “Next” to continue.
24. After the Upgrade Rules task leaf completes select “Next” to continue.
25. At the Ready to Upgrade task leaf review your summary information or copy and paste the contents to a text file for later reference select “Upgrade” to start the upgrade process
26. The Upgrade Progress task leaf will then appear and will take quite some time to conclude up to an hour in some cases then select “Next” at the “Setup Process Compete” task pane.
27. At the Complete task leaf review the installation status and review the “Supplemental Information:” and then select “Close” to complete the install.
Notes:
Microsoft .NET Framework 3.5 SP1
http://go.microsoft.com/fwlink/?LinkId=120550
Windows Installer 4.5
http://support.microsoft.com/KB/942288
This By Request VBS Script will allow you to find the next available drive letter on a remote or local machine.
strComputer = InputBox ("Enter Machine Name")
strFirstDrive = "A" 'First Drive In Array
strLastDrive = "Z" 'Last Drive In Array
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\Cimv2")
Set colItems = objWMIService.ExecQuery("Select * From Win32_LogicalDisk")
objDriveType = "Drive " & objItem.DeviceID & Chr(34) & objItem.Description
objNextDrive = objNextDrive & Mid(objDriveType, 7, 1)
For i = AscB(strFirstDrive) To AscB(strLastDrive)
If InStr(objNextDrive, Chr(i)) = 0 Then
MsgBox Chr(i) & ": Is Available For " & UCase(strComputer)
Exit For
Due to new security policies, the following guidelines have been issued to assist in choosing new passwords. Please follow them closely.
Note: Due to the severity of the restrictions, you must change your password every day.
This VBS Script will allow you to browse for a text file and will remove or strip all of the duplicates from it and then rewrite the original text file.
Const ForReading = 1
Const ForWriting = 2
Set objDialog = CreateObject("UserAccounts.CommonDialog")
objDialog.Filter = "Text Files|*.Txt"
intResult = objDialog.ShowOpen
If intResult = 0 Then
Wscript.Quit
strFileName = objDialog.FileName
Set objDictionary = CreateObject("Scripting.Dictionary")
Set objFSO = CreateObject("Scripting.FileSystemObject"