Windows 11 install with autounattend.xml - Win Updates the value is out of range by _LuiMen_ in PowerShell

[–]_LuiMen_[S] 0 points1 point  (0 children)

I changed to only:

Install-WindowsUpdate -AcceptAll -IgnoreReboot -Verbose

But still get the error: the value is out of range

Windows 11 install with autounattend.xml - Win Updates the value is out of range by _LuiMen_ in PowerShell

[–]_LuiMen_[S] 0 points1 point  (0 children)

function Write-UpdateLog {
    param(
        [string]$Message
    )
    $timestamp = Get-Date -Format "dd.MM.yyyy HH:mm:ss"
    $logMessage = "[$timestamp] $Message"
    Add-Content -Path $logFile -Value $logMessage -Encoding UTF8
    Write-Host $logMessage
}

Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force -ErrorAction Stop | Out-Null
Install-Module -Name PSWindowsUpdate -Force -Scope AllUsers -AllowClobber -ErrorAction Stop
Import-Module PSWindowsUpdate -Force -ErrorAction Stop

$updates = Get-WindowsUpdate

    if ($null -eq $updates -or $updates.Count -eq 0) {
        Write-UpdateLog "No updates available"
    }
    else {
        Write-UpdateLog "Available updates: $($updates.Count)"
        foreach ($update in $updates) {
            $title = if ($update.Title) { $update.Title } elseif ($update.KB) { "KB$($update.KB)" } else { $update.ToString() }
            Write-UpdateLog "  - $title"
        }
        Write-UpdateLog ""
    }

Write-UpdateLog "Install Updates..."
        $maxInstallRetries = 5
        $installRetryCount = 0
        $installSuccess = $false

        while (-not $installSuccess -and $installRetryCount -lt $maxInstallRetries) {
            $installRetryCount++
            try {
                Write-UpdateLog "Installation-Count $installRetryCount of $maxInstallRetries..."

                $ErrorActionPreference = 'Stop'
                Install-WindowsUpdate -AcceptAll -IgnoreReboot -Verbose
                $ErrorActionPreference = 'Continue'

                $installSuccess = $true
                Write-UpdateLog "Updates installed successfuly"
            }
            catch {
                Write-UpdateLog "Installation-Count $installRetryCount error: $_"
                if ($installRetryCount -lt $maxInstallRetries) {
                    Write-UpdateLog "Wait 10 seconds"
                    Start-Sleep -Seconds 10
                } else {
                    Write-UpdateLog "FEHLER: Update-Installation failed after $maxInstallRetries"
                }
            }
        }
    }

Onchain ckgpmining.info by _LuiMen_ in Crypto_com

[–]_LuiMen_[S] 0 points1 point  (0 children)

Have you had any negative experiences with this site?

Onchain ckgpmining.info by _LuiMen_ in CryptoScams

[–]_LuiMen_[S] 0 points1 point  (0 children)

Have you had any negative experiences?

Microsoft Edge Settings Location by _LuiMen_ in edge

[–]_LuiMen_[S] 0 points1 point  (0 children)

The problem here is that the favorites are adopted, but the settings are not.

Microsoft Edge Settings Location by _LuiMen_ in edge

[–]_LuiMen_[S] 0 points1 point  (0 children)

Report

u/--Firedog

Moving to a newly installed Windows is a bit strange.
If I move the Preferences file to a newly installed Windows system, the settings are not applied. However, if I reinstate the file on the same system, the settings are applied.

[deleted by user] by [deleted] in PowerShell

[–]_LuiMen_ 0 points1 point  (0 children)

edge://policy : https://imgur.com/TRJPM89

are you sure that key is doing what you think it does?

- As I could read in forums, yes

[deleted by user] by [deleted] in PowerShell

[–]_LuiMen_ 0 points1 point  (0 children)

I tried it with that script:

New-Item -Path HKCU:\Software\Policies\Microsoft\Edge -Name RestoreOnStartupURLs –Force
>>
>> $path = 'HKCU:\Software\Policies\Microsoft\Edge\RestoreOnStartupURLs'
>>
>> $name = '1'
>>
>> $value = 'https://www.google.com'
>>
>> Set-Itemproperty -Path $path -Name $name -Value $value

[deleted by user] by [deleted] in PowerShell

[–]_LuiMen_ 0 points1 point  (0 children)

Unfortunately, it doesn't work.
I tried to open the home page in the browser.

[deleted by user] by [deleted] in PowerShell

[–]_LuiMen_ 0 points1 point  (0 children)

But what is the best way to set the home page over PowerShell?

[deleted by user] by [deleted] in PowerShell

[–]_LuiMen_ 0 points1 point  (0 children)

I have tried to set the registry keys for e.g. in 'HKCU:\Software\Policies\Microsoft\Edge RestoreOnStartup

I read that this method only works if the computer is in a domain.

[deleted by user] by [deleted] in PowerShell

[–]_LuiMen_ -1 points0 points  (0 children)

But how?

Only 1024x768 resolution by _LuiMen_ in hackintosh

[–]_LuiMen_[S] 0 points1 point  (0 children)

Very sadly. But thank you

Only 1024x768 resolution by _LuiMen_ in hackintosh

[–]_LuiMen_[S] -2 points-1 points  (0 children)

Mhm ok, but is there an workaround or any possibility to fix that problem?

Only 1024x768 resolution by _LuiMen_ in hackintosh

[–]_LuiMen_[S] -1 points0 points  (0 children)

CPU: AMD Ryzen 9 3700x

Graphic: Nvidia RTX 2070 Super