Unhandled exception

Page 4 of 6 FirstFirst ... 23456 LastLast

  1. Posts : 10,200
    MS Windows 7 Ultimate SP1 64-bit
       #31

    Sailing Nut,
    Although for my own system, I'd make some changes,but I see nothing that I can directly attribute to your problem in the files you submitted.

    Please run the attached scripts and attach the results.
    # **********************INSTRUCTIONS**************************
    # STEP 1 ** RUN POWERSHELL AS ADMINISTRATOR ******************
    # ************************************************************
    #
    # WIN key | type POWERSHELL | do NOT hit ENTER |
    # in the PROGRAMS list, right-click on WINDOWS POWERSHELL |
    # choose "Run as administrator" |
    # Click on the YES button (if such appears)
    #
    # WIN key = key with Microsoft log on top
    #
    # for the guru:
    # WIN | type POWERSHELL | CTRL+SHIFT+ENTER key combo | ALT+Y keycombo
    # ************************************************************
    # STEP 2 ** COPY AND PASTE ***********************************
    # ************************************************************
    #
    # COPY the script using CTRL+C,
    # COPY every line of script down thru both EXIT statements
    #
    # PASTE into Powershell
    #----Right-Click at the PowerShell Prompt
    #----(Ctrl+V does not work)
    #
    # Start copying with first script line without a # at start of the line
    # Note: Actually, you can paste the entire file if you rather
    #-------Lines starting with a # are ignored by PowerShell
    # ************************************************************
    # STEP 3 ** SCRIPT OUTPUT & SCRIPT PURPOSE *******************
    # ************************************************************
    # --The script output and purpose is given at the very front of the script
    #
    # --The script output and purpose is given at the very front of the script
    #
    # ************************************************************
    # ***************** NOTE - POWERSHELL VERSION*****************
    # if you receive this error msg:
    #--The system can not find the path specified
    # you may need to update your PowerShell
    # you must be using Powershell 2.0 or later.
    #
    # To determine your Powershell version:
    #---Run PowerShell
    #---enter $host.version
    #---you should see at least:
    # Major Minor Build Revision
    # ----- ----- ----- --------
    # 2......0......-1.....-1
    #
    # If you do not see the above, update your Vista/Win 7.
    # ************************************************************
    # *************** NOTE - EXECUTION POLICY*********************
    # If you haven't set the execution policy, you may need to:
    #---Run PowerShell
    #---enter SET-EXECUTIONPOLICY -EXECUTIONPOLICY REMOTESIGNED
    # ************************************************************

    Script:
    # *****************************************
    # ################# Motherboard ###########
    # Places Motherboard.txt on the desktop
    # Contains manufacturer and product type
    # *****************************************

    # Create management object
    $mobo    gwmi win32_BaseBoard
    # Create hash table
    $Hash = @{
      
    "MOTHERBOARD"   "*" 40
      
    "Manufacturer"  $mobo.manufacturer
      
    "Product Type"  $mobo.product
      
    }
    #create psobject,specify properties with the hash table, use SELECT to specify order
    $obj = new-object -type psobject -property $hash SELECT MOTHERBOARDmanufacturer,"Product Type" FL

    $obj 
    $env:userprofile\desktop\Motherboard.txt

    EXIT
    EXIT 
    Script:
    # *****************************************************************
    # ######################## BIOS ###################################
    # Places BIOS.txt on the desktop
    # Contains info about your bios
    # *****************************************************************
    # create a management object containing bios info
    $bios gwmi win32_bios
    # create a PSCustomObject
    $obj "" select BIOSManufacturerNameVersion"Release Date""Serial Number"
    # populate the object
    $obj.BIOS            "*" 40
    $obj
    .Manufacturer    $bios.manufacturer
    $obj
    .Name            $bios.name
    $obj
    .Version         $bios.smbiosbiosversion
    $obj
    ."Release Date"  $bios.converttodatetime($bios.releasedate).tostring("d")
    $obj."Serial Number" $bios.serialnumber

    $obj 
    $env:userprofile\desktop\bios.txt

    EXIT
    EXIT 

    Script:
    # ************************************************************
    # #### COMPUTER INFO SUMMARY #################################
    # Places ComputerInfo.txt on the desktop
    # ************************************************************
    # Create empty array to hold results
    $arr = @()

    # Create management objects with computer info
    $CS      gwmi Win32_ComputerSystem   
    $CSprod  
    gwmi Win32_ComputerSystemProduct 
    $Build   
    gwmi Win32_WMISetting
    $bootcfg 
    gwmi Win32_BootConfiguration 
    $mem     
    gwmi win32_PhysicalMemoryArray 
     
    # create a Hash array, ie, array of name-value pairs
    $hash = @{
      
    "COMPUTER INFO"     "*" 40
      
    "Manufacturer"      $cs.manufacturer
      
    "Model"             $cs.Model
      
    "Version"           $csprod.version
      
    "Primary Owner"     $cs.primaryownername
      
    "User Name"         $cs.username
      
    "Architecture Type" $cs.systemtype
      
    "Total Memory"      "{0:n2} GB" -($mem.maxcapacity/1MB)
      
    "Build Version"     $build.buildversion
      
    "Boot Directory"    $bootcfg.bootdirectory
      
    # end of hash array

    # create a PowerShell object and use the hash table to specify the properties
    # use a select command to specify the order
    $obj = New-object -type PSobject -Property $hash |
    SELECT "COMPUTER INFO"ManufacturerModel"Architecture Type","Primary Owner""User Name""Total Memory"Version"Build Version""Boot Directory"

    # Add object to array
    $arr += $obj

    $Arr 
    $env:userprofile\desktop\computerinfo.txt

    EXIT
    EXIT 

    Script:
    # ************************************************
    # Collects information about your operating system
    # Places OSinfo.txt on the desktop
    # ************************************************

    # Create an empty array to hold objects
    $arr = @()

    # ######### OS ############################
    $os gwmi win32_operatingsystem
    # $e = current element in the following foreach loop
    foreach ($e in $OS) { 
    # Create and populate a hash table for os info
    $hash = @{
      
    "OPERATING SYSTEM" "*" 40
      
    "OS Version"        $e.caption
      
    "Service Pack"      $e.csdversion
      
    "Installed"         = ($e.converttodatetime($e.installdate)).tostring("d")
      
    "Last Bootup"       = ($e.converttodatetime($e.lastbootuptime))
      
    "Local Date-Time"   = ($e.converttodatetime($e.localdatetime))
      
    "Number of Users"   $e.numberofusers
      
    "OS Architecture"   $e.osarchitecture
      
    "Registered User"   $e.registereduser
      
    "Product ID"        $e.serialnumber
      
    "Service Pack Version" = [string]$e.servicepackmajorversion "." + [string]$e.servicepackminorversion
      
    "System Drive"      $e.systemdrive
      
    "Windows Directory" $e.windowsdirectory
      
    # end of hash array

    # create object using hash array
    $obj = new-object -type psobject -property $hash |
    Select "Operating System""OS Version""Service Pack"Installed"Last Bootup""Local Date-Time""Number of Users""OS Architecture", `
    "Registered User", "Product ID","service pack version", "System Drive", "Windows Directory"
    # add to result array
    $arr += $obj
    } # end of foreach loop

    $arr > $env:userprofile\desktop\OSinfo.txt


    EXIT
    EXIT 
      My Computer


  2. Posts : 127
    Windows 7 Ultimate x64
    Thread Starter
       #32

    Bad news, it did it again. THe behavior "MAY" be different. I did not see the exception dialog this time, but I was looking at my 2nd monitor at the time. However the rest of it was the same. Screens go blank, look and there is HDD activity then the power goes out. Power back on and no prompt that Windows did not shut down properly. Just a guess but the fact that I am on an SSD now may mean that there is a much smaller time window that the dialog displays.


    The files created by the scripts are attached.


    Thanks again and again and again!
    Unhandled exception Attached Files
      My Computer


  3. Posts : 10,200
    MS Windows 7 Ultimate SP1 64-bit
       #33

    Sailing Nut,
    Don't know why I took so long to notice this.

    You are looking at needing to apply about 100 updates.

    Cut no corners on me. I've a script that will indicate what is installed/not installed.

    UPDATING YOUR WIN 7
    1. ASSURE THAT YOU RECEIVE ALL UPDATES
    WIN | type WINDOWS UPDATE | ENTER |
    Change settings (left-hand column) |
    checkmark all four of the boxes | OK
    button

    Approve any dialog boxes presented. Let Windows install any update features.

    WIN is the key with the Microsoft flag on top.

    2. INSTALL CRITICAL UPDATES
    Check for Updates
    (left-hand column)
    Install ALL critical updates.
    Restart your computer (even if not prompted)

    Repeat this procedure until there are no more critical updates.

    DO NOT TRUST the “Windows is up to date” in center of dialog. until you see that TWICE IN A ROW!

    3. INSTALL IMPORTANT UPDATES
    Use the “critical update” procedure until all important updates are installed.

    4. INSTALL OPTIONAL UPDATES
    Under Optional updates you will be presented with:
    a) Microsoft Bing Desktop which is of questionable value
    b) a list of about 34 language updates.

    You can hide those updates so that aren't continually notified of those updates.
    When you click on 34+ optional updates are available, then you
    a) highlight all of the language updates,
    b) right-click anywhere in the highlighted list.
    c) click on Hide Updates,
    d) OK button.
    Install ALL other Optional Updates.
    Use the “critical update” procedure.

    UPDATE GOLDEN RULES

    Install ALL, yes, ALL updates.
    This is Win 7 and not Vista or XP (eXPired).

    UPDATE IS HUNG –TAKING FOREVER
    Hung is very doubtful unless you interrupted updates.

    CTRL + SHIFT + ESC key combo will pop-up the Task Manager.
    Lo and behold, Windows Update is still running!

    You hold down the CTRL and SHIFT keys.
    While holding them down, tap the ESC key once.
      My Computer


  4. Posts : 127
    Windows 7 Ultimate x64
    Thread Starter
       #34

    Forgot to mention that the last time this happened, I was in the middle of applying updates.

    I'll get them all applied and hopefully this will all go away!

    I'm starting to think it may be a fualty piece of hardware that is at the root, but we need to get all of the resto f this squared away first.
      My Computer


  5. Posts : 127
    Windows 7 Ultimate x64
    Thread Starter
       #35

    OK, my theroy may be blown out of the water.

    I just had it happen again while applying updates. So, now it's time to apply them one by one and see which one is the casue. Or if maybe it's trying to do them all at once, but I doubt that since they are done sequentially.

    EDIT: It appears that the updates did apply because I had only one optional update that I chose not to apply (Bing desktop) when I went back into Windows Update. However when I did a check for updates I now have 15 important and 5 optional. I suspect this is because they depend on having previous updates already installed.
      My Computer


  6. Posts : 10,200
    MS Windows 7 Ultimate SP1 64-bit
       #36

    Very possible

    Just work thru that write-up I gave.

    You will notice that the write-up also speaks of not installing Bing desktop.
      My Computer


  7. Posts : 127
    Windows 7 Ultimate x64
    Thread Starter
       #37

    Karl,

    At first I didn't do well with the whole RTFM thing. I kind of just jumped in and went back when things failed.

    Well the interesting thing is that it seemed to me that the cause (possibly indirectly) was that I was trying to install critical updates along with optional ones. Granted it had moved on to other updates, but once I stopped doing that it stopped shutting down when doing updates.
      My Computer


  8. Posts : 10,200
    MS Windows 7 Ultimate SP1 64-bit
       #38

    What is the status of the updating?
    Are you ready to run my script which shows which updates are installed and which are not?
      My Computer


  9. Posts : 127
    Windows 7 Ultimate x64
    Thread Starter
       #39

    Karl,

    Updating is all done, so I'm ready to run the script. I'm assuming that is the last one that creates OSinfo.txt, is that correct?
      My Computer


  10. Posts : 10,200
    MS Windows 7 Ultimate SP1 64-bit
       #40

    Script:
    # ************************************************************
    # Places InstalledUpdates.txt on your DESKTOP
    # Places NotInstalledUpdates.TXT on your DESKTOP
    #
    # Hidden updates are ignored.
    # ************************************************************

    Try
    {
       
    $error.clear()
       
    $file "$env:userprofile\Desktop\InstalledUpdates.TXT"
       
    If (test-path -path $file) {del $file}
       
    $update = new-object -com Microsoft.update.Session
       $searcher 
    $update.CreateUpdateSearcher()
       
    write-host "`n`n Patience. I'm slowly, but steadily working on fetching the list of installed updates.`n`n"
       
    $pending $searcher.Search("IsInstalled=1"
       foreach(
    $entry in $pending.Updates) {
         IF (
    $entry.IsHidden -ne $true) {
           
    "Title: " $entry.Title Out-file -append $File
           
    "Downloaded? " $entry.IsDownloaded Out-file -append $File
           
    "Description: " $entry.Description Out-file -append $File
           
    foreach($category in $entry.Categories) {
               
    $d "Category: " $category.name Out-file -append $File }
           
    "" Out-file -append $file } }
       If ((
    Test-Path -path $file) -eq $false) {"No updates have been installed." Out-file $file
    # Now to check the uninstalled updates that aren't hidden
       
    $file "$env:userprofile\Desktop\NotInstalledUpdates.TXT"
       
    If (test-path -path $file) {del $file}
       
    $update = new-object -com Microsoft.update.Session
       $searcher 
    $update.CreateUpdateSearcher()
       
    write-host "`n`n Patience. I'm slowly, but steadily working on fetching the list of uninstalled updates.`n`n"
       
    $pending $searcher.Search("IsInstalled=0"
       foreach(
    $entry in $pending.Updates) {
       IF (
    $entry.IsHidden -ne $true) {
           
    "Title: " $entry.Title Out-file -append $File
           
    "Downloaded? " $entry.IsDownloaded Out-file -append $File
           
    "Description: " $entry.Description Out-file -append $File
           
    foreach($category in $entry.Categories) {
             
    $d "Category: " $category.name Out-file -append $File }
           
    "" Out-file -append $file } }
       If (-
    not(Test-Path -path -$file)) {"There are no uninstalled updates which are unhidden." Out-file $file
    }
    Catch { 
    "Unable to fetch update list from Microsoft site" }
    Finally { 
    "End of script"; EXIT }

    EXIT
    EXIT 
      My Computer


 
Page 4 of 6 FirstFirst ... 23456 LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 06:51.
Find Us