Hi Can you add some extra switches to some of the scripts. In particular I would like to be able to automatically "AcceptAll" in the following modules: Add-WUServiceMa
nager Hide-WUUpdate Currently they don't respond to the "AcceptAll" command and although I can see the script in Get-WUInstall I'm not knowledgeable enough implement this code into the other modules myself.
First of all your module is wonderful I also want in my reporting whether installed windows update is successful or not. I read something about reliablity in wmi but could you merge the same in this module. Thanks SSINGH
I think what you're asking is answered just down the page. See the post from Rosco_CA.
Your module is a great help. I may have missed it but is there a way to get the date a patch was released?
Recently i am getting out put in history file like ===============
=============== =============== ==== KB : KB2267602 ComputerName : DDDDDDDDDDDD Operation : 1 ResultCode : 2 HResult : 0 Date : 4/15/2014 5:36:23 AM UpdateIdentity : System.__ComObj ect Title : Definition Update for Windows Defender - KB2267602 (Definition 1.169.2635.0) Description : Install this update to revise the definition files that are used to detect viruses, spyware, and other potentially unwanted software. Once you have installed this item, it cannot be removed. UnmappedResultC ode : 0 ClientApplicati onID : ServerSelection : 2 ServiceID : UninstallationS teps : System.__ComObj ect UninstallationN otes : SupportUrl : http://go.micro soft.com/fwlink /?LinkId=52661 Categories : System.__ComObj ect =============== =============== =============== =============== = Earlier this was coming in a single line. DDDDDDD 09-04-2014 10:49:12 KB915597 Definition Update for Windows Def... Please guide me why these changes are coming. Many thanks in advanced
Hi, Recently I have found that there are 3 updates that do not automatically install using the script. They require a "Update and Restart" for them to be installed. Is there anyway to resolve this? Thanks,
Hi, Having trouble using the Update-WUModule
. Any chance i could get an example of the usage of this please? thanks,
Windows Server 2008 R2 PS C:\Windows\syst
em32> Set-ExecutionPo licy unrestricted Execution Policy Change The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose you to the security risks described in the about_Execution _Policies help topic. Do you want to change the execution policy? [Y] Yes [N] No [S] Suspend [?] Help (default is "Y"): y PS C:\Windows\syst em32> Import-Module pswindowsupdate Import-Module : There were errors in loading the format data file: Microsoft.Power Shell, C:\Users\sdaile y\Documents\Win dowsPowerShell\ Modules\pswindo wsupdate\PSWind owsUpdate.Forma t.ps1xm l : File skipped because it was already present from "Microsoft.Powe rShell". At line:1 char:14 + Import-Module <<<< pswindowsupdate + CategoryInfo : InvalidOperatio n: (:) [Import-Module] , RuntimeExceptio n + FullyQualifiedE rrorId : FormatXmlUpateE xception,Micros oft.PowerShell. Commands.Import ModuleCommand PS C:\Windows\syst em32> get-WUinstall The term 'get-WUinstall' is not recognized as the name of a cmdlet, function, script file, or operable program. Check t he spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:14 + get-WUinstall <<<< + CategoryInfo : ObjectNotFound: (get-WUinstall: String) , CommandNotFound Exception + FullyQualifiedE rrorId : CommandNotFound Exception Main error is File skipped because it was already present from "Microsoft.Powe rShell"
Also as a note I was able to run this on a windows 7 box without issue.
I'm trying to install all critical and security updates, but for reasons I don't understand, this includes new versions of .net and IE. I don't want new versions of ANYTHING to be included. I know they have to be indicated a different way, but I can't figure out how to indicate it. Even when I use -IgnoreUserInpu
t and -AutoSelectOnly , I still wind up with IE 11 wanting to install on my servers. Any help would be greatly appreciated.
Firstly this Module is amazing. I'm using it to automate the snapshotting of VM's by folder and updating the successful snapshots with this module. The only thing I'm wondering is if an update tries to apply via Get-WUInstall and fails is there a special output that will be visible in the WUInstall output or even better from the Get-WUHistory Cmdlet? Considering the machine sometimes applies operations post reboot I believe the only reliable way to do this would be with Get-WUHistory if at all. I would like to say in my script that if any updates have a hard failure then revert to snapshot and notify with reliability. Thank you very much for your contribution!
I found my own answer. I looked into your code and by altering the Format file to include a "Status" column for the PSWindowsUpdate
.WUHistory Object and by Altering the Get-WUHistory.p s1 script to add a member to $obj based on the "ResultCode" of the CreateUpdateSea rcher() object, I was able to pull the additional data. Thanks for the well commented code!
Hopefully Michal will include this addition in the next update.
Hi Michal, We love this library and are considering make use of it in some software of our own. Have you considered releasing it under a well known Open Source license like GPL? Best wishes, Simon