Is it possible to remotely reboot a PC with dual boot and pick OS?

Basil

New member
Member
Local time
8:58 PM
Messages
97
I have a remote PC on my home (wired) network dual booting XP and Win 7 pro. I use Remote Desktop to view the PC from others on this network. Is it possible to reboot the Xp / Win7 PC remotely and choose which OS loads? I suspect not as until it boots into the OS I believe Remote desktop doesn't run. Any workarounds please? Thanks
 

My Computer My Computer

At a glance

Win 7 Pro 64 BitIntel i5-4670K @ 3.4 GHz16 gigOn board
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom
OS
Win 7 Pro 64 Bit
CPU
Intel i5-4670K @ 3.4 GHz
Motherboard
Gigabyte GA-Z97X-Gaming 3
Memory
16 gig
Graphics Card(s)
On board
Hard Drives
SSD C: Drive
2 off 1 gig SATA in software RAID1 as D: Drive
Antivirus
Avast
Browser
Firefox
Your dual boot details, including what is the default boot drive, are contained within the Boot Configuration Data File which can be viewed and/or modified with bcdedit.exe which comes with windows.

To do what you are saying just create a batch file and put it on the remote computer. Call it bootOS1.cmd. It will set your boot OS then re-boot into that OS. The batch file should contain two lines, like this:

bcedit /default {identifiercodedetails}
shutdown /r

where the identifier code corresponds to the OS you want to boot. You obtain the identifier code using the bcdedit command (wthout arguments) as shown in this video.

How to set an Operating System as default (bcdedit, Windows) - YouTube.

Make two such batch files, bootOS1.cmd and bootOS2.cmd where they each have one identifier code, the code for the OS you want to boot from next. Then all you have to do is click on one or the other file and it will modify the BCD to change the default boot drive, then do a restart using shutdown /r. I'm assuming you can use teamviewer to remotely click on these batch files. But you don't really need teamviewer because you could just use psexec which is part of pstools

PsTools - Windows Sysinternals | Microsoft Docs

the command to execute on your primary machine to execute the batch file on the remote machine is

psexec \\remotecomputername c:\path\bootOS1.cmd
 

My Computer My Computer

At a glance

Win7 pro x64stock i7 7700kCorsair Vengeance LPX 16GB (2x8GB) DDR4 @ 320...integrated Intel HD 630
Computer type
PC/Desktop
Computer Manufacturer/Model Number
diy
OS
Win7 pro x64
CPU
stock i7 7700k
Motherboard
Gigabyte Z270N-WIFI mini-ITX
Memory
Corsair Vengeance LPX 16GB (2x8GB) DDR4 @ 3200MHz
Graphics Card(s)
integrated Intel HD 630
Sound Card
onboard Realtek ALC1220
Monitor(s) Displays
two vertically mounted samsung 55" 4k un55mu8000
Screen Resolution
1920x1280
Hard Drives
256GB Samsung EVO 960 M.2 pci-e NVMe SSD
PSU
SilverStone Nightjar ST45NF 450Watt Fanless
Case
No case. Motherboard is mounted directly onto power supply
Cooling
Evercool low profile 815EP with Panaflow 12L fan at 7v
Keyboard
Ortek MCK-86 mini
Mouse
Belkin 5-button USB
Internet Speed
spectrum 400mbps
Thanks, looks a nightmare to a simpleton like myself, I'll run upstairs and reboot manually I think.... ;) I believe I could get myself in a whole heap of grief attempting to add this stuff, but many thanks for the info johnho!
 

My Computer My Computer

At a glance

Win 7 Pro 64 BitIntel i5-4670K @ 3.4 GHz16 gigOn board
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom
OS
Win 7 Pro 64 Bit
CPU
Intel i5-4670K @ 3.4 GHz
Motherboard
Gigabyte GA-Z97X-Gaming 3
Memory
16 gig
Graphics Card(s)
On board
Hard Drives
SSD C: Drive
2 off 1 gig SATA in software RAID1 as D: Drive
Antivirus
Avast
Browser
Firefox
That makes sense, plus the stairs are better for your health. No doubt, repeatedly editing the Boot Configuration Data File using remotely executed batch files is a deep-level hack not advisable for anyone but those willing and able to get way down into the weeds, but when an OP's question reads so much like google search I like to spell out the answer for those others down the road who may want to take on the challenge and will see your question as the first hit of their search.
 

My Computer My Computer

At a glance

Win7 pro x64stock i7 7700kCorsair Vengeance LPX 16GB (2x8GB) DDR4 @ 320...integrated Intel HD 630
Computer type
PC/Desktop
Computer Manufacturer/Model Number
diy
OS
Win7 pro x64
CPU
stock i7 7700k
Motherboard
Gigabyte Z270N-WIFI mini-ITX
Memory
Corsair Vengeance LPX 16GB (2x8GB) DDR4 @ 3200MHz
Graphics Card(s)
integrated Intel HD 630
Sound Card
onboard Realtek ALC1220
Monitor(s) Displays
two vertically mounted samsung 55" 4k un55mu8000
Screen Resolution
1920x1280
Hard Drives
256GB Samsung EVO 960 M.2 pci-e NVMe SSD
PSU
SilverStone Nightjar ST45NF 450Watt Fanless
Case
No case. Motherboard is mounted directly onto power supply
Cooling
Evercool low profile 815EP with Panaflow 12L fan at 7v
Keyboard
Ortek MCK-86 mini
Mouse
Belkin 5-button USB
Internet Speed
spectrum 400mbps
Boot Remotely into different OS like Win7 & Win10

What you can do is go to the run line....

msconfig

under boot change the default to say Win7
reboot the PC... If TeamViewer is set to run you can log in
then when you are done
you can go again to the run line
type

msconfig
change the default back to Win10
and if you have TeamViewer set to run you can log in
to Win10

Maybe that will work for you.
 

My Computer My Computer

At a glance

Windows 7
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell
OS
Windows 7
Back
Top