Skip to content
Back to skills

Vmware Windows Guest

ASecurity

Operate a Windows guest in VMware from Claude Code. Running PowerShell and cmd through VMware Tools with output and exit codes, getting a full administrator token, launching GUI programs on the logged-on desktop, installing VMware Tools silently, unattended Setup and its answer-file traps, test signing, crash dumps and kernel debugging setup for driver work, moving folders in and out, and the keyboard shortcuts that work over VNC. Use when the guest runs Windows 10, Windows 11 or Windows Server.

  • 4 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 29, 2026
developmentpythongoshellbashdebuggingsecurity

Works with

  • claude code
  • cli

Security analysis

A100/100

Scanned November 29, 2026

npx -y skills add dboudreau00/VMWare-VNC-Control-for-Claude --skill vmware-windows-guest --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Vmware Windows Guest?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Vmware Windows Guest
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dboudreau00-vmware-windows-guest/badge)](https://www.skillsdirectory.com/skills/dboudreau00-vmware-windows-guest)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: vmware-windows-guest
description: Operate a Windows guest in VMware from Claude Code. Running PowerShell and cmd through VMware Tools with output and exit codes, getting a full administrator token, launching GUI programs on the logged-on desktop, installing VMware Tools silently, unattended Setup and its answer-file traps, test signing, crash dumps and kernel debugging setup for driver work, moving folders in and out, and the keyboard shortcuts that work over VNC. Use when the guest runs Windows 10, Windows 11 or Windows Server.
license: MIT
compatibility: VMware Workstation, Player or Fusion with a Windows guest; measured on Windows 10 LTSC 21H2 (build 19044) under Workstation 26.0.
---

# Windows guests

The tools live in the sibling skills; below, `vmctl.py` is
`python "${CLAUDE_SKILL_DIR}/../vmware-vmrun/vmctl.py"` and `vnc.py` is
`python "${CLAUDE_SKILL_DIR}/../vmware-vnc/vnc.py"`.

## Running commands

```bash
vmctl.py run VM.vmx -- 'Get-CimInstance Win32_OperatingSystem | Select Caption, BuildNumber'
vmctl.py run VM.vmx --script-file setup.ps1 --timeout 3600 --evidence ev/
vmctl.py run VM.vmx --shell cmd -- 'sc query VMTools & exit /b %ERRORLEVEL%'
```

The script is copied to `C:\Windows\Temp\vmctl` as UTF-8 with a BOM (Windows
PowerShell 5.1 reads a BOM-less file as ANSI) and run by a wrapper passed as
`-EncodedCommand`. All output streams go to a log, which Windows PowerShell
writes as UTF-16; vmctl decodes it. `exit N` in the script becomes vmctl's exit
code, a terminating error becomes exit 1 with the error text, and progress
bars are off so they cannot pollute the log. A `.cmd` runs with `@echo off`.

## A full administrator token

Guest operations log on non-interactively. With UAC on, a local
administrator's token there is filtered, and commands that need elevation fail
with access denied. Lab VMs turn UAC off:

```powershell
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v EnableLUA /t REG_DWORD /d 0 /f
```

It takes effect after a reboot. Check with
`vmctl.py run VM.vmx -- '(whoami /groups) -match "High Mandatory Level"'`.
`mkvm.py`'s bootstrap does this (`--keep-uac` to skip it).

## GUI programs on the desktop

`vmctl.py run VM.vmx --interactive --detach --shell cmd -- 'start "" notepad.exe'`
starts the program in the logged-on user's session, visible over VNC. It needs
that user logged on at the console: right after a reboot vmrun answered
*"The specified guest user must be logged in interactively to perform this
operation"* until autologon finished. Wait for the desktop first
(`vnc.py --vmx VM.vmx wait-stable --quiet 3`) or retry.

## VMware Tools

- Silent install from the Tools CD (`windows.iso` in the Workstation folder):
  `setup64.exe /S /v"/qn REBOOT=R"`. Exit 3010 means installed, reboot needed.
- Find the Tools CD among drives by `VMwareToolsUpgrader.exe` at its root;
  the Windows install CD also has a `setup.exe`.
- `vmctl.py install-tools VM.vmx` mounts the Tools CD and starts the installer.
- `vmctl.py wait-tools` after the reboot; `checkToolsState` alone is not proof.

## Keyboard shortcuts over VNC

`vnc.py --vmx VM.vmx key Super_L+r` opens Run; `type cmd --enter` then opens a
console. `Alt_L+F4` closes the active window, `Super_L` opens Start, and
`Control_L+Alt_L+Delete` reaches the guest (the host keyboard's never does):
it opened the security options screen. Also verified: `Super_L+r`, typing
`notepad` with Enter, and 79 characters of text with every shifted symbol.
Clicks land exactly with Tools installed (absolute pointer).

## Unattended install traps

See vmware-create-vm for the full flow. The traps:

- **Answer file precedence.** Setup reads `Autounattend.xml` from removable
  read/write media (a floppy) before CDs, and CDs in drive-letter order. Trimmed
  install ISOs often carry their own `autounattend.xml` at the root, which then
  wins over an answer CD. Use a floppy.
- **Windows 11 hardware checks.** Without a vTPM, Setup stops at "This PC
  can't run Windows 11". The answer file's `windowsPE` pass can set
  `HKLM\SYSTEM\Setup\LabConfig` `BypassTPMCheck`, `BypassSecureBootCheck`,
  `BypassRAMCheck`, `BypassCPUCheck` to 1 first. Workstation adds a vTPM only to
  an encrypted VM.
- **EFI boot prompt.** An EFI install CD waits for a key; BIOS boots it
  directly when the disk is empty.
- **The password is cached** in plain text in `C:\Windows\Panther\unattend.xml`.
- **FirstLogonCommands run elevated** as the autologon user; `mkvm.py` uses
  them to start `bootstrap.ps1` from the CD tagged `VMLAB.TAG`.
- **Timestamps.** Before Tools started, the guest clock showed host local time
  labelled as the guest's time zone; it jumped to the right time once Tools ran.

## Driver and kernel work

```powershell
bcdedit /set testsigning on                                  # load test-signed drivers
bcdedit /debug on
bcdedit /dbgsettings serial debugport:2 baudrate:115200      # COM2 = serial1
reg add "HKLM\SYSTEM\CurrentControlSet\Control\CrashControl" /v AutoReboot /t REG_DWORD /d 0 /f
reg add "HKLM\SYSTEM\CurrentControlSet\Control\CrashControl" /v CrashDumpEnabled /t REG_DWORD /d 2 /f
```

Then, VM off: `vmx.py serial VM.vmx --pipe vmlab-com2` and attach `kd` (see
vmware-debug-forensics). With `AutoReboot` 0 a bugcheck stays on screen, so a
VNC screenshot reads the stop code; `CrashDumpEnabled` 2 keeps a kernel dump
in `C:\Windows\MEMORY.DMP` for `vmctl.py pull`.

## Folders in and out

vmrun copies one file per call. For a tree, zip it on the host
(`Compress-Archive`), `push` the zip, and `run` `Expand-Archive` in the guest;
reverse it to bring results back. Or use a shared folder
(`vmctl.py share add VM.vmx name C:\path --readonly`), which the guest sees at
`\\vmware-host\Shared Folders\name` (verified, and writes were refused on a
read-only share).

## guestinfo from Windows

The guest side of `vmctl.py var` is
`& "C:\Program Files\VMware\VMware Tools\rpctool.exe" "info-get guestinfo.NAME"`
and `"info-set guestinfo.NAME VALUE"`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.