You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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) :
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: