Giter Site home page Giter Site logo

winpe_vnc's Introduction

winpe_vnc - How to integrate a VNC server into WinPE

Quick steps

I have pre-packaged the VNC server (TightVNC) files plus scripts needed to set up the server.

  1. Download the correct zip file for the boot image architecture (above).
  2. Unzip the files to a temporary directory.
  3. Mount the WIM image with dism.
  4. Move the deploy and VNC directories into the image root.
  5. Delete setup.exe in the root of the image.
  6. Move the startnet.cmd file to \Windows\System32, overriding the existing file.
  7. Unmount the image and all finished.

Manual steps (to use latest version of TightVNC)

  1. Mount WIM image with dism (if extracted from a boot.wim, it will be index:2).

  2. Create two new directories: \deploy and \VNC.

  3. Move \setup.exe to \deploy\setup.exe.

  4. Download TightVNC 32 or 64-bit (architecture is important!!).

  5. Install TightVNC on reference computer and configure the Service mode.

  6. Export HKLM\SOFTWARE\TightVNC to \VNC\config32.reg`

  7. (64-bit only) Export HKLM\SOFTWARE\Wow6432Node\TightVNC to \VNC\config64.reg

  8. Copy the following files from the TightVNC install folder to \VNC:

    • tvnserver.exe
    • screenhooks32.dll (64-bit only):
    • hookldr.exe
    • screenhooks64.dll
  9. Edit \Windows\System32\startnet.cmd and append the following line:

    \deploy\preinit.cmd

  10. Create \deploy\preinit.cmd as follows (delete the config64.reg line if using a 32-bit image):

    @echo off
    
    wpeutil InitializeNetwork
    wpeutil DisableFirewall
    
    cd \VNC
    regedit /s config32.reg
    regedit /s config64.reg
    tvnserver -install -silent
    tvnserver -start
    
    cd \deploy
    copy setup.exe ..\
    cd ..\
    start setup.exe
    
  11. Commit and unmount the image

  12. Upload to WDS and voila

Some helpful commands

dism /Mount-Image /ImageFile:<SRC> /index:2 /MountDir:<MOUNT_POINT>
dism /Unmount-Image /MountDir:<MOUNT_POINT> /commit
dism /Export-Image /SourceImageFile:<SRC> /DestinationImageFile:<NEW_FILE> /Compress:max /SourceIndex:2
dism /Get-ImageInfo /ImageFile:<SRC>

Note the image index will always be :2. Don't attempt to mount/edit index:1 as it does not contain the setup bootstrapper that is run on PXE boot.

Exporting the image will recompress it slightly and yield a smaller file.

Please note TightVNC is licensed under the GPL.

winpe_vnc's People

Contributors

sjkingo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

winpe_vnc's Issues

There is an Password in your config?

Dear Sjkingo

In one of the reg keys there is a password set. I exported my own reg.
As you github acc was the first google result my others struggle here ...

Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.