Forum Replies Created
-
AuthorPosts
-
dougModerator
Thanks, 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
dougModeratorJoe – It appears that the old method outlined in the tutorial you followed no longer applies to the new Java offline installer. We weren’t aware of this change to the installer. Scott just posted a new, updated tutorial for using BatchPatch to install Java remotely with the new Java offline installer:
Remotely Install Java 8 On Numerous Computers Simultaneously
Thanks,
Doug
dougModeratorHost must be added by name or IP address. In order for name to work, name resolution on your network must work. The large majority of BatchPatch users simply enter the hostname. In some cases, people enter the fully qualified domain name (FQDN) to ensure proper name resolution, but this depends on how your DNS is configured.
If you look at any of the numerous tutorials on our website, you’ll see that we always use either hostname or IP address. There are no cases that we use MAC. MAC is only useful for the Wake On LAN feature, but in that case the MAC must be added to the MAC column, not the hosts column.
More here: importing-hosts-and-other-information-into-a-batchpatch-grid
And: wake-on-lan-with-batchpatch
-Doug
dougModeratorYou found a bug. We’ll get that fixed. Thanks for notifying us. In the meantime, you can use ‘Actions > Clear column contents’ to empty that column.
-Doug
dougModeratorThanks for the suggestion. We will consider this for a future build.
In the meantime, the good news is that very slow updating of Win 7 computers appears to have finally been mostly resolved by Microsoft. So once you are up to date with updates on your Win 7 computers, it is likely you will once again start seeing completion occur within minutes instead of hours. We have posted about this here, if you’re curious: Checking for Windows Updates on Windows 7 is very slow
For now, a few other possible work-arounds are:
1. Perform the update process in one action, and then perform the reboot in a separate action only after you confirm that the update process has completed.
2. After you kick off the updates + reboot action on hosts, if they do not complete updating in a reasonable amount of time, such that you have any concern for it impacting your users, close BP. The update process will complete/finish on its own, but the reboot will never occur if BP is not running. You can re-open BP and re-add the same target hosts, and then you can use ‘Actions > Windows updates > Re-attach orphaned Windows Update process’ to re-connect to the target processes to continue monitoring their statuses. The ‘re-attach orphan’ option allows you to choose whether or not you want the reboot to occur when the update process is complete.
3. Utilize the Job Queue option to ‘Wait for host to have zero logged-on users’ before the reboot step. This may or may not be useful in your environment, depending on whether or not your users log off of their computers.
-Doug
July 13, 2016 at 3:58 am in reply to: Criticality of opening/closing console or updating BP while jobs are running #11307dougModeratorGenerally speaking I would suggest that if you have jobs running that you leave them to complete before you close BatchPatch. However, BP does have the ability to re-connect to Windows Update tasks that are still running after closing BP, so you could close BP if you really want, and then you could run the new version and use ‘Actions > Windows updates > Re-attach orphaned Windows Update process’ to reconnect the existing remote processes.
Also, with regard to updating, you could also simply download the new version and run it side by side with the old version until the old version’s tasks are all complete.
-Doug
dougModeratorThanks for confirming.
dougModeratorPlease have a look at reason number 2 at the above linked FAQ page.
dougModeratorSee ‘Reason 3’ on this page:
dougModeratorTo close the loop on this, we identified a bug in the method that accepts the EULAs for updates. The fix has been published (20160630).
-Doug
dougModeratorHard to tell exactly what happened here. You can normally use ‘Get last boot time’ in BatchPatch to quickly see the last start time of the computer, which would answer the question of whether or not it was actually rebooted. But since you already rebooted it again, you would need to look in the event log to confirm whether or not it was rebooted by BP on Wed night. To me it looks like it *was* rebooted, based on the following two events.
Wed-20:47:16> COMPUTER ONLINE
Wed-20:47:12> COMPUTER OFFLINEIn this case you used ‘Reboot (force always).’ However, the ‘force’ method does not guarantee that the computer will return a ‘success’ message to indicate that it accepted and is processing the reboot command, which is why the ‘RPC server is unavailable’ or other error/failure messages can occur in that case, even when the machine is actually rebooted successfully. Generally speaking, I would recommend always using ‘force, if required’ which will always first try a normal reboot. It will only use ‘force’ if the normal reboot cannot be initiated. There is nothing wrong with using the ‘force always’ option, but since it doesn’t guarantee a return value, it can add confusion in the cases where it doesn’t return ‘success’ but still reboots successfully. This is not a BP issue. It’s how Microsoft designed the ‘force’ method.
The one piece of the puzzle that does not make sense is the Error 1623. This should be investigated independently because it normally should only occur if there is a pre-existing Windows Update process running on the computer. From your log there does not appear to be a previous attempt to initiate Windows Update, so it’s unclear to me why you would receive this error, unless you had already initiated Windows Update from a different BP grid. Considering that you already rebooted the machine and find that it is working properly/normally, there is nothing else really to do. We won’t be able to determine why that error occurred anymore.
-Doug
dougModeratorWe’re currently investigating this issue, which has been reported by one other user. I will update this thread when I have more information.
-Doug
dougModeratorIt has nothing to do with WMI, and there is nothing you can do to modify the behavior. Incorrect progress information is being returned by the Windows Update agent. We have no control over this. It should not happen with any regularity. It is something that we have only ever heard of on rare occasions.
That said, you should also look at the remote agent log and make sure that there weren’t failures during the download. If updates failed to download, that could be a legitimate cause for the incomplete progress bar.
dougModeratorYes, so currently there is only $computer for local commands, which pulls the host column value. However, in a future version we will likely add the ability to pull from a number of the other columns, such as $notes, $notes2, $description, $location etc. And they would be usable in not only local commands but also remote commands and get info commands.
-Doug
dougModeratorWe have plans for a solution to this problem in a future version of the app. I’m not sure exactly what the timeline for implementation/release is.
-Doug
dougModeratorThanks for clarifying. I had misunderstood your original question/request. That said, I would like to add my two cents now that I understand your question. What you’re asking to do, in my opinion, seems a bit odd and unnecessary. In fact, I suspect it will only cause you grief. The reason is because what you are trying to do is exactly what the Windows Update Agent already does. You don’t want to manually look through and compare every single installed update with the list of updates from Microsoft because that would be extremely tedious and time consuming. However, when you run Windows Update (either on the computer directly or through BatchPatch), the target machine compares what is currently installed on the machine to what updates are available. There is a lot of complex rule processing that occurs to deliver the final list of available updates. This ‘check for available updates’ action *IS* the verification, essentially. This is the process that does the comparison that you’re trying to do manually. The only caveat is that if you are using a local WSUS instead of Windows Update (or Microsoft Update), then it’s possible that you didn’t approve certain updates on the WSUS that should be installed on the target computer(s). If this is the case, then the best way to see what other updates would be available to the target computer(s) if you were not using a WSUS is to simply switch the ‘Server Selection’ in BatchPatch under ‘Tools > Settings > Windows Update’ to point to ‘Windows Update’ instead of ‘Default/managed.’ Then when you check for available updates in BatchPatch, the target computers will check against Microsoft’s servers instead of your local WSUS. The report of available updates that is generated will tell you what, if any, updates are needed by target computers. I hope this helps a bit.
Good luck.
June 27, 2016 at 6:54 pm in reply to: BatchPatch Application crashed – BatchPatch has stopped working #11290dougModeratorNote the Fault Module Name: swi_ifslsp_64.dll. This .dll belongs to Sophos Layered Service Provider (LSP). I believe this is the source of the problem. It’s not a BatchPatch issue.
-Doug
dougModeratorPlease review Troubleshooting common errors in BatchPatch
-Doug
dougModeratorAll you really need to do is highlight every computer in one grid/tab, and then run the report. This will give you a report for that entire grid/tab. Then go to your next grid and highlight every row, and then run the report. And so on.
I hope this helps.
-Doug
June 24, 2016 at 6:04 pm in reply to: Is there a way to change the Windows Update Config through batchpatch? #11286dougModeratorNo problem! Glad to hear that BP is working so well for you!
Thanks,
Doug
June 23, 2016 at 7:27 pm in reply to: Is there a way to change the Windows Update Config through batchpatch? #11284dougModeratorFor what you are describing you actually do not need to change the config on the target computers. Instead, I would recommend that you leave the config on the target computers as-is. Then in BatchPatch go to ‘Tools > Settings > Windows Update’ and change the ‘Server Selection’ value to ‘Windows Update.’ Then when you initiate a download/install action in BatchPatch, BP will instruct the target computers to check for updates on Windows Update instead of your local WSUS.
I hope this helps.
-Doug
dougModeratorI think they are all ultimately from the same cause, which is that PsExec and PaExec are failing to operate successfully on that target. Under normal circumstances when these apps operate, they are able to create the target remote service/process, and when completed running, they are able to successfully remove the service. It sounds like this is not happening successfully for you. We have heard of this a few times, and it’s always just one or two problematic computers out of hundreds or thousands. Aside from switching from PsExec to PaExec or to an older version of PsExec (v 1.98 or earlier) and then switching back, we have not ever determined a definitive solution.
One other thing to try is see what happens when you run BatchPatch on a different computer. There was one case, if I am remembering correctly, where a problematic target stopped being problematic when the admin ran the BP console from a different computer.
-Doug
dougModeratorRe-attach orphan was successful, indicating that the batchpatchremoteagent.exe was still running on the target. Normally it should complete within seconds or minutes, but in some rare cases the Windows Update Agent can take a very long time to return a result. In particular there have been tons of complaints all over the web to Microsoft about Windows 7 WUA taking way too long to run, but rarely does it happen with other operating systems. Win 2008 would have been a more likely culprit than 2012, but it sounds like in your case once you rebooted the target, it started responding properly/quickly once again. You will be able to switch back to PsExec and it should work just fine.
-Doug
dougModeratorI think the
'Error 1620: -6. Failure'is essentially the same as the Windows Update:'Error 1620: 2. Failure'with the only difference being that using PsExec gives you the 2, while using PaExec gives you the -6. Both are failing in BP at the same spot.According to the PaExec home page, -6 means:
PAExec service could not be installed/started on remote serverI think ultimately the issue you are having with this particular computer is definitely related to PsExec and PaExec failing to operate successfully, which is what we saw in those other threads I linked to above. It’s peculiar that you are able to successfully run the
'psexec \targetComputer IPCONFIG'test, despite psexec and paexec not operating successfully for use with BP right now on that target. Unfortunately I am not able to offer you any other possible solutions/fixes. We have even heard of this issue spontaneously correcting itself for no apparent reason.-Doug
dougModeratorYou do not have to save the grid in order to see additional details about which update failed. As mentioned above, you can view the log in BatchPatch with ‘Actions > Windows updates > View BatchPatch.log.’ Alternatively you can view this log file directly on the target computer at C:Program FilesBatchPatchBatchPatch.log. This will show you the entire BatchPatch history on that computer.
-Doug
dougModeratorHello Steven – let me refer you to these two other threads. Please review them carefully, and let me know if you have any luck with the suggestions. Essentially, this issue has been reported by only a very small number of users, and it’s always only happening on just one or two of their servers. We have not so far been able to reproduce the problem.
dougModeratorThis error occurs when BP tries to copy the BPRA (BatchPatchRemoteAgent.exe) to the target system. If the file already exists there from a previous BatchPatch action and is locked because it is still in-use, then BP cannot overwrite it. Under normal circumstances BP removes it automatically after it completes an action. If BP did not remove it, then it likely was still running or somehow got orphaned (maybe the BP console was closed and so it lost connection to the target’s agent process, for example).
First, try ‘Actions > Windows updates > Re-attach orphan’
BP will attempt to re-connect to the previously running process, if it’s still executing on the target machine. If it’s not executing, then BP will not find an orphaned process to attach to. If it DOES attach to the orphan, then you’ll know that you did actually have a process that was still running. If it does not attach, then check in the target working directory (default is C:Program FilesBatchPatch) and see if the BatchPatchRemoteAgent.exe already exists in that directory. If it does, see if you can delete it manually. Normally it would only ever be locked by the fact that it is executing, but it is also possible that it could get locked by an anti-virus software or similar HIPS or other security software.
If you don’t even find the BatchPatchRemoteAgent.exem but you continue to get the error, then it would have to be an access/permissions issue of some kind. Even if you have full admin access to the machine, something is going on where permissions are being denied when BP tries to write the BatchPatchRemoteAgent.exe to the target working directory.
-Doug
-
AuthorPosts