How to stop certreq from prompting a dialog box to press OK or CANCEL?

I have an issue guys and I hope someone has a simple answer.
After all of my destruction of installing, configuring and deploying PKI. I have finally narrowed it down to one issue I’m having.
When I run the following command line, CertReq -new -f %certpath%\%input%.inf %certpath%\%input%.req . A popup box with the option to press OK or Cancel. If I press OK, my *.req file is created. If I try to use the -q, I receive an
error:
ConfigMgrWorkgroupClientCertificate
: The system cannot find the file specified. 0x80070002 (WIN32: 2)
The –q is shown on technet
http://technet.microsoft.com/library/cc725793.aspx
I also use CERTREQ in this command and I receive the same response. press OK or Cancel.
certreq -submit -f -Username abc\testuser1 -p P@ssw0rd -PolicyServer "https://lnyceppkis01.abc.com/KeyBasedRenewal_ADPolicyProvider_CEP_UsernamePassword/service.svc/CEP" -config "https://lnycespkis01.abc.com/IssuingCA-LNYSUBCAPKIS01_CES_UsernamePassword/service.svc/CES"
-attrib "ConfigMgrWorkgroupClientCertificate" %certpath%\%input%.req %certpath%\%input%.cer
Rem
Change
ConfigurationManagerClientTemplate below to the name of the
Certificate
Template you create HERE.
Remember
use the
Cert
Name NOT the
Display
Name
echo
;-----ConfigMgrWorkgroupClientCertificate.inf----->
"%certpath%\%input%.inf"
echo
[NewRequest]                                    
>>
"%certpath%\%input%.inf"
echo
Subject="cn=%input%"                            
>>
"%certpath%\%input%.inf"
echo
KeyLength=2048                                  
>>
"%certpath%\%input%.inf"
echo
Exportable=TRUE                                 
>>
"%certpath%\%input%.inf"
echo
MachineKeySet=TRUE                              
>>
"%certpath%\%input%.inf"
echo
KeySpec=1
;key exchange                         
>>
"%certpath%\%input%.inf"
echo
KeyUsage=0xA0                                   
>>
"%certpath%\%input%.inf"
echo
[RequestAttributes]                             
>>
"%certpath%\%input%.inf"
echo
CertificateTemplate=ConfigMgrWorkgroupClientCertificate
>>
"%certpath%\%input%.inf"
Rem
Create the a binary request file
from the INF
echo
Generating certificate
request for server
%input%
CertReq
-new
-f
%certpath%\%input%.inf
%certpath%\%input%.req

You are correct that -q will suppress user input, but the syntax is important. You don't say WHERE in the command you are using the -q. It must be after the first verb (submit, new, policy, etc..). But I tried your default line (witout the -q) and I do not
get a prompt. Can you be more descriptive of what the box is asking when you say OK and Cancel? What is it indicating?
The correct syntax for using the -q option is:
CertReq
-new -q -f %certpath%\%input%.inf %certpath%\%input%.req
Mark B. Cooper, President and Founder of PKI Solutions Inc., former Microsoft Senior Engineer and subject matter expert for Microsoft Active Directory Certificate Services (ADCS). Known as “The PKI Guy” at Microsoft for 10 years.

Similar Messages

  • How to stop "Create New CSS Rule" dialog box

    Made the mistake of allowing an Apple tech talk me into an OS X "Install in place". He assured me that all application settings would remain the same as before.
    Now, when holding down the "shift" key and typing a word in all caps (in Design View), the "Create new CSS Rule" dialog box pops up and writes:
    <span style="font-size: 14px; margin-center: 1px; text-align: left; font-weight: bold; margin-bottom: 6px; padding-bottom: 0px; line-height: 1.3em; margin-top: 3px; font-family: Arial, Helvetica, sans-serif;"><font color="#006666">TEXT</font>
    I am trying to find the setting in preferences to disable this, and since the behavior started after OS X "install in place", something must have changed. I just want to type in design view and not have to deal with Dreamweaver overriding what I'm doing.

    I am attempting to type some text in "design", not "code" view. I want the text to be caps. I hold down the shift key, type the first letter, and immediately the "New CSS Rule" dialog box pops up. I cancel, but the code...
    <span style="font-size: 14px; margin-center: 1px; text-align: left; font-weight: bold; margin-bottom: 6px; padding-bottom: 0px; line-height: 1.3em; margin-top: 3px; font-family: Arial, Helvetica, sans-serif;"><font color="#006666">TEXT</font>
    ...is created anyway.I just want to type a word into an existing div with no changes or dialog boxes or any input from Dreamweaver. I was able to do that before, and cannot do it now. There must be some setting that I am missing in preferences.

  • How to stop iphone from autoplay when plug into car audio system usb?

    how to stop iphone from autoplaying when connected to your car audio USB ?

    You need to remove the association that Windows has with that particular file type. To do that, you need to open Windows Explorer. From there, click on Tools, then Folder options. Click on the tab that is named file types. You then need to find the extension for the photos that appear in the iPhone, then click that registered file type. Once you do that, there is a section to select the program to open that file type with. You can click on the change button, and that will allow you to change the program that it opens with, or restore the default. There is also a box that can be checked to always use the selected program. If you unselect it, it will prompt you next time on what program to use.
    Hope this helps.

  • I have itunes set up to sync with my Ipod Touch and my Ipad.  As of today, it keeps looking for an iPhone to sync with and give me an error message.  I don't have an iPhone and don't know how to stop it from popping open with this error message.

    I have Itunes set up to sync with my Ipod touch and Ipad.  As of today, iTunes has started searching to sync with an iPhone, which I don't have and pops open with an error message stating it cannot locate the iPhone to sync.  I have looked in devices and only the iPad and iPod Touch are listed.  Any ideas on how to stop iTunes from searching for any iPhone it is never going to find? It is annoying to have it popping up all the time with the error message.  Thanks in advance for any suggestions.

    You should really read the manual.
    "How do you restore from backup? "
    Restore.  When given the choice, choose to use backup.
    "And how can I check to see if the pics and videos are on my computer somewhere first??"
    They would only be where you put them.  What program did you use to import them?  Pics/vids taken with ipod are not part of the sync process at all.  You should be importing them just as you would with any digital camera.
    If you did not import them, then they are not on your computer.

  • How to stop Firefox from checking for add-on compatibility every time it opens?

    How to stop Firefox from checking for add-on compatibility every time it opens?

    That can be a problem with the compatibility.ini file in the Firefox profile folder.
    Try to rename (or delete) the compatibility.ini file in the Firefox profile folder to see if that helps.
    You can use this button to go to the currently used Firefox profile folder:
    *Help > Troubleshooting Information > Profile Directory: Show Folder (Linux: Open Directory; Mac: Show in Finder)
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    You can also check for problems with preferences.
    Delete possible user.js and numbered prefs-##.js files and rename (or delete) the prefs.js file to reset all prefs to the default value including prefs set via user.js and prefs that are no longer supported in the current Firefox release.
    *http://kb.mozillazine.org/Preferences_not_saved
    *http://kb.mozillazine.org/Resetting_preferences

  • Stop Crystal from Prompting for Parameters

    Hi there,
    I am trying to stop Crystal from prompting for a parameter that has the Optional Prompt flag set to True as I want to use the HasNoValue attribute to retrieve all records when there is not a specific value sent to the parameter.
    When the parameter is created from a store procedure, I can simply set the value to nothing and handle the resulting NULL in the procedure.
    I was expecting that I could do the same for the regular parameters but this returns a "parameter field and parameter field current values are not compatible" error.
    I have tried setting the HasCurrentValue to True but this is a read only attribute.
    I have also tried setting the Viewer.ReuseParameterValuesOnRefresh to False (and True) but the report still prompts for the parameter.
    I have searched the web for the last two days and have had no joy on this so any help or pointers would be appreciated.
    Thanking you in advance

    Hi Don,
    I am using Crystal 2008 for both the report and the assemblies.
    Using the word All is not really an option as I need to process all types of parameters i.e. Boolean, integers and dates as well as strings.
    I could create some complex formulas to handle this but I need the report creation to be simple as possible as possible so that the customer can create reports at will.
    Using the Optional Prompt feature now available in 2008 I can create a simple record selection formula that looks like something like this :-
    (not HasValue({?MyParameter}) OR {Table1.Field1} = {?MyParameter})
    My problem is getting the parameter to register through my code that it has been set to HasValue = False so that the user is not prompted by the viewer to enter the parameter again.

  • How to stop modal blocking in adf dialogs?

    How to stop modal blocking in adf dialogs?
    blocking="false" has no effect.
    <af:commandLink id="showRequestDetail"
    action="dialog:guide.sa_requestDetail" partialSubmit="true"
    actionListener="#{shareAccessRequestDetail.load}"
    useWindow="true" blocking="false" immediate="true">

    Scratch that...useWindow was there -- it just wasn't popping a window when a non-dialog action was specified.
    <af:commandLink action="userDetail" partialSubmit="true"
    windowHeight="600" windowWidth="500" actionListener="#{userDetail.load}"
    useWindow="true">
    <af:outputText value="#{row.Efirstname}"/>
    </af:commandLink>
    The above code does not pop a new window despite the fact that useWindow is true.

  • I find very annoying that, although the cursor is flashing in the serch box, unless that box has been clicked in to enable it, typing goes to the nearest topic in the bookmark list. how to stop it from happening?

    i use Google home page as my firefox home page. often i find that although the cursor is flashing in the serch box, unless that box has been clicked in to enable it, typing goes to the nearest topic in the bookmark list instead of accepting the typing. how to stop it from happening? why not stop the cursor from appearing in the search box unless you have clicked in it?

    Do you organise your email into separate folders, or do you just let it accumulate in the Inbox?
    I would strongly advise you not to let it sit in the Inbox.
    When you see this happening, try right-click on the affected folder, select '''Properties''' then '''Repair Folder'''.
    Large folders (actually, a folder in Thunderbird is stored as a file, so it is sensitive to file size limits set by the underlying file system) can be problematic. This is one reason not to let messages collect in one folder. I use Thunderbird's Archive folders so that accumulated mails over several years can happily coexist because they are effectively stored in many small folders. No single mail store folder then exceeds the 2GB or 4GB sizes that have been known to stress the OS. I appreciate that current builds of Thunderbird and a modern 64-bit OS should be able to cope, but practically I find it slows down when given huge files, so I err towards a pragmatic solution; a large number of not very big files.
    Archives are searchable, and a Saved Search folder can give you a virtual composite folder allowing access to the entire Archive.

  • How to stop mail from recovering a too large message

    how to stop mail from recovering a too large message

    You can't stop Mail from storing sent messages locally. If they're synchronized with the IMAP server, they'll still be present locally. The only way to get the effect you seem to want is to use webmail.

  • How to stop mail from recovering the same message over and over again to the extent that it has wiped out all start up disk memory?

    How to stop mail from recovering the same message over and over again to the extent that it has wiped out all start up disk memory?

    You need to find and delete (move to the Trash) the offline mail cache (.offline cache.) It's a hidden folder (files and folders with a preceding dot are hidden) inside the Mail folder (inside IMAP) in your user library. Since it's hidden, in order to see it run the following command in Terminal in Applications>Utilities. Hit return/enter once you have pasted in the command.
    defaults write com.apple.finder AppleShowAllFiles -bool true ; killall Finder
    To reverse this and hide all those hidden files and folders again
    defaults write com.apple.finder AppleShowAllFiles -bool false ; killall Finder
    Leave hidden files/folders enabled until you finish emptying the Trash so you know it's gone.

  • How to stop Mail from selecting addresses from the list of Previous Recipients?

    How to stop Mail from selecting addresses from the list of Previous Recipients?

    This is a related question.
    I deleted ALL my previous recipients and when I create a new e-mail it STILL is getting addresses that I don't want - they pop up and I don't know how to stop this!
    I switched from one ISP to another - I deleted the old e-mail account in MAIL - I DID use the same name on the account - is that why it keeps bringing up the old address? 
    ARGH!

  • How to stop iPhoto from opening each time I add a photo using Yosemite

    How to stop iPhoto from opening each time I add a photo using Yosemite

    Add image to iPhoto Library
    From where.  I don't think you can keep it mininmized when importing because if it runs into a duplicate it will present a warning window for you to make a decision in. Therefore, it will always be open when importing.
    You can send a feature request to Apple via http://www.apple.com/feedback/iphoto.html.

  • How can i call the certificate selection dialog box from source code?

    How can i call the certificate selection dialog box from source code?
    NB: Of course if i have more than one certificate in the Microsoft Keystore 'My'.
    Thank You in advance

    I found an example of the "TestStand UI Expression Control.ctl" and it works just the way I need it. (check the link)
    Proper use of "TestStand UI ExpressionEdit Control" in LabVIEW http://forums.ni.com/ni/board/message?board.id=330&requireLogin=False&thread.id=10609 
    The "Expression Browser Dialog Box Button" F(x) stays disable while editing the VI, however it become available when the VI is called from TestStand.
    Thank you,
    Hecuba
    Mfg. Test Engineer
    Certified LabVIEW Associate Developer

  • HT3702 Can anyone tell me how to stop zoosk from taking money out of my account

    Can anyone tell me how to stop zoosk from taking money out of my account I want to close the account they told me I have to close it through iTunes I do not have a PC to go online with just my iPhone please help I need to stop this money from coming out of my account I cannot afford it

    If this is a subscription, see:
    http://support.apple.com/kb/HT4098
    Regards.

  • How to stop iphone from completing text before i finish typing

    how to stop iphone from completing text before i finish typing?

    I'm not sure what you are asking here. Can you describe your problem in a little more detail?

Maybe you are looking for