The ultimate guide to Windows logon time optimizations, part #5

Everything you need to know about Windows logons in one blog series continues here!

I have threatened on several occasions now to do a follow-up to my previous article on Windows logon times which incorporates the findings from my “logon times masterclass” that I have presented at a few events. The time has come for me to turn these threats into reality, so this series of articles and accompanying videos will explore every trick we know on how to improve your Windows logon times. As many of you know, I work predominantly in Remote Desktop Session Host (RDSH) environments such as Citrix Virtual Apps and Desktops, VMware Horizon, Windows Virtual Desktop, Amazon Workspaces, Parallels RAS, and the like, so a lot of the optimizations discussed here will be aligned to those sorts of end-user computing areas…but even if you are managing a purely physical Windows estate, there should be plenty of material here for you to use. The aim of this is to provide a proper statistical breakdown of what differences optimizations can make to your key performance indicators such as logon time.

This series of articles is being sponsored by uberAgent, because the most important point to make about logon times is that if you can’t measure them effectively, then you will never be able to improve them! uberAgent is my current tool of choice for measuring not just logons (which it breaks down into handy sections that we are going to use widely during this series) but every other aspect of the user’s experience. All of the measurements in this series are going to be done via uberAgent, and as it comes with free, fully-featured community and consultants’ editions, there’s absolutely no reason that you can’t download it and start using it straight away to assess your own performance metrics. I’ve written plenty about uberAgent on this blog before, and I stand by it as the best monitoring tool out there for creating customized, granular, bespoke consoles that can be used right across the business. I’ve recently deployed it into my largest current client, so you can be sure I am putting my money where my mouth is – if it didn’t do the job, I wouldn’t have used it for my customers, simple as. It now features full Citrix Cloud integration and a “user experience” score to tell you where your users are having issues, so go and try uberAgent right now – you won’t regret it!

Part #5 – user profiles

I’ve said on many times that in my experience, the two biggest drags on user logon times are Group Policy and user profiles. We’ve already covered off Group Policy, so today we are going to enter the murky world of profiles.

We all know what a user profile is, right? Well if you don’t, go and read this article for some background first. The profile is loaded pretty early on in the logon process, so getting it done promptly is very beneficial.

We are testing today on some “fully-loaded” machines to give a proper impression of what a user profile is like. We’ve run Microsoft Teams to create the user cache, we’ve run up Outlook to synchronize the local OST file into the profile (three months’ cache as standard), and we’ve been browsing to a number of busy internet sites to spew out a load of browser garbage as well. There are a full set of applications (both natively installed and AppVentiX-delivered) on the target devices, and we’re testing on Server 2019 and Windows 10 21H1, both fully patched (because we build them like that). Given that I actually have a life outside of tech, we’ve only done five logons for each test instead of ten as previously, so please forgive me.

Let’s start with local profiles – so we will simply give our test users a local profile on the machines and measure the performance.

Local profiles

Obviously, local profiles aren’t very good for RDSH/Citrix/non-persistent environments because the profile only exists on the specific machine the user has accessed. But given that there are a lot of persistent environments out there, it makes sense to include them into the scope of our testing.

Because local profiles are exactly what they say on the tin – local to the device the user is using – it means there are very few dependencies when it comes to loading the profile. And not surprisingly, this is borne out by the data.

Data table 
2021-06-16 
4.36 
o. 27 
0.41 
2021-06-16 
10.30 
o. 23 
2021-06-16 
5. 80 
o. 15 
2021-06-16 
18. 83 
2021-06-16 
18.04 
user : 
JAMES 
-RANKIN\jrankin 
JAMES 
-RANKIN\jrankin 
JAMES 
-RANKIN\jrankin 
JAMES 
-RANKIN\jrankin 
JAMES 
-RANKIN\jrankin 
Host : 
ROS-ONIZACGWVH 
ROS-ONLZACGWVH 
ROS-ONIZACGWVH 
ROS-ONLZACGWVH 
ROS-ONLZACGWVH 
Logon time : 
21 : 22: 
21: 18: 55 
21: 16: 53 
21:15:51 
21: 13: 32 
Total duration 
user profile : 
Group policy 
d. 50 
d. 83 
3.33 
1. 02 
AD logon script : 
GP logon script : 
Shell start : 
d. 51 
1.01 
1.11 
2. 03 
2. 71
Server 2019 with local profile – all data provided by uberAgent
Averages for all logons 
Total duration: 
11.46 s 
User profile: 
0.24 s 
Group Policy: 
1.23 s 
AD logon script 
n/a 
GP logon script 
n/a 
Shell start: 
1.49 s
Server 2019 with local profile – all data provided by uberAgent
Data table 
2021-05-15 
0.14 
ı.SO 
ı. 03 
0.17 
2021-05-16 
1.71 
1.21 
2021-06-16 
4. 37 
0.15 
1.40 
1.02 
2021-05-16 
5.87 
o. 92 
1.11 
2021-06-16 
15. 07 
o. 72 
2.77 
3. 05 
User 
JAMES 
JAMES 
JAMES 
JAMES 
JAMES 
Host : 
DT-DNYAVHXSG,Z 
DT-DNYAVHXSGF 
DT-DNYAVHXSGF 
DT-DNYAVHXSGF 
DT-DNYAVHXSGF 
Logon time : 
21 
21 
21 
Total duration : 
User profile : 
0.32 
Group policy : 
AD logon Script : 
GP logon Script : 
Shell start 
-RANKINNjrankin 
-RANKINNjrankin 
-RANKINNjrankin 
-RANKINNjrankin 
-RANKINNjrankin
Windows 10 with local profile – all data provided by uberAgent
Averages for all logons 
Total duration: 
6.90 s 
User profile: 
0.30 s 
Group Policy: 
1.74 s 
AD logon script 
n/a 
GP logon script 
n/a 
Shell start: 
1.50 s
Windows 10 with local profile – all data provided by uberAgent

So we can see straight away that both the logon time and the profile load time for a local profile is blindingly fast. Under 0.3 seconds for the profile load and 7-11 seconds for the actual logon itself. That’s pretty impressive.

It’s interesting that Windows 10 is noticeably faster to logon than Server 2019. However, as I’ve already mentioned, a lot of us simply can’t use local profiles because we’re not in persistent environments. If you are doing fully persistent, then you should be able to achieve stunning logon times using a local profile, but if you’re not – then you need to choose a different way.

Roaming profiles

The “old” Microsoft roaming profile was very popular back in the day, but now is very long in the tooth and suffers from many limitations. The main drawback is that a roaming profile only captures the %APPDATA% folder from the user profile, completely ignoring the %LOCALAPPDATA% folder and anything else that may be necessary. This can be overridden by using the ExcludeProfileDirs Registry value, but this is a messy and probably unsupported configuration to use. But in the interests of thoroughness, we’ve done the testing on an old-style roaming profile hosted on an SMB file share.

Data table 
35.96 
18.29 
o. 75 
.44:49 
53.41 
29 . 44 
2021- -17 
61.97 
22.87 
1.61 
51.77 
21 .80 
1.21 
48. 60 
31 .41 
0.80 
user 
JAMES 
JAMES 
JAMES 
JAMES 
JAMES 
Host 
ROS-ONIZÅCGWVH 
ROS-ONIZÅCGWVH 
ROS-ONIZÅCGWVH 
ROS-ONIZÅCGWVH 
ROS-ONIZÅCGWVH 
Logon time 
Total duration : 
user profile : 
Group policy 
1.05 
AD logon script 
GP logon script : 
-RANKIN\jrankin2 
-RANKIN\jrankin2 
-RANKIN\jrankin2 
-RANKIN\jrankin2 
-RANKIN\jrankin2 
2021 
2021 
2021 
2021 
-17 
-17 
-17 
-17 
10. 
10. 
•35:41 
Shell start : 
13.48 
11.13 
18. 73 
26. 03 
13.d2
Server 2019 with roaming profile – all data provided by uberAgent
Averages for all logons 
Total duration: 
50.34 s 
User profile: 
24.76 s 
Group Policy: 
1.08 s 
AD logon script 
n/a 
GP logon script 
n/a 
Shell start: 
16.50 s
Server 2019 with roaming profile – all data provided by uberAgent
Data table 
2021-05-17 
50. 55 
38.85 
1.23 
2021-06-17 
51 . 50 
39.41 
o. 63 
2021-05-17 
53. 58 
37.43 
o. 53 
2021-06-17 
61.47 
36.413 
1.55 
2021-05-17 
85. 12 
44. 34 
ı. 03 
User 
JAMES 
JAMES 
JAMES 
JAMES 
JAMES 
Host 
DT-DNYAVHXSG? 
DT-DNYAVHXSG7 
DT-DNYAVHXSG7 
DT-DNYAVHXSG7 
DT-DNYAVHXSG7 
Logon time 
Total duration : 
User profile : 
Group policy : 
AD logon Script 
GP logon Script 
-RANKINNjrankin2 
-RANKINNjrankin2 
-RANKINNjrankin2 
-RANKINNjrankin2 
-RANKINNjrankin2 
10: 54: 58 
Shell start 
lâ. 14 
15.30 
17.12 
18.37 
31 143
Windows 10 with roaming profile – all data provided by uberAgent
Averages for all logons 
Total duration: 
65.66 s 
User profile: 
39.28 s 
Group Policy: 
1.03 s 
AD logon script 
n/a 
GP logon script 
n/a 
Shell start: 
19.99 s
Windows 10 with roaming profile – all data provided by uberAgent

Wow. We can see a huge jump here, with Windows 10 jumping to a 65 second logon time and nearly 40 seconds to load the profile, and Server 2019 jumping to an average of 50 second logon time and almost 25 seconds to load the profile. On top of this, using a basic roaming profile gave us awful problems with authentication to Office365 and reset a whole host of user settings at every logon. Now what people always say here is “would Folder Redirection make a difference to this?” Unfortunately, the answer is no, because in our testing we didn’t have files in any folders that you would traditionally redirect – there were no files on the users’ Desktop, for instance.

It’s clear that loading user data by copying it down to the endpoint in this fashion is grossly inefficient, so let’s not dwell on it too much and move on.

Citrix User Profile Management

I have to give a run out to Citrix UPM because obviously it’s very popular in environments that I work in. Let’s remember, also, that there are now two ways you can use UPM to manage a user profile – the old-school way, by storing the UPM profiles on a file share and loading them up (kind of like a roaming profile on steroids), but there’s also the UPM Profile Container feature that I talked about previously, where you can mount the entire profile into a VHD file. We’re going to test both.

Citrix UPM (file-based)

We set up UPM in a pretty standard fashion, without any streaming features or folder redirection. The profiles were hosted on the same SMB file share we used with the roaming profiles. Here’s the results

Data table 
2021-06-17 
53. 
38.43 
1.31 
2021-06-17 
•18:41 
53. 26 
39.95 
1.55 
2021-06-17 
• 10:44 
66.45 
41.98 
1.56 
2021-06-17 
36. 23 
12.58 
1. 22 
2021-06-17 
35.43 
10.37 
1.07 
user 
JAMES 
JAMES 
JAMES 
JAMES 
JAMES 
Host : 
ROS-ONLZACGWVH 
ROS-ONLZACGWVH 
ROS-ONLZACGWVH 
ROS-ONLZACGWVH 
ROS-ONIZACGWVH 
Logon time : 
15: 21:56 
15. 
15. 
Total duration 
user profile : 
Group policy 
AD logon script : 
GP logon script : 
-RANKIN\jrankin 
-RANKIN\jrankin 
-RANKIN\jrankin 
-RANKIN\jrankin 
-RANKIN\jrankin 
Shell start : 
3. 53 
3.50 
11.80 
11.36 
15. 08
Server 2019 with file-based Citrix UPM – all data provided by uberAgent
Averages for all logons 
Total duration: 
50.10 s 
User profile: 
28.66 s 
Group Policy: 
1.34 s 
AD logon script 
n/a 
GP logon script 
n/a 
Shell start: 
11.59 s
Server 2019 with file-based Citrix UPM – all data provided by uberAgent
Data table 
2021-05-17 
52. 55 
26.06 
0.75 
2021-06-17 
46. 83 
15.11 
ı -20 
2021-05-17 
38. 22 
13.13 
o. 80 
2021-06-17 
57.43 
25.71 
1.11 
2021-05-17 
46. 26 
13.10 
2.07 
User 
JAMES 
JAMES 
JAMES 
JAMES 
JAMES 
Host : 
DT-DNYAVHXSG,Z 
DT-DNYAVHXSGF 
DT-DNYAVHXSGF 
DT-DNYAVHXSGF 
DT-DNYAVHXSGF 
Logon time : 
14:12:38 
13:57:50 
13:52:53 
Total duration : 
User profile : 
Group policy : 
AD logon Script : 
GP logon Script : 
-RANKINNjrankin 
-RANKINNjrankin 
-RANKINNjrankin 
-RANKINNjrankin 
-RANKINNjrankin 
Shell start 
13. 55 
22.43 
15. 52 
21 . 53 
23. 73
Windows 10 with file-based Citrix UPM – all data provided by uberAgent
Averages for all logons 
Total duration: 
48.27 s 
User profile: 
18.63 s 
Group Policy: 
1.19 s 
AD logon script 
n/a 
GP logon script 
n/a 
Shell start: 
20.60 s
Windows 10 with file-based Citrix UPM – all data provided by uberAgent

Again, a big uptick in both profile load time and overall logon time – averaging 19 seconds and 29 seconds respectively for the profile load, and 48-50 seconds for the overall logon time. Interestingly, Windows 10 is a lot quicker to load the profile, but only marginally quicker for the overall logon, which is pretty poor, all things considered. Seems that using UPM out-of-the-box in its old file-based format is not very good.

Citrix UPM – container-based

Let’s switch now to capturing the entire UPM profile as a VHD instead and repeat the same tests. The VHD is stored on the same file shares as the “traditional” UPM profile.

Data table 
2021-06-18 
26.43 
1.32 
2021-06-18 
• 42: 33 
34. 51 
10.86 
4.11 
2021-06-18 
17.67 
d. 56 
2021-06-18 
26. 51 
d. 61 
2021-06-18 
34. 50 
1.73 
user 
JAMES 
JAMES 
JAMES 
JAMES 
JAMES 
Host : 
ROS-ONLZACGWVH 
ROS-ONLZACGWVH 
ROS-ONLZACGWVH 
ROS-ONLZACGWVH 
ROS-ONLZACGWVH 
Logon time : 
10. 
10: 36: 35 
10: 32: 27 
Total duration 
user profile : 
9.15 
5. 14 
6.67 
9.27 
Group policy 
AD logon script : 
GP logon script : 
-RANKIN\jrankin 
-RANKIN\jrankin 
-RANKIN\jrankin 
-RANKIN\jrankin 
-RANKIN\jrankin 
Shell start : 
12. 10 
11.26 
8.32 
12. 33 
14.13
Server 2019 with container-based Citrix UPM – all data provided by uberAgent
Averages for all logons 
Total duration: 
27.92 s 
User profile: 
8.22 s 
Group Policy: 
1.67 s 
AD logon script 
n/a 
GP logon script 
n/a 
Shell start: 
11.76 s
Server 2019 with container-based Citrix UPM – all data provided by uberAgent
Data table 
2021-05-18 
• 39:45 
31. 60 
ı .39 
2021-05-18 
32. 73 
o. 84 
2021-05-18 
23. 62 
o. 85 
2021-05-18 
13. 75 
ı .50 
2021-05-18 
35. 73 
1.34 
User 
JAMES 
JAMES 
JAMES 
JAMES 
JAMES 
Host : 
DT-DNYAVHXSG,Z 
DT-DNYAVHXSGF 
DT-DNYAVHXSGF 
DT-DNYAVHXSGF 
DT-DNYAVHXSGF 
Logon time : 
14. 
14:37:01 
Total duration : 
User profile : 
8.27 
6.45 
6.18 
Group policy : 
AD logon Script : 
GP logon Script : 
-RANKINNjrankin 
-RANKINNjrankin 
-RANKINNjrankin 
-RANKINNjrankin 
-RANKINNjrankin 
Shell start 
18.13 
21.15 
18.11 
ı. 68 
23. 83
Windows 10 with container-based Citrix UPM – all data provided by uberAgent
Averages for all logons 
Total duration: 
28.90 s 
User profile: 
6.83 s 
Group Policy: 
1.19 s 
AD logon script 
n/a 
GP logon script 
n/a 
Shell start: 
16.60 s
Windows 10 with container-based Citrix UPM – all data provided by uberAgent

Now we can see a drastic improvement in both the profile load and logon time KPIs. Profile load is 6-8 seconds for both OSes, and total duration again is pretty close, but this time it has been reduced to 27-28 seconds, which is a marked improvement and proof that using containers is much better for profiles than a file-based solution.

FSLogix Profile Containers and/or Office Containers

Now that we’ve ascertained containers make a big difference, let’s switch to Microsoft’s FSLogix Profile Containers to do the tests. We will test a single Profile Container capturing everything, and a Profile Container with a second Office Container as well to capture the Teams and Outlook data separately. Again, we used the same SMB file share.

Profile Containers standalone

On their own, Profile Containers perform as below

Data table 
2021-06-21 
18.20 
0.16 
2021-05-21 
13. 55 
2021-06-21 
15. 77 
2021-05-21 
17.83 
2021-06-21 
112:43 
15. 53 
0.13 
2021-05-21 
16.28 
User 
JAMES 
JAMES 
JAMES 
JAMES 
JAMES 
JAMES 
Host 
RDS-ONIZACGWVH 
RDS-ONIZACGWVH 
RDS-ONIZACGWVH 
RDS-ONIZACGWVH 
RDS-ONIZACGWVH 
RDS-ONIZACGWVH 
Logon time 
Total duration : 
12: 34: 58 
12: 33:35 
12: 23: 21 
12: 20: 18 
12. 
User profile : 
0.18 
Group policy : 
1.50 
2. 03 
2.40 
1.57 
o. 50 
1.32 
AD logon Script 
GP logon Script 
-RANKINNjrankin 
-RANKINNjrankin 
-RANKINNjrankin 
-RANKINNjrankin 
-RANKINNjrankin 
-RANKINNjrankin 
Shell start 
13.08 
7.72 
8. 83 
â. 82 
10.32 
7.33
Server 2019 with FSLogix single Profile Container – all data provided by uberAgent
Averages for all logons 
Total duration: 
17.24 s 
User profile: 
0.12 s 
Group Policy: 
1.60 s 
AD logon script 
n/a 
GP logon script: 
n/a 
Shell start: 
9.04 s
Server 2019 with FSLogix single Profile Container – all data provided by uberAgent
Data table 
2021-06-21 
22. 83 
0.07 
0.83 
2021-06-21 
21 . 23 
1.27 
2021-06-21 
23 . 46 
1 .49 
0.06 
2021-06-21 
•46:06 
25. 84 
1 .22 
2021-06-21 
•44:34 
24. 83 
1.75 
user : 
JAMES 
-RANKIN\jrankin 
JAMES 
-RANKIN\jrankin 
JAMES 
-RANKIN\jrankin 
JAMES 
-RANKIN\jrankin 
JAMES 
-RANKIN\jrankin 
Host 
DT-DNYAVHXSGF 
DT-DNYAVHXSGF 
DT-DNYAVHXSGF 
DT-DNYAVHXSGF 
Logon time : 
13. 
13. 
Total duration 
User profile 
0.06 
0.07 
0.15 
Group policy 
AD logon script : 
GP logon script 
Shell start : 
14. 60 
13.33 
13.33 
17.53 
14. 30
Windows 10 with FSLogix single Profile Container – all data provided by uberAgent
Averages for all logons 
Total duration: 
23.66 s 
User profile: 
0.08 s 
Group Policy: 
1.31 s 
AD logon script 
n/a 
GP logon script 
n/a 
Shell start: 
14.89 s
Windows 10 with FSLogix single Profile Container – all data provided by uberAgent

Now here’s some interesting data – FSLogix Profile Containers load the user profile faster than a local profile (around 0.1 seconds on average). That’s incredible, and they also mount their container far faster than the equivalent Citrix UPM technology. However – they don’t log on as quickly as a local profile, so even though the initial load is done at a breathtaking pace, pulling the expanded data from the VHD on the file share seems to eat up some time. On Server 2019 we are averaging around 17 seconds, on Windows 10 around 23. That’s pretty passable for a non-persistent environment, but we’re still way off the speeds you would get with a local profile.

FSLogix Profile Containers and Office Containers

Let’s repeat this test with the Profile Container loading the Office cache data for Outlook and Teams into a separate Office Container. As before, both containers are stored on the same SMB file share.

Data table 
2021-06-22 
31.51 
3.08 
2021-06-22 
• 58:41 
20. 
1.33 
2021-06-22 
22. 70 
0.41 
1.28 
0.26 
2021-06-22 
•47:13 
21 . 
d. 60 
2021-06-22 
21 . 20 
0.32 
o. 75 
user : 
JAMES 
-RANKIN\jrankin 
JAMES 
-RANKIN\jrankin 
JAMES 
-RANKIN\jrankin 
JAMES 
-RANKIN\jrankin 
JAMES 
-RANKIN\jrankin 
Host : 
ROS-ONLZACGWVH 
ROS-ONLZACGWVH 
ROS-ONLZACGWVH 
ROS-ONLZACGWVH 
ROS-ONLZACGWVH 
Logon time : 
14: 01:21 
13. 
13: 55: 51 
13. 
13: 52 
Total duration 
user profile : 
0.27 
Group policy 
AD logon script : 
GP logon script : 
Shell start : 
3. 36 
8. 25 
3. 27 
8. 25 
7.22
Server 2019 with FSLogix dual containers – all data provided by uberAgent
Averages for all logons 
Total duration: 
23.58 s 
User profile: 
0.46 s 
Group Policy: 
1.42 s 
AD logon script 
n/a 
GP logon script 
n/a 
Shell start: 
8.59 s
Server 2019 with FSLogix dual containers – all data provided by uberAgent
Data table 
2021-05-22 
34.13 
0.87 
2021-06-22 
• 21 
31 . 79 
o. 95 
2021-05-22 
23.82 
0.58 
2021-05-22 
31.61 
ı .25 
2021-05-22 
56.28 
ı .92 
User 
JAMES 
JAMES 
JAMES 
JAMES 
JAMES 
Host : 
DT-DNYAVHXSGF 
DT-DNYAVHXSGF 
DT-DNYAVHXSGF 
DT-DNYAVHXSGF 
DT-DNYAVHXSGF 
Logon time : 
14. 
Total duration : 
User profile : 
1.05 
0.24 
0.24 
o. 75 
Group policy : 
AD logon Script : 
GP logon Script : 
-RANKINNjrankin 
-RANKINNjrankin 
-RANKINNjrankin 
-RANKINNjrankin 
-RANKINNjrankin 
Shell start 
18.40 
15.03 
15. 73 
17.34 
37.74
Windows 10 with FSLogix dual containers – all data provided by uberAgent
Averages for all logons 
Total duration: 
36.74 s 
User profile: 
0.50 s 
Group Policy: 
1.13 s 
AD logon script 
n/a 
GP logon script 
n/a 
Shell start: 
21.17 s
Windows 10 with FSLogix dual containers – all data provided by uberAgent

Using dual containers makes the profile load take longer – but not really much that a user would notice, to be fair, increasing to about half a second. However – and particularly on Windows 10 – switching to dual containers puts a bit of a dent in the overall logon time, going up to 23 seconds for Server 2019 and a quite dramatic average of 36 seconds for Windows 10.

User Profile Disks

Whilst measuring the performance of container-based solutions, it wouldn’t be fair not to include Microsoft’s old User Profile Disks technology. Whilst this was primarily a Server feature, you can enable it on Windows 10 as well – as discussed in this article.

Again, we’ve simply stored the UPDs on the same SMB file share as previous tests.

Server 2019 with User Profile Disks – all data provided by uberAgent
Server 2019 with User Profile Disks – all data provided by uberAgent
Windows 10 with User Profile Disks – all data provided by uberAgent
Windows 10 with User Profile Disks – all data provided by uberAgent

User Profile Disks are a little erratic – occasionally they load the profile and logon in a similar time to FSLogix Profile Containers, but on the whole, they seem to be consistently slower than the FSLogix option.

Mandatory profiles

Now, I generally don’t recommend using mandatory profiles any more – see here for a discussion of how to recreate the benefits of a mandatory profile without using one – but I am aware that there are people who still do. Just for posterity, let’s take a Server 2019 and Windows 10 mandatory profile we have lying around and run them through the same tests. In these cases, we stored the mandatory profile local to the server, which is generally the way I would do it if I had to use it in the enterprise.

Data table 
2021-06-22 
44.03 
17.50 
2021-06-22 
• 32: 47 
24.03 
0.63 
2021-06-22 
41 .25 
15.41 
2.36 
2021-06-22 
24. 74 
0.55 
2021-06-22 
• 22:43 
58. 28 
8.06 
2.57 
user : 
JAMES 
-RANKIN\jrankin2 
JAMES 
-RANKIN\jrankin2 
JAMES 
-RANKIN\jrankin2 
JAMES 
-RANKIN\jrankin2 
JAMES 
-RANKIN\jrankin2 
Host 
ROS-ONIZACGWVH 
ROS-ONIZÅCGWVH 
ROS-ONIZÅCGWVH 
ROS-ONIZÅCGWVH 
ROS-ONIZÅCGWVH 
Logon time 
Total duration : 
15. 
15. 
user profile : 
6.49 
.73 
Group policy 
1.67 
AD logon script 
GP logon script : 
Shell start 
13. 56 
12. 63 
36 
12. 78 
31.83
Server 2019 with mandatory profile – all data provided by uberAgent
Averages for all logons 
Total duration: 
38.47 s 
User profile: 
10.84 s 
Group Policy: 
1.56 s 
AD logon script 
n/a 
GP logon script 
n/a 
Shell start: 
18.26 s
Server 2019 with mandatory profile – all data provided by uberAgent
Data table 
2021-06-22 
157:43 
43. 33 
2021-05-22 
75. 83 
12.42 
2021-06-22 
57. 
11.76 
2021-05-22 
• 45: 23 
57 . 32 
11.42 
2021-06-22 
• 40: 22 
71.13 
User 
JAMES 
JAMES 
JAMES 
JAMES 
JAMES 
Host 
DT-DNYAVHXSG7 
DT-DNYAVHXSG7 
DT-DNYAVHXSG7 
DT-DNYAVHXSG7 
DT-DNYAVHXSG7 
Imgon time 
Total duration : 
User profile : 
3.63 
Group policy : 
o. 55 
1 . 45 
ı. 20 
1.22 
1.02 
AD logon Script 
GP logon Script 
-RANKINNjrankin2 
-RANKINNjrankin2 
-RANKINNjrankin2 
-RANKINNjrankin2 
-RANKINNjrankin2 
15. 
15: 55: 08 
15: 52: 50 
15. 
15. 
Shell start 
30. 73 
35 
40. 23 
33. 30 
38. 55
Windows 10 with mandatory profile – all data provided by uberAgent
Averages for all logons 
Total duration: 
66.51 s 
User profile: 
8.35 s 
Group Policy: 
1.09 s 
AD logon script 
n/a 
GP logon script 
n/a 
Shell start: 
39.19 s
Windows 10 with mandatory profile – all data provided by uberAgent

You can see that despite being stored local to the device, the profile load time of 8-10 seconds is still much higher than that of a container. Also, for some reason the total logon time is particularly bad on Windows 10 – over a minute, compared to 38 seconds for Server 2019. Now, this may also indicate that you would need to regenerate a mandatory profile every time a Windows 10 update is released – this mandatory profile was created on 1909 and run on 21H1, so that may be the reason for the dramatic uptick in overall logon time. However, I think these stats reinforce my feeling that using a mandatory profile is probably a legacy way of operation.

Ivanti User Workspace Manager with a mandatory profile (hybrid profile)

In my AppSense-blogging days, using a mandatory profile alongside the product (now called Ivanti UWM) was the preferred way of setup. Ivanti referred to this as “hybrid” profiles, with the mandatory profile providing the base and Ivanti Personalization Server layering in the settings. There are other technologies you can achieve the same ends with, such as Microsoft UE-V, but I chose to test Ivanti as I am quite familiar with it.

I set up Ivanti’s Personalization Server using the templated groups for applications and Windows settings, and ran the web and database services on a single server as you would in a PoC. The results are below.

Data table 
2021-06-22 
40.87 
7.42 
o. 86 
2021-06-22 
36.48 
9.11 
0.53 
2021-06-22 
37.09 
8.21 
0.65 
15.97 
2021-06-22 
52.26 
o. 79 
2021-06-22 
35.43 
9.30 
user 
JAMES 
JAMES 
JAMES 
JAMES 
JAMES 
Host 
ROS-ONIZACGWVH 
ROS-ONIZACGWVH 
ROS-ONIZACGWVH 
ROS-ONIZACGWVH 
ROS-ONIZACGWVH 
Logon time 
Total duration 
user profile 
16. 
16. 
Group policy 
1. 34 
AD logon script 
GP logon script 
-RANKIN\jrankin2 
-RANKIN\jrankin2 
-RANKIN\jrankin2 
-RANKIN\jrankin2 
-RANKIN\jrankin2 
Shell start 
16.43 
15. 60 
13.44 
IB. 70
Server 2019 with hybrid profile – all data provided by uberAgent
Averages for all logons 
Total duration: 
40.42 s 
User profile: 
10.00 s 
Group Policy: 
0.83 s 
AD logon script 
n/a 
GP logon script 
n/a 
Shell start: 
18.03 s
Server 2019 with hybrid profile – all data provided by uberAgent

Now it is unclear if uberAgent can understand whether the Ivanti Personalization Server loading settings counts as part of the “profile load” – I doubt very much that it would. However, it will add the time taken to the overall logon duration. The results aren’t great – averaging 40 seconds for a logon and 10 seconds to load the profile. Also, I didn’t test on Windows 10 as at this point I was seriously running short on time, but I would expect the results to be pretty much the same.

Conclusions

Now, what can we extrapolate from this data?

Firstly, local profiles are by far the fastest way to get your profile loaded and this contributes to a lightning-fast logon time, in general. But this assumes that the local profile is already on the device the user is accessing, and in non-persistent environments this is practically impossible. Naturally, this also means that roaming between devices or sessions is also not possible, so for many, local profiles aren’t a viable solution. If they are though – look no further.

Mandatory profiles I would avoid, for reasons which are better discussed in the article I linked in the mandatory profiles section. They’re not particularly efficient in terms of logons and have many limitations besides that.

Roaming profiles are to all intents and purposes dead for modern environments – they need to be hacked to even capture all of the required user data and the file-based engine that they use mean that they are very poor in terms of both profile load time and logon time.

Citrix UPM in file-based mode also performs pretty badly. Now I know there are many people who will suggest that you can tune file-based UPM to perform much better, and I agree – there are a lot of features and tricks within UPM that can speed things up greatly. However, we are simply looking at out-of-the-box performance here, and UPM does not offer much better than a roaming profile in terms of speed – although it does successfully capture all user settings, whereas a roaming profile does not.

Hybrid profiles, particularly when used with Ivanti UWM, again seem to perform pretty badly, and again many who use UWM will suggest that aggressive tuning can make that performance considerably better. I also agree with this, but stick to my insistence that we are going to measure it on out-of-the-box performance. I’m sure that using the UWM container features together with very streamlined EM PS configurations would produce a fantastic set of results, and I may see if we can do a study on it within this series, but for the here and now – out-of-the-box, it doesn’t give a great profile load or logon time.

Containers, right across the board, perform much better than old file-based profile management.

Citrix UPM Container seems to take the longest to load out of all the container-based methods tested. It also, interestingly, pumped out a 3.5GB container in total size.

User Profile Disks performed well with profile load times, but was quite inconsistent and the overall logon times were a little poor. It also threw out a 3.5GB container.

FSLogix Profile Containers seemed to perform the best when used standalone – the load time was actually faster than a local profile, and logon time was on average between 17-23 seconds, which is pretty good for a networked profile solution. Again, very interestingly, the profile data that was taking up 3.5GB in both UPM and UPD was reduced to about 800MB when using Profile Containers.

Using FSLogix with dual containers had a slight uptick on the KPIs, and also a slight increase (up to 1.2GB) in the overall data consumed within the containers.

So in conclusion, local profiles perform by far the best, but if you need a centrally managed roaming profile solution, then FSLogix Profile Containers seem to be the most sensible choice.

Improving performance further

One piece of data that was consistent was that when using a FSLogix Profile Container, even though the profile load time was incredibly quick, there was still a delay that increased the logon time. In uberAgent this showed mostly as “Shell Start”, and seemed to be caused by the expansion of the user’s files into their profile from the network location they were stored in.

It stands to reason that when storing profiles on the network, increasing the performance of the storage and the file server presenting the storage is a crucial way to improve that logon KPI. I consulted both the internet and fellow CTP Leee Jefferies, and made the following tweaks to the Registry on my Windows file server to try and improve the overall performance (all the below values are DWORD and decimal)

Higher concurrent limit to allow for higher bandwidth transfer

HKLM\System\CurrentControlSet\Services\LanmanServer\Parameters\Smb2CreditsMax = 12288

Allow more I/O to queue in the storage subsystem – 2 additional threads

HKLM\System\CurrentControlSet\Control\Session Manager\Executive\AdditionalCriticalWorkerThreads = 20

Double the standard asynchronous commands

HKLM\System\CurrentControlSet\Services\LanmanServer\Parameters\AsynchronousCredits = 1024

Allow more threads per I/O queue

HKLM\System\CurrentControlSet\Services\LanmanServer\Parameters\MaxThreadsPerQueue = 40

Improve client latency

HKLM\System\CurrentControlSet\Services\LanmanServer\Parameters\TreatHostAsStableStorage = 1

Also on the clients, I added this Registry value

HKLM\system\CurrentControlSet\Services\lanmanworkstation\parameters\DisableBandwidthThrottling = 1

After applying these I re-ran the tests against FSLogix Profile Container on Server 2019, and the results are shown below

Data table 
2021-06-23 
12.55 
d. 65 
2021-06-23 
11.86 
d. 61 
2021-06-23 
12.78 
d. 85 
2021-06-23 
11.97 
2021-06-23 
11.25 
user : 
JAMES 
-RANKIN\jrankin 
JAMES 
-RANKIN\jrankin 
JAMES 
-RANKIN\jrankin 
JAMES 
-RANKIN\jrankin 
JAMES 
-RANKIN\jrankin 
Host : 
ROS-ONLZACGWVH 
ROS-ONIZACGWVH 
ROS-ONLZACGWVH 
ROS-ONIZACGWVH 
ROS-ONLZACGWVH 
Logon time : 
16: 28: 13 
16: 24: 28 
16: 22:17 
16: 14: 23 
16:11:11 
Total duration 
user profile : 
Group policy 
AD logon script : 
GP logon script : 
Shell start : 
6. 82 
6. 73 
7.56 
7.52 
7.17
Averages for all logons 
Total duration: 
12.08 s 
User profile: 
0.08 s 
Group Policy: 
0.72 s 
AD logon script 
n/a 
GP logon script 
n/a 
Shell start: 
7.16 s

This is quite a marked improvement – profile load time is now an average of 0.8 seconds rather than 0.12 seconds, and average logon time is down from 17 seconds to 12 seconds. It is clear that when using a container-based solution from a networked file share like you would with FSLogix Profile Containers, tuning of your storage and the device that presents the file share is absolutely crucial. When done well – and I have no doubt I could do better on my own lab – we are already seeing logon times averaging at 12 seconds, which for a networked profile solution is very good indeed. Especially when we consider that we aren’t applying any of the optimizations from other parts of this series – this is based on out-of-the-box profile management performance alone.

So in summary, for those of you working in non-persistent environments, a container-based profile solution combined with fast, optimized file server storage is the best way to maintain good logon times. As I said previously, you can probably do much better with UPM or Ivanti than I did, and I may produce an article specifically dedicated to tuning those profile solutions within the later parts of this series. But for now – if you can’t use a local profile, then FSLogix Profile Containers looks like your best bet for good logon performance.

Stay tuned for part #6 of this series, where we will be taking a dive into the effects of Windows 10 UWP applications.

Loading

16 comments

  1. All I have to say is WOW! This took a significant amount of time to create, I really appreciate you creating this. Right now we are using redirect folders on RDS. I started looking into FSLogix last week, looks like I made the right choice!

  2. Hi James,
    I am deploying fslogics on vmware horizon 7.13.1 with instant clone.
    My login time is around 70 seconds. There is no folder redirection. I have Mapped drive H. Desktop, documents and downloads etc location is defined in registry to go to H mapped drive instead of userprofile.
    VHD profile size is 4 gB
    Below is the breakdown of each policy login time to 70 seconds.
    Please wait for the fs logics apps services 14 seconds
    applying users settings 5 seconds
    applying registry settings 5 seconds
    Applying group policy registry policies 6 seconds
    Applying group policy internet settings policy 6 seconds
    preparing windows 35 seconds
    The last step of preparing windows is taking so long and even the first step of fslogics is taking almost 15 seconds.
    Any clue how we can reduce the login time to 30 seconds at least.
    Many thanks

    1. Remove things step-by-step and see what happens. You say you’re not using Folder Redirection, yet you say Desktop, Documents and Downloads are redirected to the H: drive – this is classic Folder Redirection, CSE or not. If you take that redirection out, what is the logon time like?

    2. Also, asynchronous policy processing would help here – your GPOs would go from 22 seconds down to about 5 seconds.

    3. hi
      same problem, without default profile the login time was around 20 s, but now i have “preparing windows” for 30-35sec.

  3. Hi James, i enabled asynchronous and now fslogics failed and throws the error “The user profile failed to attach. ” and got signed out. looks like fslogics doesnt work if gp is asynchronous.
    any other suggestions.
    I have done classic Folder Redirection, CSE by changing ntuser.dat in default and changed all the profiles folder eg desktop, documents etc to mapped drive so my desktop is now H:\Desktop and so on.
    am i doing something wrong as architecural point of view.
    I followed your YouTube tutorial for asynchronous gp.
    Thanks

    1. Ah – do I remember somewhere that the latest version of FSLogix forces synchronous mode? I think it did – not sure on the reason but I think that might be it.

  4. I installed the latest version of fslogics and the error is gone. There is not much improvement.
    Now from fslogics policy setting to other group policies its 20 seconds and than preparing windows takes 30 seconds so altogether till it shows desktop takes 50 seconds altogether.
    Any other suggestions.
    I can attach a video if it makes sense.

    Thanks

  5. It looks like asynchronous is not getting applied and still it is synchronous. unfortunately in master image the events viewer were empty where we see gp status.
    when i open registry as normal user i dont see subkey stat but when i open registry as administrator i do see sub key stat and the correspondence values. i added these values in default ntuser.dat in master image.
    is there any other way we can see if my policies are asynchronous. because still i see in login that all registries and policies are getting applied during login.

    1. Unfortunately the event viewer is the only place I know. Any idea why the event log is empty? That doesn’t sound good…

  6. I have applied vmware os optimization which is very aggressive and i dont know which seetting has disabled it. But to me it looks like fslogics forces it to go synchronous.
    May be someone else has fslogics on windows 21H1.

  7. I really appreciate your efforts James.

    Facing the same issue here. After everything is loaded windows 10 shows blank screen for 30 seconds, without this the login time is sub 30 secs. Were you able to find a solution for this?
    @shah G?

    1. Personally I now only recommend using FSLogix version 2.9.7349.30108. I don’t install anything newer. I’d give that a try and see if it makes a difference. That is the last version that could actually handle asynchronous mode.

Leave a Reply

Your email address will not be published. Required fields are marked *