Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroups > Vista General

Vista - XP commands don't work on Vista

Reply
 
Old 10-01-2007   #1 (permalink)
Paul Sala


 
 

XP commands don't work on Vista

I used to have to reboot my PC once and awhile to reset my DSL connection.
Then I made a bat file to reset the connection to avoid rebooting. Here are
the commands that are in that bat file:
net stop "dns client"
net start "dns client"
ipconfig /release
ipconfig /renew

This works fine on XP, but it fails on Vista. Here is what I see when it
runs on Vista as a user that has admin rights:

c:\net stop "dns client"
System error 5 has occurred.
Access is denied.

c:\net start "dns client"
System error 5 has occurred.
Access is denied.

c:\ipconfig /release
The requested operation requires elevation.

c:\ipconfig /renew
No operation can be performed on Local Area Connection while it has its
media disconnected.

Any ideas on how to get this to work on Vista?

Thanks!



My System SpecsSystem Spec
Old 10-01-2007   #2 (permalink)
Kerry Brown


 
 

Re: XP commands don't work on Vista

Create a shortcut to the batch file. Right click on it and pick Run as
administrator.

--
Kerry Brown
Microsoft MVP - Shell/User
http://www.vistahelp.ca


"Paul Sala" <psalaN0-SPAM@xxxxxx> wrote in message
news:uW5EIODBIHA.3548@xxxxxx
Quote:

>I used to have to reboot my PC once and awhile to reset my DSL connection.
>Then I made a bat file to reset the connection to avoid rebooting. Here are
>the commands that are in that bat file:
> net stop "dns client"
> net start "dns client"
> ipconfig /release
> ipconfig /renew
>
> This works fine on XP, but it fails on Vista. Here is what I see when it
> runs on Vista as a user that has admin rights:
>
> c:\net stop "dns client"
> System error 5 has occurred.
> Access is denied.
>
> c:\net start "dns client"
> System error 5 has occurred.
> Access is denied.
>
> c:\ipconfig /release
> The requested operation requires elevation.
>
> c:\ipconfig /renew
> No operation can be performed on Local Area Connection while it has its
> media disconnected.
>
> Any ideas on how to get this to work on Vista?
>
> Thanks!
>
My System SpecsSystem Spec
Old 10-01-2007   #3 (permalink)
JCS


 
 

Re: XP commands don't work on Vista

You have to run as Administrator. Most likely, you haven't enabled THE
Administrator account. Try right-clicking the file, then select Run as
Administrator. The UAC prompt will appear, click OK and it should run.
Otherwise, you'll need to make sure to enable THE Administrator account, log
in to that account, then run the bat file.

"Paul Sala" <psalaN0-SPAM@xxxxxx> wrote in message
news:uW5EIODBIHA.3548@xxxxxx
Quote:

>I used to have to reboot my PC once and awhile to reset my DSL connection.
>Then I made a bat file to reset the connection to avoid rebooting. Here are
>the commands that are in that bat file:
> net stop "dns client"
> net start "dns client"
> ipconfig /release
> ipconfig /renew
>
> This works fine on XP, but it fails on Vista. Here is what I see when it
> runs on Vista as a user that has admin rights:
>
> c:\net stop "dns client"
> System error 5 has occurred.
> Access is denied.
>
> c:\net start "dns client"
> System error 5 has occurred.
> Access is denied.
>
> c:\ipconfig /release
> The requested operation requires elevation.
>
> c:\ipconfig /renew
> No operation can be performed on Local Area Connection while it has its
> media disconnected.
>
> Any ideas on how to get this to work on Vista?
>
> Thanks!
>
My System SpecsSystem Spec
Old 10-01-2007   #4 (permalink)
Paul Sala


 
 

Re: XP commands don't work on Vista

I only have one account at the moment, which my first name: paul.

1. I have not enabled the THE admin account yet, how do I do that?
2. Can I make the ID paul THE admin account?
3. Once the admin account is enable, will I have two login acounts names to
choose from when I start my laptop?

thanks

"JCS" <sandersjc@xxxxxx> wrote in message
news:uocXvRDBIHA.2004@xxxxxx
Quote:

> You have to run as Administrator. Most likely, you haven't enabled THE
> Administrator account. Try right-clicking the file, then select Run as
> Administrator. The UAC prompt will appear, click OK and it should run.
> Otherwise, you'll need to make sure to enable THE Administrator account,
> log in to that account, then run the bat file.
>
> "Paul Sala" <psalaN0-SPAM@xxxxxx> wrote in message
> news:uW5EIODBIHA.3548@xxxxxx
Quote:

>>I used to have to reboot my PC once and awhile to reset my DSL connection.
>>Then I made a bat file to reset the connection to avoid rebooting. Here
>>are the commands that are in that bat file:
>> net stop "dns client"
>> net start "dns client"
>> ipconfig /release
>> ipconfig /renew
>>
>> This works fine on XP, but it fails on Vista. Here is what I see when it
>> runs on Vista as a user that has admin rights:
>>
>> c:\net stop "dns client"
>> System error 5 has occurred.
>> Access is denied.
>>
>> c:\net start "dns client"
>> System error 5 has occurred.
>> Access is denied.
>>
>> c:\ipconfig /release
>> The requested operation requires elevation.
>>
>> c:\ipconfig /renew
>> No operation can be performed on Local Area Connection while it has its
>> media disconnected.
>>
>> Any ideas on how to get this to work on Vista?
>>
>> Thanks!
>>
>

My System SpecsSystem Spec
Old 10-01-2007   #5 (permalink)
Michael


 
 

Re: XP commands don't work on Vista

Paul,

You need to run the batch program with elevated privileges.
Instead of double clicking the bat file icon, right click it and select 'Run
as Administrator'

Also if the network is locked up, right clicking the network icon in lower
right and click diagnose and repair often works.

Michael

"Paul Sala" <psalaN0-SPAM@xxxxxx> wrote in message
news:uW5EIODBIHA.3548@xxxxxx
Quote:

>I used to have to reboot my PC once and awhile to reset my DSL connection.
>Then I made a bat file to reset the connection to avoid rebooting. Here are
>the commands that are in that bat file:
> net stop "dns client"
> net start "dns client"
> ipconfig /release
> ipconfig /renew
>
> This works fine on XP, but it fails on Vista. Here is what I see when it
> runs on Vista as a user that has admin rights:
>
> c:\net stop "dns client"
> System error 5 has occurred.
> Access is denied.
>
> c:\net start "dns client"
> System error 5 has occurred.
> Access is denied.
>
> c:\ipconfig /release
> The requested operation requires elevation.
>
> c:\ipconfig /renew
> No operation can be performed on Local Area Connection while it has its
> media disconnected.
>
> Any ideas on how to get this to work on Vista?
>
> Thanks!
>
My System SpecsSystem Spec
Old 10-01-2007   #6 (permalink)
Kerry Brown


 
 

Re: XP commands don't work on Vista

You don't need to enable the "administrator" account. It is disabled for
security reasons and is not needed to administer your computer. Use the Run
as administrator option. Security works differently in Vista from previous
versions of Windows.

http://www.jimmah.com/vista/security/uac.aspx

--
Kerry Brown
Microsoft MVP - Shell/User
http://www.vistahelp.ca


"Paul Sala" <psalaN0-SPAM@xxxxxx> wrote in message
news:uaag0eDBIHA.4984@xxxxxx
Quote:

>I only have one account at the moment, which my first name: paul.
>
> 1. I have not enabled the THE admin account yet, how do I do that?
> 2. Can I make the ID paul THE admin account?
> 3. Once the admin account is enable, will I have two login acounts names
> to choose from when I start my laptop?
>
> thanks
>
> "JCS" <sandersjc@xxxxxx> wrote in message
> news:uocXvRDBIHA.2004@xxxxxx
Quote:

>> You have to run as Administrator. Most likely, you haven't enabled THE
>> Administrator account. Try right-clicking the file, then select Run as
>> Administrator. The UAC prompt will appear, click OK and it should run.
>> Otherwise, you'll need to make sure to enable THE Administrator account,
>> log in to that account, then run the bat file.
>>
>> "Paul Sala" <psalaN0-SPAM@xxxxxx> wrote in message
>> news:uW5EIODBIHA.3548@xxxxxx
Quote:

>>>I used to have to reboot my PC once and awhile to reset my DSL
>>>connection. Then I made a bat file to reset the connection to avoid
>>>rebooting. Here are the commands that are in that bat file:
>>> net stop "dns client"
>>> net start "dns client"
>>> ipconfig /release
>>> ipconfig /renew
>>>
>>> This works fine on XP, but it fails on Vista. Here is what I see when it
>>> runs on Vista as a user that has admin rights:
>>>
>>> c:\net stop "dns client"
>>> System error 5 has occurred.
>>> Access is denied.
>>>
>>> c:\net start "dns client"
>>> System error 5 has occurred.
>>> Access is denied.
>>>
>>> c:\ipconfig /release
>>> The requested operation requires elevation.
>>>
>>> c:\ipconfig /renew
>>> No operation can be performed on Local Area Connection while it has its
>>> media disconnected.
>>>
>>> Any ideas on how to get this to work on Vista?
>>>
>>> Thanks!
>>>
>>
>
>
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Re: IE8 Send Page/Link Commands Do Not Work Live Mail
Run Commands for Vista Tutorials
Commands in Vista Vista performance & maintenance
DOS commands in Vista Vista General
cmd.exe commands doesnt work anymore Vista performance & maintenance


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46