Windows 10: GET WINDOWSUPDATE ERROR LOG ON DESKTOP USING WINDOWS POWERSHELL SCRIPT

Discus and support GET WINDOWSUPDATE ERROR LOG ON DESKTOP USING WINDOWS POWERSHELL SCRIPT in Windows 10 Installation and Upgrade to solve the problem; Today i am sharing PowerShell script and registry setting to trace extending supporting of windows update error log file step 1 add registry keys... Discussion in 'Windows 10 Installation and Upgrade' started by RAJU.MSC, Sep 6, 2018.

  1. RAJU.MSC Win User

    GET WINDOWSUPDATE ERROR LOG ON DESKTOP USING WINDOWS POWERSHELL SCRIPT


    Today i am sharing PowerShell script and registry setting to trace extending supporting of windows update error log file


    step 1

    add registry keys and values by cmd


    reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Trace"
    reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Trace" /v Flags /t REG_DWORD /d 00000007
    reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Trace" /v Level /t REG_DWORD /d 00000004


    step 2

    open Windows PowerShell as administrator and then type


    Get-WindowsUpdateLog


    step 3

    wait for few seconds to complete , WindowsUpdate.log file will be stored on the desktop



    step 4

    WindowsUpdate.log file contains all the necessary details to troubleshoot windows update errors , moreover its self-troubleshooting method , which contains error codes, callerID windows update agent, details of blocking firewall, details of proxy server etc


    The above method is checked on my windows 10 asus laptop


    Thanks for reading, If any user finds this article is useful means, then reply to me and give helpful votes

    :)
     
    RAJU.MSC, Sep 6, 2018
    #1

  2. Having trouble with a powershell script.

    I am trying to write a Powershell script to add a particular program to the desktop. For this example I'm using notepad because it's simple. Right now my script looks like this, but it keeps erroring out.

    $TargetFile = "C:\Windows\System32\notepad.exe"

    $ShortcutFile = "C:\Users\Public\Desktop\Notepad.lnk"

    $WScriptShell = New-Object -ComObject WScript.Shell

    $Shortcut = $WScriptShell.CreateShortcut($ShortcutFile)

    $Shortcut.TargetPath = $TargetFile

    $Shortcut.Save()

    This is the error code I am recieving:

    Unable to save shortcut "C:\Users\Public\Desktop\Notepad.lnk".

    At C:\Users\jhunsaker\Desktop\Art Lab Shortcuts.ps1:6 char:1

    + $Shortcut.Save()

    + ~~~~~~~~~~~~~~~~

    + CategoryInfo : OperationStopped: GET WINDOWSUPDATE ERROR  LOG ON DESKTOP USING WINDOWS POWERSHELL  SCRIPT :)) [], UnauthorizedAccessException

    + FullyQualifiedErrorId : System.UnauthorizedAccessException

    I am a powershell rookie so if anyone could help me I'd really appreciate it.
     
    Jon Hunsaker, Sep 6, 2018
    #2
  3. mbmeadows Win User
    Constant script errors and slow loading pages in 10 internet explorer 11

    I have done the steps listed above. They have not helped and I am still getting constant script errors, along with slow loading pages. Are there any other suggestions?
     
    mbmeadows, Sep 6, 2018
    #3
  4. GET WINDOWSUPDATE ERROR LOG ON DESKTOP USING WINDOWS POWERSHELL SCRIPT

    Can't change password to log in windows or add pin

    Hi Mathieu,

    Login issues might have caused by a corrupted user account. For us to troubleshoot this, we suggest that you reset the Modern UI apps to default by following these steps:

    • Press Windows key + R.
    • Type PowerShell and press Enter.
    • When Powershell is open, hover your mouse on the taskbar and right-click on the PowerShell icon. Then click on
      Run as Administrator.
    • Copy and paste the following Powershell script:
      • Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}.
    • Wait for PowerShell to execute the script. Once done, restart your computer and check if the issue persists.

    Let us know how it goes.
     
    Janeane Cru, Sep 6, 2018
    #4
Thema:

GET WINDOWSUPDATE ERROR LOG ON DESKTOP USING WINDOWS POWERSHELL SCRIPT

Loading...
  1. GET WINDOWSUPDATE ERROR LOG ON DESKTOP USING WINDOWS POWERSHELL SCRIPT - Similar Threads - WINDOWSUPDATE ERROR LOG

  2. Has any encountered problem to remove update using powershell remove-windowsupdate command?

    in Windows 10 Installation and Upgrade
    Has any encountered problem to remove update using powershell remove-windowsupdate command?: Envioronment: Windows 10 profession 1909 I use the command remove-windowsupdate to remove an update, it shows me the error message as below. PS C:\Windows\system32> Remove-WindowsUpdate -KBArticleID KB5000908 Remove-WindowsUpdate : SLQB1IT01: Unknown failure. Try debug. At...
  3. Tweaking Performance Using PowerShell Scripts

    in Windows 10 Performance & Maintenance
    Tweaking Performance Using PowerShell Scripts: Hi, Regarding the many scripts that I saw online e.g. Sophia scripts...etc, does it remove the associated registry key files of the apps/services it uninstalls? 171269
  4. powershell scripts

    in AntiVirus, Firewalls and System Security
    powershell scripts: Hi, I have azure. Someone is somehow installing powershell scripts onto my computer that allows them to host my PC through P2P and UDP connections, well I think so anyway. I have only just found powershell script entry changes in my registry by accident. These criminals...
  5. powershell script

    in Windows 10 Customization
    powershell script: looking for a script to monitor for a folder, if there is a file in that folder send it as an email, once the email is sent out, confirm and then move the files to an archive folder. monitor c:\test\*.pdf No files, do not send email. Yes Files, send an email to someone at...
  6. Powershell Script on Shutdown

    in Windows 10 Performance & Maintenance
    Powershell Script on Shutdown: Hi all, I try to run a Powershell Script (*.ps1) when i shut down my PC. I created the script and it is working fine when i run it. However if i want to run it on a regular Shutdown it seems like it does not start or is not finished, before Windows is killing every running...
  7. A Powershell Script for HandBrake

    in Windows 10 Software and Apps
    A Powershell Script for HandBrake: Here's the thing. My system is an age-old i3-530 overclocked to 3.5GHz coupled with GTX 1050 2GB. I have around 1.5TB of tutorial videos that I have to encode due to dearth in HDD space. I want to encode the videos while keeping the folder and subfolder structure intact....
  8. Problem Getting a Powershell Script to Run in Task Scheduler

    in Windows 10 Software and Apps
    Problem Getting a Powershell Script to Run in Task Scheduler: Hope I'm in the right place! I am trying to get a Powershell script to run daily in the task scheduler. It basically purges a folder on one of my drives: Get-ChildItem –Path “D:\Dropbox\Quicken\Backup” –Recurse | Where-Object CreationTime –lt (Get-Date).AddDays(-10) |...
  9. PowerShell Scripting - Run a Script from Shortcut

    in Windows 10 Tutorials
    PowerShell Scripting - Run a Script from Shortcut: How to: PowerShell Scripting - Run a Script from Shortcut [img] Information One of many PowerShell security features is that you can't run a script simply by double clicking it's icon on desktop or in a folder. Doing so will by default open script in Notepad for editing...
  10. PowerShell Scripting - The Basics

    in Windows 10 Tutorials
    PowerShell Scripting - The Basics: How to: PowerShell Scripting - The Basics [img] Information A PowerShell script is a collection of commands and cmdlets to be run in logical order, previous lines in script determining values and variables in command lines thereafter. The principle is the same than in...