Hyper-V Cmdlets in Windows PowerShell
Windows PowerShell® は、特にシステム管理用に設計された、タスク ベースのコマンド ライン シェルおよびスクリプト言語です。情報技術 (IT) プロフェッショナル向けのこの参照トピックは、スクリプトを作成してタスクを自動化するために Windows PowerShell コマンドレットを活用するうえでのサポートとなります。
Hyper-V
This reference provides cmdlet descriptions and syntax for all Hyper-V-specific cmdlets. It lists the cmdlets in alphabetical order based on the verb at the beginning of the cmdlet.
cmdlet | Description |
---|---|
Installs a DVD drive in a virtual machine (VM). |
|
Installs a virtual Fibre Channel host bus adapter in a virtual machine (VM). |
|
Installs a hard disk drive in a virtual machine (VM). |
|
Adds a network to the list of networks that can be used for virtual machine (VM) migration. |
|
Installs a network adapter in a virtual machine (VM). |
|
Creates an access control list (ACL) to apply to the traffic sent or received by a virtual machine (VM) network adapter. |
|
Creates an extended ACL for a virtual network adapter. |
|
Adds a routing domain and virtual subnets to a virtual network adapter. |
|
Installs a RemoteFX video adapter in a virtual machine (VM). |
|
Installs a SCSI controller in a virtual machine (VM). |
|
Adds a path to a storage resource pool. |
|
Adds a network to a resource pool. |
|
Adds a flow sheet document (FSD) to a virtual network adapter in a virtual machine or the management operating system (which runs the Hyper-V role). |
|
Adds a flow sheet document (FSD) to a virtual switch. |
|
Creates a checkpoint of a virtual machine (VM). |
|
Compares a virtual machine (VM) to a host and returns a compatibility report. |
|
Completes the failover process of the virtual machine (VM). |
|
Connects a virtual network adapter to a virtual network. |
|
Associates a host bus adapter with a virtual storage area network (VMSAN). |
|
Converts the format version and type of virtual hard disk file of a virtual machine (VM). |
|
Copies a file to a virtual machine. |
|
Debugs a virtual machine. |
|
Disables virtual machine eventing. |
|
Disables an integration service on a virtual machine (VM). |
|
Disables migration on one or more virtual machine hosts. |
|
Disables a particular RemoteFX physical graphics processing unit (GPU) adapter for use with a RemoteFX virtual machine (VM). |
|
Disables resource utilization data collection for a virtual machine (VM) or a resource pool. |
|
Disables one or more extensions —and the feature sets associated with each extension— for one or more specified switches. |
|
Disconnects a virtual network adapter from a virtual network or a network resource pool. |
|
Removes a host bus adapter from a virtual storage area network (VMSAN). |
|
Specifies the path to the files representing the virtual hard disks to be dismounted. |
|
Enables the automatic refresh of Hyper-V objects —"live" objects— for the current Windows PowerShell session. |
|
Enables an integration service on a virtual machine (VM). |
|
Enables migration on one or more Hyper-V hosts. |
|
Enables one or more RemoteFX physical video adapters for use with RemoteFX-enabled virtual machines. |
|
Enables replication of a virtual machine. |
|
Enables the collection of resource utilization data for one or more virtual machines (VM) or resource pools. |
|
Enables one or more extensions —and the feature sets associated with each extension— on one or more specified virtual switches. |
|
Exports a virtual machine (VM) to disk. |
|
Exports a checkpoint as a virtual machine (VM) and writes it to disk. |
|
Creates a VHDObject for each virtual hard disk file specified by path or associated with a virtual machine (VM). |
|
Retrieves a VMObject for each virtual machine (VM) on the Hyper-V host. |
|
Retrieves the BIOS configuration of a virtual machine (VM). |
|
Retrieves a list of the COM ports associated with a virtual machine (VM). |
|
Retrieves a list of users that have access to connect to a virtual machine (VM). |
|
Retrieves a list of DVD drives that are attached to a virtual machine (VM). |
|
Retrieves a list of all Fibre Channel host bus adapters associated with a virtual machine (VM). |
|
Gets the firmware configuration of a virtual machine. |
|
Retrieves a list of floppy disk drives that are attached to a virtual machine (VM). |
|
Retrieves a list of the hard disk drives that are attached to a virtual machine (VM). |
|
Retrieves the configuration of a Hyper-V host. |
|
Retrieves the NUMA topology of a Hyper-v host. |
|
Retrieves a list that associates each virtual machine (VM) with the allocated resources for each NUMA Node on the host. |
|
Retrieves a list of the IDE controllers associated with a virtual machine (VM). |
|
Retrieves the integration services configuration of a virtual machine (VM). |
|
Retrieves the memory configuration of a virtual machine (VM). |
|
Retrieves a list of the networks that have been added for migration on a Hyper-V host. |
|
Retrieves a list of the virtual network adapters of a virtual machine (VM), the management operating system, or both. |
|
Retrieves an access control list (ACL) configured for a virtual machine (VM) network adapter. |
|
Gets extended ACLs configured for a virtual network adapter. |
|
Retrieves the Failover IP settings on a virtual machine (VM) network adaptor. |
|
Gets isolation settings for a virtual network adapter. |
|
Gets members of a routing domain. |
|
Retrieves virtual local area network (VLAN) settings configured on a virtual network adapter. |
|
Retrieves the processor configuration of a virtual machine (VM). |
|
Retrieves the RemoteFX adapter of a virtual machine (VM). |
|
Retrieves a list of physical graphics processing unit (GPU) adapters in the server that can be used with RemoteFX. |
|
Retrieve a list of virtual machine (VM) replication plans or a specific replication plan and associated settings. |
|
Retrieve the authorization list or a specific authorization entry. |
|
Retrieves the authentication details of the recovery server. |
|
Retrieves the resource pools that meet the specified criteria. |
|
Retrieves a list of virtual storage area networks (VMSANs) available on a host. |
|
Retrieves the virtual SCSI controllers for a virtual machine (VM). |
|
Retrieves a list of the checkpoints of a virtual machine (VM). |
|
Retrieves a list of the paths in a storage resource pool. |
|
Retrieves the virtual network from a virtual machine (VM) host. |
|
Retrieves a list of the switch extensions on one or more virtual switches. |
|
Retrieves the status or the statistics for the extension of a virtual switch (VMSwitch) applied on a virtual network adapter. |
|
Retrieve features configured on a virtual network adapter. |
|
Retrieves the status or the statistics for the extension of a virtual switch (VMSwitch) applied on a VMSwitch. |
|
Retrieves features configured on a virtual switch (VMSwitch). |
|
Retrieves a list of the switch extensions that are installed on a physical server at a system level. |
|
Retrieves the default instance of the port level feature or features available in an extension at a system level. |
|
Retrieves the default instance of the switch level feature or features available in an extension at a system level. |
|
Grants a user access to connect to a virtual machine (VM). |
|
Imports a virtual machine (VM) from a folder. |
|
Imports the initial replication at a recovery site. |
|
Retrieves the resource utilization data of virtual machines (VMs). |
|
Retrieves statistics related to the replication of a virtual machine. |
|
Retrieves the resource utilization information for a resource pool. |
|
Merges virtual hard disks (VHDs) in a differencing virtual hard disk (VHD) chain. |
|
Mounts one or more virtual hard disks (VHDs) specified by one or more virtual hard disk (VHD) files. |
|
Migrates an offline virtual machine (VM) or Live Migrates a running virtual machine (VM). |
|
Moves the storage of a virtual machine (VM). |
|
Creates a virtual floppy disk. |
|
Creates one or more new virtual hard disk (VHD) files. |
|
Creates a new virtual machine (VM). |
|
Creates an authorization entry containing the allowed primary server and corresponding replica storage. |
|
Creates a resource pool. |
|
Creates a new virtual storage area network (VMSAN) on a Hyper-V host. |
|
Creates a new virtual network switch on a Hyper-V host. |
|
Compacts one or more dynamic or differencing virtual hard disk (VHD) files. |
|
Deletes the configuration file for a virtual machine. |
|
Deletes one or more virtual DVD drives from a virtual machine (VM). |
|
Deletes a Fibre Channel host bus adapter from a virtual machine (VM) configuration. |
|
Deletes one or more virtual hard disks (VHDs) from a virtual machine (VM). |
|
Deletes a network from the list of networks that can be used for virtual machine (VM) migration. |
|
Deletes one or more network adapters from a virtual machine (VM). |
|
Deletes an access control list (ACL) applied to a virtual machine (VM) network adapter for traffic that is sent or received. |
|
Removes an extended ACL for a virtual network adapter. |
|
Removes a virtual subnet from a routing domain. |
|
Deletes a RemoteFX adapter from a virtual machine (VM). |
|
Delete the replication relationship for a virtual machine. |
|
Deletes an authorization entry. |
|
Deletes a resource pool. |
|
Deletes a virtual storage area network (VMSAN) from a Hyper-V host. |
|
Deletes the saved state of a saved virtual machine (VM). |
|
Deletes one or more SCSI controllers from a virtual machine (VM). |
|
Deletes a checkpoint or checkpoint tree. |
|
Deletes a path from a virtual machine (VM) storage resource pool. |
|
Deletes a virtual network. |
|
Deletes a flow sheet document (FSD) from a virtual network adapter. |
|
Deletes a flow sheet document (FSD) from a virtual switch. |
|
Renames a virtual machine (VM). |
|
Renames a virtual network adapter on a virtual machine or on the management operating system. |
|
Renames a resource pool. |
|
Renames an existing virtual machine storage area network (VMSan). |
|
Renames a checkpoint. |
|
Renames a virtual network. |
|
Restores one or more virtual machines (VMs) to usable condition based upon adjustments ─fixes─ contained in each compatibility report. |
|
Resets the data collected about resource utilization for a virtual machine (VM) or a resource pool. |
|
Resets the resource utilization data collected by Hyper-V resource metering. |
|
Resize a virtual hard disk (VHD). |
|
Restarts a virtual machine (VM) immediately with shutting down the operating system. |
|
Restores a virtual machine (VM) checkpoint. |
|
Resumes a paused (suspended) or saved (hibernated) virtual machine (VM). |
|
Resumes the replication of a virtual machine (VM). |
|
Revokes the access assigned to a user for connections to a virtual machine (VM). |
|
Saves a virtual machine (VM). |
|
Modifies the differencing virtual hard disk (VHD) chain settings to assign the parent of a virtual hard disk file (VHD). |
|
Modifies the properties for a virtual machine (VM). |
|
Modifies the BIOS settings of a virtual machine (VM). |
|
Modifies the virtual COM port settings for a virtual machine (VM). |
|
Modifies the virtual DVD drive settings for a virtual machine (VM). |
|
Modifies the existing Fibre Channel host bus adapter settings for a virtual machine (VM). |
|
Sets the firmware configuration of a virtual machine. |
|
Modifies the virtual floppy drive (VFD) settings for a virtual machine (VM). |
|
Modifies the virtual hard disk (VHD) drive settings for a virtual machine (VM). |
|
Modifies the settings for a Hyper-V host. |
|
Modifies the memory settings for a virtual machine (VM). |
|
Sets the subnet, subnet mask, and/or priority of a migration network. |
|
Modifies the network adapter settings for a virtual machine (VM). |
|
Modifies the Failover IP settings of the network adapter for a virtual machine (VM). |
|
Modifies isolation settings for a virtual network adapter. |
|
Sets virtual subnets on a routing domain. |
|
Modifies the virtual local area network (VLAN) settings configured on a virtual machine (VM) network adapter. |
|
Modifies the virtual processor settings for a virtual machine (VM). |
|
Modifies the RemoteFX adapter settings for a virtual machine (VM). |
|
Modifies the replication relationship settings for a virtual machine (VM). |
|
Modifies the authorization entry for a virtual machine (VM). |
|
Modifies the settings that specify the server authentication and the associated ports of the recovery server for a virtual machine (VM). |
|
Modifies the settings that specify the relationship between two resource pools. |
|
Modifies the existing virtual machine storage area network (VMSAN) settings on the Hyper-V host. |
|
Modifies the virtual network settings for a virtual machine (VM). |
|
Modifies an existing flow sheet document (FSD) of a virtual machine network interface controller (VMNIC) or parent virtual network interface controller (VNIC) for a virtual machine (VM). |
|
Modifies an existing flow sheet document (FSD) of a vmswitch for a virtual machine (VM). |
|
Intiates a virtual machine (VM) that is shutdown —off—, hibernated —saved—, or suspended —paused—. |
|
Initiates the failover of a virtual machine (VM). |
|
Initiates the replication for a virtual machine (VM). |
|
Discontinues running an active virtual machine (VM). |
|
Discontinues an on-going failover for a virtual machine (VM). |
|
Discontinues an on-going replication for a virtual machine (VM). |
|
Discontinues an on-going resync operation for a virtual machine (VM). |
|
Pauses an active virtual machine (VM). |
|
Pauses replication for a virtual machine (VM). |
|
Tests the connection configured for replication traffic. |
|
Verifies the usability of one of more virtual hard disk (VHD) files. |
注意
To view a list all the cmdlets that are available for Hyper-V, run the Get-Command -Module Hyper-V command.
任意のコマンドレットの詳細について、またはコマンドレットの構文の詳細については、Get-Help
<コマンドレット名> コマンドレットを使用します。ここで、<コマンドレット名> は、調べようとするコマンドレットの名前です。詳細については、次のコマンドレットを実行できます。
● Get-Help
<コマンドレット名> -Detailed
● Get-Help
<コマンドレット名> -Examples
● Get-Help
<コマンドレット名> -Full