Spiderkeys
Member
Not really a wish because I kind of fulfilled it
One thing that's bothered me on Windows Boot Manager, is that you can only select a default OS, to boot up on, this is hard if I like all of them equally, so I got to wait until it passes POST, then close my eyes and randomy press up/down/up/down, etc then ENTER to pick one for the day.
That was harder than it seems, because I know if I press Too many UPs or DOWNs with the arrows in a row it will just pick the first one on the list or the last one.
So I had an idea, with the help of AHK (AutoHotKey) used as start-up script at bootup, it can change the default OS invisibility without my knowledge which of course what I want.
All I needed to know was the identifier numbers of my OS's, which EasyBCD nicely gives you this information.
My code is:
This is great if I boot up Vista or Windows 8.1, but if it gets to Windows XP or 2000, it doesn't understand the command BCDEDIT, so I be stuck in one of those until I boot up Vista or 8.1 again.
So any suggestions here, it there an easy way, a function I didn't even know off, or can you edit Windows 2000/XP using the command prompt?
One thing that's bothered me on Windows Boot Manager, is that you can only select a default OS, to boot up on, this is hard if I like all of them equally, so I got to wait until it passes POST, then close my eyes and randomy press up/down/up/down, etc then ENTER to pick one for the day.
That was harder than it seems, because I know if I press Too many UPs or DOWNs with the arrows in a row it will just pick the first one on the list or the last one.
So I had an idea, with the help of AHK (AutoHotKey) used as start-up script at bootup, it can change the default OS invisibility without my knowledge which of course what I want.
All I needed to know was the identifier numbers of my OS's, which EasyBCD nicely gives you this information.
My code is:
#NoTrayIcon
version=01.004
Title=Start up Script
UsageLog=C:\Logs\Usage.log
;; STARTING MESSAGE
FileAppend, `n%A_DDD% %A_DD%/%A_MM%/%A_YYYY% %A_Hour%:%A_Min%:%A_Sec% Executed "%Title% V%Version%", %UsageLog%
FileAppend, `n , %UsageLog%
;; Randomness!
FileAppend, `nRandomness..., %UsageLog%
;; Random Default OS for Windows Boot Manager (Be Careful here...)
Random, rand, 1, 4
IfEqual, rand, 1
{
FileAppend, `n - Changed your default OS to Windows 2000., %UsageLog%
run, bcdedit /default {b1f37a0d-bbfd-11e5-b38b-b91e4105f03b}
}
IfEqual, rand, 2
{
FileAppend, `n - Changed your default OS to Windows XP., %UsageLog%
run, bcdedit /default {73bdae4b-3770-11e5-a7a0-a684bd81c0e4}
}
IfEqual, rand, 3
{
FileAppend, `n - Changed your default OS to Windows Vista., %UsageLog%
run, bcdedit /default {b1f37a05-bbfd-11e5-b38b-b91e4105f03b}
}
IfEqual, rand, 4
{
FileAppend, `n - Changed your default OS to Windows 8.1., %UsageLog%
run, bcdedit /default {b1f37a04-bbfd-11e5-b38b-b91e4105f03b}
}
This is great if I boot up Vista or Windows 8.1, but if it gets to Windows XP or 2000, it doesn't understand the command BCDEDIT, so I be stuck in one of those until I boot up Vista or 8.1 again.
So any suggestions here, it there an easy way, a function I didn't even know off, or can you edit Windows 2000/XP using the command prompt?