Welcome to my vSphere Module Collection

http://readthedocs.org/projects/vsphere-modules/badge/?version=latest http://mycloudrevolution.com/wp-content/uploads/2016/06/PowerCLI-1.png

This my collection of VMware PowerCLI Modules. These Module should extend and facilitate the out of the box Features. Project Page: http://mycloudrevolution.com/projekte/vsphere-powershell-modules/

The main documentation for the site is organized into a couple sections:

Apply Commands

This page contains details on Apply commands.

Apply-Hardening

NAME
Apply-Hardening

ÜBERSICHT

SYNTAX
Apply-Hardening [-VMs] <InventoryItemImpl[]> [<CommonParameters>]
BESCHREIBUNG
Applys a set of Hardening options to your VMs
PARAMETER
-VMs <InventoryItemImpl[]>

Specify the VMs

#Requires PS -Version 4.0 #Requires -Modules VMware.VimAutomation.Core, @{ModuleName=”VMware.VimAutomation.Core”;ModuleVersion=”6.3.0.0”}

<CommonParameters>
Dieses Cmdlet unterstützt folgende allgemeine Parameter: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable und OutVariable. Weitere Informationen finden Sie unter “about_CommonParameters” (https:/go.microsoft.com/fwlink/?LinkID=113216).

————————– BEISPIEL 1 ————————–

PS C:>Get-VM TST* | Apply-Hardening

————————– BEISPIEL 2 ————————–

PS C:>$SampleVMs = Get-VM “TST*”

Apply-Hardening -VMs $SampleVMs

HINWEISE
Zum Aufrufen der Beispiele geben Sie Folgendes ein: “get-help Apply-Hardening -examples”. Weitere Informationen erhalten Sie mit folgendem Befehl: “get-help Apply-Hardening -detailed”. Technische Informationen erhalten Sie mit folgendem Befehl: “get-help Apply-Hardening -full”.

Get Commands

This page contains details on Get commands.

Get-NewAndRemovedVMs

NAME
Get-NewAndRemovedVMs

ÜBERSICHT

SYNTAX
Get-NewAndRemovedVMs [-ClusterName] <String> [[-Summary]] [[-Days] <String>] [<CommonParameters>]
BESCHREIBUNG
This Function report newly created and deleted VMs by Cluster.
PARAMETER
-ClusterName <String>
Name or Wildcard of your vSphere Cluster Name(s) to report.
-Summary [<SwitchParameter>]
Displays only a short summary instead of the whole report.

-Days <String>

<CommonParameters>
Dieses Cmdlet unterstützt folgende allgemeine Parameter: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable und OutVariable. Weitere Informationen finden Sie unter “about_CommonParameters” (https:/go.microsoft.com/fwlink/?LinkID=113216).

————————– BEISPIEL 1 ————————–

PS C:>Get-NewAndRemovedVMs -ClusterName Cluster* | ft -AutoSize

————————– BEISPIEL 2 ————————–

PS C:>Get-NewAndRemovedVMs -ClusterName Cluster01 -Days 90

————————– BEISPIEL 3 ————————–

PS C:>Get-NewAndRemovedVMs -ClusterName * -Days 90 -Summary

HINWEISE
Zum Aufrufen der Beispiele geben Sie Folgendes ein: “get-help Get-NewAndRemovedVMs -examples”. Weitere Informationen erhalten Sie mit folgendem Befehl: “get-help Get-NewAndRemovedVMs -detailed”. Technische Informationen erhalten Sie mit folgendem Befehl: “get-help Get-NewAndRemovedVMs -full”.

Get-NewVMs

NAME
Get-NewVMs

ÜBERSICHT

SYNTAX
Get-NewVMs [-ClusterName] <Object> [[-Days] <String>] [<CommonParameters>]
BESCHREIBUNG
This Function report newly created VMs by Cluster.
PARAMETER
-ClusterName <Object>
List or Wildcard of your vSphere Cluser Names to process.

-Days <String>

<CommonParameters>
Dieses Cmdlet unterstützt folgende allgemeine Parameter: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable und OutVariable. Weitere Informationen finden Sie unter “about_CommonParameters” (https:/go.microsoft.com/fwlink/?LinkID=113216).

————————– BEISPIEL 1 ————————–

PS C:>Get-NewVMs -ClusterName Cluster* | ft -AutoSize

————————– BEISPIEL 2 ————————–

PS C:>Get-NewVMs -ClusterName Cluster01

————————– BEISPIEL 3 ————————–

PS C:>Get-NewVMs -ClusterName Cluster01, Cluster02 -Days 60 | ft -AutoSize

HINWEISE
Zum Aufrufen der Beispiele geben Sie Folgendes ein: “get-help Get-NewVMs -examples”. Weitere Informationen erhalten Sie mit folgendem Befehl: “get-help Get-NewVMs -detailed”. Technische Informationen erhalten Sie mit folgendem Befehl: “get-help Get-NewVMs -full”.

Get-NICDetails

NAME
Get-NICDetails

ÜBERSICHT

SYNTAX
Get-NICDetails [-Clustername] <String> [<CommonParameters>]
BESCHREIBUNG
Reports Firmware and Driver Details for your ESXi vmnics.
PARAMETER
-Clustername <String>

Name or Wildcard of your vSphere Cluster Name to process.

#Requires PS -Version 4.0 #Requires -Modules VMware.VimAutomation.Core, @{ModuleName=”VMware.VimAutomation.Core”;ModuleVersion=”6.3.0.0”}

<CommonParameters>
Dieses Cmdlet unterstützt folgende allgemeine Parameter: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable und OutVariable. Weitere Informationen finden Sie unter “about_CommonParameters” (https:/go.microsoft.com/fwlink/?LinkID=113216).

————————– BEISPIEL 1 ————————–

PS C:>Get-NICDetails -Clustername *

HINWEISE
Zum Aufrufen der Beispiele geben Sie Folgendes ein: “get-help Get-NICDetails -examples”. Weitere Informationen erhalten Sie mit folgendem Befehl: “get-help Get-NICDetails -detailed”. Technische Informationen erhalten Sie mit folgendem Befehl: “get-help Get-NICDetails -full”.

Get-UplinkDetails

NAME
Get-UplinkDetails

ÜBERSICHT

SYNTAX
Get-UplinkDetails [-Clustername] <String> [<CommonParameters>]
BESCHREIBUNG
This Function collects detailed informations about your ESXi Host connections to pSwitch and DVS / vSwitch
PARAMETER
-Clustername <String>

Your vSphere Cluster Name or Wildcard

#Requires PS -Version 4.0 #Requires -Modules VMware.VimAutomation.Core, @{ModuleName=”VMware.VimAutomation.Core”;ModuleVersion=”6.3.0.0”}

<CommonParameters>
Dieses Cmdlet unterstützt folgende allgemeine Parameter: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable und OutVariable. Weitere Informationen finden Sie unter “about_CommonParameters” (https:/go.microsoft.com/fwlink/?LinkID=113216).

————————– BEISPIEL 1 ————————–

PS C:>Get-UplinkDetails -Clustername * | ft -AutoSize

————————– BEISPIEL 2 ————————–

PS C:>Get-UplinkDetails -Clustername MyCluster001 | ft -AutoSize

————————– BEISPIEL 3 ————————–

PS C:>Get-UplinkDetails -Clustername MyCluster* | Sort Clustername, Hostname, DVS | ft -AutoSize

HINWEISE
Zum Aufrufen der Beispiele geben Sie Folgendes ein: “get-help Get-UplinkDetails -examples”. Weitere Informationen erhalten Sie mit folgendem Befehl: “get-help Get-UplinkDetails -detailed”. Technische Informationen erhalten Sie mit folgendem Befehl: “get-help Get-UplinkDetails -full”.

Get-VMDisk

NAME
Get-VMDisk

ÜBERSICHT

SYNTAX
Get-VMDisk [-myVMs] <InventoryItemImpl[]> [<CommonParameters>]
BESCHREIBUNG

This Function reports VM vDisks and Datastores:

Get-VM MyTest | Get-VMDisk | Format-Table -AutoSize

Name PowerState Datastore Path Disk StorageFormat CapacityGB Controller Unit —- ———- ——— —- —- ————- ———- ———- —- MyTest PoweredOff data01 MyTest/MyTest.vmdk Hard disk 1 Thin 16 0 0 MyTest PoweredOff data02 MyTest/MyTest_1.vmdk Hard disk 2 Thin 20 1 0 MyTest PoweredOff data01 MyTest/MyTest_2.vmdk Hard disk 3 Thick 20 1 1

PARAMETER

-myVMs <InventoryItemImpl[]>

<CommonParameters>
Dieses Cmdlet unterstützt folgende allgemeine Parameter: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable und OutVariable. Weitere Informationen finden Sie unter “about_CommonParameters” (https:/go.microsoft.com/fwlink/?LinkID=113216).

————————– BEISPIEL 1 ————————–

PS C:>Get-VM -Name TST* | Get-VMDisk

————————– BEISPIEL 2 ————————–

PS C:>Get-Folder -Name TST | Get-VM | Get-VMDisk | ft -AutoSize

#Requires PS -Version 5.0 #Requires -Modules VMware.VimAutomation.Core, @{ModuleName=”VMware.VimAutomation.Core”;ModuleVersion=”6.3.0.0”}

HINWEISE
Zum Aufrufen der Beispiele geben Sie Folgendes ein: “get-help Get-VMDisk -examples”. Weitere Informationen erhalten Sie mit folgendem Befehl: “get-help Get-VMDisk -detailed”. Technische Informationen erhalten Sie mit folgendem Befehl: “get-help Get-VMDisk -full”.

Get-VMHostUplinkDetails

NAME
Get-VMHostUplinkDetails

ÜBERSICHT

SYNTAX
Get-VMHostUplinkDetails [-VMHost] <VMHost[]> [-Type] <String> [<CommonParameters>]
BESCHREIBUNG
This Function collects detailed informations about your ESXi Host connections to pSwitch and VDS / vSwitch. LLDP Informations might only be available when uplinks are connected to a VDS.
PARAMETER

-VMHost <VMHost[]>

-Type <String>

<CommonParameters>
Dieses Cmdlet unterstützt folgende allgemeine Parameter: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable und OutVariable. Weitere Informationen finden Sie unter “about_CommonParameters” (https:/go.microsoft.com/fwlink/?LinkID=113216).

————————– BEISPIEL 1 ————————–

PS C:>Get-VMHost -Name MyHost | Get-VMHostUplinkDetails -Type LLDP | Where-Object {$_.VDS -ne “-No Backing-“} | Format-Table -AutoSize

————————– BEISPIEL 2 ————————–

PS C:>Get-VMHost -Name MyHost | Get-VMHostUplinkDetails -Type CDP | Where-Object {$_.VDS -ne “-No Backing-“} | Sort-Object ClusterName, HostName, vmnic | Format-Table -AutoSize

————————– BEISPIEL 3 ————————–

PS C:>Get-Cluster -Name MyCluster | Get-VMHost | Get-VMHostUplinkDetails -Type LLDP | Format-Table -AutoSize

————————– BEISPIEL 4 ————————–

PS C:>Get-Cluster -Name MyCluster | Get-VMHost | Get-VMHostUplinkDetails -Type CDP | Format-Table -AutoSize

HINWEISE
Zum Aufrufen der Beispiele geben Sie Folgendes ein: “get-help Get-VMHostUplinkDetails -examples”. Weitere Informationen erhalten Sie mit folgendem Befehl: “get-help Get-VMHostUplinkDetails -detailed”. Technische Informationen erhalten Sie mit folgendem Befehl: “get-help Get-VMHostUplinkDetails -full”.

Get-VMID

NAME
Get-VMID

ÜBERSICHT

SYNTAX
Get-VMID [-myVMs] <InventoryItemImpl[]> [<CommonParameters>]
BESCHREIBUNG
This Function reports all VM IDs
PARAMETER

-myVMs <InventoryItemImpl[]>

<CommonParameters>
Dieses Cmdlet unterstützt folgende allgemeine Parameter: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable und OutVariable. Weitere Informationen finden Sie unter “about_CommonParameters” (https:/go.microsoft.com/fwlink/?LinkID=113216).

————————– BEISPIEL 1 ————————–

PS C:>Get-VM -Name TST* | Get-VMID

————————– BEISPIEL 2 ————————–

PS C:>Get-Folder -Name TST | Get-VM | Get-VMID | ft -AutoSize

#Requires PS -Version 4.0 #Requires -Modules VMware.VimAutomation.Core, @{ModuleName=”VMware.VimAutomation.Core”;ModuleVersion=”6.3.0.0”}

HINWEISE
Zum Aufrufen der Beispiele geben Sie Folgendes ein: “get-help Get-VMID -examples”. Weitere Informationen erhalten Sie mit folgendem Befehl: “get-help Get-VMID -detailed”. Technische Informationen erhalten Sie mit folgendem Befehl: “get-help Get-VMID -full”.

Get-VMmaxIOPS

NAME
Get-VMmaxIOPS

ÜBERSICHT

SYNTAX
Get-VMmaxIOPS [-VMs] <InventoryItemImpl[]> [[-Minutes] <Int32>] [<CommonParameters>]
BESCHREIBUNG
This Function will Create a VM Disk IOPS Report
PARAMETER
-VMs <InventoryItemImpl[]>
Specify the VMs
-Minutes <Int32>

Time Range in Minutes for the Stats Collection. Default is 30 Minutes.

#Requires PS -Version 4.0 #Requires -Modules VMware.VimAutomation.Core, @{ModuleName=”VMware.VimAutomation.Core”;ModuleVersion=”6.3.0.0”}

<CommonParameters>
Dieses Cmdlet unterstützt folgende allgemeine Parameter: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable und OutVariable. Weitere Informationen finden Sie unter “about_CommonParameters” (https:/go.microsoft.com/fwlink/?LinkID=113216).

————————– BEISPIEL 1 ————————–

PS C:>Get-Folder -Name TST | Get-VM | where {$_.PowerState -eq “PoweredOn”} | Get-VMmaxIOPS -Minutes 120 | ft -AutoSize

————————– BEISPIEL 2 ————————–

PS C:>Get-Cluster -Name TST | Get-VM | where {$_.PowerState -eq “PoweredOn”} | Get-VMmaxIOPS

————————– BEISPIEL 3 ————————–

PS C:>Get-VM -Name TST*| where {$_.PowerState -eq “PoweredOn”} | Get-VMmaxIOPS -Minutes 120 | ft -AutoSize

HINWEISE
Zum Aufrufen der Beispiele geben Sie Folgendes ein: “get-help Get-VMmaxIOPS -examples”. Weitere Informationen erhalten Sie mit folgendem Befehl: “get-help Get-VMmaxIOPS -detailed”. Technische Informationen erhalten Sie mit folgendem Befehl: “get-help Get-VMmaxIOPS -full”.

Konfig Commands

This page contains details on Konfig commands.

Konfig-ESXi

NAME
Konfig-ESXi

ÜBERSICHT

SYNTAX
Konfig-ESXi [-VMHost] <String> [-NTP] <Array> [-syslog] <String> [<CommonParameters>]
BESCHREIBUNG

This Function sets the Basic settings for a new ESXi.

  • NTP
  • SSH
  • Syslog
  • Power Management
  • HP 3PAR SATP/PSP Rule
PARAMETER
-VMHost <String>
Host to configure.
-NTP <Array>
NTP Server(s) to set.
-syslog <String>

Syslog Server to set, e.g. “udp://loginsight.lan.local:514”

DNS Name must be resolvable!

#Requires PS -Version 4.0 #Requires -Modules VMware.VimAutomation.Core, @{ModuleName=”VMware.VimAutomation.Core”;ModuleVersion=”6.3.0.0”}

<CommonParameters>
Dieses Cmdlet unterstützt folgende allgemeine Parameter: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable und OutVariable. Weitere Informationen finden Sie unter “about_CommonParameters” (https:/go.microsoft.com/fwlink/?LinkID=113216).

————————– BEISPIEL 1 ————————–

PS C:>Konfig-ESXi -VMHost myesxi.lan.local -NTP 192.168.2.1, 192.168.2.2 -syslog “udp://loginsight.lan.local:514”

HINWEISE
Zum Aufrufen der Beispiele geben Sie Folgendes ein: “get-help Konfig-ESXi -examples”. Weitere Informationen erhalten Sie mit folgendem Befehl: “get-help Konfig-ESXi -detailed”. Technische Informationen erhalten Sie mit folgendem Befehl: “get-help Konfig-ESXi -full”.

Push Commands

This page contains details on Push commands.

Push-vLIMessage

NAME
Push-vLIMessage
ÜBERSICHT
Push Messages to VMware vRealize Log Inisght.
SYNTAX
Push-vLIMessage [-Text] <String> [-vLIServer] <String> [-vLIAgentID] <String> [[-Hostname] <String>] [[-FieldName] <String>] [[-FieldContent] <String>] [<CommonParameters>]
BESCHREIBUNG
Push Messages to VMware vRealize Log Inisght.
PARAMETER
-Text <String>
Specify the Event Text
-vLIServer <String>
Specify the vLI FQDN
-vLIAgentID <String>
Specify the vLI Agent ID
-Hostname <String>
Specify the Hostanme displayed in vLI
-FieldName <String>
Specify the a Optinal Field Name for vLI
-FieldContent <String>
Specify the a Optinal FieldContent for the Field in -FieldName for vLI If FielName is missing and FielContent is given, it will be ignored
<CommonParameters>
Dieses Cmdlet unterstützt folgende allgemeine Parameter: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable und OutVariable. Weitere Informationen finden Sie unter “about_CommonParameters” (https:/go.microsoft.com/fwlink/?LinkID=113216).

————————– BEISPIEL 1 ————————–

PS C:>Push-vLIMessage -vLIServer “loginsight.lan.local -vLIAgentID “12862842-5A6D-679C-0E38-0E2BE888BB28” -Text “My Test”

————————– BEISPIEL 2 ————————–

PS C:>Push-vLIMessage -vLIServer “loginsight.lan.local -vLIAgentID “12862842-5A6D-679C-0E38-0E2BE888BB28” -Text “My Test” -Hostname MyTEST -FieldName myTest -FieldContent myTest

HINWEISE
Zum Aufrufen der Beispiele geben Sie Folgendes ein: “get-help Push-vLIMessage -examples”. Weitere Informationen erhalten Sie mit folgendem Befehl: “get-help Push-vLIMessage -detailed”. Technische Informationen erhalten Sie mit folgendem Befehl: “get-help Push-vLIMessage -full”. Geben Sie zum Abrufen der Onlinehilfe Folgendes ein: “get-help Push-vLIMessage -online”

Recommend Commands

This page contains details on Recommend commands.

Recommend-Sizing

NAME
Recommend-Sizing

ÜBERSICHT

SYNTAX
Recommend-Sizing [-ClusterNames] <Array> [[-Stats]] [[-StatsRange] <Int32>] [<CommonParameters>]
BESCHREIBUNG
This Function collects Basic vSphere Informations for a Hardware Sizing Recommandation. Focus is in Compute Ressources.
PARAMETER
-ClusterNames <Array>
List of your vSphere Cluser Names to process.
-Stats [<SwitchParameter>]

Enables Stats Collection.

Warning: At the moment this is only fully tested with vSphere 5.5 and vSphere 6.5!

-StatsRange <Int32>

Time Range in Minutes for the Stats Collection. Default is 24h.

#Requires PS -Version 4.0 #Requires -Modules VMware.VimAutomation.Core, @{ModuleName=”VMware.VimAutomation.Core”;ModuleVersion=”6.3.0.0”}

<CommonParameters>
Dieses Cmdlet unterstützt folgende allgemeine Parameter: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable und OutVariable. Weitere Informationen finden Sie unter “about_CommonParameters” (https:/go.microsoft.com/fwlink/?LinkID=113216).

————————– BEISPIEL 1 ————————–

PS C:>Recommend-Sizing -ClusterNames Cluster01, Cluster02 -Stats -StatsRange 60 -Verbose

————————– BEISPIEL 2 ————————–

PS C:>Recommend-Sizing -ClusterNames Cluster01, Cluster02

————————– BEISPIEL 3 ————————–

PS C:>Recommend-Sizing -ClusterNames Cluster01

HINWEISE
Zum Aufrufen der Beispiele geben Sie Folgendes ein: “get-help Recommend-Sizing -examples”. Weitere Informationen erhalten Sie mit folgendem Befehl: “get-help Recommend-Sizing -detailed”. Technische Informationen erhalten Sie mit folgendem Befehl: “get-help Recommend-Sizing -full”.

Set Commands

This page contains details on Set commands.

Set-CBT

NAME
Set-CBT

ÜBERSICHT

SYNTAX

Set-CBT [-myVMs] <InventoryItemImpl[]> [[-EnableCBT]] [<CommonParameters>]

Set-CBT [-myVMs] <InventoryItemImpl[]> [[-DisableCBT]] [<CommonParameters>]

BESCHREIBUNG
This Function enables or disables CBT.
PARAMETER

-myVMs <InventoryItemImpl[]>

-EnableCBT [<SwitchParameter>]

Enables CBT for any VMs found with it disabled

#Requires PS -Version 4.0

-DisableCBT [<SwitchParameter>]
Disables CBT for any VMs found with it enabled
<CommonParameters>
Dieses Cmdlet unterstützt folgende allgemeine Parameter: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable und OutVariable. Weitere Informationen finden Sie unter “about_CommonParameters” (https:/go.microsoft.com/fwlink/?LinkID=113216).

————————– BEISPIEL 1 ————————–

PS C:>Get-VN TST* | Set-CBT -DisableCBT

————————– BEISPIEL 2 ————————–

PS C:>Get-VN TST* | Set-CBT -EnableCBT

HINWEISE
Zum Aufrufen der Beispiele geben Sie Folgendes ein: “get-help Set-CBT -examples”. Weitere Informationen erhalten Sie mit folgendem Befehl: “get-help Set-CBT -detailed”. Technische Informationen erhalten Sie mit folgendem Befehl: “get-help Set-CBT -full”.

Set-ConsolidationFix

NAME
Set-ConsolidationFix
ÜBERSICHT
Set VM SnapShot Consolidation Timout Workaround
SYNTAX
Set-ConsolidationFix [-vCenterVM] <String> [-Fix] <String> [<CommonParameters>]
BESCHREIBUNG
Set VM SnapShot Consolidation Timout Workaround
PARAMETER

-vCenterVM <String>

-Fix <String>
Timeout os Stun
<CommonParameters>
Dieses Cmdlet unterstützt folgende allgemeine Parameter: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable und OutVariable. Weitere Informationen finden Sie unter “about_CommonParameters” (https:/go.microsoft.com/fwlink/?LinkID=113216).

————————– BEISPIEL 1 ————————–

PS C:>Set-ConsolidationFix -vCenterVM “myTest” -Fix “Timeout”

————————– BEISPIEL 2 ————————–

PS C:>Set-ConsolidationFix -vCenterVM “myTest” -Fix “Stun”

HINWEISE
Zum Aufrufen der Beispiele geben Sie Folgendes ein: “get-help Set-ConsolidationFix -examples”. Weitere Informationen erhalten Sie mit folgendem Befehl: “get-help Set-ConsolidationFix -detailed”. Technische Informationen erhalten Sie mit folgendem Befehl: “get-help Set-ConsolidationFix -full”. Geben Sie zum Abrufen der Onlinehilfe Folgendes ein: “get-help Set-ConsolidationFix -online”

Set-IOPSLimit

NAME
Set-IOPSLimit

ÜBERSICHT

SYNTAX
Set-IOPSLimit [-VMs] <InventoryItemImpl[]> [-ConfigPath] <String> [[-Exclusions] <String>] [[-SetLimit]] [<CommonParameters>]
BESCHREIBUNG
Report and Set VM Disk IO Limits
PARAMETER
-VMs <InventoryItemImpl[]>
Specify the VMs
-ConfigPath <String>

Path to XML File with Valid Configuration

Example: <?xml version=”1.0” encoding=”utf-8”?> <Config version=”1.0”> <Variable Name=”Split” Value=”-” /> <Variable Name=”Split_Position” Value=”3” /> <Bronze>

<Name>B</Name> <Value>250</Value>

</Bronze> <Silver>

<Name>S</Name> <Value>1000</Value>

</Silver> <Gold>

<Name>G</Name> <Value>-1</Value>

</Gold> </Config>

-Exclusions <String>

-SetLimit [<SwitchParameter>]

Switch to enforce the Limits

#Requires PS -Version 4.0 #Requires -Modules VMware.VimAutomation.Core, @{ModuleName=”VMware.VimAutomation.Core”;ModuleVersion=”6.3.0.0”}

<CommonParameters>
Dieses Cmdlet unterstützt folgende allgemeine Parameter: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable und OutVariable. Weitere Informationen finden Sie unter “about_CommonParameters” (https:/go.microsoft.com/fwlink/?LinkID=113216).

————————– BEISPIEL 1 ————————–

PS C:>Get-VM -Name TST* | Set-IOPSLimit -ConfigPath C:ScriptsvSphere-ModulesSet-IOPSLimit.xml -SetLimit | ft -AutoSize

————————– BEISPIEL 2 ————————–

PS C:>Get-VM -Name TST* | Set-IOPSLimit -ConfigPath C:ScriptsvSphere-ModulesSet-IOPSLimit.xml | ft -AutoSize

HINWEISE
Zum Aufrufen der Beispiele geben Sie Folgendes ein: “get-help Set-IOPSLimit -examples”. Weitere Informationen erhalten Sie mit folgendem Befehl: “get-help Set-IOPSLimit -detailed”. Technische Informationen erhalten Sie mit folgendem Befehl: “get-help Set-IOPSLimit -full”.

Set-VMHostSecureNTP

NAME
Set-VMHostSecureNTP

ÜBERSICHT

SYNTAX

Set-VMHostSecureNTP [-VMHost] <VMHost[]> [-SetSecure] -NTP <IPAddress[]> [<CommonParameters>]

Set-VMHostSecureNTP [-VMHost] <VMHost[]> [-Secure] [<CommonParameters>]

BESCHREIBUNG
This function sets new NTP Servers on given ESXi Hosts and configures the host firewall to only accept NTP connections from these servers.
PARAMETER
-VMHost <VMHost[]>
Specifies the hosts to configure
-SetSecure [<SwitchParameter>]
Execute Set and Secure operation for new NTP Servers
-NTP <IPAddress[]>
Specifies a Array of NTP Servers
-Secure [<SwitchParameter>]

Execute Secure operation for exitsting NTP Servers

#Requires PS -Version 5.1 #Requires -Modules VMware.VimAutomation.Core, @{ModuleName=”VMware.VimAutomation.Core”;ModuleVersion=”11.5.0.0”}

<CommonParameters>
Dieses Cmdlet unterstützt folgende allgemeine Parameter: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable und OutVariable. Weitere Informationen finden Sie unter “about_CommonParameters” (https:/go.microsoft.com/fwlink/?LinkID=113216).

————————– BEISPIEL 1 ————————–

PS C:>Get-VMHost | Set-VMHostSecureNTP -Secure

————————– BEISPIEL 2 ————————–

PS C:>Get-VMHost | Set-VMHostSecureNTP -Type SetSecure -NTP 10.100.1.1, 192.168.2.1

HINWEISE
Zum Aufrufen der Beispiele geben Sie Folgendes ein: “get-help Set-VMHostSecureNTP -examples”. Weitere Informationen erhalten Sie mit folgendem Befehl: “get-help Set-VMHostSecureNTP -detailed”. Technische Informationen erhalten Sie mit folgendem Befehl: “get-help Set-VMHostSecureNTP -full”.

Start Commands

This page contains details on Start commands.

Start-UNMAP

NAME
Start-UNMAP
ÜBERSICHT
Process SCSI UNMAP on VMware Datastores
SYNTAX
Start-UNMAP [-ClusterName] <String> [-DSWildcard] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
BESCHREIBUNG
This Function will process SCSI UNMAP on VMware Datastores via ESXCLI -V2
PARAMETER

-ClusterName <String>

-DSWildcard <String>

-WhatIf [<SwitchParameter>]

-Confirm [<SwitchParameter>]

<CommonParameters>
Dieses Cmdlet unterstützt folgende allgemeine Parameter: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable und OutVariable. Weitere Informationen finden Sie unter “about_CommonParameters” (https:/go.microsoft.com/fwlink/?LinkID=113216).

————————– BEISPIEL 1 ————————–

PS C:>Start-UNMAP -ClusterName myCluster -DSWildcard RAID5

————————– BEISPIEL 2 ————————–

PS C:>Start-UNMAP -ClusterName myCluster -DSWildcard RAID5 -Verbose -WhatIf

HINWEISE
Zum Aufrufen der Beispiele geben Sie Folgendes ein: “get-help Start-UNMAP -examples”. Weitere Informationen erhalten Sie mit folgendem Befehl: “get-help Start-UNMAP -detailed”. Technische Informationen erhalten Sie mit folgendem Befehl: “get-help Start-UNMAP -full”. Geben Sie zum Abrufen der Onlinehilfe Folgendes ein: “get-help Start-UNMAP -online”

Validate Commands

This page contains details on Validate commands.

Validate-ESXiPackages

NAME
Validate-ESXiPackages

ÜBERSICHT

SYNTAX
Validate-ESXiPackages [-Cluster] <ComputeResourceImpl> [-RefernceHost] <InventoryItemImpl> [<CommonParameters>]
BESCHREIBUNG
Compares all ESXi Host VIBs within a vSphere with a reference Hosts.
PARAMETER
-Cluster <ComputeResourceImpl>
vSphere Cluster to verify
-RefernceHost <InventoryItemImpl>
The VIB Reference ESXi Host
<CommonParameters>
Dieses Cmdlet unterstützt folgende allgemeine Parameter: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable und OutVariable. Weitere Informationen finden Sie unter “about_CommonParameters” (https:/go.microsoft.com/fwlink/?LinkID=113216).

————————– BEISPIEL 1 ————————–

PS C:>Validate-ESXiPackages -Cluster (Get-Cluster) -RefernceHost (Get-VMHost | Select-Object -First 1)

HINWEISE
Zum Aufrufen der Beispiele geben Sie Folgendes ein: “get-help Validate-ESXiPackages -examples”. Weitere Informationen erhalten Sie mit folgendem Befehl: “get-help Validate-ESXiPackages -detailed”. Technische Informationen erhalten Sie mit folgendem Befehl: “get-help Validate-ESXiPackages -full”. Geben Sie zum Abrufen der Onlinehilfe Folgendes ein: “get-help Validate-ESXiPackages -online”