Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install-kbupdate "could not copy to \Downloads" warning message #122

Closed
larkoie opened this issue Oct 11, 2021 · 2 comments
Closed

install-kbupdate "could not copy to \Downloads" warning message #122

larkoie opened this issue Oct 11, 2021 · 2 comments

Comments

@larkoie
Copy link

larkoie commented Oct 11, 2021

Hi, I'm trying to install a KB by piping |install-kbupdate after a get-kbupdate request like this (on a windows server 2016 from the admin user with admin privileges on the powershell session) :

Get-KbUpdate -Latest -Name KB5005573 -OperatingSystem "Windows server 2016" -Architecture x64 -Force -Source web|install-kbupdate

It downloads the KB but ends with a warning message :
WARNING: [09:34:15][Install-KbUpdate] Could not copy C:\Users\Administrator\Downloads\windows10.0-kb5005573-x64_68ae94716592a0f0585b0741ab94840d5b9957de.msu to \Downloads\windows10.0-kb5005573-x64_68ae94716592a0f0585b0741ab94840d5b9957de.msu and no file was specified

So the msu file is successfully downloaded in C:\Users\Administrator\Downloads\ but then it tries to somehow copy it somewhere else (I don't understand where because \downloads doesn't match anything in a windows env) and stops.

From what I understood by looking at the code it looks like in my case "$filepath" does not contain the $home as it should :
In the code when you don't set "-FilePath" param it should set it like this :
$FilePath = "$remotehome\Downloads\$(Split-Path -Leaf $updateFile)"
but in my case there is no $remoteHome because I want to install it locally, not remotely (i'm not specifying any -Computer arg)

Do you have an idea of what's going on please? Am I missing something like a missing argument or something?
Thank you.

potatoqualitee added a commit that referenced this issue Aug 2, 2022
@potatoqualitee
Copy link
Owner

this should be fixed in today's release

@potatoqualitee
Copy link
Owner

also thanks for the report and sorry for the delay!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants