BSOD on software install. Audig
So I got my beast machine up and going... flying along last night and realized I need a sound card for it (doh! I havent needed one in years), so I dri've down to BB and get a SB Audigy 2 for it...
Computer: Thunder K8SE (S2892), dual Opteron 246, GeForce 6600GT PCI-E, everything else onboard...
All goes well, I get it in there, I get sound immediately, it installed drivers just fine, then I install the Creative program pack that comes with it... or try to. I get 54% done installing and BAM, my first Blue Screen on my new rig. POS. It takes the **bleep** thing like 5 minutes to dump the ram and has NOTHING specific on the Blue Screen. I reboot when it's done. Try again. At 54% again, same **bleep** thing, only this time I accidentally reboot BEFORE the ram dump finishes... I think "doh, all well, so I have to wait for winXP to do a few tests when it restarts.
NOPE. Now, imediately after the Nvidia RAID screen I get a Beep Code... --2- (all small beeps). And a blinking cursor. Evil. thats ALL I get. I tried everything I could imagine... removed the **bleep** SB Audigy, took the ram out in sequence to make sure none of it was bad, reset the BIOS, tried another HDD, (btw it wont boot off a CD either)... everything *I* can think to do. So now, after installing a SB Audigy, I have a broken computer that wont boot... anything!
Anyone think of anything else to try? I really think I've done nearly everything possible already.
I've called Tyan and asked them about the beep code... It's not one of theirs.
Welcome to the forum.
BSOD is a serious occurrence, and probably indicates a much larger problem. This ARTICLE will give you tips on tracking down "clues" on what is happening just before the BSOD. It was written with Premiere in mind, but applies to any program/system crash. Be sure to follow ALL links in any warning, or error message. Also, you might want to switch OFF Reboot on Error (or similar syntax), so you can get time to read the full extent of the BSOD. Also, upon reboot, you should get a series of messages, with one offering a link to MS. What did that link tell you? Often, BSOD's are caused by device drivers, but the MS Help screen seldom identifies which one. At the bottom of the linked article is "The Case of the Unexplained," that will give you some tools and tips on tracking things down.
Good luck,
Hunt
Similar Messages
-
BSOD 0x0000007B after installing Ideapad s10e using RIS
Im getting a BSOD 0x0000007B after installing Ideapad s10e (4187-5LG) using RIS. All files are copied to the harddrive just fine but when it boots to start up in windows to finish the installation i get the BSOD. It seems the RIS server is missing the drivers for the harddisk controller.
In the download section for Ideapad s10e http://www-307.ibm.com/pc/support/site.wss/document.do?sitestyle=lenovo&lndocid=MIGR-71093 i can only find the Intel(R) Chipset Device Software XP which is said to have SATA storage support. After extracting the Chipset drivers i cant find any drivers i can use.
Any suggestions on how to solve this.
Solved!
Go to Solution.mibt wrote:
Im getting a BSOD 0x0000007B after installing Ideapad s10e (4187-5LG) using RIS. All files are copied to the harddrive just fine but when it boots to start up in windows to finish the installation i get the BSOD. It seems the RIS server is missing the drivers for the harddisk controller.
In the download section for Ideapad s10e http://www-307.ibm.com/pc/support/site.wss/document.do?sitestyle=lenovo&lndocid=MIGR-71093 i can only find the Intel(R) Chipset Device Software XP which is said to have SATA storage support. After extracting the Chipset drivers i cant find any drivers i can use.
Any suggestions on how to solve this.
The preloaded Windows XP Home SP3 has the drivers needed for the ich-7 SATA controller on the Lenovo S10e: atapi.sys, pciide.sys and pciidex.sys - It is important to load the INF package during installation as it identifies the hardware correctly to Windows. The package has a readme file on how to perform an unattended install, and Intel has more downloads and information in case you are trying to install other than XP.
Hans
Message Edited by hpholm on 12-03-2009 01:46 AM -
How to get list of software installed in a system
How to get list of softwares installed in a system?. should i use registry to get information or control panel?
is there any package available for this? how should i start with/
thanksHow to get list of softwares installed in a system?.Using native code, if at all.
should i use registry to get information or control panel?Linux has neither.
is there any package available for this? how should i start with/ Learn the Windows API or Google for some native tool. -
How to change number of retries and delay before retrying after software install failure
I deploy a software to client, but the installation is fail, so it will retry. but How to change the number of retries and delay before retrying after software install failure?
I find "Retry Settings" in "Software Distribution Component Properties". But I think it work for Distribution, not the installation. am I right?First, are you referring to packages or applications because the behavior is different.
Also, why do you want it to retry a failure? It failed for a reason so you need to fix the cause of the failure first. If it failed the first, it will likely fail the next time for the same reason. In general, ConfigMgr will only retry on transient type
errors.
Jason | http://blog.configmgrftw.com -
No disk burning software installed warning
My 12 year old Granddaughter needed some help with her iPod and a disk burning problem. The iPod was a snap, she probably knows more about it than I do! But the real problem is how I may have installed Panther on my old iMac 400DV which she now uses. When she wants to burn a CD from iTunes, the blank CD shows up fine ( including on the Desktop ) but she gets a warning that she can't burn the CD because there is "no disk/c burning software installed"!
Is it possible that I could have installed Panther and not installed the needed pieces to burn a CD?
I know I burned CD's in OS 9 before I upgrade the OS and gave her the iMac. Is it possible that the version of iTunes in her version of Panther is the problem? I don't know exactly which version she has of iTunes, but I see many posts here about 6.0.3 fixing burning problems. I'm using a plain jane 6.0 version in Tiger with no problems.
I just need to know what pieces to update/fix. As you can imagine, burning CD's for ones family is a big problem for some 12 year olds!You are totally correct, I discovered that after searching Apple spec sheets. I suppose that is why I bought a firewire CD burner! [headbash] Since I gave all the hardware ( iMac, scanner, etc, ) to my Granddaughter, I don't have it sitting here in front of my nose! So I'm claiming that and my age as the reason for the question!
And it was not custom ordered. Similar to my brain which is also the 'stock' model. Problem is, there are too few connections or too many bad 'cells'. Perhaps they need a faster refresh cycle, also.
Anyway, thanks for the answer. hope you got a laugh at my forgetfulness. -
Blackberry Desktop Software installed, but not on start menu or icons on desktop
Blackberry Desktop Software installed, but not on start menu or icons on desktop
I got a new laptop Windows 7. I installed Blackberry Desktop apparently successfully. However, doesn't appear on start menu nor desktop.Hey tgcraighead,
Welcome to the BlackBerry Support Community Forums.
Thanks for the question.
After the installation did you restart the computer? If you go into Control Panel>Programs and Features do you see BlackBerry Desktop Software listed in the applications?
Did you have a previous version of BlackBerry Desktop Software installed?
I look forward to your reply.
Cheers.
-ViciousFerret
Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
Be sure to click Like! for those who have helped you.
Click Accept as Solution for posts that have solved your issue(s)! -
Custom report software installed with last logged on user.
Can someone please help, I'd like to create a custom report: Specific software installed on a computer which includes last logged on user. I can do this by query but need a custom report for none ConfigMgr users.
SELECT DISTINCT
TOP (100) PERCENT dbo.v_GS_COMPUTER_SYSTEM.Name0 AS [Computer name], dbo.v_GS_ADD_REMOVE_PROGRAMS.DisplayName0,
dbo.v_GS_ADD_REMOVE_PROGRAMS.Version0, dbo.v_R_System.User_Name0, dbo.v_R_System.User_Domain0 AS [User domain],
dbo.v_GS_COMPUTER_SYSTEM.Domain0 AS [Computer domain], dbo.v_R_System.AD_Site_Name0 AS [Computer AD Site]
FROM dbo.v_GS_ADD_REMOVE_PROGRAMS INNER JOIN
dbo.v_GS_COMPUTER_SYSTEM ON dbo.v_GS_ADD_REMOVE_PROGRAMS.ResourceID = dbo.v_GS_COMPUTER_SYSTEM.ResourceID INNER JOIN
dbo.v_R_System ON dbo.v_GS_COMPUTER_SYSTEM.ResourceID = dbo.v_R_System.ResourceID
WHERE (dbo.v_GS_ADD_REMOVE_PROGRAMS.DisplayName0 LIKE N'Adobe Shockwave Player%')
ORDER BY [Computer name]
Keep in mind that this query will only find x86 software titles. Use
v_ADD_REMOVE_PROGRAMS
instead to get both.
http://www.enhansoft.com/ -
Vista to XP Driver and Software install N200 0687
Here's a guide I wrote up while I installed XP onto my laptop, it's been used by a few of my friends. It's specifically for the N200 0687 A31 but as a general guide it's best to install drivers and software in chronological order based on the date of the files on the lenovo site.
XP doesn't recognize the hard drive under AHCI so first enter the bios by
pressing F1 at boot and enter the Bios so you can change the SATA
Controller Mode from "AHCI" to "Compatibility". While your there make sure
in the boot order the CDrom is first. Put XP disk in drive and reboot.
Delete the Vista install.(If you want to delete the hidden partition and you're smart you've generated recovery disks in case Vista service packs make it worth reinstalling)
Install XP and Service Pack 2
Read the text file associated with each driver to know how to deal with each extracted
package, and note the directory the files are extracted to. Cancel any "Hardware
Update Wizard" windows that pop up.
Install in the following order:
65vg09ww.exe Display (Intel X3100) driver - that looks better.
65sa02ww.exe AHCI driver - find the three .inf files and right click
and select install. Probably not all are necessary.
Never mind. During any of the many ensuing reboots
you can enter the Bios and change
"Compatibility" back to "AHCI", and the first boot
device back to the hard drive. Towards the end of
this driver installation list ever boot will result in
only one “Hardware Update Wizard” opening. Instead
of canceling it manually direct the Wizard to select
the best driver from the "AHCI" folder where it will
select and install the "Intel(R) 82801HEM/IBM SATA
AHCI Controller"
65ch04ww.exe Intel chipset support 6 - Worth doing early if your installing
drivers from a USB flashdrive.(USB 2 support)
kb888111xp2en.exe Windows XP Service Pack 2 UAA High Definition
Audio class driver
64uy02cw.exe Lenovo Care Pack
thrdptytpc21_32.exe Third party application plug-in for Lenovo Care Pack
65bl03ww.exe Bluetooth with Enhanced Data Rate software
65ku01ww.exe Power Management driver
65la09ww.exe LAN (Broadcom) driver
65tp04ww.exe TouchPad (Synaptics) driver
662m02ww.exe Wireless LAN (Intel abgn) driver - If your wireless
switch is "on" the led will light up and wireless
networks will be detected.
65fl02ww.exe Card reader (Ricoh 5-in-1) driver
65md03ww.exe Conexant Modem driver
65au07ww.exe Audio driver
7mcn38ww.exe ThinkVantage Access Connections V4.42
tvtrnr42_1511en.exe Rescue and Recovery 4.2 for Windows XP and 2000
- Do your hard drive a favour and defragment when
asked, but don't bother running Rescue and
Recovery on re-boot.
a1afp02us17.exe Adobe Flash Player for Windows - Application
and plug-in
Dotnetfx1.1.exe Microsoft .NET Framework 1.1 - needed for the
schedulerupdater.exe
schedulerupdater.exe Scheduler patch to fix the tvtsched.exe hold 99%
CPU issue
osfj04ww.exe Wake up on LAN - Warning if you typically use sleep
mode installing this probably isn't a good idea.
Unwanted wake-up events may occur when you
enable the Wake On LAN Feature (Microsoft
KB941145).
randomscheduler.exe TVSU random scheduler
7tvu12ww.exe Hotkey Driver
pcd5setup_475511.exe PC-Doctor 5 for Windows
7rua19ww.exe Presentation Director
systemupdate313-2008-3-13.exe System Update 3.13
Configure the Internet access and run Lenovo Care\System Update to install
the latest versions of Drivers and Software.
Eventually when you have the laptop custom configured and all your essential software
installed use Lenovo Care\Rescue and Recovery in advanced mode to create a disk
image on the hard drive or CD/DVDs.
Cheers,
John
Message Edited by chilli_sauce on 04-23-2008 09:12 AM> and why can i make the picture light
I dont know what you mean by picture light!!!
If you want to use all Fn keys you will need different tools and utilities.
For example the FN+F3/F4 will not work if the power saver was not installed.
Also the FN+F5 will not work if display device change utility will be not installed.
As you can see, several applications are needed if you want to use the FN keys!!!
But as the above user has suggested already, the XP drivers are not available.
Maybe you can use some appellations designed fro another notebook series but this is only a tiny hope. -
I recently bought an new power mac with Logic Pro and Final Cut Pro Installed.
When I updated to the new OS X operating system, they need to be updated as well. And will no longer work.
But it says it is on another account. Not sure what account. How do I find out what account they are on? How or can I do I move them into my other account?
The Power Mac is registered to the account I am logged in on.Before buying a second-hand computer, you should have run Apple Diagnostics or the Apple Hardware Test, whichever is applicable.
The first thing to do after buying the computer is to erase the internal drive and install a clean copy of OS X. You—not the original owner—must do that. Changes made by Apple over the years have made this seemingly straightforward task very complex.
How you go about it depends on the model, and on whether you already own another Mac. If you're not sure of the model, enter the serial number on this page. Then find the model on this page to see what OS version was originally installed.
It's unsafe, and may be unlawful, to use a computer with software installed by a previous owner.
1. If you don't own another Mac
a. If the machine shipped with OS X 10.4 or 10.5, you need a boxed and shrink-wrapped retail Snow Leopard (OS X 10.6) installation disc from the Apple Store or a reputable reseller—not from eBay or anything of the kind. If the machine is very old and has less than 1 GB of memory, you'll need to add more in order to install 10.6. Preferably, install as much memory as it can take, according to the technical specifications.
b. If the machine shipped with OS X 10.6, you need the installation media that came with it: gray installation discs, or a USB flash drive for a MacBook Air. You should have received the media from the original owner, but if you didn't, order replacements from Apple. A retail disc, or the gray discs from another model, will not work.
To start up from an optical disc or a flash drive, insert it, then restart the computer and hold down the C key at the startup chime. Release the key when you see the gray Apple logo on the screen.
c. If the machine shipped with OS X 10.7 or later, you don't need media. It should start up in Internet Recovery mode when you hold down the key combination option-command-R at the startup chime. Release the keys when you see a spinning globe.
d. Some 2010-2011 models shipped with OS X 10.6 and received a firmware update after 10.7 was released, enabling them to use Internet Recovery. If you have one of those models, you can't reinstall 10.6 even from the original media, and Internet Recovery will not work either without the original owner's Apple ID. In that case, contact Apple Support, or take the machine to an Apple Store or another authorized service provider to have the OS installed.
2. If you do own another Mac
If you already own another Mac that was upgraded in the App Store to the version of OS X that you want to install, and if the new Mac is compatible with it, then you can install it. Use Recovery Disk Assistant to prepare a USB device, then start up the new Mac from it by holding down the C key at the startup chime. Alternatively, if you have a Time Machine backup of OS X 10.7.3 or later on an external hard drive (not a Time Capsule or other network device), you can start from that by holding down the option key and selecting it from the row of icons that appears. Note that if your other Mac was never upgraded in the App Store, you can't use this method.
3. Partition and install OS X
a. If you see a lock screen when trying to start up from installation media or in Recovery mode, then a firmware password was set by the previous owner, or the machine was remotely locked via iCloud. You'll either have to contact the owner or take the machine to an Apple Store or another service provider to be unlocked. You may be asked for proof of ownership.
b. Launch Disk Utility and select the icon of the internal drive—not any of the volume icons nested beneath it. In the Partition tab, select the default options: a GUID partition table with one data volume in Mac OS Extended (Journaled) format. This operation will permanently remove all existing data on the drive.
c. An unusual problem may arise if all the following conditions apply:
OS X 10.7 or later was installed by the previous owner
The startup volume was encrypted with FileVault
You're booted in Recovery mode (that is, not from a 10.6 installation disc)
In that case, you won't be able to unlock the volume or partition the drive without the FileVault password. Ask for guidance or see this discussion.
d. After partitioning, quit Disk Utility and run the OS X Installer. If you're installing a version of OS X acquired from the App Store, you will need the Apple ID and password that you used. When the installation is done, the system will automatically restart into the Setup Assistant, which will prompt you to transfer the data from another Mac, its backups, or from a Windows computer. If you have any data to transfer, this is usually the best time to do it.
e. Run Software Update and install all available system updates from Apple. To upgrade to a major version of OS X newer than 10.6, get it from the Mac App Store. Note that you can't keep an upgraded version that was installed by the original owner. He or she can't legally transfer it to you, and without the Apple ID you won't be able to update it in Software Update or reinstall, if that becomes necessary. The same goes for any App Store products that the previous owner installed—you have to repurchase them.
4. Other issues
a. If the original owner "accepted" the bundled iLife applications (iPhoto, iMovie, and Garage Band) in the App Store so that he or she could update them, then they're irrevocably linked to that Apple ID and you won't be able to download them without buying them. Reportedly, Mac App Store Customer Service has sometimes issued redemption codes for these apps to second owners who asked.
b. If the previous owner didn't deauthorize the computer in the iTunes Store under his Apple ID, you wont be able to authorize it immediately under your ID. In that case, you'll either have to wait up to 90 days or contact iTunes Support.
c. When trying to create a new iCloud account, you might get a failure message: "Account limit reached." Apple imposes a lifetime limit of three iCloud account setups per device. Erasing the device does not reset the limit. You can still use an iCloud account that was created on another device, but you won't be able to create a new one. Contact iCloud Support for more information. The setup limit doesn't apply to Apple ID accounts used for other services, such as the iTunes and Mac App Stores, or iMessage. You can create as many of those accounts as you like. -
How to format my computer without affecting the software installed?
how do I format my computer without affecting the software installed?
You can, but if you don't format the drive using the Zero Data option all your personal files will still be accessible to someone who knows how to gain access to them. If that's not a concern then here are two options (easy and not so easy):
The Easy Way
1. First, boot from your Tiger DVD, select your language and click on the Continue button, then select Disk Utility from the Utilities menu, select your boot hard drive, go to the First Aid tab, and click the button for Repair Disk. Repeat this until no trouble is found. Then click on the Repair Permissions button. Then quit DU, return to the installer and shutdown the computer for a couple of minutes.
This will assure that the drive is OK and permissions are OK.
2. Next, boot to single user mode by restarting and after the chime press and hold down the COMMAND-S keys until a black screen with white type appears.
3. At the prompt, type the following commands pressing return after each command line:
/sbin/fsck -yf
mount -uw /
rm /private/var/db/.AppleSetupDone
shutdown -r now
The second-to-last command above will cause OS X to think that the operating system is newly installed, and when you reboot, it will send you to the startup wizard where you can start a new user without reinstalling.
The Not So Easy Way
Follow these instructions step by step to prepare a Mac for sale:
First, back up the data:
1) Shut down all Virtual PCs. They cannot be in their "fast saved" state. They must be shut down from inside Windows.
2) Clone to an external drive using Carbon Copy Cloner.
Next, prepare the machine for the new buyer:
3) Deauthorize the computer in iTunes! Deauthorize both iTunes and Audible accounts.
4) Remove Open Firmware passwords
5) Turn the brightness full up and volume nearly so.
Install a fresh OS:
6) Insert the OS X install CD/DVD.
7) Restart the computer while holding down the C key to boot from the CD/DVD.
8) Run Disk Utility from the file menu and erase the internal hard drive (optionally zero all data).
9) Install OS X.
10) Reboot the computer.
11) From the welcome screen, you can skip the registration step by typing command-Q.
12) When prompted, create an account (it will be an admin account).
13) From your new admin account, configure networking.
14) Then use Software Update to bring your system and all of it's applications up to date.
15) From Disk Utility, repair permissions on the new volume.
Now delete the account you just created:
16) Boot from a different volume (e.g. a firewire drive, if available)
17) Clean up the image using the following terminal commands:
prompt> rm /Volumes/<imagevol>/var/db/BootCache.playlist
prompt> rm /Volumes/<imagevol>/var/db/volinfo.database
prompt> rm -r /Volumes/<imagevol>/var/vm/swap*
18) Now you can get rid of the admin account you used to set up the machine Use the terminal:
prompt> nicl -raw /Volumes/<imagevol>/var/db/netinfo/local.nidb -delete /users/<admin>
prompt> rm -r /Volumes/<imagevol>/Users/<admin>
prompt> rm /Volumes/<imagevol>/var/db/.AppleSetupDone
19) Shut down and ship it to your buyer. When they get it, it will boot to the Welcome screen just like a factory Mac, except that it's better because it's completely up to date. -
What software installed do I use to upload desktop photos to web?
What software installed on my MacPro, OS X ver 10.8.4 do I use to upload desktop photos to web? I was trying to upload pics from my desktop to craigslist. Software installed, Photo Booth and Face Time don't offer the ability to do this.
You usually just use a Browser as far as I Know. There should be buttons on the page where you edit your ad text that will open a Dialog Box for you to specify what file to send.
-
Trying to install Leopard on my iMac (G5). Got to the screen that asks for the user name and password and it won't take it. How do I get out of this and resume the software install?
Help here > Mac OS X: Changing or resetting an account password
-
you are running the latest version of iTunes, have no other USB devices attached, have no security software installed, and are directly connected to your ISP source, simply restarting the computer and the iOS device can clear up certain issues that could prevent you from restoring. After restarting the computer and iOS device, attempt to restore again.
How big is your library? I would recommend the following troubleshooting steps:
- Backup your library. Always a good idea before messing with things.
- Create a new library. Refer to this article for details: http://support.apple.com/kb/HT1589. This won't delete your old library, you're just creating a new empty one. Also refer to this article to get back to your old library later.
- Add a few albums into this new library. Not everything, just a small sampling, as a test.
- Activate Match on this new library. You shouldn't have to re-pay, it should just say "Add Computer" or similar.
- At this point, Match should run again. With just a few albums it should complete in just a few minutes.
If iTunes doesn't crash at this point, then likely there's something about your original library that Match doesn't like - what that is I don't know, but at least you'll know it's not your PC. If iTunes still crashes, then if could be a number of other things, but probably not your library. My next suggestion (if you haven't already done this) is to uninstall / reinstall iTunes. If that doesn't work, then my next ideas you won't like. -
How to query which machines have a specific software installed
I am simply trying to create a query of systems that have a specific piece of software installed. All the resources that I have been reading are dealing with SCCM and not SCE 2010. The databases that they are referring to in the query are not
the same as the databases that I have in my SQL environment. Can somebody please point me in the right direction?Try to get a trace when you view the inventory by the following method, then you may find out which table stores the inventory information.
http://technet.microsoft.com/en-us/library/bb422788.aspx
Juke Chou
TechNet Community Support -
Hi
I need to know the command for getting list of softwares installed on all the remote systems in network which are existing in their respective registry like HKEY_LOCAL_MACHINE\SOFTWARE of all other systemsHey
Sorry this isn't powershell but it should do the job if you want to use it. The problem with using the Win32_Product WMI Class to enumerate the installed software (especially on Windows 2000 & 2003 Servers) is that the WMI class is NOT installed by default. Here is a VBScript i wrote to read a list of hostnames from a text file named "ComputerNames.txt" from the scripts directory and attempt to remotely enumerate all subkeys within the following registry key
HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall
For each subkey enumerated it will attempt to read the value of the "DisplayName" key and output the results to a csv file.
(the results should be the same as what you would see when you open Add/Remove Programs)
Hope that helps
Cheers
Matt :)
'Script Name : CheckInstalledSoftware.vbs
'Author : Matthew Beattie
'Created : 01/03/10
'Description : This script reads a list of hostnames from a text file name "ComputerNames.txt" in the scripts working
' : directory. For each hostName it requests an ICMP response and if successfull attempts a remote registry
' : connection to enumerate and read the registry values of installed software. All results are logged to the
' : scripts working directory in a log file per computer name.
'Initialization Section
Option Explicit
Const ForReading = 1
Const ForAppending = 8
Dim objFSO, wshNetwork, wshShell, hostName
Dim scriptBaseName, scriptPath, scriptLogPath
On Error Resume Next
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set wshShell = CreateObject("WScript.Shell")
Set wshNetwork = CreateObject("WScript.Network")
scriptBaseName = objFSO.GetBaseName(Wscript.ScriptFullName)
scriptPath = objFSO.GetFile(Wscript.ScriptFullName).ParentFolder.Path
scriptLogPath = scriptPath & "\" & IsoDateString(Now)
If Err.Number <> 0 Then
Wscript.Quit
End If
On Error Goto 0
'Main Processing Section
On Error Resume Next
PromptStart
ProcessScript
If Err.Number <> 0 Then
Wscript.Quit
End If
PromptEnd
On Error Goto 0
'Functions Processing Section
'Name : ProcessScript -> Primary Function that controls all other script processing.
'Parameters : None ->
'Return : None ->
Function ProcessScript
Dim fileSpec, hostNames, regKey, keyName, results, result
keyName = "DisplayName"
regKey = "HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall"
fileSpec = scriptPath & "\ComputerNames.txt"
'Ensure the "ComputerNames.txt" file exists within the scripts working directory.
If Not objFSO.FileExists(fileSpec) Then
MsgBox DQ(fileSpec) & " does not exist!", vbCritical, scriptBaseName
Exit Function
End If
'Read the list of hostNames from the "ComputerNames.txt" text file within the scripts working directory.
If Not GetScriptInput(hostNames, fileSpec) Then
Exit Function
End If
'Attempt to read the registry from each hostname read from the list of hostnames.
For Each hostName In hostNames
Do
'Ensure the system responds to an ICMP request.
If Not CheckConnection(hostName) Then
LogMessage 2, "Failed to respond to an ICMP Request"
Exit Do
End If
'Enumerate and read the registry values.
If Not GetRegValues(results, hostName, keyName, regKey) Then
Exit Do
End If
'Log the registry values results.
For Each result In results
LogMessage 0, result
Next
Loop Until True
Next
End Function
'Name : GetScriptInput -> Reads a text file to be used as Script input.
'Parameters : items -> Output: An array of items in the script input file.
' : fileSpec -> The full folder Path, file Name and extention of the script input file.
'Return : GetScriptInput -> Returns an array of items for script input and True or False.
Function GetScriptInput(items, fileSpec)
Dim scriptInputFile, itemsDict, item
GetScriptInput = False
Set itemsDict = NewDictionary
If Not objFSO.FileExists(fileSpec) Then
Exit Function
End If
On Error Resume Next
Set scriptInputFile = objFSO.OpenTextFile(fileSpec, ForReading)
If Err.Number <> 0 Then
Exit Function
End If
On Error Goto 0
Do Until scriptInputFile.AtEndOfStream
item = scriptInputFile.ReadLine
If item = "" Then
Exit Function
End If
If Not itemsDict.Exists(item) Then
itemsDict.Add item, ""
End If
Loop
items = itemsDict.Keys
GetScriptInput = True
End Function
'Name : CheckConnection -> Checks a remote host using WMI ping.
'Parameters : hostName -> Hostname of computer system to verify network connectivity with.
'Return : Boolean -> True if hostname replies. False otherwise.
Function CheckConnection(hostName)
Dim ping, response, replied
Set ping = GetObject("winmgmts:{impersonationLevel=impersonate}").ExecQuery _
("select * from Win32_PingStatus where address = '" & hostName & "'")
For each response in ping
replied = Not IsNull(response.StatusCode) And response.StatusCode = 0
Next
CheckConnection = replied
End Function
'Name : GetRegValues -> Enumerates the subkeys in a registry key and the values of the keyName.
'Parameters : hostName -> String containing the hostName of the system to enumerate the registry keys on.
' : keyName -> String containing the name of the registry key value to enumerate.
' : regKey -> Registry key to enumerate subkey names for.
'Return : GetRegValues -> Returns True and an Array containing the registry key values otherwise False.
Function GetRegValues(results, hostName, keyName, regKey)
Dim objReg, regDict, rootKey, hive, keyValue, subKeys, i
GetRegValues = False
rootKey = regKey
hive = GetRegistryHiveFromKey(rootKey)
On Error Resume Next
If hive <> 0 Then
'Create a dictionary object to store the registry values in.
Set regDict = NewDictionary
If Err.Number <> 0 Then
LogMessage 1, "Creating Dictionary Object"
Exit Function
End If
'Connect to the remote registry.
Set objReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & hostName & "\root\default:StdRegProv")
If Err.Number <> 0 Then
LogMessage 1, "Creating StdRegProv Object"
Exit Function
End If
'Enumerate the subkey names within the regKey paramater.
objReg.EnumKey hive, rootKey, subKeys
If Err.Number <> 0 Then
LogMessage 1, "Enumerating Registry Keys"
Exit Function
End If
'Ensure the results are an array.
If Not IsArray(subKeys) Then
subKeys = Array(subKeys)
End If
'Read the registry key value for each subkey. Add the results to the dictionary.
For i = 0 to UBound(subKeys)
objReg.GetStringValue hive, rootKey & "\" & subKeys(i), keyName, keyValue
If Err.Number = 0 Then
If Not IsNull(keyValue) Then
regDict(regDict.Count) = keyValue
End If
Else
Err.Clear
End If
Next
End If
On Error Goto 0
results = regDict.Items
GetRegValues = True
End Function
'Name : GetRegistryHiveFromKey -> Get the hive ID from a registry key name.
'Parameters: Input/Output: key -> Registry key name. Hive name will be removed.
'Return : GetRegistryHiveFromKey -> ID of hive of given key name (0 if invalid).
' : -> The hive name is removed from the input key name.
Function GetRegistryHiveFromKey (key)
Dim pos, hive
pos = Instr (key, "\")
If pos = 0 Then
pos = Len(key) + 1
End If
hive = Left (UCase (Left (key, pos - 1)) & " ", 4)
key = Mid (key, pos + 1)
GetRegistryHiveFromKey = Array(0, &H80000000, &H80000001, &H80000002, &H80000003, &H80000005, &H80000006) _
(Int ((Instr("HKCR,HKCU,HKLM,HKU ,HKCC,HKDD", hive) + 4) / 5))
End Function
'Name : NewDictionary -> Creates a new dictionary object.
'Parameters : None ->
'Return : NewDictionary -> Returns a dictionary object.
Function NewDictionary
Dim dict
Set dict = CreateObject("scripting.Dictionary")
dict.CompareMode = vbTextCompare
Set NewDictionary = dict
End Function
'Name : DQ -> Place double quotes around a string and replace double quotes
' : -> within the string with pairs of double quotes.
'Parameters : stringValue -> String value to be double quoted
'Return : DQ -> Double quoted string.
Function DQ (ByVal stringValue)
If stringValue <> "" Then
DQ = """" & Replace (stringValue, """", """""") & """"
Else
DQ = """"""
End If
End Function
'Name : IsoDateTimeString -> Generate an ISO date and time string from a date/time value.
'Parameters : dateValue -> Input date/time value.
'Return : IsoDateTimeString -> Date and time parts of the input value in "yyyy-mm-dd hh:mm:ss" format.
Function IsoDateTimeString(dateValue)
IsoDateTimeString = IsoDateString (dateValue) & " " & IsoTimeString (dateValue)
End Function
'Name : IsoDateString -> Generate an ISO date string from a date/time value.
'Parameters : dateValue -> Input date/time value.
'Return : IsoDateString -> Date part of the input value in "yyyy-mm-dd" format.
Function IsoDateString(dateValue)
If IsDate(dateValue) Then
IsoDateString = Right ("000" & Year (dateValue), 4) & "-" & _
Right ( "0" & Month (dateValue), 2) & "-" & _
Right ( "0" & Day (dateValue), 2)
Else
IsoDateString = "0000-00-00"
End If
End Function
'Name : IsoTimeString -> Generate an ISO time string from a date/time value.
'Parameters : dateValue -> Input date/time value.
'Return : IsoTimeString -> Time part of the input value in "hh:mm:ss" format.
Function IsoTimeString(dateValue)
If IsDate(dateValue) Then
IsoTimeString = Right ("0" & Hour (dateValue), 2) & ":" & _
Right ("0" & Minute (dateValue), 2) & ":" & _
Right ("0" & Second (dateValue), 2)
Else
IsoTimeString = "00:00:00"
End If
End Function
'Name : LogMessage -> Parses a message to the log file based on the messageType.
'Parameters : messageType -> Integer representing the messageType.
' : -> 0 = message (writes to a ".csv" file)
' : -> 1 = error, (writes to a ".err" file including information relating to the error object.)
' : -> 2 = error message (writes to a ".err" file without information relating to the error object.)
' : message -> String containing the message to write to the log file.
'Return : None ->
Function LogMessage(messageType, message)
Dim prefix, logType
prefix = hostName
Select Case messageType
Case 0
logType = "csv"
Case 1
logType = "err"
message = "Error " & Err.Number & " (Hex " & Hex(Err.Number) & ") " & message & ". " & Err.Description
Case Else
LogType = "err"
End Select
If Not LogToCentralFile(scriptLogPath & "." & logType, hostName & "," & message) Then
Exit Function
End If
End Function
'Name : LogToCentralFile -> Attempts to Appends information to a central file.
'Parameters : logSpec -> Folder path, file name and extension of the central log file to append to.
' : message -> String to include in the central log file
'Return : LogToCentralFile -> Returns True if Successfull otherwise False.
Function LogToCentralFile(logSpec, message)
Dim attempts, objLogFile
LogToCentralFile = False
'Attempt to append to the central log file up to 10 times, as it may be locked by some other system.
attempts = 0
On Error Resume Next
Do
Set objLogFile = objFSO.OpenTextFile(logSpec, ForAppending, True)
If Err.Number = 0 Then
objLogFile.WriteLine message
objLogFile.Close
LogToCentralFile = True
Exit Function
End If
Randomize
Wscript.sleep 1000 + Rnd * 100
attempts = attempts + 1
Loop Until attempts >= 10
On Error Goto 0
End Function
'Name : PromptStart -> Prompt when script starts.
'Parameters : None ->
'Return : None ->
Function PromptStart
MsgBox "Now processing the " & DQ(Wscript.ScriptName) & " script.", vbInformation, scriptBaseName
End Function
'Name : PromptEnd -> Prompts when script has completed.
'Parameters : None ->
'Return : None ->
Function PromptEnd
MsgBox "The " & DQ(Wscript.ScriptName) & " script has completed successfully.", vbInformation, scriptBaseName
End Function
'Name : PromptError -> Prompts when an unexpected script error occurs.
'Parameters : None ->
'Return : None ->
'Function PromptEnd
' MsgBox "Error " & Err.Number & " (Hex " & Hex(Err.Number) & "). " & Err.Description, vbCritical, scriptBaseName
'End Function
Maybe you are looking for
-
Dynamic Structure and Components Issue
Hi, I have a requirement of creating an inbound idoc program and populating dynamic structures. The program for the dynamic structure creation is as follows: ( I have been referencing Heilmans Blog ): The part for the inbound idoc creation works fine
-
Queries Greyed out Remote Control
Hello there We have migrated from a Landesk platform to System center, and our admin team is used to seeing a main device view where they remotely control machines from. I have created the query I want but the remote control options are greyed out. I
-
Does anyone know how I can add /delete contacts from the VIP list? I added some names yesterday but I want to add some others. thanks
-
Keeping track of visited websites in IE using JAVA
I am trying to write a java program that keeps track of sites visited by IE.Can we sense http requests made by the local computer ?
-
I was told to do the following to center content on a web page I'm creating.. I don't think I'm really understanding what the wrapper does.. Can anyone dull this process down a bit and explain it for me? Most all of this stuff makes perfect sense. I