Creating an APPX or MSIX for a Batch file

Copper Contributor

Can anyone suggest if an Appx or MSIX can be created to run a batch file. I am able to create a MSIX using MSIX packaging tool with code signing cert but when run on other machine it does not install this package.  we need to install this cert on both Windows 10 and Hololens devices and MS suggested these are the only two options. 

Install.cmd

CERTUTIL -f -p P@ssword -importpfx "%~dp0CompanyPFX.pfx" > C:\Windows\importedpfx.txt

2 Replies
Without bothering to google the command myself, I'd guess that when you do you'll see command line options to let you place it in the correct store. The correct store is the System store and within there under Trusted Root Certificates. And I'd guess there is a missing \ after dp0 (assuming SCCM/Mem).

@TIMOTHY MANGAN 

- Thanks for the response. I have verified with the batch file that in included in my post.  The batch file works fine but the when packages through MSIX packing tool the MSIX generated is not installing PFX certificate.