Skip to content

Instantly share code, notes, and snippets.

@atzimler
Created May 28, 2017 08:52
Show Gist options
  • Select an option

  • Save atzimler/d6ba8ac44032d316e4b4fcfec545db05 to your computer and use it in GitHub Desktop.

Select an option

Save atzimler/d6ba8ac44032d316e4b4fcfec545db05 to your computer and use it in GitHub Desktop.
$vm = Get-VM | Where-Object {$_.Path.StartsWith('D:\working-images\img001')}
Rename-VM -VM $vm -NewName img001
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment