doug

Forum Replies Created

Viewing 30 posts - 1,681 through 1,710 (of 1,968 total)
  • Author
    Posts
  • in reply to: Safe to update the BP server itself with…BP? #10988
    doug
    Moderator

    Booster – If you run BatchPatch as admin, then yes you will be able to self-update. If it is *not* launched as admin, the self-update will fail. However, in either case, the reboot will always fail. BatchPatch will never reboot the machine that it is running on.

    -Doug

    doug
    Moderator

    I corrected the title. 🙂

    doug
    Moderator

    Thanks for the suggestion. We’ll consider this for a future build.

    -Doug

    doug
    Moderator

    Olivier – Thank you for the detailed explanation. Everything you said makes sense. The idea to show the job steps is very good, and we will plan to add it in a future build.

    With regard to the VM reboot issue, I now understand what you are describing, but at the moment I’m not sure what we can do about this. For the time being, your solution of adding a 10 minute wait period is good. Your suggestion to maybe add a check for pending install/reboot makes sense, and we’ll look into it, but the problem is that there isn’t really a formal way to ask Windows if it is in the middle of doing a post reboot patch and if it’s about to reboot itself. In any case, we will look into this issue more to see if we can figure out a good way to address it. However, for now you should stick with your 10 minute wait step.

    Thanks again,

    Doug

    doug
    Moderator

    booster –

    The actions are all printed in the ‘All Messages’ column as they are executed, so that you can tell what is happening. Is this not sufficient? What more is it that you are looking to see? Please be as detailed as possible in your description. The only way that we can update/improve the app based on your feedback is if you are very clear about what you would like to see that is not currently available/visible in the app.

    When you say that you had problems with ‘Wait for host to go offline and come back online’ I’m not sure I understand. You’re saying that if the host reboots as part of the patch process itself, then BP tries the next job step while the host is offline. Under what circumstances does the host reboot without BP being responsible for initiating the reboot? I am not aware of such a thing to exist with Windows Update. When using BP, the row in BatchPatch should either say “Reboot Required” or “No reboot required,” but it sounds like you’re saying that you’re facing a situation where it is reporting “No reboot required” but it’s rebooting on its own without BP initiating the reboot? I have never experienced this behavior. Am I understanding correctly?

    Thanks,

    Doug

    in reply to: Saved Job Queue – Export? #10788
    doug
    Moderator

    Yes – At the very least we will def re-word it to be more clear so that it’s not just ‘create’ but also ‘edit’ or ‘modify.’

    Thanks again,

    Doug

    in reply to: Saved Job Queue – Export? #10786
    doug
    Moderator

    Thanks for the suggestion. You can currently modify remote and local commands directly from the Job Queue window, but to edit a deployment you have to go to the deployment window separately. We will add your suggestion to the list.

    -Doug

    in reply to: Saved Job Queue – Export? #10793
    doug
    Moderator

    Hi martbasi –

    We will consider adding functionality to a future build that enables exporting/importing job queue information. In the meantime, this info is saved in the following location:

    HKCUSoftwareBatchPatchSavedUserDefinedJobQueues

    -Doug

    in reply to: Set Environment Variables #10808
    doug
    Moderator

    Remote Command 3 will work, yes.

    -Doug

    in reply to: Set Environment Variables #10806
    doug
    Moderator

    Hugo – I’m not sure that this is really a question about BatchPatch so much as it’s a question about environment variables. I’m not an expert on environment variables.

    BatchPatch can execute remote commands, as you know. So it’s just a question of finding the correct command to execute.

    I did a quick google search on environment variables, and from what I found the “SET” command only sets current session variables. If you want to set a system variable you have to use “SETX” instead. It also says that updates made with SETX will only be visible to the next logon session, which essentially means that if you use BatchPatch to add/update a variable on ComputerX, then on ComputerX you will not see this change until/unless you logoff and log back on to ComputerX to verify it.

    That said, in BatchPatch I simply highlighted my target host(s) and created a remote command with the following syntax:

    SETX client myfqdn

    I then executed the command in BatchPatch and it reported “Exit Code: 0 (SUCCESS).” So, I logged on to the remote system to verify it was there. On the remote system I opened a cmd prompt and typed “SET” and I could see the value that I set previously was visible.

    -Doug

    in reply to: Display bug in v2015.1.12.13.25? #10800
    doug
    Moderator

    That is a fantastic workaround that I wasn’t aware of! Thanks for mentioning it.

    -Doug

    in reply to: Display bug in v2015.1.12.13.25? #10798
    doug
    Moderator

    Hi Timma – Thank you for pointing this out. It’s not really a bug, but we will see if we can figure out a better way to handle it. The situation is that in the previous version the column was set to not wrap text. In the new version it is set to wrap text. The output of the command that you are using is in the format:

    Model

    <actual model name>

    So, the way that it’s displaying now in the new version is technically correct. The old version was removing the wrap, which in the case of this particular command happens to be convenient because it allows you to see everything. For other outputs, however, it makes the formatting worse.

    I think moving forward the best solution will be for us to provide a setting for the user to be able to enable/disable wrapping.

    In the meantime, it looks like we left wrap=false for the ‘Remote Command Output Log’ column, so you can use that to get what you’re looking for until we release an update.

    I hope this helps.

    Thanks,

    Doug

    in reply to: Description field empty in main window #10825
    doug
    Moderator

    No problem. Glad it’s working now.

    Take care,

    Doug

    in reply to: Exclude "automatic" services that are suppose to be stopped? #10824
    doug
    Moderator

    The current build of BatchPatch doesn’t allow you to exclude any services from this check, but I will add it to the to-do list for a future build.

    Thanks,

    Doug

    in reply to: Issue with detect of new patch for installation #10822
    doug
    Moderator

    Hugo – There are a couple of possibilities here:

    1. Make sure that BatchPatch is instructing computers to search the same WSUS server that is generating your reports. If BatchPatch is configured to have computers search for updates on Windows Update or Microsoft Update instead of your own WSUS server, then you might end up with different updates installed than what is approved on your WSUS.

    2. Sometimes after installing updates and rebooting, a new update will become available for a computer. This has nothing to do with BatchPatch per se. It’s something that can occur when you use the regular Windows Update interface or BatchPatch or any update installation mechanism. For this reason, some users always build into their update process a second check for updates after reboot. In fact, BatchPatch even has a “Update + Reboot Cycle” option on the ‘Windows Update’ section so that you can have it cycle through as many times as you want. You could also use the ‘Job Queue’ for this.

    I hope this helps.

    -Doug

    in reply to: Description field empty in main window #10821
    doug
    Moderator

    In order to populate the description field you need to first check the box that says “Import description field” before you click “Add to grid” when importing hosts from AD. This box is visible under the “Add-to-grid options” of the ‘Add hosts from directory’ window.

    -Doug

    in reply to: Schedule Job Queue instead of Task scheduler options #10879
    doug
    Moderator

    Excellent. I’m glad that worked. Keep your eye out for the new release in the coming days. It’s great to hear that the app is working well for you! Thank you for the kind words.

    Take care,

    Doug

    in reply to: Schedule Job Queue instead of Task scheduler options #10873
    doug
    Moderator

    Wiseguy – The current version of BatchPatch allows you to execute a job queue in the following way:

    1. Create a job queue for a given row or rows and then select the “apply queue to row(s) without executing” button. This will apply the specified job queue settings to a particular set of rows that you have selected.

    2. Then go ahead and schedule a task for those same rows using “Execute job queue” as the task option.

    In the next version of BatchPatch (should be released within a few weeks or so), you will be able to use the task scheduler to not only execute the job queue that is applied to the row(s), but you will also be able to execute previously saved job queues. (the current version does not support executing previously saved queues)

    Thanks,

    Doug

    in reply to: Specified Cast is not Valid #10968
    doug
    Moderator

    Scott – Thanks for testing.

    I understand that you can make manual PsExec connections. PsExec is not the source of the problem here. The issue is actually WMI on those target computers. The reason I had you run WMIC PATH Win32_ComputerSystem GET name is because I wanted to see what would happen when running a direct WMI query on those machines. When BatchPatch runs “Get host name” is uses WMI but it does it remotely (not using PsExec). The WMIC command, however, gets run locally on the target through the use of PsExec. The fact that it returns -2147467262 (the same error as the original “Get host name” action in BatchPatch) indicates that WMI is the source of the problem. -2147467262 translates to “No such interface” and explains why we then see “Specified cast is not valid” because the WMI query is returning empty, and then BatchPatch fails to cast the retrieved object to the host name string because the object is empty. If you were curious you could take that same WMIC command from above and run it in a command prompt manually on one of the problematic machines. You’ll see that it returns an error, indicating the WMI is the source of the problem.

    All that said, this is not a BatchPatch issue. It’s an issue with WMI. Normally I would recommend simply restarting the WMI service on the target computers. However, since you said a reboot didn’t fix the issue, then a service start certainly isn’t going to do it. I wonder if perhaps a Windows Update you installed (or some other type of update) caused WMI corruption on those targets. Your next step should be to look into repairing WMI. Take a look at the following links as a starting point:

    https://social.technet.microsoft.com/Forums/windows/en-US/8ed26d46-9994-4052-a307-5b071805aea8/wmi-corrupt-how-to-reinstallrepair

    http://technet.microsoft.com/en-us/library/ff404265.aspx

    in reply to: Specified Cast is not Valid #10961
    doug
    Moderator

    Hi Scott –

    What version of BatchPatch are you using?

    What OS are the target computers?

    Do other “Get information” queries work in BatchPatch without the error?

    What happens if you run the following command under “Remote Command (logged output)”

    WMIC PATH Win32_ComputerSystem GET name

    Thanks,

    Doug

    doug
    Moderator

    OK great. We will also consider the possibility of extending the regular ping monitoring to include a more thorough online check option.

    -Doug

    doug
    Moderator

    In the latest version of BatchPatch released 2014-12-09 the ‘Job Queue’ has an item called “Wait for host to go offline and come back online,” which uses a WMI check to see if the server is responding to connection attempts. Does this work for you?

    When you say that BatchPatch deems it to be back up and running by responding to ping, in what area of the software are you referring to? I’m not saying that you are incorrect, but if you could be more specific of exactly what you are trying to accomplish, it would help me understand if/where a change needs to be made. Are you just referring to when BatchPatch prints “server ONLINE” in the ‘All messages’ column? Or is there something else that you’re referring to?

    Thanks,

    Doug

    in reply to: Windows Update/Remove individual update (requires KB ID) #10914
    doug
    Moderator

    Hello Mattias – In order to prevent the computer from seeing the update as available for installation you must decline the update in WSUS. If you are saying that you already declined it in WSUS but it’s still appearing as available on the target computer then I would question if the search for updates is actually taking place against the WSUS server. In BatchPatch under ‘Tools > Settings > Windows Update’ make sure that the ‘Server Selection’ is set to ‘Default / Managed’ and not ‘Windows Update’ or ‘Microsoft Update.’ Also, verify the configuration of the target machine to confirm it’s pointing at your WSUS server. You can use the ‘Actions > Windows Update > Get Windows Update config’ option in BatchPatch to confirm. If you’re still seeing the update on the computer then I’m not sure why, but it’s not related to BatchPatch. BatchPatch simply reports the updates that the computer shows as available. If BatchPatch is showing that update, then if you launch the Windows Update interface directly on the machine it will also show the update if it’s searching the same update server.

    In any case, another option is to “hide” the update either using the Windows Update interface or using BatchPatch. If you choose to hide it with BatchPatch it will still be available to the computer but will no longer appear anywhere until/unless you later unhide it. The hide/unhide option is equivalent to launching the Windows Update interface on the target computer and right clicking on the update and choosing “hide update.”

    -Doug

    in reply to: Scheduling Batchpatch to run on specific weekend of the month #10913
    doug
    Moderator

    Newman – Currently if you select a recurring monthly schedule, it will select a date that is exactly one month in the future, with no regard to whether it’s a weekday or weekend. We are hoping/planning to add more advanced scheduler functionality in a future build, but for the moment what you see is what you get. Sorry about that.

    -Doug

    in reply to: Export grid to CSV? #10904
    doug
    Moderator

    Hi Andy – There is not currently a menu item to export the visible grid to CSV, though we plan to add one. However, in the meantime you can accomplish the same thing using copy/paste. Highlight the grid and use CTRL-C to copy it, and then you can paste it directly to an Excel sheet.

    I hope this helps.

    -Doug

    in reply to: Port needed #10864
    doug
    Moderator

    Hi Hugo –

    BatchPatch uses a combination of WMI and PsExec.

    In order for PsExec to work on a target machine, the target machine has to have File and Printer sharing enabled, and ports 135 and 445 need to be open. You’ll need to make sure that the computer running BatchPatch is able to connect to the \targetComputeradmin$ share on the target computer.

    For WMI if the firewall is a Windows Firewall, then you simply need to follow the instructions outlined here: Using BatchPatch With Windows Firewall

    However, if it’s not a Windows Firewall, then it can be more complicated because WMI uses dynamic ports. While it is possible to set WMI to use a static port, this could be labor-intensive, and we have not tested BatchPatch under these conditions.

    WMI Static Port configuration:

    http://msdn.microsoft.com/en-us/library/windows/desktop/bb219447%28v=vs.85%29.aspx

    DCERPC:

    However, many firewalls have implemented DCE/RPC, which solves this problem and allows the use of dynamic ports for WMI/RPC:

    https://en.wikipedia.org/wiki/DCE/RPC

    http://wiki.wireshark.org/DCE/RPC

    in reply to: Run bat file rebooting #10855
    doug
    Moderator

    Great! I don’t know why it hadn’t occurred to me before, but I guess the issue with the .bat file was that the plink.exe needed the full c:tempplink.exe filepath inside the .bat. I’m really glad to hear that it’s working now!

    -Doug

    in reply to: Run bat file rebooting #10853
    doug
    Moderator

    That’s progress, at least. Not sure why it’s failing though. What happens if you simply put the plink.exe command directly into the local command 1 *instead* of using the .bat file:

    plink.exe g1vpnag01 -pw mnbJHG_7tT ./g1vplncarc02off.sh

    By the way, what happened when you tested a batch file that only contained “ipconfig” without the quotes? That worked, I assume, when you used the following syntax?:

    C:WindowsSystem32cmd.exe /C c:tempipconfig_test.bat

    -Doug

    in reply to: Run bat file rebooting #10851
    doug
    Moderator

    What version of BatchPatch are you running? This is peculiar.

    With regard to the “Cannot start process because a file name has not been provided” message, it should (in theory) know to execute using the shell, but for some reason it’s not doing that on your machine. I wonder if that might be due to an environment variable setting, and I wonder if a missing environment variable is also the cause for the other issue we’re experiencing. I will look into that more, but for the moment if let’s scratch the plan I suggested before to not use cmd.exe. Instead let’s use the cmd.exe command syntax:

    cmd.exe /C c:tempg1vplncarc02-off.bat

    Please give that a try. If it doesn’t work, please try:

    C:WindowsSystem32cmd.exe /C c:tempg1vplncarc02-off.bat

    Let’s see what happens now. Again please monitor the task manager and see if plink.exe appears.

    Thanks,

    Doug

    in reply to: Run bat file rebooting #10849
    doug
    Moderator

    John – A couple points…

    1. A batch file (.cmd or .bat) generally should be executed with cmd.exe, not powershell.exe and not cscript.exe. In BatchPatch when you execute a .bat/.cmd via local command, just enter the path to the batch file. In theory, the powershell.exe ought to be able to run a .bat file without issues, but since you’re having problems, please try removing it as it’s not necessary and it’s slightly abnormal (cmd.exe would be more appropriate, but it’s also not necessary), and perhaps it is part of the problem. So, the syntax in your case for the local command should just be set to:

    c:tempg1vplncarc02-off.bat

    2. Since in your case the batch file is executing plink.exe, please open task manager and watch the processes list for plink.exe when the local command is executing. If plink.exe appears, then we’ll know that it’s being executed. If it doesn’t appear, then we’ll know it’s somehow stuck before it even executes.

    I just did several tests running batch files as described above using local command, and they all worked properly. However, of course none of them execute plink.exe, so it’s possible that the problem is somehow tied to that, but realistically it *should* work just fine.

    I know you said you tested a batch file containing “pause” but that’s the one thing that you should NOT test because it will “pause” indefinitely and produce exactly the behavior that we are trying to avoid. Instead, test something like “ipconfig” (without the quotes, of course) inside of the batch file. That would be a much better test and it should return the ip configuration of the machine to the Local Command Output Log column.

    Keep me posted.

    -Doug

Viewing 30 posts - 1,681 through 1,710 (of 1,968 total)