Update settings report RRS feed

  • Question

  • Hello all.

    I need powershell script or some other way to check what settings are implemented. For example, one server will have "Only check for updates but dont download", other will have "Install automatically" etc. You get the point.

    How can i get info on what setting is implemented? Ideally it would be script that you tell what computers you need info from and than give you the setting as result. 

    Of course, any other way would be great too. 

    Monday, October 30, 2017 9:42 AM

All replies

  • Hello,

    We could run script to check registry key:

    Invoke-Command -ComputerName (read-host "Enter computername") -ScriptBlock{
        $key = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update'
        if(test-path $key){
                (Get-ItemProperty -Path $key -Name AUoptions -ErrorAction Stop).AUoptions
                Write-Warning "Error getting ItemProperty"
            Write-Warning "RegKey not found"

    Different value means different automatic update option:

    AUoptions = 1;  "Never check for updates" 
    AUoptions = 2;  "Check for updates but let me choose wether to download and install them" 
    AUoptions = 3;  "Download updates but let me choose whether to install them" 
    AUoptions = 4;  "Install updates automatically"

    Please remember to mark the replies as answers if they help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    • Edited by Yan Li_ Tuesday, October 31, 2017 2:50 AM
    • Proposed as answer by AJTek.caMVP Tuesday, October 31, 2017 3:11 AM
    Tuesday, October 31, 2017 2:49 AM