windows-update

How to know if windows update is waitng for installation [duplicate]

纵然是瞬间 提交于 2019-12-11 14:07:31
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Best way of detecting if Windows has Windows Updates ready to download/install? I am using C# .net 3.5. How can I know if there are updates ready to be installed in Windows Update? On windows 8, when Windows Update is waiting to install updates, the sleep option is disabled. Instead of the regular 3 options: 1. Sleep 2. Restart 3. Shutdown, there are only 2 options: 1. Restart and update 2. Shutdown and update.

IIS gone (including sites and application pools) after Windows 10 Creators Update

隐身守侯 提交于 2019-12-11 02:32:53
问题 After installing the Windows 10 Creators Update (1607), IIS is no longer installed. When I re-install it from "Turn Windows features on or off", I find that all my application pools and all my sites are gone. 回答1: The "good" news is that there seems to be a way to restore the IIS app pools and sites (after re-enabling IIS from "Turn Windows features on or off"). It’s a little tricky and error prone, but it’s better than nothing. Here is the procedure that worked for me: In a text editor, open

Querying WMI class Win32_QuickFixEngineering returns mucho weirdo timestamps (C#)

只谈情不闲聊 提交于 2019-12-11 00:15:54
问题 Class documentation here. The InstalledOn property is supposed to have a timestamp of (well, duh) when the fix was installed. But the doc doesn't say what's the format. I get something unintelligible, but it clearly means something. "01ca56402c180b70" is very obvious a hex number, but of what? And another thing: why do the first few items look like GUIDs? What do they mean? Da code: ManagementScope scope; ConnectionOptions options = new ConnectionOptions(); options.Username = tbUsername.Text;

How to handle changeover from ASP MVC version 4.0.0.0 to 4.0.0.1

蓝咒 提交于 2019-12-10 15:16:50
问题 This is a followup to Windows update caused MVC3 and MVC4 stop working I also had the issue where windows update on my development machine caused my MVC 4 project to stop working. I changed the assembly reference to target version 4.0.0.1 and it started working. For me. My problem is that the application is then deployed on a number of web servers. Actually we have a build server where the customer versions are built and then a number of web servers. First question: When we run windows update

WUApiLib IUpdateInstaller2 yields Error; Some OS updates install others throw HResult -2145124318

為{幸葍}努か 提交于 2019-12-09 17:29:56
问题 Updates are being downloaded from a local server and not from WUS or Microsoft Repositories. Local server is Linux based which host's the contents for each update. I'm not using UpdateDownloader to download from Microsoft Servers, i manually download the update content and then use CopyToCache . These installed fine Security Update for Microsoft .NET Framework 3.5 SP1 on Windows XP, Server 2003, Vista, Server 2008 x86 (KB2736416) Security Update for Microsoft Visual Studio 2010 (KB2542054)

Windows update downloader.Download() fail

Deadly 提交于 2019-12-08 05:44:36
问题 I come across a sample vbscript program from Microsoft site regarding Windows Update(named WUA_SearchDownloadInstall.vbs). http://msdn.microsoft.com/en-us/library/aa387102%28VS.85%29.aspx Set updateSession = CreateObject("Microsoft.Update.Session") Set updateSearcher = updateSession.CreateupdateSearcher() WScript.Echo "Searching for updates..." & vbCRLF Set searchResult = _ updateSearcher.Search("IsInstalled=0 and Type='Software'") WScript.Echo "List of applicable items on the machine:" For I

How to Discover if Windows Update is optional, recommended, or important

江枫思渺然 提交于 2019-12-07 16:36:30
问题 I'm currently writing a type of automated program that among other things searches for windows updates. It can search for and retrieve updates just fine, but I am having trouble drilling down for what priority an update is. I would like to have an output similar to: Total Updates: 25 Important: 12 Optional: 13 The .IsMandatory field is only used when the update is specifically for WUA itself, so important updates are not necessary labeled with .IsMandatory. Code snippet for searching the WUA

Windows update downloader.Download() fail

拟墨画扇 提交于 2019-12-06 14:55:49
I come across a sample vbscript program from Microsoft site regarding Windows Update(named WUA_SearchDownloadInstall.vbs). http://msdn.microsoft.com/en-us/library/aa387102%28VS.85%29.aspx Set updateSession = CreateObject("Microsoft.Update.Session") Set updateSearcher = updateSession.CreateupdateSearcher() WScript.Echo "Searching for updates..." & vbCRLF Set searchResult = _ updateSearcher.Search("IsInstalled=0 and Type='Software'") WScript.Echo "List of applicable items on the machine:" For I = 0 To searchResult.Updates.Count-1 Set update = searchResult.Updates.Item(I) WScript.Echo I + 1 & ">

WUA API unable to uninstall updates

老子叫甜甜 提交于 2019-12-06 11:48:25
I have encountered an issue when using Windows Update Agent (WUA) API. Whenever I try to uninstall an update using IUpdateInstaller.IsForced := True; IUpdateInstaller.BeginUninstall(... i'm getting WU_E_UNINSTALL_NOT_ALLOWED ( The update could not be uninstalled because the request did not originate from a WSUS server ). Does it mean that I can't use WUA API to uninstall updates? In that case, why are BeginUninstall/Uninstall methods there? According to Hey, Scripting Guy! How Can I Remove a Microsoft Update? (and also here ) the WUA API can only be used to uninstall updates that were

SQL Server Management Studio won't work after Windows Update

淺唱寂寞╮ 提交于 2019-12-06 09:54:59
问题 Came to work this morning, my PC (Win7 x64) had force rebooted by Windows Update. Now, SQL Server Management Studio (SQL Server 2008 r2) fails when connecting to a database and trying to expand the tree view, citing: Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.VisualStudio.OLE.Interop.IServiceProvider'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{6D5140C1-7436-11CE-8034-00AA006009FA}' failed