Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| windows:hyper-v:powershell-direct [2026/04/21 17:56] – [Command Invokation] chris | windows:hyper-v:powershell-direct [2026/04/22 16:38] (current) – [Command Invokation] chris | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| ===== Command Invokation ===== | ===== Command Invokation ===== | ||
| - | < | + | < |
| Invoke-Command -VMName <VM> -Credential (Get-Credential) -ScriptBlock { | Invoke-Command -VMName <VM> -Credential (Get-Credential) -ScriptBlock { | ||
| <Any PowerShell commands to run inside the VM> | <Any PowerShell commands to run inside the VM> | ||