Batch to Delay AutoLogin

TweakUI hasn't been around for years. Sysinternals has autologon, works on Win10: https://docs.microsoft.com/en-us/sysinternals/downloads/autologon - 

--

This is a sample batch file that can be called from any of the standard windows start up options (eg. RunServices, StartUp folder, etc.) to delay the running of a dll function.

@echo This batch file was called from the Windows RunServices registry key.

@echo Choice.com will now delay for 25 seconds. c:\windows\command\choice.com /T:Y,25

@echo After the delay, we run the TweakLogon function. C:\Windows\Rundll32.exe TweakUI.Cpl,TweakLogon

@Echo You can close this window. If it is "Finished."

Edit: Also, this is a good example on how to launch a control panel applet from a command box (useful if you are using 'runas' to get administrative priveleges).

 

tags: tweakui, delay, batch

Related Scribbles:
  • Batch Files (.bat and .cmd)


  • ID: 42
    Author:
    leonard
    Date Updated:
    2019-12-03 16:11:18
    Date Created:
    2002-09-22 16:45:26

    Edit

    Comments?
     >> Leonard Chan's Homepage  >> Scribble Web  >> Batch to Delay AutoLogin
    leonard.lotus-land.ca is hosted by Perceptus Solutions Inc.