Author Topic: DelayedDesktopSwitchTimeout  (Read 15836 times)

0 Members and 1 Guest are viewing this topic.

JohnCoool

  • Guest
DelayedDesktopSwitchTimeout
« on: August 08, 2020, 09:24:18 am »
I saw a post about the same subject in this forum but it is not working for me.

I have WIndows 7 and 8.1 Home edition and did not work on either one.

They are not joined to any domain.

I am trying to increase the duration of the welcome screen at login and tried to use this tweak. It is advised to use the number 5 in most threads I found. But not sure what the 5 refers to. Is it 5 seconds?

I tried 60 to take 1 min but did not work.

Will this Tweak work on my computers? Is there another solution?

What are the numbers that need to be used? Is there a guide for it?


Offline Boggin

  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Jul 2014
  • Posts: 10182
  • Location: UK
  • Karma: 122
    • View Profile
Re: DelayedDesktopSwitchTimeout
« Reply #1 on: August 08, 2020, 10:16:47 am »
I wasn't aware you could do this as I don't have any passwords on my machines.

A Google has produced this article for Win 7 but I assume this is the method you are referring to ?

https://answers.microsoft.com/en-us/windows/forum/all/how-do-i-change-the-amount-of-time-before-the/d0f58fdd-926d-4499-b8fd-69811704567e

Offline Boggin

  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Jul 2014
  • Posts: 10182
  • Location: UK
  • Karma: 122
    • View Profile
Re: DelayedDesktopSwitchTimeout
« Reply #2 on: August 08, 2020, 10:22:33 am »

JohnCoool

  • Guest
Re: DelayedDesktopSwitchTimeout
« Reply #3 on: August 08, 2020, 10:43:09 am »
 I need to increase the welcome screen duration so that desktop only shows up after the programs have loaded.

There is a 1 min gap between the programs showing up and the end of the welcome screen.

I have been working on a solution for years and just today I came across the tweak. But it did not work. I might be using the wrong value. Not sure how to refer seconds in the registry.

I need to delay it for security reasons. I have secure programs that need to be running at the same time the desktop shows up.

Offline Boggin

  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Jul 2014
  • Posts: 10182
  • Location: UK
  • Karma: 122
    • View Profile
Re: DelayedDesktopSwitchTimeout
« Reply #4 on: August 08, 2020, 10:52:11 am »
If those programs are in your Start-up menu, I would expect them to auto start with Windows.

JohnCoool

  • Guest
Re: DelayedDesktopSwitchTimeout
« Reply #5 on: August 08, 2020, 11:16:36 am »
It does not seem that you are able to comprehend the request.

If you are not a technical person with useful tips then please stop posting in this thread. You are just cluttering up the thread.

Offline Boggin

  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Jul 2014
  • Posts: 10182
  • Location: UK
  • Karma: 122
    • View Profile
Re: DelayedDesktopSwitchTimeout
« Reply #6 on: August 08, 2020, 03:27:02 pm »
https://www.dummies.com/consumer-electronics/tablets/for-seniors-start-a-windows-7-program-automatically/

When programs are in your Start-up menu then they will automatically load and run in the background such as an antivirus program, but if you aren't happy with the answers I am giving you then you are quite free to go elsewhere.

Offline Julian

  • "Professional Googler"
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Jun 2015
  • Posts: 1325
  • Location: USA, New Mexico
  • Karma: 38
    • View Profile
Re: DelayedDesktopSwitchTimeout
« Reply #7 on: August 08, 2020, 08:47:51 pm »
I've personally never messed with those registry value's.. on the other hand...

here is how windows boot's up as stated "verbatim" this article below
 
Code: [Select]
https://answers.microsoft.com/en-us/windows/forum/all/how-to-start-program-before-user-logon-windows-7/2bff97c4-c037-437c-9fa7-b143a3ae5189
1. HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\BootExecute. This can include instructions to schedule the running of chkdsk but not user programs.

2. Services start next, followed by the RunServicesOnce and RunServices registry keys (if present)

3. User then logs on to the system

4. HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\UserInit. This points to the program C:\WINDOWS\system32\userinit.exe and the entry ends with a comma. Other programs can be started from this key by appending them and separating them with a comma.

5. HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Shell. This should contain just one entry, explorer.exe.

6. Program entries in these 2 registry keys for ALL USERS start next:

HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run and \RunOnce

7. Program entries in these 2 registry keys for CURRENT USER start next:

HKCU\Software\Microsoft\Windows\CurrentVersion\Run and \RunOnce

8. Programs in the Startup Folders of All Users and Current U
---------------------------------------------------------------------------------------------------------------------------------------------------
I recommend trying to...
1.run this as a scheduled task.
2.make sure other programs are not starting up that is slowing this program down.
3.increase the hardware of this machine to start this application.
Julian

Offline Boggin

  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Jul 2014
  • Posts: 10182
  • Location: UK
  • Karma: 122
    • View Profile
Re: DelayedDesktopSwitchTimeout
« Reply #8 on: August 09, 2020, 02:35:06 am »
Thanks for that Julian, but the point I was trying to make was that security programs tend to insert themselves into the Services/Non-Microsoft services of the Start-up menu and will auto load and run on Boot without changing anything just as they would if part of the program Start-up menu.

JohnCoool

  • Guest
Re: DelayedDesktopSwitchTimeout
« Reply #9 on: August 09, 2020, 03:54:36 am »
Thanks for that Julian, but the point I was trying to make was that security programs tend to insert themselves into the Services/Non-Microsoft services of the Start-up menu and will auto load and run on Boot without changing anything just as they would if part of the program Start-up menu.

Tom Stop cluttering up my thread. Why do you insist on doing so as if you own it. I am the owner of the thread and I find your information to be of no use. You do not seem to be a technical person that understands the request and all you want to do is collect point with comments.

Offline Boggin

  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Jul 2014
  • Posts: 10182
  • Location: UK
  • Karma: 122
    • View Profile
Re: DelayedDesktopSwitchTimeout
« Reply #10 on: August 09, 2020, 04:16:10 am »
Perhaps it's you that doesn't understand Boot up and the Start-up menu in msconfig.

Does Julian's post help you ?

In your Win 7 go Start - type msconfig and press enter when it comes up.

Click on Services then check the box to Hide all Microsoft services and you should see your security programs listed that will auto load and run to check your start-up system files and programs.

JohnCoool

  • Guest
Re: DelayedDesktopSwitchTimeout
« Reply #11 on: August 09, 2020, 04:33:21 am »
I've personally never messed with those registry value's.. on the other hand...

here is how windows boot's up as stated "verbatim" this article below
 
Code: [Select]
https://answers.microsoft.com/en-us/windows/forum/all/how-to-start-program-before-user-logon-windows-7/2bff97c4-c037-437c-9fa7-b143a3ae5189
1. HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\BootExecute. This can include instructions to schedule the running of chkdsk but not user programs.

2. Services start next, followed by the RunServicesOnce and RunServices registry keys (if present)

3. User then logs on to the system

4. HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\UserInit. This points to the program C:\WINDOWS\system32\userinit.exe and the entry ends with a comma. Other programs can be started from this key by appending them and separating them with a comma.

5. HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Shell. This should contain just one entry, explorer.exe.

6. Program entries in these 2 registry keys for ALL USERS start next:

HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run and \RunOnce

7. Program entries in these 2 registry keys for CURRENT USER start next:

HKCU\Software\Microsoft\Windows\CurrentVersion\Run and \RunOnce

8. Programs in the Startup Folders of All Users and Current U
---------------------------------------------------------------------------------------------------------------------------------------------------
I recommend trying to...
1.run this as a scheduled task.
2.make sure other programs are not starting up that is slowing this program down.
3.increase the hardware of this machine to start this application.

Thanks for the tips.

I will tell you what I have done so far and how your tips don't workout so well. This has been in the making for a long time...
I did come across some of them as well.
5 programs start up and among them is startup delayer which is used to launch a bunch of other programs that mostly are for security reasons. Start up delayer organizes the programs and then at start up it launches another exe file called startup launcher.exe. This is the argument in the registry for it ""C:\Program Files\r2 Studios\Startup Delayer\Startup Launcher.exe" /LaunchType=Auto /LaunchApps=Common"

I tried to edit it but did not save the changes and did not want to mess with it any further after that. I saw it in the task manager after bootup doing nothing for 40-120 seconds before it starts launching the other programs and that is just too much of a big gap. Other programs sometimes boot a little faster and sometimes they are more immediate. I tried it on other profiles on the system and it was the same results.
I am using it on Win 8.1

I did use fire daemon (Can make programs into services) to get it to launch earlier but it could did not work with "startup launcher.exe". So I created another program as a service and a feature that Fire Daemon has is that it can pre launch a program before the service starts (I added service to the EMS load order group so that it launches early enough). Then I wrote a script that to launch the program that I needed but it launched the  "startup launcher.exe" in session 0. So I modified the script to wait for an exe file before it launches and it worked and I tested it with a couple of programs but was still too slow.

The below is an example of the script.

@echo off

:search
tasklist|find "winlogon.exe"
IF %ERRORLEVEL% == 0 (GOTO :found)
TIMEOUT /T 1
GOTO :search

:found
psexec -i 1 C:\Example.exe
psexec -i 2 C:\Example.exe
psexec -i 3 C:\Example.exe
psexec -i 4 C:\Example.exe
psexec -i 5 C:\Example.exe
psexec -i 6 C:\Example.exe
psexec -i 7 C:\Example.exe
Timeout /T 2

Exit

I wrote it to run on any of 7 sessions because I notices it would always be different.

I tried the two below scripts as well. The idea behind it is to allow more time for the programs to load before it finally allows me to do a full boot up.

@echo off

:search
tasklist|find "winlogon.exe"
IF %ERRORLEVEL% == 0 (GOTO :found)
TIMEOUT /T 1
GOTO :search

:found
psexec -i 1 shutdown /L
psexec -i 2 shutdown /L
psexec -i 3 shutdown /L
psexec -i 4 shutdown /L
psexec -i 5 shutdown /L
psexec -i 6 shutdown /L
psexec -i 7 shutdown /L
Timeout /T 2

Exit
The above one worked a bit slow.

The next one worked very well but not every time.

@echo off

:search
tasklist|find "winlogon.exe"
IF %ERRORLEVEL% == 0 (GOTO :found)
TIMEOUT /T 1
GOTO :search

:found
timeout /T 10
nircmd.exe killprocess "winlogon.exe"

Timeout /T 2

:search
tasklist|find "winlogon.exe"
IF %ERRORLEVEL% == 0 (GOTO :found)
TIMEOUT /T 1
GOTO :search

:found
timeout /T 10
nircmd.exe killprocess "winlogon.exe"

Timeout /T 2

:search
tasklist|find "winlogon.exe"
IF %ERRORLEVEL% == 0 (GOTO :found)
TIMEOUT /T 1
GOTO :search

:found
timeout /T 10
nircmd.exe killprocess "winlogon.exe"

Timeout /T 2

:search
tasklist|find "winlogon.exe"
IF %ERRORLEVEL% == 0 (GOTO :found)
TIMEOUT /T 1
GOTO :search

:found
timeout /T 10
nircmd.exe killprocess "winlogon.exe"

Timeout /T 2

:search
tasklist|find "winlogon.exe"
IF %ERRORLEVEL% == 0 (GOTO :found)
TIMEOUT /T 1
GOTO :search

:found
timeout /T 10
nircmd.exe killprocess "winlogon.exe"

Timeout /T 2

:search
tasklist|find "winlogon.exe"
IF %ERRORLEVEL% == 0 (GOTO :found)
TIMEOUT /T 1
GOTO :search

:found
timeout /T 10
nircmd.exe killprocess "winlogon.exe"

Timeout /T 2

:search
tasklist|find "winlogon.exe"
IF %ERRORLEVEL% == 0 (GOTO :found)
TIMEOUT /T 1
GOTO :search

:found
timeout /T 10
nircmd.exe killprocess "winlogon.exe"

Timeout /T 2

:search
tasklist|find "winlogon.exe"
IF %ERRORLEVEL% == 0 (GOTO :found)
TIMEOUT /T 1
GOTO :search

:found
timeout /T 10
nircmd.exe killprocess "winlogon.exe"

Timeout /T 2

It would end the session several times or run for over a min and then I would log on. It worked well but I am worried that it would cause other damages to the system if I keep on ending winlogon that way.


JohnCoool

  • Guest
Re: DelayedDesktopSwitchTimeout
« Reply #12 on: August 09, 2020, 04:35:26 am »
Perhaps it's you that doesn't understand Boot up and the Start-up menu in msconfig.

Does Julian's post help you ?

In your Win 7 go Start - type msconfig and press enter when it comes up.

Click on Services then check the box to Hide all Microsoft services and you should see your security programs listed that will auto load and run to check your start-up system files and programs.

Tom, please stop giving me 1st grade tips. You are not qualified for this thread.

Offline Tim_Tweaking

  • Administrator
  • Newbie
  • *****
  • Join Date: Oct 2015
  • Posts: 49
  • Karma: 5
    • View Profile
    • Tweaking.com
Re: DelayedDesktopSwitchTimeout
« Reply #13 on: August 09, 2020, 05:01:45 am »
Some things to consider:
That's not how we talk to people here.
If the post was no help, then clarify why.
The moderator was genuinely trying to understand, and help.
You've been working on this for a "long time" and we're supposed to immediately catch up?
You were given two links at the top of the thread. Did they work?
You don't own this thread, we do.
Stop reporting posts and wasting my time.

Since you can't get the answer you want, then it's time to move on.

Perhaps it's you that doesn't understand Boot up and the Start-up menu in msconfig.

Does Julian's post help you ?

In your Win 7 go Start - type msconfig and press enter when it comes up.

Click on Services then check the box to Hide all Microsoft services and you should see your security programs listed that will auto load and run to check your start-up system files and programs.

Tom, please stop giving me 1st grade tips. You are not qualified for this thread.
Tweaking.Com Support and Moderator

Offline Boggin

  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Jul 2014
  • Posts: 10182
  • Location: UK
  • Karma: 122
    • View Profile
Re: DelayedDesktopSwitchTimeout
« Reply #14 on: August 09, 2020, 09:27:05 am »
Thanks for your support, Tim.

I've come close to banning this member because of his attitude.

Offline Tim_Tweaking

  • Administrator
  • Newbie
  • *****
  • Join Date: Oct 2015
  • Posts: 49
  • Karma: 5
    • View Profile
    • Tweaking.com
Re: DelayedDesktopSwitchTimeout
« Reply #15 on: August 09, 2020, 09:53:30 am »
Your welcome to delete his account.
Tweaking.Com Support and Moderator

Offline Boggin

  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Jul 2014
  • Posts: 10182
  • Location: UK
  • Karma: 122
    • View Profile
Re: DelayedDesktopSwitchTimeout
« Reply #16 on: August 09, 2020, 10:02:06 am »
I'll see how it progresses but that's the first time he's fully explained what he's trying to do.

It doesn't alter the fact though that security programs auto load on Boot and before other programs, but I can't get him to grasp this.

The fact there's a delay on some programs could be explained by how many programs are in his Start-up menu and how much memory he has installed.

I only have the bare minimum in mine.

Offline Boggin

  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Jul 2014
  • Posts: 10182
  • Location: UK
  • Karma: 122
    • View Profile
Re: DelayedDesktopSwitchTimeout
« Reply #17 on: August 09, 2020, 10:03:16 am »
Have you locked this thread Tim ?

Offline Tim_Tweaking

  • Administrator
  • Newbie
  • *****
  • Join Date: Oct 2015
  • Posts: 49
  • Karma: 5
    • View Profile
    • Tweaking.com
Re: DelayedDesktopSwitchTimeout
« Reply #18 on: August 09, 2020, 11:23:26 am »
I have
Tweaking.Com Support and Moderator

Offline Boggin

  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Jul 2014
  • Posts: 10182
  • Location: UK
  • Karma: 122
    • View Profile
Re: DelayedDesktopSwitchTimeout
« Reply #19 on: August 09, 2020, 02:14:31 pm »
Okay.