Forum Replies Created
-
AuthorPosts
-
dougModerator
If you only want “important” updates to be downloaded/installed then go to ‘Tools > Settings > Windows Update > Search Preferences’ and select the checkbox “Search for *only* ‘Important’ updates”
-Doug
dougModeratorThank you for clarifying. The current version of BP provides the ability to synchronize a grid with Active Directory OUs/groups on a schedule. This gives you a way to automatically load hosts into a grid.
using-the-task-scheduler-to-synchronize-a-batchpatch-grid-with-active-directory-ous-and-groups
However, currently there is no way to automatically apply a job queue or scheduled task to hosts that are added to a grid. We are working on something like this for a future version.
Thanks,
Doug
dougModeratorThis is all explained in detail in the tutorials that I linked to in my previous posting:
1. Create and save your job queue in BatchPatch
using-the-job-queue-in-batchpatch-for-multi-step-execution
2. Create a scheduled task in BatchPatch to execute your job queue at the desired time
using-the-task-scheduler-in-batchpatch
3. Optionally set BatchPatch to run as service and send the grid to the service instance so that the computer does not need to be logged on in order to run BatchPatch scheduled tasks
dougModeratorIt is not possible for the job queue to load a .bps file. I think you have things backwards. I don’t understand what would be the purpose of having a job queue load a .bps file when BatchPatch already provides the ability to execute a job queue as a scheduled task for any number of hosts in a grid.
dougModeratorTo automate patching via scheduled tasks:
1. Create and save your job queue in BatchPatch
using-the-job-queue-in-batchpatch-for-multi-step-execution
2. Create a scheduled task in BatchPatch to execute your job queue at the desired time
using-the-task-scheduler-in-batchpatch
3. Optionally set BatchPatch to run as service and send the grid to the service instance so that the computer does not need to be logged on in order to run BatchPatch scheduled tasks
dougModeratorThat function is not built-in to the scheduler, but you could create a custom ‘remote command (logged output)’ to run as as scheduled task with the following syntax:
WMIC PATH Win32_LogicalDisk where "drivetype=3" GET deviceid, volumename, freespace, size
how-to-hard-code-your-own-custom-commands-in-the-batchpatch-actions-menu
dougModeratorI’m not sure I understand your question. A .bps file has nothing to do with the job queue. Maybe this tutorial on the job queue will help: using-the-job-queue-in-batchpatch-for-multi-step-execution
dougModerator‘Actions > Windows Updates > View BatchPatch.log’
If you want to load the log in your system viewer instead of the BP viewer then you can use ‘Tools > Settings > General > Use system default log file viewer’
I hope this helps.
-Doug
April 6, 2018 at 8:03 pm in reply to: Cached mode and updates not downloading to the local update cache directory? #10428dougModeratorRegarding KB4088776:
It seems that starting with Windows 10 v1709 Microsoft has begun publishing the cumulative updates with different/new update URLs in the update metadata than in all previous versions of Windows.
These new update URLs are formatted like this:
http://tlu.dl.delivery.mp.microsoft.com/filestreamingservice/files/096dd15c-70d9-4d48-b99c-0272f32a1853?P1=1521499885&P2=301&P3=2&P4=DS9%2bc8sTV40DeDsw3Rjf98wBE%2bifv2dl%2fV%2buaU9HtGw%3dInstead of like this:
http://download.windowsupdate.com/c/msdownload/update/software/secu/2018/04/windows10.0-kb4093107-x64_b5d9c24dfcf332de6968faeb867a31a2d6a10e8b.cabThe URLs that Microsoft embeds in the metadata for Windows updates is how BatchPatch knows where to download updates from when BatchPatch is running in ‘cached mode’. Unfortunately, updates with the new URL format are not able to be downloaded in a web browser or by BatchPatch. We don’t know why Microsoft changed the format and we don’t know if this change is permanent or temporary, though we suspect it may be permanent.
At this time we are able to provide 3 workarounds.
Workaround 1:
Enable offline mode. At the time of this writing the update metadata in the WsusScn2.cab file contains normal/usable URLs, so if you enable offline mode in BatchPatch, you will be able to install KB4088776. We were able to use this method without issue. In the future we suspect that the URLs in the WsusScn2.cab file will continue to be the same format as in the past, so our expectation is that this workaround will continue to be viable for the foreseeable future.Workaround 2:
Download the .msu update file directly from the Microsoft Update Catalog here, and then deploy the update using BatchPatch’s deployment feature. You may use this tutorial to guide you.Workaround 3:
Disable cached mode. When BatchPatch is running in normal/default mode with no caching, this issue does not exist.Note that for workaround 1 and workaround 3 it is also possible to enable/disable those settings inside of a job queue. This makes it possible for you to run a job queue that performs operations in one mode and then switches to a different mode to perform more operations, if desired.
Regarding ‘Feature update to Windows 10, version 1709’
To install Windows 10 feature updates/upgrades please follow the instructions outlined here.
-Doug
April 6, 2018 at 5:05 pm in reply to: New Version removes Computers from Grid whil syncing with AD #10427dougModeratorWe’ll consider this for a future version. Thank you for your input.
Another option in the meantime would be to separate the grids so that manually added computers are not in the same grid as synced computers. Or of course you could produce the same functionality as the previous version of BP by simply removing the entire list of computers from ‘Computers to remove from grid’ before completing the sync. However, I’m sure you already considered these possibilities.
Thanks again for the feedback,
Doug
April 5, 2018 at 8:22 pm in reply to: New Version removes Computers from Grid whil syncing with AD #10424dougModeratorWhen you perform a grid synchronization (File > Synchronize grid…) a window is displayed with two lists: ‘Computers to add to grid’ and ‘Computers to remove from grid’. In either of these lists you may highlight and delete any entries that you want to be excluded before you click OK to perform the synchronization. Select the desired entries and either ‘right-click > delete’, or you may also use the ‘delete’ key on your keyboard. Once the desired computers have been excluded you may click ‘OK’ to complete the synchronization. I hope this helps.
Thanks,
Doug
dougModeratorI created a batch file ‘nvspbind.cmd’ with the exact contents that you posted, only modified for my target computer’s network connections, which does not include a wireless connection. On my target computer I used the GUI to set my the binding order out of sequence (1,3,2,4).
Contents of my ‘nvspbind.cmd’:
nvspbind /++ "Local Area Connection 4" ms_tcpip
nvspbind /++ "Local Area Connection 3" ms_tcpip
nvspbind /++ "Local Area Connection 2" ms_tcpip
nvspbind /++ "Local Area Connection" ms_tcpipI then put a copy of nvspbind.exe in C:Windows on the target computer.
I then executed a BatchPatch deployment (using the same method as described here, but instead of deploying a .MSU I deployed the .cmd remotely-deploy-a-standalone-msu-update-to-multiple-computers ) to deploy nvspbind.cmd to the target computer. It ran successfully with Exit Code 0. I then verified in the GUI on the target computer that the bindings had been re-ordered successfully.
Another option that also works is if you don’t want to put a copy of nvspbind.exe on the target computers, instead you can put it in the same directory as your nvspbind.cmd file with just those two files (nvspbind.cmd and nvspbind.exe) in that directory. Then in your deployment settings you’ll still deploy the .cmd file, but then you’ll also tick the box that says ‘Copy entire directory…’ so that both the .cmd and the .exe get copied to the target. Then the batch file is executed, and the files are removed from the target after completion.
All that said, I don’t see any reason why you should not be able to do exactly what I just did.
-Doug
dougModeratorI’m confused. Can we back up? What exactly are you trying to accomplish? If you are trying to execute a deployment to install the setup.exe, probably it makes most sense to start from there, rather than starting from a batch file that you’re trying to use to solve a problem with a deployment. I would suggest starting with a normal BatchPatch deployment, if your goal is to deploy the setup.exe. You said it failed, but I’m not clear on how it failed or what error was produced etc. Probably the best way for me to help you with this is through email where you can send me screenshots etc, rather than on this forum. If you are a licensed customer, please use the contact form to reach out. Please provide as much detail as possible about what you are trying to do and what is happening.
Thanks,
Doug
dougModeratorIf you share the actual batch file, I might be able to help get it working.
dougModeratorBP is not parsing the space in your path properly. You essentially have two options:
1. Run this instead:
cmd.exe /c "C:Program Files (x86)TeamViewerTeamviewer.exe" -i $computer
OR
2. If you have Teamviewer in a path with no spaces, such as the following, it would also work:
"C:SomeDirWithNoSpacesTeamViewerTeamviewer.exe" -i $computer
March 29, 2018 at 3:07 pm in reply to: Error 2 very often (Server 2012 R2 on Domain Controllers) #10287dougModeratorIf IP and FQDN work fine but host name without FQDN does not work, then you’re dealing with an issue in your environment, not really a BP issue per se. My guess is it’s something in your environment probably with DNS (or possibly NetBIOS, though less likely). For DNS, some quick guesses are that it could be an improper DNS suffix being appended by your network interface, or an invalid PTR record or a missing A record in the DNS zone on the server. I can’t guarantee that one of these is the issue, but they would be the first things that I would look at.
-Doug
dougModeratorUpdates are now cumulative, so when patching an older machine you won’t have the large number of updates that you would have had prior to when Microsoft started releasing cumulative update packages.
-Doug
dougModeratorThe reason is because you are using offline mode. Offline mode scans for security updates updates against the wsusscn2.cab file from Microsoft, which does not contain every update that is published on Microsoft’s public update servers.
Other possible reasons for a discrepancy are outlined in the second question on the FAQ
dougModeratorSomehow it seems that psexec is simply not able to run successfully. The only other thing that we have seen cause this behavior is the Windows ‘Open File – Security Warning.’ When you launch psexec it’s possible that Windows is popping up a message for you to confirm that you want to run the application. On this window there is a box that can be checked or unchecked depending on whether or not you want to prevent the prompt from appearing again in the future. Make sure that this is not the cause of your problem. You could simply launch psexec manually one time from the cmd prompt and make sure that this prompt is not the issue.
More troubleshooting steps here.
dougModeratorThis issue is generally caused by antivirus or other security software such as HIPS that is blocking psexesvc.exe from running successfully on target computers.
To test this you should disable any/all antivirus and HIPS and other security related software. This should help you confirm that it’s the source of the problem. If yes, you should then whitelist psexec.exe, psexesvc.exe, and batchpatchremoteagent.exe. Another thing to try is using a custom remote service name under ‘Tools > Settings > Remote execution > Use PsExec – r switch’. You can use a name like BatchPatchExeSvc. This is sometimes enough to bypass antivirus and other security software.
dougModeratorUse a .bpp file (BatchPatch Project file). A .bpp file is simply a text file with a .bpp extension that contains a list of filepaths, with each filepath pointing to a different .bps or .bpt file. You can create one automatically in BatchPatch for all of the grids that are currently open in your instance of BatchPatch by using ‘File > Generate project file’
-Doug
dougModeratorI’m glad you got it worked out.
Thanks.
dougModeratorGlad you got it worked out.
Thanks.
dougModeratorWe will consider this for a future build. In the meantime you could have your script that is importing the data to another application parse your .bps file quite easily because the hosts will all be written in the .bps file like this:
<columnHost>YourHostNameHere</columnHost>
March 13, 2018 at 3:43 pm in reply to: A few different errors when attempting to run some patching on remote machines #10156dougModeratorHey Brad – I’m sorry to hear that you’re encountering such difficulties.
Error 1611: -106. Failure
is prob the most complicated to troubleshoot/solve error. Please see here for more:windows-update-error-1611-106-failure
Error 1611: 5. Failure
5 generally means ‘Access Denied’ which is always related to permissions in some way or another. What’s strange here is where the 5 appears. Most ‘Access Denied’ errors do not occur with 1611. In this case I suspect it’s related to PsExec not having the permissions it needs on the target computer. Probably psexesvc is being blocked from running. Sometimes changing the psexec remote service name can fix this. In your case I know you have already done that, based on the forum thread that you started the other day (‘Tools > Settins > Remote execution > Use psexec -r’), so I would start by doublechecking that but also see if the issue is still related to psexec not being able to do what it needs. More here:windows-update-error-1611-5-failure
1611-5-error-on-sccm-distribution-points
Error 1601: Failed to retrieve WMI info. The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
Call was canceled by the message filter. (Exception from HRESULT: 0x80010002 (RPC_E_CALL_CANCELED)
RPC issues are usually related to firewall blocking or to inaccurate DNS or to the machine simply not existing on the network. More:
troubleshooting-common-errors-in-batchpatch
Error 1603: Initialization Failure. HRESULT -2146233080: Index was outside the bounds of the array.
This would likely mean that something is broken with WMI on the target computer. I would start by trying ‘Actions > Get info > Get last boot time’ and ‘Actions > Get info > Get MAC address’ because both of these actions use only a WMI query. See if these actions are successful. If not then you know you probably have an issue with WMI on the target. Reboot the target and try again. If still the same issue then have a look at Microsoft’s WMI troubleshooting article here: https://msdn.microsoft.com/en-us/library/aa394603%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396
Error 1611: 59. Failure
translates toERROR_UNEXP_NET_ERR
59 (0x3B)
An unexpected network error occurred.
This is probably a transient error. You are correct that this might have occurred as the result of the target user going offline during the operation, especially considering that it did not happen until after the downloading had already begun.
dougModeratorYou would need to enter the host into two separate rows. You can then run one command in one row and the second command in the second row.
-Doug
dougModeratorYes, this will be available in the next version.
Thanks,
Doug
dougModerator0x80040154 -2147221164 REGDB_E_CLASSNOTREG
“BITS in Windows 2000 is dependent on SENS and EventSystem services. If COM+ catalog is corrupted, one of these errors was seen.”
This could indicate a problem with Windows Update or deeper OS issues on the target computer. I would suggest starting with an OS repair on the target computer.
dougModeratorVery strange! I’m not sure what to make of it. Please let us know if it happens again.
Thanks,
Doug
dougModeratorExcellent. I’m glad you got it working, and I’m happy to hear that you like the tool!
-Doug
-
AuthorPosts