407 questions
1
vote
1
answer
210
views
How to detect if there's a Windows Update available using Delphi code?
I need to know from within my app whether the person has a pending Windows Update available or not, and then prompt him to update his Windows if it's not updated yet.
Is there a way to check if an ...
1
vote
0
answers
111
views
Using pywin32 and flask to build a windows update scanner and i am having a problem where any function using COM objects blocks the next function
As the title states, i am trying to build a remote windows update scanner in python using pywin32 and flask. My intended functionality is for a listener to receive a post request to the /trigger ...
1
vote
1
answer
5k
views
How do I fix Windows Update Error 0x800706f4 and sound issue ("Failed to play test tone")? [closed]
I'm facing two separate issues with my Windows 11 PC: a Windows Update error (0x800706f4) and a sound problem. Every time I try to install updates, the update process fails with the error code ...
0
votes
0
answers
71
views
The COM library for checking Windows updates search does not work according to the C++ MFC source code
Environment: Visual Studio 2015, MFC
Issue:
hr = CoInitialize(NULL);
if (FAILED(hr))
{
jvResult[_T("result")] = JsonValue::number((int)ISPT_ResultEnum::ISPTResult_Fail);
jvResult[_T(...
3
votes
1
answer
722
views
Media Foundation cannot initialise transform (cannot connect to Windows Update)
I have a Media Foundation based video decoder that works with the HEVC Codec from Microsoft.
On my development machine it works just fine.
However, on our production machines (which are very locked ...
0
votes
1
answer
289
views
WSUS delete computer in DownstreamServer
I have a problem when i delete a computer on a downstreamserver.
I do it by powershell with the class .Delete() in the object Microsoft.UpdateServices.Administration.ComputerTargetScope.
The computer ...
2
votes
3
answers
2k
views
PostgreSQL Error: Database Locale Incompatibility Following Windows Update (From Turkish_Turkey.1254 to Turkish_Türkiye.1254)
I'm encountering an issue while trying to connect to a PostgreSQL database in a Flask web application. I'm getting an error message like "Database connection failed." Upon investigating the ...
-1
votes
1
answer
966
views
Import update into WSUS by .msu file
I have a Windows6.2-KB2712101-x86 update file cannot find it on Windows Update Catalog.But can find the x64 version.
So, cannot import it's x86 version into WSUS by Windows Update Catalog using ...
2
votes
0
answers
99
views
How do I test if the changes I made to the Windows 10 Update process work
I have several Windows 10 computers that run our App which controls our hardware. Each run of our App takes several days to complete. When a Windows Update comes in, it reboots the computer which ...
0
votes
1
answer
895
views
Could not load file or assembly Microsoft.AspNetCore.*
On a service running Dotnet 7 which worked without issues, started continuously logging the following event. Service process continues to run, but nothing works on it. No requests are accepted. ...
1
vote
0
answers
84
views
Object error during installation of Windows updates
My code used to work but now I get:
"The requested action with this object has failed"
The script crashes when I try to install drivers on a new operating system:
Func download_and_install(...
-1
votes
1
answer
353
views
windows update Updateorchestrator restart after installation of updates Server 2016
Server 2016 windows updates are downloading and installing. But the server is never rebooting to apply the updates.
Configure automatic updating: 4 - Auto download and schedule the install
Install ...
4
votes
3
answers
2k
views
ClickOnce thinks there's an update available after Windows Update KB5029649, even when there's none
Hello StackOverflow community,
I'm experiencing an unusual issue with our ClickOnce deployed VB.NET applications. Despite not having published any recent updates, some of our users are prompted to ...
0
votes
1
answer
886
views
Add reg key through Powershell
I'm trying to remove and add a reg key through PS and I end up getting an error. See below. I don't know why it's causing this error.
$path1 = 'HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\...
0
votes
0
answers
160
views
Windows Update WUAPILib - Updates still showing as pending after install
Anyone have this issue, I install updates using this class. Updates are downloaded, installed correctly but still show in the WU GUI as not installed. Pressing install now on the GUI refreshes the ...
2
votes
1
answer
10k
views
Windows 10 or 11 Feature update to 22H2 using powershell
I would like to update all my windows 10 and windows 11 machines with a Powershell script.
I have a RMM agent installed on those computers and i want to invoke the OS to install the 22H2 Feature ...
0
votes
1
answer
867
views
Querying Windows Server Updates on several servers
I'm trying to write a powershell script that queries several servers and checks to see if they have any pending updates.
Basically I'm using the "MSCatalog" module to query Updates like so:
$...
0
votes
1
answer
2k
views
Unable to run Powershell commands in non-interactive mode
I'm trying to run PSWindowsUpdate using salt stack but I can't run the Download-WindowsUpdate command due to the following error:
Download-WindowsUpdate : Windows PowerShell is in NonInteractive mode. ...
0
votes
2
answers
317
views
How do I patch SharePoint using PowerShell remote (WinRM)?
Thera are a lot of material about patching Windows using PowerShell. And some about patching remotely.
When optimizing/stabilizing patches for SharePoint they should be applied in separate batches.
...
0
votes
1
answer
641
views
Why is Google Chrome Unresponsive on Windows 11?
Yesterday (2023-02-09), Chrome became excessively sluggish. It took 2+ minutes for the app to load. Google search results were quick, but it took minutes to load a page that took a fraction of a ...
0
votes
1
answer
618
views
VB Script to auto download and Install Windows Updates from Microsoft
i need to build a script for automate check, download, and unstall windows updates.
i got this VB script at Microsoft site:
https://learn.microsoft.com/en-us/windows/win32/wua_sdk/searching--...
6
votes
3
answers
1k
views
FlowDocument (XPS) with Windows Update KB5020880 (CVE-2022-41089) [closed]
On 13. Dezember 2022 Microsoft made a Windows Update KB5020880 (CVE-2022-41089) for .NET 4.8.1 which should fix security problem on XPS.
Since then the FlowDocument, which will be rendered to XPS, ...
0
votes
0
answers
236
views
Windows Update search - remote commands not working
Since end of October 2022 some of your windows servers (OS: 2012/R2, 2016) haven't searched for any windows updates, the status I see in the windows update GUI looks like this:
enter image description ...
2
votes
0
answers
2k
views
Which Windows verions have the .NET 6 runtime installed through Windows updates?
We are developing a desktop application that require .NET 6 runtime (ASP.NET Core Runtime 6.0.11).
I am trying to find out if .NET 6 runtime is installed with normal Windows updates, and if yes on ...
0
votes
0
answers
2k
views
Is there a script I can use to upgrade Windows 10 to the latest version silently?
I have been trying to get a script working that will upgrade Windows 10 to its latest version (22H2) silently, and reboot once it has finished downloading so it can install. I tried the script I ...
0
votes
1
answer
2k
views
WSUS server for offline network
First post on this forum,
I work on an offline network with a lot of computers on an active directory. I would like to automatically update Windows on all of them. I found WSUS offline but it only ...
0
votes
0
answers
734
views
PowersShell script doesn't work remotely with Invoke-Command but works perfectly locally
I have a script to check for and download windows updates. It isn't working remotely and I would like to know why. Here is the script:
$UpdateSession = New-Object -Com Microsoft.Update.Session
...
0
votes
1
answer
1k
views
List available Windows updates and filter out Security intelligence update from output list in PowerShell
I have the following code, which can find the all available Windows updates:
$UpdateSession = New-Object -ComObject Microsoft.Update.Session
$UpdateSearcher = $UpdateSession.CreateupdateSearcher()
$...
0
votes
1
answer
592
views
Windows Update powershell
I want to make a powershell script that automaticly install all Windows Update, but im having some trouble getting is right.
My script works fine but the only issue im having is that the script still ...
1
vote
1
answer
577
views
FBA not working after windows automatic update in SharePoint 2013 Portal
I have a portal running using claim base authentication (windows and FBA) and enabled anonymous access , it was working fine until 19-06-2022 windows server 2016 ask for restart to install updates, ...
1
vote
0
answers
840
views
Log XML request and response (from SoapCore.SoapEndpointMiddleware)
I'm using the Upsync utility to manually provide updates to Windows Update Agent (WUA) and I need to log and view the XML request and response, specifically the response. I can see that the logger is ...
0
votes
0
answers
130
views
How do i get the last time windows succesfully updated?
I am attempting to get a date and time of the last time Windows updated on a machine through C++. I have been successfully able to do it through powershell like so:
string LastUpdate = exec("...
2
votes
2
answers
6k
views
Powershell Capture Invoke-Command Output
I've come across a problem which I can't seem to figure out.
I have this piece of code which does exactly what I want. It searches for Windows Updates which are installed and have an specific UpdateID....
0
votes
1
answer
159
views
(VB.NET) Is there a way to do a check for a Windows Security Update in Win7?
I want to check for a specific Windows Security Update in my WinForm running on an offline standalone Win7 Kiosk Machine. I think I have an infinite loop cause it just hangs when I run this code. I ...
0
votes
0
answers
190
views
Powershell parsing parsing error ".*\((?KB\d{6,7})\)" - Unrecognized grouping construct
Hi I'm trying to play with windows updates with PowerShell script, the script works fine but before results it through parsing error.
my script
$Session = New-Object -ComObject Microsoft.Update....
1
vote
1
answer
862
views
Recent Microsoft patch breaks UWP printing to serial printers
Recently Microsoft deployed some security patch that has broken UWP printing to serial printers. These are printers that interface to Windows through either a USB serial port or a Bluetooth serial ...
1
vote
1
answer
1k
views
Script for exporting all installed win updates on multiple servers
This scripts works perfectly fine on single server, but how do I run it on multiple servers?
$Session = New-Object -ComObject Microsoft.Update.Session
$Searcher = $Session.CreateUpdateSearcher()
$...
-1
votes
1
answer
630
views
How to use results from an SQL Query as a list to delete (WSUS) updates
My problem is that I want to use the results from a SELECT query as the input values for a Stored Procedure. The issue is that the SP will only accept Scalar values, and I do not know SQL and so have ...
2
votes
1
answer
8k
views
Trying to run Get-WindowsUpdate on a remote computer but get: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
I've got a powershell script to remote into other computers to get and install windows updates.
I'm logged into the admin account on my local machine. The script starts a powershell remote session ...
1
vote
0
answers
384
views
Difference between NoAutoUpdate key and NoWindowsUpdate Registry keys to disable updates
What is the difference between two registry keys NoWindowsUpdate and NoAutoUpdate? Is there a difference in location also?
I don't want the windows update to not get downloaded also but when I used ...
0
votes
1
answer
157
views
Azure Windows server 2019 no inbound connection
I have an Azure Windows Server 2019 which we deployed some windows update yesterday and now we can't connect to machine.
I checked there is no inbound connection but outbound is working fine.
I also ...
1
vote
0
answers
395
views
IUpdateSearcher.Search() throws 0x80070005 (E_ACCESSDENIED) when running as NETWORK SERVICE
I am working on a Windows Service which runs under the NETWORK SERVICE account. One of the features I'd like to add is the ability to enumerate missing Windows Updates on the local server. The problem ...
0
votes
1
answer
728
views
List all installed Windows updates - Programmatically in C
As stated in the title, I have to implement a program in C, that retrieves all the installed Windows updates.
I've seen I can execute a command like wmic qfe get Hotfixid, and just take its output, ...
3
votes
1
answer
17k
views
Error during installing PSWindows Update module
I was going to automate some regular task on client computers using Powershell module. In this way, PSWINDOWSUPDATE is one of bests. But, I receive an error during install that:
PS C:\Users\...
5
votes
1
answer
1k
views
Difference between WUA IUpdateSearcher and wmic qfe
I am trying to figure out what are the differences between WUA (Windows Update Agent API) IupdateSearcher and wmic qfe list.
When I use WUA IupdateSearcher I get these updates:
(New-Object -ComObject ...
0
votes
1
answer
5k
views
Update win10 to win11 using Assistant with a script
I have a 100 + computers which hardware is supported for win11 and I want to use a script and I've been trying to update windows 10 to windows 11. I tried to use the heresjaken script "https://...
1
vote
0
answers
2k
views
Programmatic way of checking for Windows updates
I am writing a utility to automatically set up some things on a fresh install of Windows 10. One of the things I'd like it to do is to automatically do the equivalent of clicking the "Check for ...
0
votes
1
answer
460
views
Windows Update UI stuck on Error Encountered even when WindowsUpdateService is up and running
I need to implement disabling/enabling windows update from CMD/PowerShell.
for that, I'm using the following commands to disable the WindowsUpdate:
sc config wuauserv start= disabled
sc stop wuauserv
...
0
votes
1
answer
322
views
How can I run a particular powershell command successfully without freezing?
I'm running a command from the PSWindowsUpdate module on a Windows 2012 server that will show a list of updates that were installed on the server. It's called Get-WUHistory. When I ran it on a 2019 ...
0
votes
1
answer
403
views
Replace WSUS with cloud serverless solution - AWS
We are using WSUS (Windows Server Update Services) for updating employees computers (laptops/desktops running on Win10/11), currently WSUS is running on an EC2 instance in AWS.
Our goal is to get rid ...