query session command gives error code 5 even when AllowRemoteRPC is set to 1
in cmd, 'Query Session' command is returning,
Error 5 getting sessionnames
Error [5]:Access is denied
on Windows 10 Remote desktop - Administrator user.
we have set, AllowRemoteRPC 's value to 1
under this HKLMSYSTEMCurrentControlSetControlTerminal Server
But still problem persists.
Questions:
- what does
AllowRemoteRPCactually do and how it's value is being used. - what to do to make Query Session command work.
windows-10 permissions remote-desktop winapi
New contributor
Amit is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
This question has an open bounty worth +50
reputation from Amit ending in 5 days.
This question has not received enough attention.
Query Session command is giving me error 5 in particular machines (of user), How to solve it. I would like to reproduce it in my machine as well with step to solve it.
|
show 6 more comments
in cmd, 'Query Session' command is returning,
Error 5 getting sessionnames
Error [5]:Access is denied
on Windows 10 Remote desktop - Administrator user.
we have set, AllowRemoteRPC 's value to 1
under this HKLMSYSTEMCurrentControlSetControlTerminal Server
But still problem persists.
Questions:
- what does
AllowRemoteRPCactually do and how it's value is being used. - what to do to make Query Session command work.
windows-10 permissions remote-desktop winapi
New contributor
Amit is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
This question has an open bounty worth +50
reputation from Amit ending in 5 days.
This question has not received enough attention.
Query Session command is giving me error 5 in particular machines (of user), How to solve it. I would like to reproduce it in my machine as well with step to solve it.
What exactly are you doing? Did you change AllowRemoteRPC to "1" on the receiving computer? Try also in Credential Manager to add the account for the receiving computer. Another try is to disable UAC.
– harrymc
Jan 2 at 9:28
@harrymc I am logging into the RDP, and in CMD I am typing command 'Query Session'. I did change 'AllowRemoteRPC' on that RDP. can you tell me how to disable UAC?
– Amit
Jan 2 at 9:31
Another thing to try is connecting to a share first to establish credentials, or creating a same-named consistent user on both machines.
– harrymc
Jan 2 at 9:32
@harrymc I'm sorry, but I didn't get your suggestions. Basically i want a CMD command 'Query Session' to successfully provide me sessions information. but it is giving me error 5. To solve that I tried to set 'AllowRemoteRPC' with 1. But that didn't help Either.
– Amit
Jan 2 at 15:54
Amit - So your command is exactlyQuery Sessionand you also tried running elevated as admin too, right? Do you know if the account which is having this problem is a local admin on the Win 10 machine? You are doing this from the remote console right on the machine and not via a remote command or remotely via RDP/terminal services? Just want to be sure everything is as clear as can be with your environment, command, etc.
– Pimp Juice IT
2 days ago
|
show 6 more comments
in cmd, 'Query Session' command is returning,
Error 5 getting sessionnames
Error [5]:Access is denied
on Windows 10 Remote desktop - Administrator user.
we have set, AllowRemoteRPC 's value to 1
under this HKLMSYSTEMCurrentControlSetControlTerminal Server
But still problem persists.
Questions:
- what does
AllowRemoteRPCactually do and how it's value is being used. - what to do to make Query Session command work.
windows-10 permissions remote-desktop winapi
New contributor
Amit is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
in cmd, 'Query Session' command is returning,
Error 5 getting sessionnames
Error [5]:Access is denied
on Windows 10 Remote desktop - Administrator user.
we have set, AllowRemoteRPC 's value to 1
under this HKLMSYSTEMCurrentControlSetControlTerminal Server
But still problem persists.
Questions:
- what does
AllowRemoteRPCactually do and how it's value is being used. - what to do to make Query Session command work.
windows-10 permissions remote-desktop winapi
windows-10 permissions remote-desktop winapi
New contributor
Amit is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Amit is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Amit is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked Jan 2 at 9:03
Amit
663
663
New contributor
Amit is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Amit is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Amit is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
This question has an open bounty worth +50
reputation from Amit ending in 5 days.
This question has not received enough attention.
Query Session command is giving me error 5 in particular machines (of user), How to solve it. I would like to reproduce it in my machine as well with step to solve it.
This question has an open bounty worth +50
reputation from Amit ending in 5 days.
This question has not received enough attention.
Query Session command is giving me error 5 in particular machines (of user), How to solve it. I would like to reproduce it in my machine as well with step to solve it.
What exactly are you doing? Did you change AllowRemoteRPC to "1" on the receiving computer? Try also in Credential Manager to add the account for the receiving computer. Another try is to disable UAC.
– harrymc
Jan 2 at 9:28
@harrymc I am logging into the RDP, and in CMD I am typing command 'Query Session'. I did change 'AllowRemoteRPC' on that RDP. can you tell me how to disable UAC?
– Amit
Jan 2 at 9:31
Another thing to try is connecting to a share first to establish credentials, or creating a same-named consistent user on both machines.
– harrymc
Jan 2 at 9:32
@harrymc I'm sorry, but I didn't get your suggestions. Basically i want a CMD command 'Query Session' to successfully provide me sessions information. but it is giving me error 5. To solve that I tried to set 'AllowRemoteRPC' with 1. But that didn't help Either.
– Amit
Jan 2 at 15:54
Amit - So your command is exactlyQuery Sessionand you also tried running elevated as admin too, right? Do you know if the account which is having this problem is a local admin on the Win 10 machine? You are doing this from the remote console right on the machine and not via a remote command or remotely via RDP/terminal services? Just want to be sure everything is as clear as can be with your environment, command, etc.
– Pimp Juice IT
2 days ago
|
show 6 more comments
What exactly are you doing? Did you change AllowRemoteRPC to "1" on the receiving computer? Try also in Credential Manager to add the account for the receiving computer. Another try is to disable UAC.
– harrymc
Jan 2 at 9:28
@harrymc I am logging into the RDP, and in CMD I am typing command 'Query Session'. I did change 'AllowRemoteRPC' on that RDP. can you tell me how to disable UAC?
– Amit
Jan 2 at 9:31
Another thing to try is connecting to a share first to establish credentials, or creating a same-named consistent user on both machines.
– harrymc
Jan 2 at 9:32
@harrymc I'm sorry, but I didn't get your suggestions. Basically i want a CMD command 'Query Session' to successfully provide me sessions information. but it is giving me error 5. To solve that I tried to set 'AllowRemoteRPC' with 1. But that didn't help Either.
– Amit
Jan 2 at 15:54
Amit - So your command is exactlyQuery Sessionand you also tried running elevated as admin too, right? Do you know if the account which is having this problem is a local admin on the Win 10 machine? You are doing this from the remote console right on the machine and not via a remote command or remotely via RDP/terminal services? Just want to be sure everything is as clear as can be with your environment, command, etc.
– Pimp Juice IT
2 days ago
What exactly are you doing? Did you change AllowRemoteRPC to "1" on the receiving computer? Try also in Credential Manager to add the account for the receiving computer. Another try is to disable UAC.
– harrymc
Jan 2 at 9:28
What exactly are you doing? Did you change AllowRemoteRPC to "1" on the receiving computer? Try also in Credential Manager to add the account for the receiving computer. Another try is to disable UAC.
– harrymc
Jan 2 at 9:28
@harrymc I am logging into the RDP, and in CMD I am typing command 'Query Session'. I did change 'AllowRemoteRPC' on that RDP. can you tell me how to disable UAC?
– Amit
Jan 2 at 9:31
@harrymc I am logging into the RDP, and in CMD I am typing command 'Query Session'. I did change 'AllowRemoteRPC' on that RDP. can you tell me how to disable UAC?
– Amit
Jan 2 at 9:31
Another thing to try is connecting to a share first to establish credentials, or creating a same-named consistent user on both machines.
– harrymc
Jan 2 at 9:32
Another thing to try is connecting to a share first to establish credentials, or creating a same-named consistent user on both machines.
– harrymc
Jan 2 at 9:32
@harrymc I'm sorry, but I didn't get your suggestions. Basically i want a CMD command 'Query Session' to successfully provide me sessions information. but it is giving me error 5. To solve that I tried to set 'AllowRemoteRPC' with 1. But that didn't help Either.
– Amit
Jan 2 at 15:54
@harrymc I'm sorry, but I didn't get your suggestions. Basically i want a CMD command 'Query Session' to successfully provide me sessions information. but it is giving me error 5. To solve that I tried to set 'AllowRemoteRPC' with 1. But that didn't help Either.
– Amit
Jan 2 at 15:54
Amit - So your command is exactly
Query Session and you also tried running elevated as admin too, right? Do you know if the account which is having this problem is a local admin on the Win 10 machine? You are doing this from the remote console right on the machine and not via a remote command or remotely via RDP/terminal services? Just want to be sure everything is as clear as can be with your environment, command, etc.– Pimp Juice IT
2 days ago
Amit - So your command is exactly
Query Session and you also tried running elevated as admin too, right? Do you know if the account which is having this problem is a local admin on the Win 10 machine? You are doing this from the remote console right on the machine and not via a remote command or remotely via RDP/terminal services? Just want to be sure everything is as clear as can be with your environment, command, etc.– Pimp Juice IT
2 days ago
|
show 6 more comments
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
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
});
}
});
Amit is a new contributor. Be nice, and check out our Code of Conduct.
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%2fsuperuser.com%2fquestions%2f1389713%2fquery-session-command-gives-error-code-5-even-when-allowremoterpc-is-set-to-1%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Amit is a new contributor. Be nice, and check out our Code of Conduct.
Amit is a new contributor. Be nice, and check out our Code of Conduct.
Amit is a new contributor. Be nice, and check out our Code of Conduct.
Amit is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Super User!
- 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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2fsuperuser.com%2fquestions%2f1389713%2fquery-session-command-gives-error-code-5-even-when-allowremoterpc-is-set-to-1%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
What exactly are you doing? Did you change AllowRemoteRPC to "1" on the receiving computer? Try also in Credential Manager to add the account for the receiving computer. Another try is to disable UAC.
– harrymc
Jan 2 at 9:28
@harrymc I am logging into the RDP, and in CMD I am typing command 'Query Session'. I did change 'AllowRemoteRPC' on that RDP. can you tell me how to disable UAC?
– Amit
Jan 2 at 9:31
Another thing to try is connecting to a share first to establish credentials, or creating a same-named consistent user on both machines.
– harrymc
Jan 2 at 9:32
@harrymc I'm sorry, but I didn't get your suggestions. Basically i want a CMD command 'Query Session' to successfully provide me sessions information. but it is giving me error 5. To solve that I tried to set 'AllowRemoteRPC' with 1. But that didn't help Either.
– Amit
Jan 2 at 15:54
Amit - So your command is exactly
Query Sessionand you also tried running elevated as admin too, right? Do you know if the account which is having this problem is a local admin on the Win 10 machine? You are doing this from the remote console right on the machine and not via a remote command or remotely via RDP/terminal services? Just want to be sure everything is as clear as can be with your environment, command, etc.– Pimp Juice IT
2 days ago