Remote shutdown without disabling UAC using C#
Question 1.
How do i shutdown the computers in my network without disabling UAC for target computer using Windows 7?
Assumption 1
I disable User Access Control through LocalAccountTokenFilterPolicy
registry entry.
I feel it opens up the computer to security risks.
I am using shutdown.exe
by invoking a cmd.exe
process and passing it the IP-address of the target machine.
Assumption 2
I cannot use WMI as it seems more of a security risk than disabling UAC.
c# uac shutdown regedit
add a comment |
Question 1.
How do i shutdown the computers in my network without disabling UAC for target computer using Windows 7?
Assumption 1
I disable User Access Control through LocalAccountTokenFilterPolicy
registry entry.
I feel it opens up the computer to security risks.
I am using shutdown.exe
by invoking a cmd.exe
process and passing it the IP-address of the target machine.
Assumption 2
I cannot use WMI as it seems more of a security risk than disabling UAC.
c# uac shutdown regedit
1
Unfortunately, even though you have mentioned that you are using C#, this feels more like a network administration question than a C# code question, and this site is probably not the best fit for that kind of question. You might have better luck at serverfault
– Claies
Nov 12 at 4:17
I don't see how this question has anything to do with C# or programming.
– Ken White
Nov 12 at 4:28
I have edited your question to show you the concerns there-in, However, as you can see it has little to do with C#, and is a little.. well.. disjointed. You need to be more specific.
– TheGeneral
Nov 12 at 5:20
there is InitiateSystemShutdown function in WinAPI. Anyway, why do you think that using WMI is seems more of a security risk than disabling UAC
– vasily.sib
Nov 12 at 6:23
add a comment |
Question 1.
How do i shutdown the computers in my network without disabling UAC for target computer using Windows 7?
Assumption 1
I disable User Access Control through LocalAccountTokenFilterPolicy
registry entry.
I feel it opens up the computer to security risks.
I am using shutdown.exe
by invoking a cmd.exe
process and passing it the IP-address of the target machine.
Assumption 2
I cannot use WMI as it seems more of a security risk than disabling UAC.
c# uac shutdown regedit
Question 1.
How do i shutdown the computers in my network without disabling UAC for target computer using Windows 7?
Assumption 1
I disable User Access Control through LocalAccountTokenFilterPolicy
registry entry.
I feel it opens up the computer to security risks.
I am using shutdown.exe
by invoking a cmd.exe
process and passing it the IP-address of the target machine.
Assumption 2
I cannot use WMI as it seems more of a security risk than disabling UAC.
c# uac shutdown regedit
c# uac shutdown regedit
edited Nov 12 at 5:19
TheGeneral
26.8k63163
26.8k63163
asked Nov 12 at 4:15
Sameer
62
62
1
Unfortunately, even though you have mentioned that you are using C#, this feels more like a network administration question than a C# code question, and this site is probably not the best fit for that kind of question. You might have better luck at serverfault
– Claies
Nov 12 at 4:17
I don't see how this question has anything to do with C# or programming.
– Ken White
Nov 12 at 4:28
I have edited your question to show you the concerns there-in, However, as you can see it has little to do with C#, and is a little.. well.. disjointed. You need to be more specific.
– TheGeneral
Nov 12 at 5:20
there is InitiateSystemShutdown function in WinAPI. Anyway, why do you think that using WMI is seems more of a security risk than disabling UAC
– vasily.sib
Nov 12 at 6:23
add a comment |
1
Unfortunately, even though you have mentioned that you are using C#, this feels more like a network administration question than a C# code question, and this site is probably not the best fit for that kind of question. You might have better luck at serverfault
– Claies
Nov 12 at 4:17
I don't see how this question has anything to do with C# or programming.
– Ken White
Nov 12 at 4:28
I have edited your question to show you the concerns there-in, However, as you can see it has little to do with C#, and is a little.. well.. disjointed. You need to be more specific.
– TheGeneral
Nov 12 at 5:20
there is InitiateSystemShutdown function in WinAPI. Anyway, why do you think that using WMI is seems more of a security risk than disabling UAC
– vasily.sib
Nov 12 at 6:23
1
1
Unfortunately, even though you have mentioned that you are using C#, this feels more like a network administration question than a C# code question, and this site is probably not the best fit for that kind of question. You might have better luck at serverfault
– Claies
Nov 12 at 4:17
Unfortunately, even though you have mentioned that you are using C#, this feels more like a network administration question than a C# code question, and this site is probably not the best fit for that kind of question. You might have better luck at serverfault
– Claies
Nov 12 at 4:17
I don't see how this question has anything to do with C# or programming.
– Ken White
Nov 12 at 4:28
I don't see how this question has anything to do with C# or programming.
– Ken White
Nov 12 at 4:28
I have edited your question to show you the concerns there-in, However, as you can see it has little to do with C#, and is a little.. well.. disjointed. You need to be more specific.
– TheGeneral
Nov 12 at 5:20
I have edited your question to show you the concerns there-in, However, as you can see it has little to do with C#, and is a little.. well.. disjointed. You need to be more specific.
– TheGeneral
Nov 12 at 5:20
there is InitiateSystemShutdown function in WinAPI. Anyway, why do you think that using WMI is seems more of a security risk than disabling UAC
– vasily.sib
Nov 12 at 6:23
there is InitiateSystemShutdown function in WinAPI. Anyway, why do you think that using WMI is seems more of a security risk than disabling UAC
– vasily.sib
Nov 12 at 6:23
add a comment |
active
oldest
votes
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%2f53255890%2fremote-shutdown-without-disabling-uac-using-c-sharp%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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.
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%2fstackoverflow.com%2fquestions%2f53255890%2fremote-shutdown-without-disabling-uac-using-c-sharp%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
1
Unfortunately, even though you have mentioned that you are using C#, this feels more like a network administration question than a C# code question, and this site is probably not the best fit for that kind of question. You might have better luck at serverfault
– Claies
Nov 12 at 4:17
I don't see how this question has anything to do with C# or programming.
– Ken White
Nov 12 at 4:28
I have edited your question to show you the concerns there-in, However, as you can see it has little to do with C#, and is a little.. well.. disjointed. You need to be more specific.
– TheGeneral
Nov 12 at 5:20
there is InitiateSystemShutdown function in WinAPI. Anyway, why do you think that using WMI is seems more of a security risk than disabling UAC
– vasily.sib
Nov 12 at 6:23