![]() ![]() 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. ![]() When I turn it on, I get greeted by a black screen with a blinking underscore in the top left corner.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. After some time and a lot of reboots while trying to solve the problem, the laptop will not even boot anymore. One time, I turned the laptop on and let it sit in the black screen, and after a while Windows had loaded successfully - the next reboot it was back to the black screen. I had read somewhere previously that I should try creating a new user, so I did, and it wouldn't even go past the "Starting up" screen when I would choose that user. I then booted into Safe Mode and checked it from there, and it was in fact set to "explorer.exe". Since I could open Task Manager, I tried going using the registry editor to see if the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Shell was set to "explorer.exe", but I couldn't as the OS was very slow and unresponsive. Then, I tried running sfc /scannow, but it found no problems. The first thing I tried were the advanced startup options, such as Safe Mode, which worked fine, but the rest of them, like low-resolution mode and the last good settings (or sth like that) and other options still had the problem. When I would turn on the laptop, Windows would start loading and it would boot to a black screen with the cursor. The problem started a couple of days ago. I have a problem with an older laptop, it's a HP ProBook 4545s. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |