Back to Vagrant

WinRM

website/content/docs/cli/winrm.mdx

2.4.91.1 KB
Original Source

⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️

[!IMPORTANT]
Documentation Update: Product documentation previously located in /website has moved to the hashicorp/web-unified-docs repository, where all product documentation is now centralized. Please make contributions directly to web-unified-docs, since changes to /website in this repository will not appear on developer.hashicorp.com. ⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️

WinRM

Command: vagrant winrm [name|id]

Executes the provided command(s) on the guest machine using the WinRM communicator. Commands are provided with the --command option and multiple --command flags may be provided for executing multiple commands. This command requires the guest machine to be configured with the WinRM communicator.

Options

  • --command COMMAND - Command to execute.

  • --elevated - Run command(s) with elevated credentials.

  • --shell (cmd|powershell) - Shell to execute commands. Defaults to powershell.