Forum Replies Created
-
AuthorPosts
-
dougModerator
I wonder if there is an issue with PsExec on the computer that you’re currently using to run BatchPatch?
Do other BatchPatch actions work?
What happens when you try ‘Actions > Windows Updates > Check for Windows Updates’ Is it successful?
What happens if you try to run PsExec from the command prompt (without BatchPatch) and just try a command like this:
PsExec \targetComputer IPCONFIG
What happens if you run the BatchPatch console on a different computer?
-Doug
dougModeratorActions and job queues can be scheduled to run when a user is not logged in by installing BP as a service.
dougModeratorYour update failed with HRESULT: -2145124320, which translates to:
0x80240020 WU_E_NO_INTERACTIVE_USER Operation did not complete because there is no logged-on interactive user
So, it would appear that Microsoft requires that this feature update has to be applied by the interactive/logged-on user. It cannot be applied by a third-party update tool such as BatchPatch.
-Doug
September 19, 2016 at 4:12 pm in reply to: windows updates – restart only if user restarts or shutsdown #11386dougModerator‘Actions > Send message to logged-on users’
dougModeratorNo.
dougModeratorThis would mean that the license you (or your company) purchased some years ago was a 175-host license.
-Doug
September 17, 2016 at 9:02 pm in reply to: windows updates – restart only if user restarts or shutsdown #11382dougModeratorIf you click “download updates,” BP will initiate the download of updates on the target computer. BP will *not* initiate the installation. BP will *not* ever install the updates unless you tell BP to install the updates. If updates are installing automatically at some later date, then it’s due to the policy that you have setup on the target computer. It’s not related to BP.
If you click “download + install updates, BP will initiate the download plus installation of updates. Yes, some updates require the machine to be restarted before they are officially/properly installed. And so in that case the machines will be waiting in a pending state where the updates are not completely installed, and the machine is waiting to be rebooted to complete the installation. It is generally not recommended to delay the restart because the machine, in theory, could be in an unstable state, and also could still be open to any vulnerabilities that you intended to close with the installation of security updates.
-Doug
September 17, 2016 at 4:56 pm in reply to: windows updates – restart only if user restarts or shutsdown #11380dougModeratorRob – Your posting is a statement. Do you have a question? In BatchPatch there are options to install updates with or without reboot. If you want to install updates but don’t want BatchPatch to reboot, then just choose the option to install updates. Don’t choose the option that says install + reboot.
-Doug
dougModeratorI’m not able to reproduce your issue. However, I also think that what you are experiencing might be fixed in the most recent release of BP from yesterday. We added a setting for ‘Remote Execution Context’ under ‘Tools > Settings > Remote Execution.’ I suspect that in your case if you try to execute the deployment under ‘SYSTEM’ that all will work, but when you try to use one of the other execution contexts, it will not work. That’s my best guess, at least. Try it out and let me know.
If the above suggestion doesn’t work, then please can you paste the entire ‘All Messages’ column contents for me to review?
Also, can you confirm that in the Deployment window you have UNchecked ‘Retrieve console output…’ ?
Lastly, can you confirm that your ‘Command to execute’ field reads like this (name of the .reg file might be different, of course):
regedit.exe /s "wu.reg"
dougModeratorWill get back to you on this in a few days…
dougModeratorAt the time of this writing it appears that Microsoft is only allowing the anniversary update to be installed either through WSUS or directly at the computer by the interactive user. I suspect that at some point they will change this policy, but for now it seems to be how it is. Also, they are pushing the update slowly, so not all computers are currently receiving it through the normal Windows Update channel. It has been reported that Microsoft expects to deliver the update over the course of multiple months. Many Microsoft customers are currently not even presented with the option to apply the anniversary update through Windows Update directly.
-Doug
September 13, 2016 at 5:19 pm in reply to: windows Update: Error 102 : Failed to execute the search (windows 10) #11374dougModeratorTroubleshooting Common Errors in BatchPatch
For all -102 HRESULT values, please see batchpatch-error-102-failed-to-execute-the-search-hresult-xxxxxxxxxx
dougModerator-102: Failed to execute the search. HRESULT: -2145107940
The above -102 error indicates that the target computer’s Windows Update Agent had a problem when it tried to connect to the WSUS server. This has nothing to do with BatchPatch. The -2145107940 is a Windows Update error code that translates to:
0x8024401C WU_E_PT_HTTP_STATUS_REQUEST_TIMEOUT Same as HTTP status 408 – the server timed out waiting for the request.
-106G: Update search completed with errors: -2145124338
This error and its resolution are explained here:
Windows Update: Error 1611: -106
Since you are looking to retire your WSUS, then you don’t even need to bother with resolving the -106G error. Instead, you can do one of the following two things:
1. In BatchPatch go to ‘Tools > Settings > Windows Update’ and change the ‘Server Selection’ to ‘Windows Update.’ This setting will tell BatchPatch to have target computers search for updates against Microsoft’s public server instead of your local WSUS.
2. Change your group policy setting that currently has your OU computers pointing to your local WSUS. You would need to remove the policy for ‘Computer Configuration > Administrative Templates > Windows Components > Windows Update > Specify intranet Microsoft update service location’ Once this is done, if you leave BatchPatch in the same configuration as before with ‘Server Selection’ set to ‘Default/Managed’ then when you check for updates, the target host will go to Microsoft’s public server instead of your local WSUS.
-Doug
dougModeratorTo be clear, I need to see the exact contents of the .reg file please instead of a description of the contents. If you want to modify server names and IP addresses, that’s fine, but I want to see the .reg file so that I can test the same thing here. If you are a current customer, please email us directly using the contact form on our website. Include the name on your license, so that we know who you are.
(I won’t ask why you would publish local policies via reg key rather than push these through group policy.)
-Doug
dougModeratorDid this problem occur with just a single target computer or all target computers? What are the contents of the .reg file?
Thanks,
Doug
dougModeratorThanks for the suggestion. We will consider this for a future build.
-Doug
dougModeratorSteffen – I sent you an email to troubleshoot directly so that we can look at logs etc. What you’re describing is extremely peculiar, and I’m not sure right now what to make of it without further information.
-Doug
dougModeratorThanks for posting your fix. Unfortunately I don’t know if it’s possible to successfully run the WindowsUpdateDiagnostic.diagcab without user interaction. In order to run remotely it would have to be able to run silently/quietly without user interaction. The command line invocation for this .diagcab, according to https://blogs.msdn.microsoft.com/mattbie/2010/11/09/running-a-troubleshooter-from-the-command-line/ , is:
msdt.exe /cab c:troubleshootersmyTroubleshooter.diagcab
However, I found that when I ran this command, it still presented a dialog and did not run silently/quietly without user interaction. The following link shows the command line parameters that are available for msdt:
https://technet.microsoft.com/en-us/library/ee424379%28v=ws.11%29.aspx?f=255&MSPPError=-2147217396
However, there is no silent/quiet switch. There appears only to be an answer file /af switch, but I don’t have details on that kind of usage, and I wouldn’t be surprised if it’s not possible with the WindowsUpdateDiagnostic.diagcab.
You might have to just run the fix manually on each affected computer.
-Doug
dougModeratorHi Stefan – What you’re describing doesn’t really sound like an issue with BatchPatch. It sounds like possibly there is something (or was something) going on with your computer/OS. However, it’s very difficult to say for sure. If you had noticed that the memory usage by BP was absurdly high in task manager, then that certainly might indicate a leak, but from what you described that doesn’t seem evident. BP has a small memory footprint, and we have not observed nor have any other customers reported any clear memory leaks.
The command “sc config wuauserv start=auto” should work just fine, even without the space after the = sign. I wonder if your computer had some kind of issue while you were using BatchPatch, and so it seemed like BatchPatch was the source of the problem when really BatchPatch freezing was just a symptom of a larger problem that was occurring on your machine. This would also explain why other applications froze.
-Doug
dougModeratorDanny – Thanks for sharing your experience. Glad that fixed it for you!
-Doug
dougModeratorExcellent!
dougModeratorjjlandstrom – This doesn’t sound like a BP issue. It sounds like something weird happening with Windows Update on the target computer or maybe some other OS issue. I would try to let it go as long as possible before killing it, just to be sure that it’s def stuck and not going to make progress. 2 hours certainly should be more than enough, but if possible maybe let it run for another couple just to be absolutely safe. Or could it be that the target computer has IE open, and IE needs to be closed first? That’s just a wild guess. I wonder if whatever is preventing it from completing is the same thing that’s preventing the ‘Deployment’ that you attempted from completing. It could indicate a deeper issue with the OS, I suppose. Not really sure. However, I had no problem deploying the IE11 x64 installer exe directly on a new 2008R2 machine, and I haven’t ever seen an issues like the one you are describing when it comes to using the WUA to update IE.
Another option is to try renaming/deleting the ‘C:WindowsSoftwareDistributionDownload’ folder on the target and then trying again. If still no luck, could try renaming/deleting the ‘C:WindowsSoftwareDistribution’ on the target and trying again.
Good luck.
-Doug
dougModeratorWith regard to sorting for existence of logonui.exe, I would recommend creating a custom command under
'Actions > Execute remote process/command > Create/modify remote commands (logged output)'
The command would be:
WMIC PROCESS where name='logonui.exe' get caption
When you run it, in the ‘Remote Command Output Log’ column you’ll see either
No Instance(s) Available.
or
Caption logonui.exe
You should then be able to sort on that column to get the info you need. Also note, you probably already know this, but just in case you don’t… I’m not sure that logonui.exe guarantees that the user is not logged-on. For example, I think the logonui.exe will be running even during an active RDP session. That said, checking for the existence of logonui.exe should probably be used with care.
With regard to your feature request to be able to see the username of the logged-on users. You can already view this in in the ‘Logged On Users’ column. Use ‘View cell contents’ or middle-click the cell to view just that cell or double-click the row to view the entire row’s contents. Example output in the grid is:
Logged On Users
3 users:
domainuser1
domainuser2
domainuser3
I hope this helps.
-Doug
dougModeratorI should also note to anyone else reading this posting that whenever possible we strongly encourage/recommend to users to not synchronize any drivers to WSUS. The drivers dramatically bloat the WSUS database and seem to only cause issues. In our experience, driver updates should generally be performed on computers as-needed and not through WSUS or Microsoft Update. You can find numerous postings on the web that agree with this sentiment. Updating drivers through the Windows Update mechanism generally seems to cause more problems than it solves.
-Doug
dougModeratorchays33 – I’m not sure about the x86 vs x64 package differences. I have not experienced any issues deploying the x64 version, and I just did another test again with a 2008R2 target with no problems. Generally speaking if a Deployment ‘hangs’ indefinitely, it’s because the package was executed in a way that ended up somehow requiring interaction from the end user. The /quiet switch is there to prevent user action from being required. If you forget to use the /quiet switch, then when the package is executed, it pops up a dialog box for the user to click through. But since you’re doing a remote installation, there is no interactive user, and the dialog box is hidden on the target. And so this manifests as indefinite ‘hanging’ of the deployment.
You said that the x86 worked. Is the reason for the x64 failure occurring because you’re trying to install the x64 version on a x86 machine? What happens if you try to manually run the x64 installer at the command line on the target computer *without* using BatchPatch? So, at the cmd prompt you would type the following, where someFolder is the actual folder that you have put the .exe file:
C:someFolderIE11-Windows6.1-x64-en-us.exe /quiet /norestart
I suspect that running this at the command prompt will inform you as to why running in BP is hanging indefinitely. Does it pop up some sort of dialog box? If it pops a dialog box, then that is likely the reason that the installation is hanging. What does the dialog say? If it completes successfully, then I wonder if maybe you just forgot the /quiet switch on the first attempt? Because if it completes successfully and silently without any user interaction from the cmd prompt, then there is no reason that it won’t work from BP. And considering that I just re-tested the x64 IE11 deployment from BP without any problems, I know that it is able to work.
Scott posted an IE11 deployment tutorial here, in case it helps: Deploying IE 11 to Multiple Computers
jjlandstrom – Under ‘Tools > Settings > Windows Update’ try checking the box at the bottom that says “Re-copy/overwrite updates that have already been cached on target hosts” and then see what happens. Let me know.
-Doug
dougModeratorDownload from Microsoft the IE11 setup file for your language and OS:
https://support.microsoft.com/en-us/help/18520/download-internet-explorer-11-offline-installer
The command line parameters for the IE setup file are listed here:
https://technet.microsoft.com/en-us/library/cc817409.aspx
And so we simply create a deployment in BatchPatch like in the screenshot below. Note the /quiet /norestart parameters
There are more deployment examples and tutorials posted at BatchPatch Software Deployment
-Doug
dougModeratorThanks, Stefan. We understand the cause of this behavior, and we should be able to have it fixed for next release.
-Doug
dougModeratorJason – I suspect that an email address (somewhere) is not in the correct format. Feel free to email us to troubleshoot. It will probably be easier that way to trade screenshots etc to confirm that you have everything configured properly.
Thanks,
Doug
dougModeratorYou can programmatically launch a .bps file with a command like this:
batchpatch.exe “C:filesyourFile.bps”
You won’t be able to directly execute commands in BatchPatch from the powershell script, but you can set BP to start with the scheduler enabled (Tools > Settings > Startup options > Enable Task Scheduler on startup), and then it will execute whatever scheduled tasks you have configured in that .bps file.
Alternatively you may run BP as a service to ensure that scheduled tasks in BP execute regardless of whether or not someone is logged on to the computer. (Tools > Run BatchPatch as a service)
-Doug
dougModeratorRalf – in all Windows applications (not just BP) drag and drop does not work if the program is running as administrator. If you want to use drag and drop, just run BP without admin elevation. Admin elevation is only necessary if you need to add the localhost to your BP grid.
-Doug
-
AuthorPosts