Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Nov 21st, 2007, 12:50 AM   #1
venkatramasamy
Newbie
 
Join Date: Oct 2007
Location: INDIA
Posts: 19
Rep Power: 0 venkatramasamy is an unknown quantity at this point
Send a message via AIM to venkatramasamy
Post how to run command prompt with admin rights

hi,

i need to execute the following line to disable the UAC

C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 1 /f

while executing from run
The command prompt shows error msg like shown below
ERROR:Access Denied

while doing the same task from msconfig,it succeeded, noteable point is

the command promt titile shows like
Administrator: C:\Windows\System32\cmd.exe

where as while runnig from the Run it shows..

C:\Windows\System32\cmd.exe - only

Is anybody there to help me

Thanks in advance

Venkatramsamy SN
venkatramasamy is offline   Reply With Quote
Old Nov 21st, 2007, 2:05 AM   #2
Ghost
Man Bear Pig Hunter
 
Ghost's Avatar
 
Join Date: Jul 2005
Location: NorCal, USA
Posts: 292
Rep Power: 4 Ghost is on a distinguished road
Re: how to run command prompt with admin rights

Do you know the admin username and password?
Ghost is offline   Reply With Quote
Old Nov 21st, 2007, 3:23 AM   #3
venkatramasamy
Newbie
 
Join Date: Oct 2007
Location: INDIA
Posts: 19
Rep Power: 0 venkatramasamy is an unknown quantity at this point
Send a message via AIM to venkatramasamy
Exclamation Re: how to run command prompt with admin rights

Hi,

I logged in as administrator, i am asking about programatically run the command with admin rights(logged i as administrator)

Thanks in advance
venkatramasamy is offline   Reply With Quote
Old Nov 21st, 2007, 4:52 AM   #4
Ghost
Man Bear Pig Hunter
 
Ghost's Avatar
 
Join Date: Jul 2005
Location: NorCal, USA
Posts: 292
Rep Power: 4 Ghost is on a distinguished road
Re: how to run command prompt with admin rights

I have a program that might be able to help you by doing it for you. But this is a program that someone paid me to make, so the source will say with him, but he said he wouldn't mind if I allowed other to use the product.


NOTE: I'm not sure of the rules of posting links to programs, so please do not think ill of me for posting one of my projects to help this person.

If this is ok with you click Here to download the files zipped.
Ghost is offline   Reply With Quote
Old Nov 21st, 2007, 11:46 PM   #5
venkatramasamy
Newbie
 
Join Date: Oct 2007
Location: INDIA
Posts: 19
Rep Power: 0 venkatramasamy is an unknown quantity at this point
Send a message via AIM to venkatramasamy
Re: how to run command prompt with admin rights

hi,
Thank you

venkatramasamy SN
venkatramasamy is offline   Reply With Quote
Old Nov 23rd, 2007, 1:37 AM   #6
venkatramasamy
Newbie
 
Join Date: Oct 2007
Location: INDIA
Posts: 19
Rep Power: 0 venkatramasamy is an unknown quantity at this point
Send a message via AIM to venkatramasamy
Smile Re: how to run command prompt with admin rights

hi

to run the command prompt as administrator use the following

C:\Windows\System32\cmd.exe /u:Administrator "%windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f"

With regards

Venkatramasamy SN
venkatramasamy is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
imap run persianman PHP 0 Oct 2nd, 2007 5:25 PM
Can Mac be run... mattireland Coder's Corner Lounge 11 Aug 16th, 2007 4:13 PM
Giving Limited User Accounts some PowerUser/Admin Rights bigguy Visual Basic .NET 5 May 27th, 2007 9:48 PM
Admin Rights, and Process List Hider bigguy Visual Basic 7 Mar 23rd, 2006 6:55 PM
Ownership Rights wrinkle35 Existing Project Development 4 Jul 26th, 2005 10:56 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 4:44 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC