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

Get-KBUpdate with wsuscn2 on share network #237

Open
sebillen opened this issue Nov 28, 2024 · 1 comment
Open

Get-KBUpdate with wsuscn2 on share network #237

sebillen opened this issue Nov 28, 2024 · 1 comment

Comments

@sebillen
Copy link

Hi,

My project is update offline KB on large private network of Win10 machine, try your solution and found can be the way.

When I use wsuscn2 stored locally on machine like C:\temp or USB stick D:\temp, there is no problem.

Saving wsuscn2 on SAN share folder works fine
Save-KbScanFile -Path \xxxx\xxx\Opk\KB

But, I always have error when try to get KB needed
$scanfile = Get-ChildItem -Path \xxxx\xxx\Opk\KB\wsusscn2.cab
Get-KbNeededUpdate -ScanFilePath $scanfile
La syntaxe du nom de fichier, de répertoire ou de volume est incorrecte. (Exception de HRESULT : 0x8007007B)
+ CategoryInfo : OperationStopped: (:) [], FileNotFoundException
+ FullyQualifiedErrorId : System.IO.FileNotFoundException
+ PSComputerName : localhost

Are there any conditions for settings, access to network sharing?
I tried also to create PSDrive connected du SAN share, without any success.

In my project, I don't want to have to copy wsuscn2 on more than 1000 machines every month :)

Have you some suggestions?

Regards,

@Hitman86R
Copy link

Use Install-KbUpdate -AllNeeded directly, run Get-KbNeededUpdate in the background and pass it as a parameter to Install-KbUpdate

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