windows local system account whoami shows a different result than %username%












0















I'm learning about the "local system" account (aka "system" or SID "S-1-5-18") in Windows. This server fault answer is very helpful, but one thing I still don't understand is why the value returned by the whoami command is different from the %username% environment variable.



enter image description here



The latter is the name of my computer followed by a dollar sign "$".










share|improve this question























  • Please edit the question with these answers : Which specific version of Windows is this (Windows 10v1809 for instance) ? Are you starting cmd in a non-standard way, for instance, choosing "Run as Administrator" ?

    – Christopher Hostage
    Feb 1 at 19:04











  • Windows 7 Pro SP1, just start > run > cmd.

    – rory.ap
    Feb 2 at 15:20
















0















I'm learning about the "local system" account (aka "system" or SID "S-1-5-18") in Windows. This server fault answer is very helpful, but one thing I still don't understand is why the value returned by the whoami command is different from the %username% environment variable.



enter image description here



The latter is the name of my computer followed by a dollar sign "$".










share|improve this question























  • Please edit the question with these answers : Which specific version of Windows is this (Windows 10v1809 for instance) ? Are you starting cmd in a non-standard way, for instance, choosing "Run as Administrator" ?

    – Christopher Hostage
    Feb 1 at 19:04











  • Windows 7 Pro SP1, just start > run > cmd.

    – rory.ap
    Feb 2 at 15:20














0












0








0








I'm learning about the "local system" account (aka "system" or SID "S-1-5-18") in Windows. This server fault answer is very helpful, but one thing I still don't understand is why the value returned by the whoami command is different from the %username% environment variable.



enter image description here



The latter is the name of my computer followed by a dollar sign "$".










share|improve this question














I'm learning about the "local system" account (aka "system" or SID "S-1-5-18") in Windows. This server fault answer is very helpful, but one thing I still don't understand is why the value returned by the whoami command is different from the %username% environment variable.



enter image description here



The latter is the name of my computer followed by a dollar sign "$".







windows user-accounts username






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 1 at 16:51









rory.aprory.ap

2291516




2291516













  • Please edit the question with these answers : Which specific version of Windows is this (Windows 10v1809 for instance) ? Are you starting cmd in a non-standard way, for instance, choosing "Run as Administrator" ?

    – Christopher Hostage
    Feb 1 at 19:04











  • Windows 7 Pro SP1, just start > run > cmd.

    – rory.ap
    Feb 2 at 15:20



















  • Please edit the question with these answers : Which specific version of Windows is this (Windows 10v1809 for instance) ? Are you starting cmd in a non-standard way, for instance, choosing "Run as Administrator" ?

    – Christopher Hostage
    Feb 1 at 19:04











  • Windows 7 Pro SP1, just start > run > cmd.

    – rory.ap
    Feb 2 at 15:20

















Please edit the question with these answers : Which specific version of Windows is this (Windows 10v1809 for instance) ? Are you starting cmd in a non-standard way, for instance, choosing "Run as Administrator" ?

– Christopher Hostage
Feb 1 at 19:04





Please edit the question with these answers : Which specific version of Windows is this (Windows 10v1809 for instance) ? Are you starting cmd in a non-standard way, for instance, choosing "Run as Administrator" ?

– Christopher Hostage
Feb 1 at 19:04













Windows 7 Pro SP1, just start > run > cmd.

– rory.ap
Feb 2 at 15:20





Windows 7 Pro SP1, just start > run > cmd.

– rory.ap
Feb 2 at 15:20










1 Answer
1






active

oldest

votes


















0














Basically System is a special User, it effectively is your computers internal user so it kinda makes sense to use the hostname as name.



Take a look in Task Manager, go to the Details tabs and click PID ("Process ID") to sort the processes. The lowest few PIDs and the only process without a PID are all owned by SYSTEM and start at the earliest stages of the boot process. The Processes are run under the user "SYSTEM" and several are instances of ntoskrnl.exe - the Windows NT Kernel itself.



This Windows startup process article describes the general boot process and identifies the main components all of which are run as System.



Also worth mentioning the System user has special permissions so avoid modifying it or using it for none system tasks.






share|improve this answer
























  • This doesn’t explain the reason whoami behaves the way it does. It explains what the system user is, but that isn’t, what he author asked about

    – Ramhound
    Feb 1 at 18:59











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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1401066%2fwindows-local-system-account-whoami-shows-a-different-result-than-username%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









0














Basically System is a special User, it effectively is your computers internal user so it kinda makes sense to use the hostname as name.



Take a look in Task Manager, go to the Details tabs and click PID ("Process ID") to sort the processes. The lowest few PIDs and the only process without a PID are all owned by SYSTEM and start at the earliest stages of the boot process. The Processes are run under the user "SYSTEM" and several are instances of ntoskrnl.exe - the Windows NT Kernel itself.



This Windows startup process article describes the general boot process and identifies the main components all of which are run as System.



Also worth mentioning the System user has special permissions so avoid modifying it or using it for none system tasks.






share|improve this answer
























  • This doesn’t explain the reason whoami behaves the way it does. It explains what the system user is, but that isn’t, what he author asked about

    – Ramhound
    Feb 1 at 18:59
















0














Basically System is a special User, it effectively is your computers internal user so it kinda makes sense to use the hostname as name.



Take a look in Task Manager, go to the Details tabs and click PID ("Process ID") to sort the processes. The lowest few PIDs and the only process without a PID are all owned by SYSTEM and start at the earliest stages of the boot process. The Processes are run under the user "SYSTEM" and several are instances of ntoskrnl.exe - the Windows NT Kernel itself.



This Windows startup process article describes the general boot process and identifies the main components all of which are run as System.



Also worth mentioning the System user has special permissions so avoid modifying it or using it for none system tasks.






share|improve this answer
























  • This doesn’t explain the reason whoami behaves the way it does. It explains what the system user is, but that isn’t, what he author asked about

    – Ramhound
    Feb 1 at 18:59














0












0








0







Basically System is a special User, it effectively is your computers internal user so it kinda makes sense to use the hostname as name.



Take a look in Task Manager, go to the Details tabs and click PID ("Process ID") to sort the processes. The lowest few PIDs and the only process without a PID are all owned by SYSTEM and start at the earliest stages of the boot process. The Processes are run under the user "SYSTEM" and several are instances of ntoskrnl.exe - the Windows NT Kernel itself.



This Windows startup process article describes the general boot process and identifies the main components all of which are run as System.



Also worth mentioning the System user has special permissions so avoid modifying it or using it for none system tasks.






share|improve this answer













Basically System is a special User, it effectively is your computers internal user so it kinda makes sense to use the hostname as name.



Take a look in Task Manager, go to the Details tabs and click PID ("Process ID") to sort the processes. The lowest few PIDs and the only process without a PID are all owned by SYSTEM and start at the earliest stages of the boot process. The Processes are run under the user "SYSTEM" and several are instances of ntoskrnl.exe - the Windows NT Kernel itself.



This Windows startup process article describes the general boot process and identifies the main components all of which are run as System.



Also worth mentioning the System user has special permissions so avoid modifying it or using it for none system tasks.







share|improve this answer












share|improve this answer



share|improve this answer










answered Feb 1 at 18:45









MisterSmithMisterSmith

2645




2645













  • This doesn’t explain the reason whoami behaves the way it does. It explains what the system user is, but that isn’t, what he author asked about

    – Ramhound
    Feb 1 at 18:59



















  • This doesn’t explain the reason whoami behaves the way it does. It explains what the system user is, but that isn’t, what he author asked about

    – Ramhound
    Feb 1 at 18:59

















This doesn’t explain the reason whoami behaves the way it does. It explains what the system user is, but that isn’t, what he author asked about

– Ramhound
Feb 1 at 18:59





This doesn’t explain the reason whoami behaves the way it does. It explains what the system user is, but that isn’t, what he author asked about

– Ramhound
Feb 1 at 18:59


















draft saved

draft discarded




















































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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1401066%2fwindows-local-system-account-whoami-shows-a-different-result-than-username%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 make a Squid Proxy server?

Is this a new Fibonacci Identity?

19世紀