Index Update from command line?
It it possible to cause an index update from a command line? What I'd like to be able to do is schedule a Windows job to run each evening and initiate updates on a couple of large indexes I have. Is that possible?


If not is there some other clever way to periodically refresh indexes without having to remember and do it manually?
Please see: [How do I schedule a task to update indexes?](https://qa.mythicsoft.com/14733/how-do-i-schedule-a-task-to-update-indexes?show=14733#q14733)
[image] simas:

[image] virgilwashere:

<https://domain.com/mautic/mautic_segments_update.sh>

i doubt that is the intended way to invoke the bash script.

well, that’s what i was told to use in the command line to invoke the script… and from the output file support says it’s working from their… sometimes one or both of these patches help, especially if the system is showing high ram and/or cpu usage when checking updates:
https://support.microsoft.com/en-us/kb/3050265




https://support.microsoft.com/en-us/kb/3102810﻿﻿
﻿ It seems that updating Windows 7 has become a task that tests our patience and is accompanied by many unforeseen events.
**If you have installed Windows 7 and you are not able to update it because Windows Update is constantly looking for updates, here you will find the solution.**




![image](https://technowikis.com/sites/technowikis.com/uploads/084/8408675506832124429.jpg)




The problem of the search for updates is accompanied by a high consumption of RAM and CPU that does not allow even a good use of the PC while looking for updates. The problem is with Windows Update and how Microsoft has implemented the updates.




Windows 7 does not update, it keeps looking for updates forever and finds nothing.




**The first thing you need to know is if you are installing Windows 7 32bit or 64bit.**
Once we have this information, we can begin the process.



 
Disable Windows Update to make the update process faster.



First
[we open a terminal with administrator permissions](https://translate.googleusercontent.com/translate_c?act=url&depth=2&hl=en&ie=UTF8&prev=_t&rurl=translate.google.com&sl=es&sp=nmt4&tl=en&u=https://www.vozidea.com/abrir-consola-comandos-terminal-windows&xid=17259,15700023,15700186,15700190,15700256,15700259,15700262,15700265&usg=ALkJrhhqpP0r1As5JhHykWgqvcIjB7PXng)
to
**stop the Windows Update service**
with the command:
  

`net stop wuauserv`




![image](https://technowikis.com/sites/technowikis.com/uploads/133/13323206954024179447.jpg)



 
Manually install update KB3020369.



**Installing this update is an essential requirement to solve this problem.**
It is the first step and if we do not install this update first, we will not be able to follow all the steps in this tutorial.




We know that the error is generated by a Windows Update client error, which hangs when scanning new updates. Microsoft released a patch that solves the problem, but in order to install it, it requires that we download and install the KB3020369
*"April 2015 servicing stack update" update first*
:



* KB3020369 for Windows 7
**32bit**
:
<https://www.microsoft.com/es-ES/download/details.aspx?id=46827>
* KB3020369 for Windows 7
**64bit**
:
<https://www.microsoft.com/es-ES/download/details.aspx?id=46817>



Two options to finish solving the Windows Update error in Windows 7.




At this point we have two options:



* **Download and manually install updates KB3172605 and KB3138612.**
Once installed, Windows Update should work correctly and we could update Windows 7 without problems.
* **Download and install the KB3125574 package released by Microsoft with all security updates until April 2016 and that allows you to update a Windows 7 installation faster.**
This package occupies more than 316MB in 32bit systems and 476.9MB in 64bit systems.



Both options work correctly, but it is true that
**downloading and installing the cumulative update KB3125574 is a more convenient and faster process, so it is the option I recommend for most users**
. Even so, I will explain both options.



 
Recommended option, download and install the KB3125574 package released by Microsoft with all security updates until April 2016.



![image](https://technowikis.com/sites/technowikis.com/uploads/171/17135527325084971355.jpg)




This update package can be found through the
[Microsoft Update Catalog](https://translate.googleusercontent.com/translate_c?act=url&depth=2&hl=en&ie=UTF8&prev=_t&rurl=translate.google.com&sl=es&sp=nmt4&tl=en&u=http://www.catalog.update.microsoft.com/Search.aspx%3Fq%3D3125574&xid=17259,15700023,15700186,15700190,15700256,15700259,15700262,15700265&usg=ALkJrhgYZAtq0r4K4ryYk_7h4_sjeQs_-A)
or you can download it directly from the following links:



* Update package for Windows 7
**32bit**
:
[windows6.1-kb3125574-v4-x86\_ba1ff5537312561795cc04db0b02fbb0a74b2cbd.msu](http://download.windowsupdate.com/d/msdownload/update/software/updt/2016/05/windows6.1-kb3125574-v4-x86_ba1ff5537312561795cc04db0b02fbb0a74b2cbd.msu)
* Update package for Windows 7
**64bit**
:
[windows6.1-kb3125574-v4-x64\_2dafb1d203c8964239af3048b5dd4b1264cd93b9.msu](http://download.windowsupdate.com/d/msdownload/update/software/updt/2016/05/windows6.1-kb3125574-v4-x64_2dafb1d203c8964239af3048b5dd4b1264cd93b9.msu)



Once the system is installed and restarted, we can now run Windows Update normally that will detect the remaining updates without problems.



 
Alternative option, manually download and install updates KB3172605 and KB3138612.



Next
**we download and install the KB3172605 patch**
:



* Download for Windows 7
**32bit**
:
<https://www.microsoft.com/es-ES/download/details.aspx?id=53335>
* Download for Windows 7
**64bit**
:
<https://www.microsoft.com/es-ES/download/details.aspx?id=53332>



Finally,
**we download and install the update for the Windows Update client of March 2016 (KB3138612)**
:



* For Windows 7
**32bit**
:
<https://www.microsoft.com/en-us/download/details.aspx?id=51208>
* For Windows 7
**64bit**
:
<https://www.microsoft.com/en-us/download/details.aspx?id=51212>



**Now we restart Windows 7 and rerun Windows Update to search for all available updates.**
In my case it has been a little more than 20 minutes looking for updates until it finally allowed me to install all the updates. Hello Dmytro,


You will need to bind to the Custom Command, create arguments for the command execution, specify parameter values that will be used to execute the command in the Scheduled Task and then pass the arguments to the Arguments property of the action. Here is the code that will do the trick:



```
# Define actions and conditions for the task

$commandID = "{a7264a61-b77d-4386-a138-ec2557c5b3ba}" # Command ID
$commandDN = "CN=MyCommand,CN=Custom Commands,CN=Configuration Objects,CN=Adaxes Configuration,CN=Adaxes" # Command DN

# Create action set
$actionsAndConditions = $task.ConditionedActions.Create()
$actionsAndConditions.ConditionsLogicalOperation = "ADM_LOGICALOPERATION_AND"
$actionsAndConditions.SetInfo()

# Create execute Custom Command action
$action = $actionsAndConditions.Actions.CreateEx("adm-CustomCommandAction")
$action.ExecutionOptions = "ADM_ACTIONEXECUTIONOPTIONS_SYNC"

# Get action
$removeAction = $action.GetAction()

# Bind to Custom Command
$customCommand = $Context.BindToObjectByDN($commandDN)

# Specify command arguments
$arguments = $customCommand.CreateArguments()
$arguments.SetParameterValue("MyParameter", "MyValue") # Parameter value

# Configure the action
$removeAction.CustomCommandId = $commandID
$removeAction.Arguments = $arguments

# Save action
$action.SetAction($removeAction)
$action.SetInfo()
```

In the script, the $commandDN variable specifies the distinguished name (DN) of the Custom Command. For information on how to get the DN of a directory object, see <http://adaxes.com/sdk/?HowDoI.GetDnOfObject.html>.


For details, have a look at the following SDK article: <http://adaxes.com/sdk/?IAdmCustomCommandAction2.html>. looking around i think i found the answer myself.

there is are batch and script files in jabref/runtime/bin.

from those, the needed command line call can be derived. using the shipped jvm from inside the mentioned folder the call i looked for would be:

java --add-opens=javafx.controls/javafx.scen… Yes  

You would need to run the ‘LABEL ON’ SQL Statement.  

Here is a sample of code that changed the column heading for field JOBID from ‘Job ID’ to ‘NEW COLUMN HEADING’  

File is CD053DB In library Charlieb


LABEL ON COLUMN CHARLIEB/CD053DB (JOBID IS ‘NEW COLUMN HEADING’) hi stuti, 
index can be used with lists, not tables. 
if a variable is used as an index, it is put in the square brackets without the dollar sign and curly brackets, i.e. ${data\_list[item\_index]}. 
you can read more about using indexes with lists in the knowledge base: [https://kb.workfusion.com/disp…](https://kb.workfusion.com/display/rpae/recorder+variables#recordervariables-usingindexeswithlists) as long as you write down the hierarchy manually, there’s certainly the possibility to simplify such transitive from implementations with a macro. [i’ve written one here, feel free to take a look.](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=337cce675aa28e99ac030ca783c1c155) going even further one could try to use procedural macros with global state that uses annotations on the… The best way to  

do it is to rename the file then force a replication from a known good server.


If it is not too  

corrupted you can do an updall -r and it will rebuild the indexes.


Try running  

nfixup.exe against it. If that doesn’t work, try ncompact -c against it.


Note: ncompact  

exists in all workstation installs. nfixup is not part of the client — you can  

copy it off a server that runs at a similar NBotes version.


Make sure to use  

the -c option with compact (ncompact -c whatever\your\file.nsf)


In case it didn’t assist you, then you may use professional recovery software <http://www.nsf.openfiletool.com/> NSF Open File Tool according to python idiomatic, its better to ask for forgiveness (except) then for permission (if). which would make your solution a better fit

however, i disagree with the slicing used in both solutions. you have the index, so its easy to update an element at an index:

the\_list[index] = 'new valu…