![]() ![]() Just a reminder, if you are reading the Spark!, Spi. Do you celebrate? Do you hate it? This year much of what my wife is getting are Valentine’s day is just around the corner. Spark! Pro series – 9th February 2024 Spiceworks Originals.If there is a way to stop explorer from even loading in the first place without damaging it's ability to run then the 2-6 seconds wouldn't matter as it wouldn't be interactive anyway. Unfortunately it still results in about 2-6 seconds after the welcome screen which the desktop is visible and interactive. Okay so that got it down to the desktop loading after the welcome screen then about 2-4 seconds later the script launches a command window which seems to wait about a second before terminating explorer then there is a further 1-2 seconds as VLC launchesĬurrently the batch script which is running at priority 0 looks like this Now reimport the xml to the scheduler and try it. ![]() Lok for the priority tags and set the prio to 0. Triggerit from the task scheduler, export the task to xml and delete it from the scheduler and edit the xml file. I'm sure there is probably a better way like writing a program to do all of this, but since I don't have much programming knowlege these simple scripts are as close as I'm going to get I think. I'm not sure how Windows update might affect this yet but I'm guessing the next big build might replace this as Windows 10 likes to do. You may notice that the VBS scripts modify the registry, this is because when sihost.exe is terminated it will reload the shell, so it's a simple case of changing what the shell is, then launching again, then setting the registry key back for the next restart. I created two scheduled tasks to run the other two vbs files skipping UAC for "StartupB.vbs" and "StartupC.vbs", I googled a quick guide to post here for future users reference. WshShell.RegWrite "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Shell","C:\IT\Startup.bat","REG_SZ" WshShell.RegWrite "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Shell","explorer.exe","REG_SZ" Set WshShell = CreateObject("WScript.Shell") START "" "C:\Program Files\VideoLAN\VLC\vlc.exe" C:\IT\Startup.mp4 -fullscreen vlc://quit The video is roughly 15 and a half seconds long to give context to the timeouts.įor the registry change just run StartupC.vbs as admin, then open the registry to check if that key is displaying correctly, if not then you did something wrong.įor your own scripts change "C:\IT\" with your own script directory, and make sure that the filenames are updated accordingly. It all works now I just need to make it pretty. I had to make a Batch file, two VBS scripts, and two scheduled tasks and modify one registry key to do all this. This was all done on Windows 10 Pro - 1803 so who knows if this'll still work at the next update. Okay so great news I got it working and I wanted to detail what worked for me for others that may come across this. Automatic logon isn't an issue as that's an easy fix. I tried removing explorer.exe from the Shell under:Ĭomputer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogonīut even when that's blank or pointing elsewhere explorer still launches so I'm guessing this no longer works for Windows 10.Ī bunch of the computers logs in as guest automatically when switched on so for that I'd prefer if I could skip the welcome screen altogether and just go straight from the "Loading windows" spinner to playing the video and loading the desktop. On windows 7 this worked fine, but for Windows 10 on some PCs there is a good 10-15 seconds of it loading of other windows components first before the batch file runs which makes it pointless as the user already attempts to start working beforehand.Ĭomputer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Runīut that's no different than launching the script as it still waits too long. START "" "C:\Program Files\VideoLAN\VLC\vlc.exe" C:\IT\Startup.mp4 -fullscreen START "" "C:\Program Files\VideoLAN\VLC\vlc.exe" -qt-start-minimized So far I've tried using a batch script in scheduled tasks to do the following upon logon: This is very clunky as you expect but worked very well until Windows 10.įor some reason in Windows 10 this registry change no longer works and the launch of the video is a lot more unpredictable so there can be a good 10 seconds after login before the video launches. When it was windows 7 I had set to disable explorer from starting via registry change and then use a script to play a video full screen in VLC, exit the video after a set amount of time, during which it would start explorer in the background. Think the "we are setting up your PC" screen that shows when a user logs in after a major build update, but instead displays each time with a custom video/animation. What I'd like to do is play a video upon login of a user and have it play full screen before the desktop loads. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |