doug

Forum Replies Created

Viewing 30 posts - 1,681 through 1,710 (of 1,980 total)
  • Author
    Posts
  • doug
    Moderator

    Thank you for the suggestion. We will consider this for a future build.

    -Doug

    in reply to: Error 1605: Failed to create remote working directory #10942
    doug
    Moderator

    ombra17 – The key information in the error here is “The network name cannot be found.” It sounds like either you have entered the name of computer that does not exist on your network, or perhaps you have mis-typed the name, or it could be a DNS issue or a DNS suffix issue. It could also be a non-existent remote working directory path on the target computer. Verify your working directory path in ‘Tools > Settings > Remote Execution > Remote Working Directory’. Make sure that path exists. In particular make sure the drive letter exists. So if your remote working directory is set to ‘Q:\Program Files\BatchPatch’, but there is no Q: drive on the computer, the ‘network name cannot be found’ error will be generated. If the Q: drive exists, then BatchPatch will be able to create the directory successfully (or if it cannot because of a permissions problem or something like that, then we would see a different error). However, the bottom line is that BatchPatch can’t get to or create the network path that is specified in the ‘remote working directory’ field.

    If you take that same computer name and go to the cmd prompt and type “ping <ComputerName>” and it can’t find the computer, BatchPatch also will not be able to find it. You might need to use the FQDN or have your network adapter automatically append the appropriate DNS suffix. Alternatively you could use the IP address instead of the name.

    -Doug

    doug
    Moderator

    Thanks for the update. This setting does not require a reboot or a restart of BatchPatch. I’m not sure how it’s possible that the concurrent file copy maximum is being ignored for you. I could certainly believe that the CPU is still spiking even with just one file copy taking place (my CPU still spikes but only to about 12% with 1 active copy, so it’s possible that yours still spikes to 100%), but I can’t figure out how it’s possible that the setting is being ignored and more than one row is executing the wsusscn2.cab copy at the same time even while the concurrent file copy maximum is set to 1. What *should* happen is only one row copies while all other rows say “queued file copy” or similar. Then when the first row finishes copying, the next row begins, and so on. In any case, we have fixed the CPU utilization issue. It should be published within the next month or two.

    -Doug

    in reply to: tab notification #10950
    doug
    Moderator

    Thanks for the suggestions, Mats. We will consider this for a future build.

    -Doug

    in reply to: Error when trying to connect to workstations #10956
    doug
    Moderator

    Newman –

    The ‘Access Denied’ issue is caused by a problem with your permissions. Please see the following link for more information on resolving: BatchPatch Authentication in Domain and Workgroup (non-domain) Environments

    The ‘Invalid namespace’ error generally indicates that WMI on the target computer is broken or corrupt in some way or another. Start with rebooting that target machine. Sometimes that’s all it takes to fix. If that doesn’t work, I would recommend doing some googling to troubleshoot WMI corruption and/or invalid namespace errors. A good starting point is here: http://blogs.technet.com/b/askperf/archive/2009/04/13/wmi-rebuilding-the-wmi-repository.aspx

    I hope this helps.

    Thanks,

    Doug

    in reply to: Apply setting to Tab's and other features #10966
    doug
    Moderator

    Hi Michael – I’m glad to hear that you like the product. 🙂

    Thank you for the suggestions. I have a few questions below.

    1. We will consider this for a future build. I understand what you are describing and why it would be convenient to have.

    2. I understand that you currently use a “dummy” row setup to send a $grid before and after patching. This makes sense. However, I’m not quite clear on what you are suggesting/requesting. How is what you are requesting/suggesting different from what you are currently doing to accomplish the task? I’m curious to hear as much detail as you’re able to provide. Are you just saying that you want a simpler way to accomplish the same thing because creating “dummy” rows doesn’t feel like an elegant solution? (admittedly, it’s not particularly elegant, but it works 🙂 Or do you have something in mind that provides a different functionality?

    3. I understand what you mean by “locking” the columns. We will consider this for a future build. However, in the meantime there are two ways to accomplish this task.

    If you go to ‘Tools > Settings > Grid Preferences > Allow BatchPatch to unhide columns automatically’ you can either uncheck the box altogether so that BatchPatch does not automatically unhide any columns, or you can click on the button that says “except these columns,” which allows you to configure BatchPatch to auto-unhide only certain columns. If you uncheck the box altogether, this is the same as “locking” the grid, like you are suggesting. However, it applies to all grids, not just the active grid. Then you simply need to make sure the columns that you want to see are manually made visible before the patching begins. They will remain visible during the patching, but no new columns will be auto-opened.

    Thanks,

    Doug

    doug
    Moderator

    Jason – They should *not* remain open. In fact, if PsExec.exe is remaining open, then that means it is not finishing its work, and I would expect that you would not see progress in the BatchPatch grid either. The fact that you’re saying the connections are also remaining open on the target server as well is another indication that the process simply is not completing. The normal behavior is for you to start the action in BP, then psexec is launched for the duration of the action, and then psexec terminates and BP reports the status. If psexec doesn’t terminate, then BP will not update the grid with any changes, so essentially what I’m saying is that if psexec isn’t terminating then BP basically isn’t going to be able to complete most actions, including all Windows Update actions.

    When you say that the connections remain open, consuming server resources and slowing/stopping BP, I think you might have it backwards. Obviously I haven’t looked at your server, so I can’t say for sure, but it seems like BP is “stopping” simply due to the fact that the psexec instances aren’t returning (or they aren’t returning quickly enough – not sure how long you waited or how quickly you expect them to return, but it depends on the action), but it’s not “stopping” because of a resource problem. It’s simply waiting for the psexec connections to close so that it can continue doing what it’s doing. If you’re installing 200 windows updates, it could take a couple hours, depending on the setup). 50 rows in a grid all running at the same time shouldn’t require a ton of resources. Maybe something like 100 megabytes of RAM for all the psexec instances. If the psexec connections never close, then BP simply waits, indefinitely for them to close. BP relies on the psexec processes to end because that’s how psexec works. If psexec is never ending, then it means it’s not working.

    My question to you is has BP ever worked on your system? Is this a new problem? There is no configurable timeout for the psexec connections in BP. BP waits for them to close, otherwise BP can’t do what it needs to do. If none of them are returning then it does sound like there’s a problem, and BP basically isn’t working at all. I have never experienced nor heard of this happening before, so something might be jacked up with your system. As a start I would suggest you reboot the machine that’s running BatchPatch. After that you should make sure you have the latest version of psexec and then test running psexec at the command line to make sure that it is behaving properly. So for example you could run “psexec \targetcomputer IPCONFIG” in a cmd prompt. The normal behavior is for psexec.exe to open for just a handful of seconds. The target computer would see a psexesvc.exe in its processes list for that same handful of seconds. After the IPCONFIG command returns output to the cmd prompt, both psexec.exe and the target machine’s psexesvc.exe disappear. If psexec isn’t behaving properly when run from a cmd prompt, then BP certainly isn’t going to work.

    I can’t really think of any reason why such a problem would occur. The only thought that comes to mind is what is the network connection like between the BP machine and the target machines? If there is very little bandwidth and a lot of latency, then perhaps that’s where your issue is. In that case you simply might not be able to execute 50 at a time. You might have to do just a few at a time. Not sure. It would require some experimentation. I’ve never run BP on such a severely limited network.

    You probably already know this, but just in case you weren’t aware– you can kill all the psexec connections with a single command “taskkill /IM psexec.exe”

    I hope this helps.

    -Doug

    doug
    Moderator

    Yes, the setting will limit the number of rows that can copy files simultaneously from the BatchPatch computer to the target computer. This applies to cached mode as well as for software deployments.

    The reason you don’t experience the issue with the KB copies is because we use a different underlying method for the WsusScn2.cab file copy. We are able to reproduce the problem that you encountered. As soon as there is more than one WsusScn2.cab copy happening, the CPU hits 100% and the copy rate decreases drastically by 100x!

    We have isolated the cause of the problem, and we expect to have it fixed in the next release of the software. In the meantime, I think your best bet is to set the concurrent copies to 1. Even though it will only do one copy at a time, the overall copy rate should still be much faster. Also, once you’ve done one check for updates using the latest WsusScn2.cab file, BatchPatch will not re-copy that file to targets until Microsoft releases a new WsusScn2.cab file. So, after the first run, you could switch the concurrent file copies value back to 6, if you want, so that the KB files can be copied simultaneously to more than 1 host.

    -Doug

    in reply to: Uninstall 3rd party applications #10974
    doug
    Moderator

    To close the loop on this, I did a bit more testing/research.

    First, there was a missing ‘where’ clause in your command. So, the proper command would be:

    WMIC product WHERE name="Notepad++" call uninstall /nointeractive

    If we execute the new command *with* the WHERE clause, we then get the following output:

    No Instance(s) Available.

    Essentially that means that nothing where name=”Notepad++” was found. So, I ran another query:

    wmic product get name

    The list turned up *without* Notepad++, which explains the previous “No Instance(s) Available” message. It seems that the Notepad++ installer does not register itself with the system in such a way that we can use WMIC to uninstall it.

    in reply to: Deploying a batch script #10975
    doug
    Moderator

    Hi John –

    Generally when you execute a script remotely on a target computer using BatchPatch, that script will only have access to resources on the target computer. The script will *not* have access network resources. This is why your script isn’t completing.

    You *might* have luck if you explicitly supply credentials for the row in BatchPatch using ‘Actions > Specify alternate credentials’ Let me know if that works. It might, but it might not.

    Assuming the above suggestion does not work, then the way to do this is successfully is to *not* rely on any network resources for the installations. You would need to write your script so that it does not include network locations and instead just includes the relative paths/locations. Then put all files in a single directory and use the BatchPatch ‘Deployment’ feature with the ‘Copy entire directory’ option.

    There’s an example of this type of usage at the following link. Hopefully you can use this as a template/example to model your script/deployment:

    Deploy Multiple MSU files in a single action

    I hope this helps.

    One other option that you might consider is to create a separate deployment in BatchPatch for each application that you want to install. Save each deployment in the BatchPatch deployment window. Once each deployment configuration has been saved you can then create a ‘Job Queue’ that installs each deployment that you previously created, sequentially. You can then also save that job queue for future use. This would give you a one-click way to install all the apps in a single action.

    -Doug

    doug
    Moderator

    Thank you for making us aware of this issue. We are looking into it. I will report back here when I have more information.

    For the time being it seems that limiting the concurrent file copies to just 1 will prevent this from happening. See ‘Tools > Settings > General > Concurrent File-Copy Operations Maximum.’ Setting this value to 1 should both prevent the CPU from pegging at 100% and also dramatically speed up the copy. The overall benefit should be positive, even though less concurrent copies are taking place.

    Thanks,

    Doug

    in reply to: Uninstall 3rd party applications #10985
    doug
    Moderator

    Mats – I tried to uninstall Notepad++ at the command line, using the syntax you provided, WITHOUT using BP. So, I launched a command prompt as administrator, and then I ran the following command:

    WMIC product name="Notepad++" call uninstall /nointeractive

    It did *not* uninstall Notepad++ and instead gave the following output:

    ERROR:
    Description = Invalid query

    That said, since I cannot uninstall Notepad++ *without* BP using the command you provided, I certainly do not expect to be able to uninstall Notepad++ *with* BP using that same invalid command. Before you ever try to use BP to perform a remote action, you should confirm that the syntax you want to use works when you’re at the command line *not* using BP.



    To successfully uninstall Notepad++, use BatchPatch Remote Command 1/2 (Remote Command 3/4 will not work with this syntax), and enter the following line:

    "C:Program FilesNotepad++uninstall.exe" /S

    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

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