Script Search users outlook autocomplete
<p>Currently I need to loop through all Users on a computer to check if their Outlook autocomplete file contains a certain display name and delete it.
The script will be tested through windows Powershell ISE.
and the script will be a batch file, running a txt file through NK2Edit.
I got the script to run for a specific user and a specific auto completefile
you can see tools and tutorials I used here:</p>

<p><a href="http://www.nirsoft.net/utils/edit_nk2_script.html/" rel="nofollow noreferrer">NK2Edit Script</a></p>

<p>As well as the changes Outlook auto complete files here:</p>

<p><a href="http://www.nirsoft.net/utils/nk2_file_location.html" rel="nofollow noreferrer">Outlook Auto Complete file differences</a></p>

<p>I am using the 2010 Outlook model so the file will be different for every user
unlike the older versions that used the profile name with a NK2 at the end.
Here are the commands I am running</p>

<p>C:\Users\name\Desktop\NK2EditTest\NK2Edit.exe /script "C:\Users\name\Desktop\NK2EditTest\remove-old-support.txt" "C:\Users\name\AppData\Local\Microsoft\Outlook\RoamCache\Stream_Autocomplete_X_XXXXXXXX.dat"
while X's represent the random 16 byte key in hexadecimal format.</p>

<p><strong>MY Question:</strong>
How can I specify Stream_Autocomplete_X_XXXXX...dat files for multiple users
without hard coding it for every user? </p>