Archive: Command Prompt in Vista


Command Prompt in Vista
Hi,
I have a gaming site that users have to install our software to play online multi-player games. We recently have come across an issue with Vista's TCP Auto-Tuning lagging our players. So I would like to be able to disable this during the installation of our software.

The following is what i need to do....

I think I got step 1 handled its step 2 im having troubles with.

Step 1. The first thing that needs to be done is to disable User Access Control which can be done editing the registry...

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System
Locate the following DWORD value, "EnableLUA" and assign it a value of 0.
Reboot for this change to take effect.

Step 2. Then after the comp reboots i need the installer to restart if possible and some how
Open a "Command Prompt" with the "Run as Administrator" option.
Enter the command, "netsh interface tcp set global autotuning=disabled" to disable TCP Auto-Tuning.

Can this all be done from within the installer setup?


No one can help me launch a command prompt window?


1. To reset group policies without restarting execute gpupdate /force.

2. http://support.microsoft.com/kb/285879
Another method is to call runas.exe with VBScript with WScript.Shell and to type in the password with the SendKeys method before sending vbNewLine.
You will need the administrator password.

Stu