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

            Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

            Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

            Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript