Command Line to Change Screen Saver Grace Period Before the Computer Locks

Command line to change the grace period of time that you have between the time that the screen saver comes on and the computer locks itself.

In this case, 300 seconds.

c:\windows\system32\cmd.exe /k %windir%\system32\reg.exe ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v screensavergraceperiod /t REG_DWORD /d 300 /f

Command Line to Bypass Proxy Server for Local Servers and Sites on your Network

If it’s on my network, I shouldn’t have to go throught the proxy server to get to it.

c:\windows\system32\cmd.exe /k %windir%\system32\reg.exe ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyOverride /t REG_SZ /d "localhost;ThisServer;ThatServer;TheOtherServer;*.MyDomain.Com;*.MyOtherDomain.Com" /f

ipconfig /flushdns

Command Line to Disable User Account Control (UAC)

Do you want to allow the following program to make changes to the computer?
Yes
Do you want to allow the following program to make changes to the computer?
Yes…
Do you want to allow the following program to make changes to the computer?
Yes, I really do.
Do you want to allow the following program to make changes to the computer?
No seriously, I mean it. Yes!
Do you want to allow the following program to make changes to the computer?
Oh for the love of Pete!

c:\windows\system32\cmd.exe /k %windir%\system32\reg.exe ADD HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System /v ConsentPromptBehaviorAdmin /t REG_DWORD /d 0 /f

Command Lines to Implement Minimum Visual Studio ASP.Net Development Requirements In Secure Environment

net localgroup Administrators /add Domain\UserName

net localgroup Administrators /add VisualStudioDebuggerLocalAccount

ntrights -u "VisualStudioDebuggerLocalAccount" -m \\ComputerName +r SeBatchLogonRight

sc config w3svc start= auto
sc config iisadmin start= auto

NET START W3SVC
NET START iisadmin 

%windir%\microsoft.net\framework\v4.0.30319\aspnet_regiis.exe -i
%windir%\microsoft.net\framework\v4.0.30319\aspnet_regiis.exe -ga ComputerName\VisualStudioDebuggerLocalAccount

The VisualStudioDebuggerLocalAccount runs as the identity for the application pool used for the local IIS web application you want to debug in Visual Studio.

Ntrights.exe is part of the Server 2003 Administration Tools.

CodeProject