2012 r2 power shell commands library

2

Click here to load reader

Upload: john-brouillard

Post on 20-Jun-2015

228 views

Category:

Documents


1 download

DESCRIPTION

Here's a quick reference library for Microsoft Windows 2012 R2 Powershell Commands.

TRANSCRIPT

Page 1: 2012 r2 power shell commands library

PowerSheA project It does pravailable iAt presenexpected _NOTE: Tis not guadownloadFinding aGet-VM, C ConnectinNew-VMC DiscoveriGet-VMStPing-VM ,Get-VMKV Backing uExport-VM,Remove-VVmBackup Adding aNew-VM ,Set-VMSe ManipulaGet-VMDAdd-VMSGet-VMDGet-VMDGet-VMFlAdd-VMN ManipluaGet-VMNVMNICCo

 www.n

ell managemto provide a

etty much whif Powershell t there are 80to be called d

he version of aranteed to bed area a VM Choose-VM ,

ng to a VM ConnectSessio

ing and mantate , Set-VMS, Test-VMHeaVP, Add-KVP,

up, exportingM , Import-VMVMSnapshot,pScript

nd removing, Remove-VM

erialPort

ating Disk coiskController CSIControllerriveByControliskByDrive, AdoppyDisk , Ad

NewHardDisk

ating Networic , List-VMNi

onnection , Ge

npacomputers

ment Library fPowerShell m

hat it says. Nois running wit

0 functions in directly, the o

PSHyper-V ae stable. If yo

Get-VMHost

on

ipulating MaState , ConverartBeat, Shutd

Remove-KVP

g and snapshM, Get-VMSna, Rename-VM

g VMs, configM , Set-VM , G

ntrollers, dri

r , Remove-VMller , Add-VMdd-VMDISK , dd-VMFloppy

rk Interface Cic , Choose-Vet-VMNicport

s.com  800‐U

for Hyper-Vmanagement l

ote that a lot oth Elevated pthe library, sothers are liste

vailable in theu require a st

achine statesrt-VmState,

down-VM , StaP, Get-VMJPEG

hotting VMsapshot, Choos

MSnapShot, Up

guring mothet-VMCPUCo

ives and disk

MSCSIcontrolDRIVE , RemoSet-VMDisk,

yDisk

Cards MNIC, Add-Vt ,

SE‐NPA4   VM

ibrary for Hyp

of the informarivilege ome of these ed below.

e Source Codtable release,

s

art-VM, Stop-G

se-VMSnapshpdate-VMSna

erboard settount, Set-VMC

k images

ler ove-VMdriveGet-VMDisk

VMNIC, Remov

Mware & Micr

per-V

ation availabl

are worker fu

e section is uplease use on

-VM, Suspend

hot , Apply-VMapshot, Get-V

tings. CPUCount, Ge

ve-VMNIC , S

rosoft Hostin

e from Hyper

unctions whic

nder active dne of the vers

d-VM

MSnapshot , NVMSnapshotTr

et-VMMemor

Set-VMNICAd

g Solutions 

r-V is only

ch are not

developementsions from the

New-VMSnapree, Get-

ry, Set-VMMe

dress , Set-

t and e

pshot

mory,

Page 2: 2012 r2 power shell commands library

Get-VMniVMExternNew-VME Working Get-VHDDVHD,Mou

 www.n

cSwitch, ChooalEthernet,

ExternalSwitch

with VHD filDefaultPath, Gnt-VHD, Unm

npacomputers

ose-VMSwitc

h, New-VMInt

les Get-VHDInfo, mount-VHD 

s.com  800‐U

h, New-VMSw

ternalSwitch,N

New-VHD, C

SE‐NPA4   VM

witchPort, Get

New-VmPriva

ompact-VHD

Mware & Micr

t-VMByMACa

teSwitch

D, Test-VHD,Co

rosoft Hostin

address, Choo

onvert-VHD,M

g Solutions 

ose-

Merge-