Skip to content

Update-DbaInstance not working #10266

@dieterQBIT

Description

@dieterQBIT

Verified issue does not already exist?

No, I did not search

What error did you receive?

First I installed the package through Install-Module dbatools and accepted all terms.
Next I want to try Update-DbaInstance but it keeps crashing every time.

`Update-DbaInstance
WARNING: [14:10:42][Update-DbaInstance] LT-DIETER is pending a reboot. Reboot the computer before proceeding.
Cannot index into a null array.
At line:95234 char:9

  •     $mainPathIsNetwork = $Path[0] | Test-NetworkPath
    
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : NullArray`

I don't know why it keeps saying pending reboot because I just restarted, didn't help.

I'm on a laptop with up-to-date Windows 11 en SQL Server 2025 Enterprise Developer Edition (Microsoft SQL Server 2025 (RTM-GDR) (KB5077468) - 17.0.1105.2 (X64) Feb 13 2026 16:56:09 Copyright (C) 2025 Microsoft Corporation Enterprise Developer Edition (64-bit) on Windows 10 Pro 10.0 (Build 26200: ) (Hypervisor) )

I would expect it to download CU3 (17.0.4025.3) but nothing is working. I'm running the Powershell in admin-mode

Afterwards I also tried
Update-DbaInstance -Download

but that gives exact the same error.

I even tried
Update-DbaInstance -Download -Path D:\zandbak

I doesn't give an error, but doesn't do anything else.

Let me know if you need extra information.

Steps to Reproduce

# provide your command(s) executed pertaining to dbatools
# please include variable values (redacted or fake if needed) for reference

Please confirm that you are running the most recent version of dbatools

I do - download it today.

Other details or mentions

No response

What PowerShell host was used when producing this error

Windows PowerShell (powershell.exe)

PowerShell Host Version

5.1.26100.7920

SQL Server Edition and Build number

Microsoft SQL Server 2025 (RTM-GDR) (KB5077468) - 17.0.1105.2 (X64) Feb 13 2026 16:56:09 Copyright (C) 2025 Microsoft Corporation Enterprise Developer Edition (64-bit) on Windows 10 Pro 10.0 (Build 26200: ) (Hypervisor)

.NET Framework Version

PSChildName Version Release


v2.0.50727 2.0.50727.4927
v3.0 3.0.30729.4926
Windows Communication Foundation 3.0.4506.4926
Windows Presentation Foundation 3.0.6920.4902
v3.5 3.5.30729.4926
Client 4.8.09221 533509
Full 4.8.09221 533509
Client 4.0.0.0

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions