473,486 Members | 1,597 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

cmd admin user

hsn
237 New Member
hello everyone
i am working on a program which will run the cmd. that part is done. in my program in the Vista OS i can run the normal user cmd. what i need to do is to run the admin cmd so i could be able to run some commands through it.
i need the command which i enter in the run to run the cmd admin.
in run i enter cmd and it runs the cormal cmd.
but i need the command which i need to enter in run to run the admin cmd.

best regards
hsn
Nov 8 '08 #1
7 9820
AmberJain
884 Recognized Expert Contributor
Hello,

The "runas" command is what you need......For example if you want to run cmd.exe as user 'Administrator' then following command works for you:
Expand|Select|Wrap|Line Numbers
  1. runas /user:Administrator cmd
To know more, see Microsoft DOS runas command at computerhope.com. Alternatively, you can also search Google.

Hope this helps.....
AmbrNewlearner
Nov 9 '08 #2
hsn
237 New Member
Hello,

The "runas" command is what you need......For example if you want to run cmd.exe as user 'Administrator' then following command works for you:
Expand|Select|Wrap|Line Numbers
  1. runas /user:Administrator cmd
To know more, see Microsoft DOS runas command at computerhope.com. Alternatively, you can also search Google.

Hope this helps.....
AmbrNewlearner
thanks for your reply.
i know about the runas command the problem is that when i do it it asks me for a password and when i enter my user account password and the cmd does not accept it. for some reason. i need to nkow what should i do. i keep searching online and everyone is saying to use the runas command but the password issue is blocking my way.

regards
hsn
Nov 9 '08 #3
AmberJain
884 Recognized Expert Contributor
Hello,
thanks for your reply.
i know about the runas command the problem is that when i do it it asks me for a password and when i enter my user account password and the cmd does not accept it. for some reason. i need to nkow what should i do. i keep searching online and everyone is saying to use the runas command but the password issue is blocking my way.

regards
hsn
Well, then you are (probably) entering the wrong password for the account. I cannot think of any other possibility in this case. Are you sure that you are entering the right password. Also, if the account has no password then this will not work. If you try to use this command with a account that has no password then you get following error message:
RUNAS ERROR: Unable to run - [Application_name]
1327: Logon failure: user account restriction. Possible reasons are blank passw
ords not allowed, logon hour restrictions, or a policy restriction has been enfo
rced.
So if there is a blank password then you either need to set up a password for that account or you need some other command (which I cannot think of at the present moment......probably, some other expert may help)

Hope this helps........
AmbrNewlearner
Nov 9 '08 #4
hsn
237 New Member
Hello,

Well, then you are (probably) entering the wrong password for the account. I cannot think of any other possibility in this case. Are you sure that you are entering the right password. Also, if the account has no password then this will not work. If you try to use this command with a account that has no password then you get following error message:


So if there is a blank password then you either need to set up a password for that account or you need some other command (which I cannot think of at the present moment......probably, some other expert may help)

Hope this helps........
AmbrNewlearner
thanks for your reply. yes i am sure i am entering the right command, i have spent more than a week working on this issue. i tried other computers. and the same issue. one of the computer its password is "dog" how could i miss writing that for more than a week.
your reply is similar to the other replies i read in other websites. i don't get why the computer is not taking the password. i am the admin it should accept my password, but for some reason it is not.
i am using a windows vista os. could that be a reason for this problem. as everyone knows VISTA SUCKS, after this problem which i am facing i am re-installing XP to my computer.

best regards
hsn
Nov 9 '08 #5
DonRayner
489 Recognized Expert Contributor
If the computer is a member of a domain you can try using the domain administrator password, as in.

User ..........YourDomainName\administrator
passowrd....password
Nov 10 '08 #6
hsn
237 New Member
If the computer is a member of a domain you can try using the domain administrator password, as in.

User ..........YourDomainName\administrator
passowrd....password
sadly i can't test that. my computer is not a member of a domain.
Nov 10 '08 #7
AmberJain
884 Recognized Expert Contributor
Hello,
your reply is similar to the other replies i read in other websites. i don't get why the computer is not taking the password. i am the admin it should accept my password, but for some reason it is not.
i am using a windows vista os. could that be a reason for this problem. as everyone knows VISTA SUCKS, after this problem which i am facing i am re-installing XP to my computer.
The problem may be caused by User account control feature of Vista. You can try disabling it but I (and Microsoft too) do not recommend this. For more visit this link.

Hope this helps.......
Nov 10 '08 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1235
by: DLacey | last post by:
I have a .NET C# application that uses the indexing service. It adds folders to the catalog to be indexed, removes them, etc. Currently the application requires the user be an admin user in order...
11
20512
by: AnhTai | last post by:
Hi all, I've just installed MySQL 5.0 on my sun box (runing Solaris 10, install from blastwave). This is my first time with MySQL so I don't have any exp with it. I have some troubles as: -...
0
1123
by: nemo | last post by:
Hi, I'm able to create, debug, and run ASP.Net projects when I login as a user with admin privileges. However if I logon to the same machine as a user without admin privileges, I get the...
0
1439
by: Rahul Babbar | last post by:
Hi, I have two users, both of which are part of db2grp1, which is the admin user. db2grp1 has atleast 2 users, user1 and user2. I create a table in user2, name it table2. When i try to delete...
0
1145
by: =?Utf-8?B?amFja3Y=?= | last post by:
we tried to run our system under a non-admin user to prevent clients from installing programs. We found out we could not correct the system time from our program when we do that. Is there a way to...
2
3295
by: gangac | last post by:
I am currently working on an ms access application for a large insurance company which generates reports for the user after the user inputs/select some data.... Unfortunately the application has...
0
1584
by: Big Charles | last post by:
Hello, Programming in VS2003-ASP.NET 1.1, I have this problem: Using DirectoryEntry and without any admin user, how can I check if a domain account, that try to login, has expired? Scenario: User...
2
2790
by: Scott | last post by:
Attempting to install WCF service on stand alone 2003 server as a admin user (not administrator but user "WCF" i.e user added to local admin group). It fails with user error: The description...
1
1495
by: Babu1983 | last post by:
Hi I had accidentally deleted the sole Admin user for my db. ie. My db had a single admin user 'kanagab'. somehow, I had deleted the user 'kanagab' (Tools->Security->User and Group...
0
7094
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6964
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7173
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6839
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7305
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5427
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4863
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3066
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
259
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.