2

By inetcpl.cpl using on the command line, it triggers the Internet options window.

Are there any advanced options of inetcpl.cpl available from the command line?

  1. Tab selection, i.e Content tab.
  2. Launch new window from Internet option, i.e Certificate windows.

Is it feasible or what is the right direction?

Information: I would like to run a .bat file to open the Internet Options' Certificate Window.

1
  • Would the Certificate Manager via the Management Console (certmgr.msc) be acceptable? It should display the same certificates.
    – Bob
    Nov 9, 2013 at 4:14

1 Answer 1

4

To select a specific tab, pass that tab as the final number in the following command:

rundll32.exe shell32.dll,Control_RunDLL inetcpl.cpl,,3

The 3 will give you the content tab under at least Windows XP. I am unsure about other versions.

To get directly to the certificate UI (bypasses inetcpl.cpl entirely),

rundll32.exe cryptui.dll,CryptUIStartCertMgr

For completeness, here are the functions that cryptui.dll exposes; however, they are ~~almost entirely undocumented.~~ I found the documentation on them by searching for "CryptUi"

It looks like if you're going to want to highlight a specific certificate you're going to need to use at least PowerShell, rather than batch, and it's going to be a little bit hairy.

ACUIProviderInvokeUI
CryptUIDlgCertMgr
CryptUIDlgFreeCAContext
CryptUIDlgSelectCA
CryptUIDlgSelectCertificateA
CryptUIDlgSelectCertificateFromStore
CryptUIDlgSelectCertificateW
CryptUIDlgSelectStoreA
CryptUIDlgSelectStoreW
CryptUIDlgViewCRLA
CryptUIDlgViewCRLW
CryptUIDlgViewCTLA
CryptUIDlgViewCTLW
CryptUIDlgViewCertificateA
CryptUIDlgViewCertificatePropertiesA
CryptUIDlgViewCertificatePropertiesW
CryptUIDlgViewCertificateW
CryptUIDlgViewContext
CryptUIDlgViewSignerInfoA
CryptUIDlgViewSignerInfoW
CryptUIFreeCertificatePropertiesPagesA
CryptUIFreeCertificatePropertiesPagesW
CryptUIFreeViewSignaturesPagesA
CryptUIFreeViewSignaturesPagesW
CryptUIGetCertificatePropertiesPagesA
CryptUIGetCertificatePropertiesPagesW
CryptUIGetViewSignaturesPagesA
CryptUIGetViewSignaturesPagesW
CryptUIStartCertMgr
CryptUIWizBuildCTL
CryptUIWizCertRequest
CryptUIWizCreateCertRequestNoDS
CryptUIWizDigitalSign
CryptUIWizExport
CryptUIWizFreeCertRequestNoDS
CryptUIWizFreeDigitalSignContext
CryptUIWizImport
CryptUIWizQueryCertRequestNoDS
CryptUIWizSubmitCertRequestNoDS
DllRegisterServer
DllUnregisterServer
EnrollmentCOMObjectFactory_getInstance
I_CryptUIProtect
I_CryptUIProtectFailure
LocalEnroll
LocalEnrollNoDS
RetrievePKCS7FromCA
WizardFree
8
  • Perfect :) Tested and works fine on Windows-XP, how about opening the Content Tab's property? i.e Certificate
    – Roy Lee
    Nov 9, 2013 at 4:18
  • 1
    Working on it, it's probably some CLSID somewhere, I just have to hunt it down. Nov 9, 2013 at 4:19
  • 1
    Found it, editing post. Nov 9, 2013 at 4:30
  • It works like charm, thank you so much! :) Okay, I wonder if this works, How about navigating to 'Trusted Root Certification Authorities' tab and locate/highlight a particular certificate, with name is given?
    – Roy Lee
    Nov 9, 2013 at 4:48
  • 1
    @Roylee, I'm sorry, I can't find any documentation on the functions within cryptui.dll, I used dependency walker to grab a list, and I've added that to my answer, but Microsoft doesn't reveal what these functions do, and what parameters they expect. Nov 9, 2013 at 5:11

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .