Command Line to Allow a Smart Card to be Removed without Locking the Computer.

This command line allows me to log into and work on several machines by preventing them from locking after the smart card is removed. However, I have to re-insert the smart card temporarily when I access resources that require further authentication.

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

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