During our Windows migration, we did a lot of upgrades remotely, we wanted the ability to “watch” the progress, besides just watching the server reports. I decided to look into using Dart Remote for this. There were some great blogs out there, and I’ll reference them here. Much of what I have done has been borrowed form Alex Verboon - http://www.verboon.info/2013/04/integrating-dart-8-0-sp1-remote-connection-into-the-sccm-2012-osd-process/
After finding DaRT was limited to PE, I decided to also use VNC for the later steps in the TS, pulling much of the information from this Post: Jeremy .. http://syswow.blogspot.com/2012/05/remote-control-during-sccm-osd-without.html
Highly recommend you look at those posts for additional information, as they describe some of the things in more detail. Several of my steps are borrowed nearly directly from them… just updated slightly.
The way I’m proposing you do it, everything is contained in the package, no changes to the Boot Media or OS, and all the files get deleted automatically at the end of the TS Process.
Left Side = VNC Remote Monitoring OSD Process (Windows) – Right Side = Machine during OSD (VM)
- Install Windows ADK – Using Windows 10 (July release – 10.0.26624)
- Install MDOP DaRT (Example is 2015, DaRT 10, but have done with with DaRT 8.1 in past)
- Windows 10 Media – I’m using July Release – Have available to mount for creating Dart file.
- VNC – Assumes you have vncviewer.exe in c:\Program Files\VNC\vncviewer.exe
- Download the ZIP file with required file here (ultravnc 1210 ALL bin zip 220.127.116.11)
- Once ADK & DaRT are installed, You will need to grab the Toolsx86.cab & Toolsx64.cab files located in: C:\Program Files\Microsoft DaRT\v10 - In this example, I’ll be building the x64 version, as we only use x64 boot media, but it should be easy to replicate this process for the x86 version.
- On your Source Server, create this Directory Structure: ..\DaRT10OSD\DaRTRemote\Windows\System32
- Extract the following files from the CAB File (note that I’m using the x64 version) and copy them to the System32 folder.
- Extract the files from the VNC Download Uvnc_1210_bin.zip\win7\X64
- vncviewer.exe will need to be placed on here: c:\Program Files\VNC\vncviewer.exe on your IT machines that you wish to monitor from
- winvnc.exe copied to the ..\DaRT10OSD folder
- create StartVNC.cmd file that
- netsh advfirewall set currentprofile state off
- cmd.exe /c start winvnc.exe
- launch winvnc.exe on a test computer, it should prompt to set the settings for the server, set your password, I used OSD@dm1n for VNC Password & OSDV13w for ViewOnly – which will be referenced later on in another script.
- Download the StartRemoteRecovery.zip created by Alexey Semibratov, but modified by me HERE – Original File by Alexey HERE
- StartRemoteRecovery.wsf has a lot of additional lines I’ve added to set the Link Name, and create a Link for VNC as well.
- Line 160 = VNC password you created earlier
- Line 147 = Path of your DartRemoteViewer, might need to be changed based on the version of DaRT you’re using.
- On some networks, not all ports are open, so we will set it to use static port 3388. This information is stored in a file called DartConfig.dat, which is only generated using the DaRT Recovery Image wizard (PreReq) – So lets walk through that…
- Launch the MS DaRT Recovery Image Wizard – If you see this error, it’s because of your Powershell group policy, to get around this, open elevated command prompt and do this:
Reg delete HKLM\SOFTWARE\Policies\Microsoft\Windows\Powershell /v ExecutionPolicy /f
More info HERE – Now try again
- Choose 64-bit Dart Image – I’ve mounted the Windows 10 ISO to the E: drive
- You can leave the tools to default
- Check the box “Allow…” and let it default to 3388
- Advanced Options leave Default
- Make sure you check the box for Create WIM, optional Create ISO – If you wanted this for other reasons, and make sure you check Edit image
- Now wait for a few minutes while it is generated
- Click “Open in Windows Explorer”
- Copy DartConfig.dat from Windows\System32 to your folder structure: ..\DaRT10OSD\DaRTRemote\Windows\System32
- You should now have all the files you need in your system32 folder:
- Now you need to create the DartRemote.cmd file that will launch DaRT remote in PE
- Now that you created this file, your root folder should look like:
for /F "skip=2 tokens=2 delims=," %%A in ('wmic systemenclosure get serialnumber /FORMAT:csv') do (set "serial=%%A")
XCOPY DaRTRemote X:\ /y /s
CSCRIPT X:\Windows\System32\StartRemoteRecovery.wsf /ShortCutShare:<\\servername\share> /UserID:<username> /UserDomain:<domain> /UserPassword:<password>
If you downloaded the ZIP file I Created, you will have everything you need already complete, except the files you’d need to copy over from the x64 DaRT cab (License issue) – Includes the winvnc.exe and ini files, along with scripts, just update the scripts for your environment.
You will need to ad that step every time after you reboot the machine. (after applying updates, etc… if you want the vnc server to launch again)
Once you have this in your TS and you run your Image, it will populate the share you created:
Then as long as you have the Dart Tools installed, and the VNCviewer.exe in c:\Program Files\VNC, the links will work. (The shortcuts are auto populated with the passwords required)
There is a lot to this post, so if I forgot something, leave a comment so I can get it updated.