vnugglets / vnuggletspsmod_vdnetworking Goto Github PK
View Code? Open in Web Editor NEWvNugglets PowerShell module for managing advanced vSphere virtual distributed networking, like traffic filtering and marking
License: MIT License
vNugglets PowerShell module for managing advanced vSphere virtual distributed networking, like traffic filtering and marking
License: MIT License
When I am using this module in my script and calling the script from the commandline I am getting the following error.
New-Object : Cannot find type [VNVDTrafficFilterPolicyConfig]: verify that the assembly containing this type is loaded.
At C:\Program Files\WindowsPowerShell\Modules\vNugglets.VDNetworking\1.1.0\GetItems.ps1:22 char:4
+ New-Object -Type VNVDTrafficFilterPolicyConfig -Property ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidType: (:) [New-Object], PSArgumentException
+ FullyQualifiedErrorId : TypeNotFound,Microsoft.PowerShell.Commands.NewObjectCommand
This only happens when I am calling the script from the windows console or powershell but does not occur when I am running the script from within powershell ISE.
I have found that the offending line is
Get-VDSwitch -name $VDSwitchName | Get-VDPortGroup -name $VDPortGroup | Get-VNVDTrafficFilterPolicyConfig
Why is this happening and how could I solve this ?
For testing I am running this small test script, after installing vNugglets.VDNetworking.
import-module vNugglets.VDNetworking
Connect-VIServer -Server $serverip -Protocol https -User $username -Password $pass
get-vdswitch -name $vswitch | get-vdportgroup -name $vport | get-vnvdtrafficfilterpolicyconfig
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.