doug

Forum Replies Created

Viewing 30 posts - 1,201 through 1,230 (of 1,971 total)
  • Author
    Posts
  • doug
    Moderator

    OK, so here are your options:

    1. Create a deployment to deploy a batch file with your command specified as the content of that batch file. I was able to do this without issue, but you need to make sure that under ‘Tools > Settings > Remote execution’ that the ‘Deployment’ section is set to ‘Elevated token’ and not ‘SYSTEM.’

    Note, however, that this still might not give you the desired result. It will put the current user into the administrators group, but the current user is not the end user who is logged on to the target computer. The current user is the account that you used to launch BatchPatch, or it will be the account that you entered into the alternate credentials field for the given row in BatchPatch, if you entered alternate credentials.

    2. You can use a remote process/command, but then you cannot use %username%. In that case you must use the actual username.


    I’m not certain right now why the issue occurs with remote process/command, but I am able to reproduce it. It’s something to do with Windows, not BP. It’s described here too. There is something unexpected happening with environment variables, but I don’t know exactly why. A third option, it seems, would be to use powershell with the method described in the link above. Let me know how it goes and which option you end up using with success.

    Thanks,

    Doug

    in reply to: Windows updates will not install #11004
    doug
    Moderator

    You sent me the error -198: Failed to add scan package service. HRESULT: -2147024674

    and I responded to your email. Please feel free to continue the email thread rather than coming back to this forum page and updating me here.

    This is another strange error that seems to imply that you might have something weird going on with your internet connection or your LAN that is causing you to have files corrupted in one way or another. This is highly unusual.

    0x8007000D The data is invalid. ERROR_INVALID_DATA.

    The issue that you are now having is specific to the WsusScn2.cab file, which previously was working properly for you, but when you deleted your cache and started over, this file would have been re-downloaded from scratch, and it seems that it became corrupted because now the Windows Update Agent is not able to read the file without throwing the above error. You can delete it and try again, but it really seems like there is something about your environment that is going to prevent you from having a lot of success. I wouldn’t be surprised if you end up getting some updates installed successfully while having other updates fail to install due to being corrupted. You can keep trying and see where you get, but just note that the problems that you are encountering are quite unusual and are not BatchPatch issues per se, but rather seem to indicate a problem with your network or internet connection.

    in reply to: Windows updates will not install #11006
    doug
    Moderator

    OK thank you for emailing us. Now we can see why this failed. All of the updates show “Copy To Cache: Failed. HRESULT: -2145099774” and this is why the updates subsequently appear as if they have never been downloaded to the target computers (Downloaded=FALSE)

    0x80246002 -2145099774 SUS_E_DM_INCORRECTFILEHASH The file digest did not match the expected value

    This would indicate that either the files that are in your BatchPatch cache are corrupt, or the files are being corrupted when they are copied to the target computers. Since you already tried “re-copy/overwrite” setting, I think the most likely cause is that the files in your BatchPatch cache are corrupt. I have never seen an entire cache be corrupt. We have only ever seen this occasionally occur for just a single file here or there. I would suggest that you delete your cache entirely and then start over.

    Thanks,

    Doug

    in reply to: Batch file output #11009
    doug
    Moderator

    Unfortunately this feature will not work with all scripts in all cases and will sometimes cause a deployment to fail/error. A couple of alternatives:


    You could use a vbscript file (filename.vbs) with content:

    wscript.echo “hello”


    You could us a powershell file (filename.ps1) with content:

    write-host hello


    in reply to: Display VMHost of VM #11008
    doug
    Moderator

    sal – Unfortunately I don’t have a way for you to cut out the excess. Probably the easiest thing to do when reviewing the report for more than one computer is to select all the desired rows and use ‘Actions > expand rows’

    -Doug

    in reply to: Windows updates will not install #11015
    doug
    Moderator

    I’d like to try to help, but this log is incomplete and missing the most important elements. I really would need to see an HTML export. I suggested that you email us using the contact form on our website so that we can email you back to get this file from you.

    Thanks,

    Doug

    in reply to: Display VMHost of VM #11014
    doug
    Moderator

    sal – BatchPatch has built-in functionality to retrieve registry values. Check ‘Actions > Get information > Get registry key/value’

    I hope this helps.

    -Doug

    in reply to: Windows updates will not install #11206
    doug
    Moderator

    As mentioned previously I really need to see an HTML export. If you can’t post it somewhere then please contact us via the contact form on the website.

    -Doug

    in reply to: Windows updates will not install #11207
    doug
    Moderator

    Dsayles – If you are an existing customer then please contact us via the contact form on the main website for assistance with this. If you are not a customer and are using the evaluation version of the application, then in order for me to see what’s going on I would need to see an HTML export (File > Export grid to HTML) that illustrates what is happening. If you are able to post this HTML export somewhere for me view, that would be ideal.

    It’s hard for me to tell what is going on here based on your description alone, but from what you said, the only immediate suggestion I can give is to try enabling the following setting and see if that makes a difference. ‘Tools > Settings > Windows update > Recopy/overwrite updates’

    -Doug

    in reply to: Multi-Admin Support #11253
    doug
    Moderator

    The only way to do this currently is with the export/import option.

    Thanks,

    Doug

    in reply to: checking for Linux support #11310
    doug
    Moderator

    This is not currently supported. I’m not sure if/when it will be added.

    Thanks,

    Doug

    in reply to: Email Alert #11529
    doug
    Moderator
    in reply to: Exit Code: 10 #11526
    doug
    Moderator

    Exit code 10 is not a BatchPatch code. It’s coming from the target computer, and it’s either a Windows system error code, or it’s an exit code from the .exe package.

    If it’s a Windows system error code, then 10 is

    ERROR_BAD_ENVIRONMENT

    10 (0xA)

    The environment is incorrect.

    in reply to: WSUS still reports 103 updates after running BatchPatch #11525
    doug
    Moderator

    You’re very welcome. Let me know how it goes.

    -Doug

    in reply to: WSUS still reports 103 updates after running BatchPatch #11523
    doug
    Moderator

    flowbass –

    Here is what I would suggest.

    Run BatchPatch in the same network as the WSUS because BatchPatch will be downloading updates from the WSUS into the BatchPatch cache. BatchPatch must be able to communicate with the target computers across the WAN, and the target computers must be able to communicate with the WSUS across the WAN. The target computers will not download their updates from the WSUS across the WAN, but they do need to be able to search the WSUS to determine which updates they need.

    When you run BatchPatch you will run it with cached mode enabled (do not enable offline mode). Enter all of the target computers into the BatchPatch grid. You will need to execute ‘Actions > Windows Updates > Retrieve consolidated URL list of available updates’ for all hosts in the grid. However, to avoid congesting your WAN link you might want to do this in small batches or even one row at a time. You can use the row execution interval in BatchPatch (Tools > Row execution interval) as a way to select ALL hosts and execute that action, but to execute that action only one row at a time with X seconds in between each row. You specify X seconds in ‘Tools > Row execution interval’).

    Once all hosts have completed ‘Retrieve consolidated URL list of available updates’ you will be able to either save that URL list for later or select ‘Download files to local cache’ in the URL list window that appears.

    Once you have downloaded all the required files to the BatchPatch local cache you would need to FedEx that cache to the remote location.

    Now in the remote location run an instance of BatchPatch with cached mode enabled (do not enable offline mode) on the computer that has the local cache attached. Make sure in ‘Tools > Settings > Windows update’ that the ‘Local update cache directory’ value is set to the be the folder that contains all of the update files.

    In BatchPatch select all of the target hosts and choose ‘Download and install updates + reboot if required’. The target hosts will once again be executing their search for updates on the WSUS across the WAN link, so you might want to use the row execution interval again or manually control how many hosts run at any one time. However, the “download” in this case will be BatchPatch pushing the update files from its local cache to the target computers. And since BatchPatch will be running with the local cache inside the remote network, the updates will not traverse the WAN link.

    I hope this helps.

    -Doug

    in reply to: Syncronize Grid with LDAP / directory enhancements #11521
    doug
    Moderator

    Hi Mats –

    All you have to do is add each desired OU to the sync list. So like…

    DomainContoller/OU=Servers,OU=East,DC=MyDomain,DC=com

    DomainContoller/OU=Servers,OU=West,DC=MyDomain,DC=com

    DomainContoller/OU=Servers,OU=North,DC=MyDomain,DC=com

    DomainContoller/OU=Servers,OU=South,DC=MyDomain,DC=com

    Once you have added all of your LDAP paths, then you can synch the grid. That’s all there is to it.

    Tutorial: Synchronize BatchPatch Grid With Active Directory OUs and Groups

    in reply to: WSUS still reports 103 updates after running BatchPatch #11520
    doug
    Moderator

    A couple of possible approaches come to mind…

    1. If you run BatchPatch inside the remote location in cached mode with all of the computers in that remote location pointing to the WSUS, then BP will pull updates from the WSUS to its local cache, so that it can then distribute them to target computers. Only a single copy of each required update will be pulled across the WAN link in this case, reducing the bandwidth required.

    2. If you run a downstream WSUS server in each remote location this would give you a similar advantage. The downstream WSUS can pull updates across the WAN link, and then those updates can be distributed to the target computers without having to pull multiple copies of updates across the WAN link.

    -Doug

    in reply to: WSUS still reports 103 updates after running BatchPatch #11518
    doug
    Moderator

    flowbass – When you use ‘offline mode’ only security updates can be applied. To apply other updates you must disable offline mode.

    -Doug

    in reply to: error saving grid #11517
    doug
    Moderator

    Sorry for the issue, but thank you for notifying. We published the fix for this a few minutes ago.

    -Doug

    in reply to: Services jobs not completing tasks #11516
    doug
    Moderator

    Sent again. Not to the gmail that you are registered with in the forum but to the company email address that you have emailed me from in the past. Feel free to email me if you still have not received my messages.

    -Doug

    in reply to: Services jobs not completing tasks #11514
    doug
    Moderator

    I just emailed Jason to discuss further.

    Thanks,

    Doug

    in reply to: Wait Random? #11512
    doug
    Moderator

    Excellent. Glad that works for you.

    -Doug

    in reply to: Trouble with remote PowerShell scripts #11510
    doug
    Moderator

    I would suggest save the script as “script.ps1” for example.

    Then use the BatchPatch Deployment feature ‘Actions > Deploy’ to deploy “script.ps1” to the target computer(s), and in the deployment configuration check the box that says “Retrieve console output…”

    Lastly, before you run the deployment, you need to make one more change. Under ‘Tools > Settings > Remote Execution’ you need to change the ‘Deployment’ remote execution context setting to ‘Elevated token.’ This script will not run as SYSTEM, but when I tested as ‘Elevated token’ it worked.

    -Doug

    in reply to: Wait Random? #11509
    doug
    Moderator

    You have a couple/few options. I think number 1 is probably your best option, followed by 2, then by 3.

    1. Use the ‘Advanced Multi-Row Queue Sequence’ This feature would give you the highest degree of control. You could run multiple hosts simultaneously, and then when that first set of hosts is done, the next set would be triggered to run, followed by the next set, and so on. The entire process could be kicked off with one click, and then it would run through to completion on its own.

    2. Use the ‘Basic Multi-Row Queue Sequence’ This feature would enable you to run one host at a time, sequentially.

    3. Use the ‘Row Execution Interval’ (Tools > Row Execution Interval). This feature would let you control how many seconds pass in between the execution of each selected row. So if you select 10 rows with a row execution interval of 60 seconds, then row 1 will execute. After 60 seconds, row 2 will execute. After another 60 seconds row 3 will execute. And so on.

    -Doug

    in reply to: Delete Folders #11508
    doug
    Moderator

    You can use a remote command in BP to do this. We might add more direct functionality for deleting files/folders in a future version.

    For now though…

    To remove a single file:

    Remote Command 3/4 (logged output):

    del "C:Temptemp2myfile.txt" /q


    To remove an entire directory:

    Remote Command 3/4 (logged output):

    rmdir "C:Temptemp2" /s /q

    in reply to: Copy File/Folder Crashes When Selecting Too Many Hosts #11506
    doug
    Moderator

    Very peculiar. The ‘Concurrent File-Copy Operations Maximum’ is likely *not* the issue here.

    First, I would monitor the target systems. Are they getting the files copies even though BP appears “not responding” ? You can also monitor the network connection on the BP computer to see if BP is actually copying. I suspect it *is* actually copying. If it’s copying, then you might as well let it go to completion, but that’s up to you.

    Even though I don’t think the issue is related to the number of concurrent file copies, I think it’s worth setting the value to 1 and then testing to see what happens.

    Also, how big is the file the you are copying?

    What happens if you put the that file on the BP computer instead of on a network share? Does anything change when you execute the copy using the BP computer as the source instead of the network share?

    in reply to: Copy File/Folder Crashes When Selecting Too Many Hosts #11504
    doug
    Moderator

    Hmmm. That’s definitely a bit strange. I don’t think you necessarily need to reduce it to 5. The “not responding” that you are experiencing sounds like it’s not related to the actual concurrent file copies. The “not responding” might instead just be occurring while BatchPatch is going through the queueing process for the systems. “Not responding” typically only really occurs when BatchPatch is writing to the grid. It’s the interface thread that gets backed up and causes “not responding” to occur. We have gone through great lengths to code BP so that the interface thread is left as free as possible, but there are certain times where it unavoidably gets a bit clogged up. What you’re seeing, however, sounds odd. It’s certainly not expected. I think for now it makes sense to just leave it be. Let it go for a minute (or longer) and see what happens. I suspect it should go back to responding quite quickly, but let me know what happens.

    Thanks,

    Doug

    in reply to: Copy File/Folder Crashes When Selecting Too Many Hosts #11501
    doug
    Moderator

    In ‘Tools > Settings > General > Miscellaneous’ there is a setting called ‘Concurrent File-Copy Operations Maximum.’ The default value for this is 6. What do you have yours set to?

    I would not recommend raising the default value by very much above 6. This value controls how many rows BatchPatch will execute a file copy for simultaneously. If the value is set to 6 and then you highlight 100 rows to execute a file copy, 94 of the rows should immediately go to a status of ‘Queued’ while the first 6 copies execute. Each time one of the executing 6 copies completes, one of the remaining 94 will begin executing. If you set the value too high then you run the risk of causing the app to hang. Also, setting the value very high won’t necessarily speed things up. Having more copies running concurrently will mean that each copy runs more slowly than if you had less copies running concurrently.

    If BatchPatch stops responding, I would leave it until it starts responding again. Don’t kill the app. If you leave it be, it will continue working, even if it’s too overloaded to update the GUI successfully.

    -Doug

    in reply to: 1601 errors when using batchpatch for Windows Updates. #11500
    doug
    Moderator

    The Windows installer options are grayed out because they are only valid for .msi/.msu. They will not be available for .exe. The tutorial was written for the .msi. It was not written for the .exe that you are using. I don’t know which .exe you are using, so it’s difficult for me to suggest how to use that particular .exe. I would suggest that you use the .msi as described in the tutorial.

    If you want to use that .exe then you should first figure out how to install that .exe from the cmd prompt. Once you have successfully installed it from the cmd prompt without using BatchPatch, then it will be easy to use the same cmd parameters to install from BatchPatch.

    This link may help: understanding-and-discovering-the-silent-parameters-required-to-remotely-deploy-software-with-batchpatch

    -Doug

    in reply to: Templetize Group of Patchments #11499
    doug
    Moderator

    The filter can be applied to multiple hosts or just a single host at one time. This is only dependent on how many rows/hosts you have selected in the grid when you apply the filter. Select all the rows in a grid, and then you can apply the same filter to all rows with one click.

    The filter for a given host/row or multiple hosts/rows is saved in the grid and would be saved to a .bps file if you saved the grid to .bps file. However, if you want to apply a filter from one .bps file or grid to another grid or .bps file, you would have to manually copy/paste the filter text.

    -Doug

Viewing 30 posts - 1,201 through 1,230 (of 1,971 total)