Here’s a great script I thought about sharing since I find it to be very handy to assist for the following requirement.
Create a “all computers” collection for software updates and exclude various OU’s that have computers not allowed to be updated for various reasons. Please modify the RED areas with the correct information. The great part is, you don’t have to spell out the full OU name to be excluded.
Script
| select sys.ResourceId, sys.ResourceType, sys.Name, sys.SMSUniqueIdentifier, sys.ResourceDomainORWorkgroup, sys.Client |
Pulling license data straight from the new MVLS website.
Example of the completed spreadsheet up to this point.
I would like to give thanks to boredazfcuj’s blog at http://cid-07ee96368d0fff65.spaces.live.com/blog/cns!7EE96368D0FFF65!138.entry
We all know the day comes where the customer/boss asks, “I need to see if this application is showing installed in the Add/Remove Programs”. Then you review DCM (Desired Configuration Management) and you ponder and ponder and ponder on how to make this work. Well, below is a way to accomplish this task while verifying two items at the same time. The first item is the name of the product and second item is the version of the product.
Here's what I did:
First run from a CMD prompt, “wmic path win32_product get name” and export this to a text file to refer back to while your building the DCM CI (Configuration Item).
Next Create a DCM CI and in the Setting tab, Click New, Click WQL Query.
Use the outline below to fill in the blanks to review Adobe Reader 9.1. To modify this, you will need to look at the txt file you ran in the beginning for the WMI Product Name. Match that Product Name where you see “Adobe Reader 9.1”. For the version, it’s best to go to Add/Remove Programs and click on the product, then click on “Click here for support information”.
General Tab
Display Name: Adobe Reader 9.1
Description: N/A
Namespace: Root\cimv2
Class: Win32_Product
Property: Version
WQL query Where Clause: Name='Adobe Reader 9.1'
Validation Tab
Data type: String
Details: Create a WQL Query
Name: WQLQuery_Adobe Reader 9.1 Version
Description: N/A
Operator: Equals
Value: 9.1.0
Severity: Error
Report a non-compliance event when this instance count fails: Checked
Instance count operator: Greater Than
Values: 0
Severity: Error
If your running IIS6.0 and running a large report, then the browser gives you an IIS error “HTTP 500”. The reason is, your default ASP Buffering Limit is generally set to 4mb. Well, as your Configuration Management database grows, your reports will grow larger. A simple rule of thumb is 1mb per 1000 records. However, I would double that for future growth.
Here’s how to resolve this issue.
1. On your SCCM server open the IIS Manager
2. Right click on the server name and click on Properties, now you should see a screen similar as shown.
3. If the “Enable Direct Metabase Edit” isn’t checked, Check that box and restart IIS.
4. Open the following file with Notepad C:\WINDOWS\SYSTEM32\INETSRV\METABASE.XML
5. Search for “AspBufferingLimit”
6. Change to your new amount. As shown in the pic below, I set this one to 10mb.
7. Now save the file and restart IIS to make sure this file takes.
8. Run your SCCM report.
I found this on TechNet and had to work through it to make it work. I’ve added pics and better explanations on how to add and deploy the script to work for you. I found the scripts at this URL in TechNet. http://social.technet.microsoft.com/forums/en-US/configmgrosd/thread/5924e840-eb6e-48c1-858f-766a5be625a6/
This script will detect if the current assigned value for the computer name begins with MININT, indicating that this image is bare metal image. It then prompts the end-user to enter a new computer name. It is primarily useful for task sequences that do both bare metal and in-place reimages.
Steps to implement the script.
3. In the folder copy the VBS script to Notepad and save the file as “askcomputername.vbs”
.
| Dim sNewComputerName, oTaskSequence, sTSMachineName Set oTaskSequence = CreateObject ("Microsoft.SMS.TSEnvironment" ' Get the name the computer is set to receive and truncate to first 6 letters sTSMachineName = oTAskSequence("_SMSTSMachineName" sTSMachineName = lcase(left(sTSMachineName,6)) If sTSMachineName = "minint" Then ' The wscript.echo commands are logged in SMSTS.log for troubleshooting. ' They are not displayed to the end user. wscript.echo "Detected that the computer name is scheduled to receive a random value. Prompting user to input a standard name." sNewComputerName = InputBox ("Please enter a standard computer name.", "Computer Name", , 30,30) oTaskSequence("OSDComputerName" wscript.echo "Set Task Sequence variable OSDComputerName to: " & sNewComputerName Else wscript.echo "Computer set to receive a standard name, continuing as is." End If |
4. Create an SCCM package that holds this script. Do not create a program. Leave the program blank. Add the package to the appropriate DPs
5. Edit an existing task sequence or create a new task sequence and add a new task to Run Command Line. Move it to occur between "Restart in Windows PE" and "Partition Disk"
6. For the task, give it the name you want. (e.g. AskComputerName)
7. Select checkbox "Package" and then select the package created that has the script
8. In the command line section, put the name of vbscript...with the file extension!
9. Click OK
10. When deploying an image, you will see the following box asking for the computer name.
While installing AppV at a customer, we ran into a serious problem causing time to be eaten up. Every time we tried to connect to the AppV database through the AppV management console, we received the error “0000c800”. After reviewing logs from various places, it seemed there was an authentication issue. Most of the URL's we came across on the internet and Technet kept directing us to KB articles 930470 and 930565. After calling my coworker Michael Vrabel, he stated he had the same problem and told me how to resolve it. His solution worked perfect. I'm posting the lessened learned to hopefully assist fellow techies out there who are running across the same problem.
Follow this process after you have installed all other AppV components with success and your trying to connect to the Database through the AppV Management Console while receiving an error code of “0000c800”
Even though the KB articles 930470 and 930565 wasn't able to assist us, I would still highly recommend reviewing those articles to verify all of your settings and components are configured.
Are you having issues with configuring Asset Intelligence Synchronization Point Role on SCCM??? If you are, it's most likely the large question, "Where do I get the CERT.PFX file?" Well, it's usually due to trying to figure out who to contact at Microsoft. No worries now, I'm going to tell you three ways to get this file. First way is to contact Software Assurance or your Microsoft Account Rep. Second way is to let Catapult Systems configure AI for you…in fact, let Catapult System setup and configure your SCCM. Third way and confirmed by my good buddy Jason Sandys, is to wait 90 days after Windows 7 and Windows Server 2008 R2 releases for SCCM 2007 SP2. In SCCM 2007 SP2, you will not have the need for CERT.PFX file when configuring the Asset Intelligence Synchronization Role.
Here's a few tips when configuring Asset Intelligence.
URL to Asset Intelligence in TechNet Library
http://technet.microsoft.com/en-us/library/cc161988.aspx
Figure 1
While I was out doing an installation at a customer I noticed I started having problems with the SQL server's Windows Application Log. Below you will find the error and the solution on how to resolve this. This took me 3 days and a call to Microsoft to resolve this problem since I couldn't really find any information online discussing on how to resolve this issue. I feel it's not a common problem, but no less another problem I had to work through.
ERROR from the Windows Application log on the SQL server:
Event Type: Failure Audit
Event Source: MSSQLSERVER
Event Category: (4)
Event ID: 18456
Date: 1/21/2009
Time: 5:11:36 PM
User: FS\FS-SCCM$
Computer: FS-SQL1
Description:
Login failed for user 'FS\FS-SCCM$'. [CLIENT: 10.1.255.163]
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Data:
0000: 18 48 00 00 0e 00 00 00 .H......
0008: 08 00 00 00 46 00 53 00 ....F.S.
0010: 2d 00 53 00 51 00 4c 00 -.S.Q.L.
0018: 31 00 00 00 07 00 00 00 1.......
0020: 6d 00 61 00 73 00 74 00 m.a.s.t.
0028: 65 00 72 00 00 00 e.r...
Conduct a System Center Configuration Manager Site Repair by doing the following: