Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Change user in command prompt  (Read 17713 times)

0 Members and 1 Guest are viewing this topic.

ŽOŠK

  • Guest
Change user in command prompt
« on: April 11, 2007, 05:39:20 AM »
Hey! I'm a new member and I don't have enough time to read all the topics so I'm very sorry if someone else has asked about that before.
So, my question is: Is it possible to change user accounts in command prompt and how?

I know it is possible in Linux, but I want to learn how to do this in Windows Command Prompt.

Greetings!  8)

Carbon Dudeoxide

  • Global Moderator

  • Mastermind
  • Thanked: 169
    • Yes
    • Yes
    • Yes
  • Certifications: List
  • Experience: Guru
  • OS: Mac OS
Re: Change user in command prompt
« Reply #1 on: April 11, 2007, 05:41:27 AM »
Please mention what OS you're using?
and
Do you want to create a new user or switch accounts?

ŽOŠK

  • Guest
Re: Change user in command prompt
« Reply #2 on: April 11, 2007, 05:48:08 AM »
The OS I use is Windows XP
I want to switch accounts, not to create a new one

Carbon Dudeoxide

  • Global Moderator

  • Mastermind
  • Thanked: 169
    • Yes
    • Yes
    • Yes
  • Certifications: List
  • Experience: Guru
  • OS: Mac OS
Re: Change user in command prompt
« Reply #3 on: April 11, 2007, 06:07:28 AM »
I don't think that is possible. You can edit accounts and stuff but i don't think you can switch users......
I searched for it and i didn't find anything. I could be wrong so wait for more replies.

ŽOŠK

  • Guest
Re: Change user in command prompt
« Reply #4 on: April 11, 2007, 06:17:26 AM »
OK. Well, I actually don't want exactly to "switch" accounts. What I want is, for example, if I use a Limited account to be able to get the privileges of an Administrator. I used Fedora Core, so I'm sure it is possible in Linux but I don't know how to do it in Windows command prompt.

GX1_Man

  • Guest
Re: Change user in command prompt
« Reply #5 on: April 11, 2007, 06:33:35 AM »
Who's machine are you trying to hack with this? There would be no benefit to a home user that I can see.
« Last Edit: April 11, 2007, 11:24:10 AM by GX1_Man »

ŽOŠK

  • Guest
Re: Change user in command prompt
« Reply #6 on: April 11, 2007, 06:49:47 AM »
HAHA! I think you're wrong. See:
I use a Limited account. To switch on the Administrator Acount on my computer I need at least 5 minutes. Very often an error appears when I switch the accounts so I have to restart the computer and it takes more time. So if I want to so something that requires an administrator privileges I have to waste much time. For me it is absolutely inconvenient. There are some reasons why I can't use an Admin account but they are considered by the security of my system. So my account is Limited and I have to switch very often to an administrator which is absolutely inconvenient as i said.

Carbon Dudeoxide

  • Global Moderator

  • Mastermind
  • Thanked: 169
    • Yes
    • Yes
    • Yes
  • Certifications: List
  • Experience: Guru
  • OS: Mac OS
Re: Change user in command prompt
« Reply #7 on: April 11, 2007, 06:55:31 AM »
Quote
Who's machine

Sidewinder



    Guru

    Thanked: 139
  • Experience: Familiar
  • OS: Windows 10
Re: Change user in command prompt
« Reply #8 on: April 11, 2007, 07:03:23 AM »
You can use the runas utility provided you know both the administrator logon and the password. This is not a hack and actually is documented in the XP Help and Support for this very purpose.

 8)
The true sign of intelligence is not knowledge but imagination.

-- Albert Einstein

ŽOŠK

  • Guest
Re: Change user in command prompt
« Reply #9 on: April 11, 2007, 10:27:41 AM »
Yeah I know about run as but what if I want to have an access as an administrator?! Also sometimes I have problems with some instalation files if I use the run as utility.

GX1_Man

  • Guest
Re: Change user in command prompt
« Reply #10 on: April 11, 2007, 11:26:16 AM »
HAHA! I think you're wrong. See:
I use a Limited account. To switch on the Administrator Acount on my computer I need at least 5 minutes. Very often an error appears when I switch the accounts so I have to restart the computer and it takes more time. So if I want to so something that requires an administrator privileges I have to waste much time. For me it is absolutely inconvenient. There are some reasons why I can't use an Admin account but they are considered by the security of my system. So my account is Limited and I have to switch very often to an administrator which is absolutely inconvenient as i said.

Too many questions remain. Good luck, though.

Sidewinder



    Guru

    Thanked: 139
  • Experience: Familiar
  • OS: Windows 10
Re: Change user in command prompt
« Reply #11 on: April 11, 2007, 12:44:43 PM »
HAHA! I think you're wrong. See:
Very often an error appears when I switch the accounts so I have to restart the computer and it takes more time.

Can you document the error?

Quote
Yeah I know about run as but what if I want to have an access as an administrator?! Also sometimes I have problems with some instalation files if I use the run as utility.

What problems?

If you have an administrator login and the password, you should be able to use fast user switching to switch into an administrator account.

Either there is more to this story (a school computer perhaps?) or the system has other problems.

Microsoft spends big bucks preventing back door elevations of privileges.  8)
The true sign of intelligence is not knowledge but imagination.

-- Albert Einstein

ŽOŠK

  • Guest
Re: Change user in command prompt
« Reply #12 on: April 11, 2007, 01:02:58 PM »
Can you document the error?

Well, the system crashes and doesn't allow me to type the Administrator's username and password.

What problems?

For example if I want to update my skype and I run the install file using run as after finishing the installation the new version is not installed and I have to switch on Administrator's account to install it.

Either there is more to this story (a school computer perhaps?) or the system has other problems.

It is  my computer at home.

But, guys, of course I can switch the accounts in normal way, of course I can use runas , I'm just interestig i it is possible to get an administrator's privileges from Command Prompt. I don't want to hack anything (hah only I know the administrator's password on my computer  :P).

Zylstra

  • Moderator


  • Hacker

  • The Techinator!
  • Thanked: 45
    • Yes
    • Technology News and Information
  • Certifications: List
  • Computer: Specs
  • Experience: Guru
  • OS: Windows 7
Re: Change user in command prompt
« Reply #13 on: April 11, 2007, 02:18:52 PM »
Try pressing the Windows Logo Key and L
(WinLogo+L)
If you have the administrator password, then you can log in as Admin.

If User Account Switching is dissabled, it must be installed first.

Click Start, then Logoff, and select "Switch User" to do the same as Logokey+L

diablo416

  • Guest
Re: Change user in command prompt
« Reply #14 on: April 11, 2007, 09:11:46 PM »


if your an xp user you dont have to switch users to be administrator,
i think its in the right click menu of the file you want access to.. but you do need to no the administrators password..

patio

  • Moderator


  • Genius
  • Maud' Dib
  • Thanked: 1769
    • Yes
  • Experience: Beginner
  • OS: Windows 7
Re: Change user in command prompt
« Reply #15 on: April 12, 2007, 08:48:21 AM »


if your an xp user you dont have to switch users to be administrator,
i think its in the right click menu of the file you want access to.. but you do need to no the administrators password..

Wrong.
" Anyone who goes to a psychiatrist should have his head examined. "

ŽOŠK

  • Guest
Re: Change user in command prompt
« Reply #16 on: April 12, 2007, 02:52:41 PM »
Well, guys, I suppose only this is close to what I was looking for:
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/runas.mspx?mfr=true
I've been searching for a long time and I didn't found anything else.
Enjoy  ;)

kvasten

  • Guest
Re: Change user in command prompt
« Reply #17 on: April 12, 2007, 02:57:56 PM »
i know a way to get administrator. get the computer in securemode. (im not sure if it named secure mode) but if you turn off the computer and turn on and off. then you can get into a account which only open things that you need. that user is administrator!

diablo416

  • Guest
Re: Change user in command prompt
« Reply #18 on: April 12, 2007, 07:46:57 PM »


if your an xp user you dont have to switch users to be administrator,
i think its in the right click menu of the file you want access to.. but you do need to no the administrators password..

Wrong.


it does exist , my computer now doesent have it either.. but i have seen it, it might be something you have to enable first..

Kip



    Apprentice

    Thanked: 21
    • Yes
    • Yes
    • Yes
  • Experience: Experienced
  • OS: Linux variant
Re: Change user in command prompt
« Reply #19 on: April 13, 2007, 07:04:09 AM »
if your an xp user you dont have to switch users to be administrator,
i think its in the right click menu of the file you want access to.. but you do need to no the administrators password..

Do you mean "Run as..."?

It looks like it might work for programs but I have not tested it.
Happiness is not getting what you want, it is wanting what you get.

goodnatureddog

  • Guest
Re: Change user in command prompt
« Reply #20 on: April 13, 2007, 10:15:59 AM »
ok, but is it possible to switch your self from limited to admin through OS on xp

patio

  • Moderator


  • Genius
  • Maud' Dib
  • Thanked: 1769
    • Yes
  • Experience: Beginner
  • OS: Windows 7
Re: Change user in command prompt
« Reply #21 on: April 13, 2007, 10:44:16 AM »


if your an xp user you dont have to switch users to be administrator,
i think its in the right click menu of the file you want access to.. but you do need to no the administrators password..

Wrong.


it does exist , my computer now doesent have it either.. but i have seen it, it might be something you have to enable first..

Where ?
" Anyone who goes to a psychiatrist should have his head examined. "

Zylstra

  • Moderator


  • Hacker

  • The Techinator!
  • Thanked: 45
    • Yes
    • Technology News and Information
  • Certifications: List
  • Computer: Specs
  • Experience: Guru
  • OS: Windows 7
Re: Change user in command prompt
« Reply #22 on: April 13, 2007, 02:26:54 PM »
ok, but is it possible to switch your self from limited to admin through OS on xp
Yes
You click Start, then Log off (the picture of keys) and then "Switch Users"
This is how you do this.

If you are having problems with this, then please confirm the following:
I have Antivirus
I have Antispyware/adware
I have a valid copy of Windows XP

uli_glueck

  • Guest
Re: Change user in command prompt
« Reply #23 on: April 16, 2007, 06:26:52 AM »
Seems you mean the "SU" command.
It is in Windows Ressource Kit
Check this link:
http://www.ss64.com/nt/su.html

hope it helps
uli

ŽOŠK

  • Guest
Re: Change user in command prompt
« Reply #24 on: April 18, 2007, 10:54:12 AM »
Sorry, can you give me an example about this:
http://www.ss64.com/nt/su.html

uli_glueck

  • Guest
Re: Change user in command prompt
« Reply #25 on: April 20, 2007, 07:00:25 AM »
You have to install the command on your machine and give the account the necessary rights. Read the helpfile of the command. There is also an example in the helpfile.

uli