{"id":999,"date":"2016-09-30T12:49:09","date_gmt":"2016-09-30T10:49:09","guid":{"rendered":"http:\/\/www.rolig.dk\/?p=999"},"modified":"2016-09-30T12:49:09","modified_gmt":"2016-09-30T10:49:09","slug":"speed-up-first-login-on-windows-10","status":"publish","type":"post","link":"https:\/\/rolig.dk\/?p=999","title":{"rendered":"Speed up first login on Windows 10"},"content":{"rendered":"<p>I work in a place where we have a lot of kiosk pc&#8217;s and pc&#8217;s that people can borrow. This mean that it is a first logon (almost) every time someone is logging in to Windows. The first logon time is not very fast in Windows 10, in fact it is very slow. There are some thing that you can do to speed up the first login time.<\/p>\n<ol>\n<li>Remove Windows store apps\n<li>Remove &#8220;First login animation&#8221;\n<li>Remove &#8220;Consumer&#8221; apps\n<li>Added a auto logon with a _\u201dDummy\u201d user\n<li>Remove printer mapping via GPO or uses Printer driver version 4<\/li>\n<\/ol>\n<p><strong>1.<\/strong> Windows store apps is getting installed in the user profile on every user that logon to Windows. And this takes time. So I remove the Windows store apps that I don&#8217;t need with PowerShell. Michael Niehaus have written a PS script that does it based on a XML file. Get <a href=\"https:\/\/1drv.ms\/f\/s!AvUjoCp_23pE1SMUyw4kEHzcBH5w\" target=\"_blank\" rel=\"noopener noreferrer\">RemoveApps.zip here<\/a>. You just comment the apps that you want to keep in the XML file and then run the script. You can add it to a SCCM task sequence.<\/p>\n<p><strong>2.<\/strong> You can also win a little time by disable &#8220;First login animation&#8221;. You can do the with a GPO:<\/p>\n<p>a. <em>Navigate<\/em> to Computer Configuration &gt; Administrative Templates &gt; System<\/p>\n<p>b. <em>Select<\/em> Logon<\/p>\n<p>c. <em>Double-click <\/em>Show first sign-in animation<\/p>\n<p>d. In the Show first sign-in animation window, <em>select<\/em> Disabled and <em>click<\/em> OK<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1214\" alt=\"Windows10_Disable_1st_Signin_Animation_2\" src=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/07\/Windows10_Disable_1st_Signin_Animation_2-300x278.png\" width=\"532\" height=\"493\"><\/p>\n<p><strong>3.<\/strong> Consumer apps is Candy crush and stuff like that. You can create a GPO, so they won&#8217;t get installed:<\/p>\n<p>a. <em>Navigate<\/em> to Computer Configuration &gt; Administrative Templates &gt; Windows components &gt; Cloud content<\/p>\n<p>b. <em>Double-click <\/em>Turn Off Microsoft consumer experiences<\/p>\n<p>c. In the Turn off Microsoft consumer experiences window, <em>select<\/em> Enabled and <em>click<\/em> OK<\/p>\n<p><a href=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/07\/image-29.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/07\/image_thumb-29.png\" width=\"518\" height=\"473\"><\/a><\/p>\n<p><strong>4. <\/strong>When the first user is logging on to Windows, then all the setting for the default user is created and of course the settings for the current user that logon. So I have added a login, with a user that doesn&#8217;t have access to anything, as the last step in my OS task sequence, where I also is doing a GP Update. You need two steps to create a auto login:<\/p>\n<p>a. Task sequence steps<br \/> <a href=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/09\/image.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/09\/image_thumb.png\" width=\"559\" height=\"115\"><\/a><\/p>\n<p>b. Download <a href=\"https:\/\/1drv.ms\/f\/s!AvUjoCp_23pE1SMUyw4kEHzcBH5w\" target=\"_blank\" rel=\"noopener noreferrer\">First_Run.zip<\/a> and create a package in SCCM containing the files in the zip file.<\/p>\n<p>c. edit \u201cautologin.vbs\u201d and add your user in line 16+17+18<\/p>\n<p>d. Create a scheduled task<\/p>\n<p><a href=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/09\/image-1.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/09\/image_thumb-1.png\" width=\"736\" height=\"559\"><\/a><\/p>\n<p><a href=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/09\/image-2.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/09\/image_thumb-2.png\" width=\"748\" height=\"568\"><\/a><\/p>\n<p><a href=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/09\/image-3.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/09\/image_thumb-3.png\" width=\"767\" height=\"583\"><\/a><\/p>\n<p><a href=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/09\/image-4.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/09\/image_thumb-4.png\" width=\"770\" height=\"582\"><\/a><\/p>\n<p><a href=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/09\/image-5.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/09\/image_thumb-5.png\" width=\"776\" height=\"593\"><\/a><\/p>\n<p>Right click the scheduled task and choose \u201cExport\u201d and save it in the sccm package you created in step b and replicate the package to your distribution points.<\/p>\n<p>e. Create \u201cRun Command Line\u201d step and choose the FirstLogon.cmd file. Select the package that you created in step b.<\/p>\n<p><a href=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/09\/image-6.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/09\/image_thumb-6.png\" width=\"544\" height=\"570\"><\/a>&nbsp;<\/p>\n<p>f. Create another \u201cRun Command Line step\u201d, select the package you created in step b and add this command line:<\/p>\n<p>schtasks \/Create \/XML First_Run.xml \/TN First_Run<\/p>\n<p><a href=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/09\/image-7.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/09\/image_thumb-7.png\" width=\"551\" height=\"549\"><\/a><\/p>\n<p>&nbsp;<strong>5.<\/strong> It can take a lot of time when you map printer with GPO and version 3 of the print drivers. So that gives us two options. <\/p>\n<p><em>1: Upgrade your print server to Server 2012 _R2. Because then you will be using printer driver v4. And the driver are very small compared to print driver v3<\/em><\/p>\n<p><em>2. Map the printers during OS deployment.<\/em><\/p>\n<p>You will need two steps to map the print drivers<\/p>\n<p><a href=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/09\/image-8.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/09\/image_thumb-8.png\" width=\"370\" height=\"90\"><\/a><\/p>\n<p>a. Create a shared folder. Ex. on your package share and call it \u201cPrinter Mapping\u201d<\/p>\n<p>b. Download <a href=\"https:\/\/1drv.ms\/f\/s!AvUjoCp_23pE1SMUyw4kEHzcBH5w\" target=\"_blank\" rel=\"noopener noreferrer\">PrinterMapping.ps1<\/a> and save it in the folder you created in step a. This script will map printers based on with OU the Pc is located in.<\/p>\n<blockquote>\n<p>Add the name of the OU in line 21.<br \/>Add&nbsp; the printer share in line 24.<br \/>Add the default printer in line 42.<\/p>\n<\/blockquote>\n<p>When you add printer like this, then the user cannot remove them. But they can choose with printer they want as default. To remove a printer that is install like this, you have to run this command line:<\/p>\n<blockquote>\n<p>RUNDLL32 PRINTUI.DLL,PrintUIEntry \/gd \/z \/n\\\\computername\\printername<\/p>\n<\/blockquote>\n<p>c. Create a \u201cRun Command Line\u201d step that connect to a folder where the printer mapping script is located<\/p>\n<p><a href=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/09\/image-9.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/09\/image_thumb-9.png\" width=\"547\" height=\"404\"><\/a><\/p>\n<p>d. Create a \u201cRun Command Line\u201d step that runs the PowerShell script:<\/p>\n<p>C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\PowerShell.exe -ExecutionPolicy ByPass -nologo -noprofile -file Z:\\PrinterMapping.ps1<\/p>\n<p><a href=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/09\/image-10.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/09\/image_thumb-10.png\" width=\"547\" height=\"346\"><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>With the above settings I have reduced the first logon time in Windows 10 from 2-4 minutes to about 20 seconds on a HP 840G1 with a SSD.<\/p>\n<p>If you have other settings that make first logon faster, then please let me know.<\/p>\n<a class=\"synved-social-button synved-social-button-share synved-social-size-48 synved-social-resolution-single synved-social-provider-twitter nolightbox\" data-provider=\"twitter\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Twitter\" href=\"https:\/\/twitter.com\/intent\/tweet?url=https%3A%2F%2Frolig.dk%2Findex.php%3Frest_route%3D%252Fwp%252Fv2%252Fposts%252F999&amp;text=Hey%20check%20this%20out\" style=\"font-size: 0px;width:48px;height:48px;margin:0;margin-bottom:5px;margin-right:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"twitter\" title=\"Share on Twitter\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"48\" height=\"48\" style=\"display: inline;width:48px;height:48px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/rolig.dk\/wp-content\/plugins\/social-media-feather\/synved-social\/addons\/extra-icons\/image\/social\/circle\/96x96\/twitter.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-48 synved-social-resolution-single synved-social-provider-linkedin nolightbox\" data-provider=\"linkedin\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Linkedin\" href=\"https:\/\/www.linkedin.com\/shareArticle?mini=true&amp;url=https%3A%2F%2Frolig.dk%2Findex.php%3Frest_route%3D%252Fwp%252Fv2%252Fposts%252F999&amp;title=Speed%20up%20first%20login%20on%20Windows%2010\" style=\"font-size: 0px;width:48px;height:48px;margin:0;margin-bottom:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"linkedin\" title=\"Share on Linkedin\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"48\" height=\"48\" style=\"display: inline;width:48px;height:48px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/rolig.dk\/wp-content\/plugins\/social-media-feather\/synved-social\/addons\/extra-icons\/image\/social\/circle\/96x96\/linkedin.png\" \/><\/a>","protected":false},"excerpt":{"rendered":"<p>I work in a place where we have a lot of kiosk pc&#8217;s and pc&#8217;s that people can borrow. This mean that it is a first logon (almost) every time someone is logging in to Windows. The first logon time is not very fast in Windows 10, in fact it is very slow. There are [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4,7],"tags":[11,15,19,54],"class_list":["post-999","post","type-post","status-publish","format-standard","hentry","category-sccm","category-windows-10","tag-first-logon","tag-logon","tag-osd","tag-windows-10"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/rolig.dk\/index.php?rest_route=\/wp\/v2\/posts\/999","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rolig.dk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rolig.dk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rolig.dk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rolig.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=999"}],"version-history":[{"count":0,"href":"https:\/\/rolig.dk\/index.php?rest_route=\/wp\/v2\/posts\/999\/revisions"}],"wp:attachment":[{"href":"https:\/\/rolig.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=999"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rolig.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=999"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rolig.dk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=999"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}