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;
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
add a comment |
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
3
Why are you runningcmd.exe
rather than just runningdcomperm.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
add a comment |
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
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
cmd
edited Mar 25 at 8:52
mjwills
16.4k52744
16.4k52744
asked Mar 25 at 6:50
harishharish
33
33
3
Why are you runningcmd.exe
rather than just runningdcomperm.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
add a comment |
3
Why are you runningcmd.exe
rather than just runningdcomperm.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
add a comment |
1 Answer
1
active
oldest
votes
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
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
add a comment |
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
add a comment |
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
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
answered Mar 25 at 12:30
mjwillsmjwills
16.4k52744
16.4k52744
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
3
Why are you running
cmd.exe
rather than just runningdcomperm.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