same results + a new error
Get-Tag : 10/3/2017 4:04:11 PM Get-Tag Could not load file or assembly 'vapi-client-bindings, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
At C:\Users\name\Desktop\add-tags.ps1:11 char:12
+ $tag = Get-Tag -Name $_.tag
+ ~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-Tag], VimException
+ FullyQualifiedErrorId : Core_BaseCmdlet_UnknownError,VMware.VimAutomation.ViCore.Cmdlets.Commands.Tagging.GetTag
Get-Tag : 10/3/2017 4:04:11 PM Get-Tag Tag with name '13' was not found using the specified filter(s).
At C:\Users\name\Desktop\add-tags.ps1:11 char:12
+ $tag = Get-Tag -Name $_.tag
+ ~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (:) [Get-Tag], VimException
+ FullyQualifiedErrorId : Core_OutputHelper_WriteNotFoundError,VMware.VimAutomation.ViCore.Cmdlets.Commands.Taggin
g.GetTag
New-TagAssignment : Cannot bind argument to parameter 'Tag' because it is null.
At C:\Users\name\Desktop\add-tags.ps1:12 char:51
+ Get-VM -Name $_.Name | New-TagAssignment -Tag $tag -Confirm:$fals ...
+ ~~~~
+ CategoryInfo : InvalidData: (:) [New-TagAssignment], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,VMware.VimAutomation.ViCore.Cmdlets.Comma
nds.Tagging.NewTagAssignment