I am kinda new to PS, and was able to write relatively simple script to import OpenSSL certificate to Personal store without any issue, but one thing is killing me…
I am using Read-Host -prompt to get path to certificate file from user and would really like to add bash or CMD-style autocompletion with TAB.
After few days of futile search on numerous forums and hundreds of try and errors, i decided to ask the professionals…
Can anyone please help and give me an example of code to autocomplete path to file? Something like this:
$p12path = Read-Host -Prompt ‘Enter path to .p12 certificate file:’
No matter what i try, i just get 4 spaces on TAB press. I tend to believe something like this is easy to achieve in PowerShell, but for some reason solution is eluding me…
Thank you in advance.