|
⇤ ← Revision 1 as of 2019-03-29 06:47:25
Size: 493
Comment:
|
Size: 750
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 22: | Line 22: |
=== Script to list VM Network Adapter Type, exporting issue === {{{ Get-VM | Get-NetworkAdapter | Where-object {$_.Type -ne "Vmxnet3"} | Select @{N="VM";E={$_.Parent.Name}},Name,Type | export-Csv c:\Network_Interface.csv -NoTypeInformation }}} |
Install
Windows 2008R2
NetFramework4.5.2 or later
- Windows Management Framework 5.1
Install-Module VMware.PowerCLI -Scope CurrentUser
Configration
Set-ExecutionPolicy RemoteSigned Set-PowerCLIConfiguration -ProxyPolicy NoProxy Set-PowerCLIConfiguration -InvalidCertificateAction Ignore
Use
Connect-VIServer -server 192.168.25.60 -Protocol https -Username 'administrator@vsphere.local'
=== Script to list VM Network Adapter Type, exporting issue ===
Get-VM | Get-NetworkAdapter |
Where-object {$_.Type -ne "Vmxnet3"} |
Select @{N="VM";E={$_.Parent.Name}},Name,Type |
export-Csv c:\Network_Interface.csv -NoTypeInformation