Windows Update Get-WUInstall冻结 [英] Windows Update Get-WUInstall freezes

查看:143
本文介绍了Windows Update Get-WUInstall冻结的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Windows Server 2008 R2服务器上使用PSWindowsUpdate模块,但它会挂起。 

I am trying to use the PSWindowsUpdate module on a Windows Server 2008 R2 server but it hangs. 

https:// gallery .technet.microsoft.com / scriptcenter / 2d191bcd-3308-4edd-9de2-88dff796b0bc

我已经确认我已正确安装模块,因为我可以运行所有Get - 在该模块中执行命令,并且Get-WUHistory命令成功运行。

I have verified that I installed the module properly, as I can run all the Get-Help commands in that module, and the Get-WUHistory command runs successfully.

但是,当我运行Get-WUInstall或Get-WUList时,每个都将在第1阶段挂起。 调试输出如下所示。它在"搜索条件为:"命令后挂起。 

However, when I run Get-WUInstall or Get-WUList, each will hang in Stage 1.  The debug output is shown below. It hangs after the 'Search Criteria is:' command. 

在线查找没有其他帮助,我尝试自己查看命令。 当程序试图获取Windows更新列表时,它似乎挂起了(我让它在取消之前让它持续2个小时)。 

Finding no other help online, I tried looking at the commands themselves.  It appears that the program is hanging when it is trying to get the list of Windows Updates (I let it go for 2 hours before cancelling). 

     $ objResults = $ objSearcher 搜索( $ search

     $objResults=$objSearcher.Search($search)

老实说,我想要做的就是安装已下载到这台电脑的更新,而不必手动浏览屏幕(即通过Powershell)。 我们的企业服务器支持小组可以很好地将可用的
更新推送到此服务器。 但他们不会自动安装它们,因为他们不知道何时可以重新启动计算机。  在我确定的预定义时间表上安装更新的最佳方法是什么?

Honestly, all I want to do is install the updates that have already been downloaded to this computer, without having to manually go through the screens (i.e. through Powershell).  Our corporate server support group does a fine job of pushing the available updates to this server.  But they don't install them automatically, because they don't know when it is OK to reboot my computer.   What is the best way to have the updates installed on a pre-defined-schedule that I determine?

以下是在命令挂起之前显示的调试器语句:

Here are the debugger statements that display before the command hangs:

PS C:\ Users \svcam-sn> Get-WUInstall -Debuger

DEBUG:第0阶段:准备环境

DEBUG:仅检查本地实例的重启状态

DEBUG:设置数量stage

DEBUG:第1阶段:获取更新列表

DEBUG:创建Microsoft.Update.ServiceManager对象

DEBUG:创建Microsoft.Update.Session对象

DEBUG:创建Microsoft.Update.Session.Searcher对象

DEBUG:设置Windows Server Update Service的更新源

DEBUG:Set预搜索条件:IsInstalled = 0

DEBUG:设置搜索前标准:IsHidden = 0

DEBUG:搜索条件为:IsInstalled = 0和IsHidden = 0

PS C:\Users\svcam-sn> Get-WUInstall -Debuger
DEBUG: STAGE 0: Prepare environment
DEBUG: Check reboot status only for local instance
DEBUG: Set number of stage
DEBUG: STAGE 1: Get updates list
DEBUG: Create Microsoft.Update.ServiceManager object
DEBUG: Create Microsoft.Update.Session object
DEBUG: Create Microsoft.Update.Session.Searcher object
DEBUG: Set source of updates to Windows Server Update Service
DEBUG: Set pre search criteria: IsInstalled = 0
DEBUG: Set pre search criteria: IsHidden = 0
DEBUG: Search criteria is: IsInstalled = 0 and IsHidden = 0

推荐答案

OF COURSE没有回复或答案。

OF COURSE there isn't a response or answer to this.

谢谢你,微软,像往常一样你太棒了FML

Thank you microsoft, as usual you are quite wonderful. FML


这篇关于Windows Update Get-WUInstall冻结的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆