how to handle space in user name as argument in commandSet a path variable with spaces in the path in a Windows .cmd file or batch filewindows 7, cannot invoke exe from bat file'makecert' is not recognized as an internal or external command in command prompt'make' is not recognized as an internal or external command, operable program or batch file - Windows 7Error while running batch file in windows Task Scheduler as cronjobWindows equivalent of 'touch' (i.e. the node.js way to create an index.html)How can I run “query session” using vb.net?PHP is not recognized as an internal or external command in command prompt'' is not recognized as an internal or external command, operable program or batch filebcdedit file output doesn't work but other commands do

Encounter design and XP thresholds

Do I have to explain the mechanical superiority of the player-character within the fiction of the game?

Methodology: Writing unit tests for another developer

What is the "ls" directory in my home directory?

Is there official documentation on directories like ~/.config and ~/.cache?

What does this Swiss black on yellow rectangular traffic sign with a symbol looking like a dart mean?

Is there a difference between an NFC and RFID chip?

"Correct me if I'm wrong"

What does it cost to buy a tavern?

Drawing a second weapon as part of an attack?

Going back in time in and initial value problem

Am I legally required to provide a (GPL licensed) source code even after a project is abandoned?

Second 100 amp breaker inside existing 200 amp residential panel for new detached garage

What triggered jesuits' ban on infinitesimals in 1632?

What was the first third-party commercial application for MS-DOS?

Rejecting an offer after accepting it just 10 days from date of joining

Can the pre-order traversal of two different trees be the same even though they are different?

Umlaut character order when sorting

What are the current battlegrounds for people’s “rights” in the UK?

Too early in the morning to have SODA?

I found a password with hashcat, but it doesn't work

How do internally carried IR missiles acquire a lock?

"What is the maximum that Player 1 can win?"

Where should a runway for a spaceplane be located?



how to handle space in user name as argument in command


Set a path variable with spaces in the path in a Windows .cmd file or batch filewindows 7, cannot invoke exe from bat file'makecert' is not recognized as an internal or external command in command prompt'make' is not recognized as an internal or external command, operable program or batch file - Windows 7Error while running batch file in windows Task Scheduler as cronjobWindows equivalent of 'touch' (i.e. the node.js way to create an index.html)How can I run “query session” using vb.net?PHP is not recognized as an internal or external command in command prompt'' is not recognized as an internal or external command, operable program or batch filebcdedit file output doesn't work but other commands do






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








-1















I have a command:



C:Userssuperuser> C:Windowssystem32cmd.exe /c "c:whrprManagementdcomperm.exe" 
-al 1FBEBA42-492E-11D4-9FE8-005004130589
set "Anonymous Logon" permit


Running this command, I get this error:




'c:whrprManagementdcomperm.exe" -al 1FBEBA42-492E-11D4-9FE8-005004130589 set "Anonymous' is not recognized as an internal or external command,operable program or batch file.




And when I changed "Anonymous Logon" to Everyone, the command runs successfully.



How do I run this for "Anonymous Logon"?










share|improve this question



















  • 3





    Why are you running cmd.exe rather than just running dcomperm.exe directly?

    – mjwills
    Mar 25 at 7:12











  • actually this command runs automatically while build will be installed on client machine and cmd.exe used to run this command and dcomperm.exe help to set user permission. and this command runs successfully for "Everyone" user. so i need to run this completely at a time throw programming.

    – harish
    Mar 25 at 9:05











  • Your application - is it a Winforms app? Web app?

    – mjwills
    Mar 25 at 11:11











  • Web application

    – harish
    Mar 25 at 11:16

















-1















I have a command:



C:Userssuperuser> C:Windowssystem32cmd.exe /c "c:whrprManagementdcomperm.exe" 
-al 1FBEBA42-492E-11D4-9FE8-005004130589
set "Anonymous Logon" permit


Running this command, I get this error:




'c:whrprManagementdcomperm.exe" -al 1FBEBA42-492E-11D4-9FE8-005004130589 set "Anonymous' is not recognized as an internal or external command,operable program or batch file.




And when I changed "Anonymous Logon" to Everyone, the command runs successfully.



How do I run this for "Anonymous Logon"?










share|improve this question



















  • 3





    Why are you running cmd.exe rather than just running dcomperm.exe directly?

    – mjwills
    Mar 25 at 7:12











  • actually this command runs automatically while build will be installed on client machine and cmd.exe used to run this command and dcomperm.exe help to set user permission. and this command runs successfully for "Everyone" user. so i need to run this completely at a time throw programming.

    – harish
    Mar 25 at 9:05











  • Your application - is it a Winforms app? Web app?

    – mjwills
    Mar 25 at 11:11











  • Web application

    – harish
    Mar 25 at 11:16













-1












-1








-1








I have a command:



C:Userssuperuser> C:Windowssystem32cmd.exe /c "c:whrprManagementdcomperm.exe" 
-al 1FBEBA42-492E-11D4-9FE8-005004130589
set "Anonymous Logon" permit


Running this command, I get this error:




'c:whrprManagementdcomperm.exe" -al 1FBEBA42-492E-11D4-9FE8-005004130589 set "Anonymous' is not recognized as an internal or external command,operable program or batch file.




And when I changed "Anonymous Logon" to Everyone, the command runs successfully.



How do I run this for "Anonymous Logon"?










share|improve this question
















I have a command:



C:Userssuperuser> C:Windowssystem32cmd.exe /c "c:whrprManagementdcomperm.exe" 
-al 1FBEBA42-492E-11D4-9FE8-005004130589
set "Anonymous Logon" permit


Running this command, I get this error:




'c:whrprManagementdcomperm.exe" -al 1FBEBA42-492E-11D4-9FE8-005004130589 set "Anonymous' is not recognized as an internal or external command,operable program or batch file.




And when I changed "Anonymous Logon" to Everyone, the command runs successfully.



How do I run this for "Anonymous Logon"?







cmd






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 25 at 8:52









mjwills

16.4k52744




16.4k52744










asked Mar 25 at 6:50









harishharish

33




33







  • 3





    Why are you running cmd.exe rather than just running dcomperm.exe directly?

    – mjwills
    Mar 25 at 7:12











  • actually this command runs automatically while build will be installed on client machine and cmd.exe used to run this command and dcomperm.exe help to set user permission. and this command runs successfully for "Everyone" user. so i need to run this completely at a time throw programming.

    – harish
    Mar 25 at 9:05











  • Your application - is it a Winforms app? Web app?

    – mjwills
    Mar 25 at 11:11











  • Web application

    – harish
    Mar 25 at 11:16












  • 3





    Why are you running cmd.exe rather than just running dcomperm.exe directly?

    – mjwills
    Mar 25 at 7:12











  • actually this command runs automatically while build will be installed on client machine and cmd.exe used to run this command and dcomperm.exe help to set user permission. and this command runs successfully for "Everyone" user. so i need to run this completely at a time throw programming.

    – harish
    Mar 25 at 9:05











  • Your application - is it a Winforms app? Web app?

    – mjwills
    Mar 25 at 11:11











  • Web application

    – harish
    Mar 25 at 11:16







3




3





Why are you running cmd.exe rather than just running dcomperm.exe directly?

– mjwills
Mar 25 at 7:12





Why are you running cmd.exe rather than just running dcomperm.exe directly?

– mjwills
Mar 25 at 7:12













actually this command runs automatically while build will be installed on client machine and cmd.exe used to run this command and dcomperm.exe help to set user permission. and this command runs successfully for "Everyone" user. so i need to run this completely at a time throw programming.

– harish
Mar 25 at 9:05





actually this command runs automatically while build will be installed on client machine and cmd.exe used to run this command and dcomperm.exe help to set user permission. and this command runs successfully for "Everyone" user. so i need to run this completely at a time throw programming.

– harish
Mar 25 at 9:05













Your application - is it a Winforms app? Web app?

– mjwills
Mar 25 at 11:11





Your application - is it a Winforms app? Web app?

– mjwills
Mar 25 at 11:11













Web application

– harish
Mar 25 at 11:16





Web application

– harish
Mar 25 at 11:16












1 Answer
1






active

oldest

votes


















-1














The solution is to run dcomperm.exe directly, not via cmd.exe.



"c:whrprManagementdcomperm.exe" -al 1FBEBA42-492E-11D4-9FE8-005004130589 set "Anonymous Logon" permit





share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55332530%2fhow-to-handle-space-in-user-name-as-argument-in-command%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    -1














    The solution is to run dcomperm.exe directly, not via cmd.exe.



    "c:whrprManagementdcomperm.exe" -al 1FBEBA42-492E-11D4-9FE8-005004130589 set "Anonymous Logon" permit





    share|improve this answer



























      -1














      The solution is to run dcomperm.exe directly, not via cmd.exe.



      "c:whrprManagementdcomperm.exe" -al 1FBEBA42-492E-11D4-9FE8-005004130589 set "Anonymous Logon" permit





      share|improve this answer

























        -1












        -1








        -1







        The solution is to run dcomperm.exe directly, not via cmd.exe.



        "c:whrprManagementdcomperm.exe" -al 1FBEBA42-492E-11D4-9FE8-005004130589 set "Anonymous Logon" permit





        share|improve this answer













        The solution is to run dcomperm.exe directly, not via cmd.exe.



        "c:whrprManagementdcomperm.exe" -al 1FBEBA42-492E-11D4-9FE8-005004130589 set "Anonymous Logon" permit






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 25 at 12:30









        mjwillsmjwills

        16.4k52744




        16.4k52744





























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid …


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55332530%2fhow-to-handle-space-in-user-name-as-argument-in-command%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            How to preserve electronics (computers, tablets and phones) for hundreds of years Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) The network's official Twitter account is up and running again. What content…How might modern humans leave a message for 50,000 years?How would an aquatic race develop computers?How do we make computers care for human life?Keeping supplies for 1000 yearsWhat will cell phones become in 100 years?What body armor protects against a laser?Could a society attain 1800s technology if limited to using copper and bronze?Electricity power (magic) and electronicsScavenging metal resources in post-apocalypse after 100 yearsWhy would precursors create devices that can survive and still work after hundreds of years?

            155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해

            Convert JSON to MapSimplest way to convert a string representing JSON array into Java array List of key value pairsHow to take String JSON values into HashMapConvert a JSON String to a HashMapCreating BSON object from JSON stringJSONObject - How to get a value ?Better Map ConstructorReading JSON from Url javaUpdate columns if input values are not null otherwise ignore and keep the existing values of column in databaseHow to store object represented as Json string into Couchbase Lite?Go JSON into MapHow do I efficiently iterate over each entry in a Java Map?Sort a Map<Key, Value> by valuesHow to round a number to n decimal places in JavaCan comments be used in JSON?How do I read / convert an InputStream into a String in Java?How can I pretty-print JSON in a shell script?What is the correct JSON content type?How can I deserialize JSON to a simple Dictionary<string,string> in ASP.NET?Why does Google prepend while(1); to their JSON responses?Parse JSON in JavaScript?