Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant seem to make your module work in Server 2012 R2...Do you have any clues as to why? Here are the errors? #19

Open
roddines opened this issue Sep 28, 2016 · 0 comments

Comments

@roddines
Copy link

PS C:\Users\Administrator> Import-Module .\Desktop\VMSwitchPortMonitorMode.psm1
PS C:\Users\Administrator> get-VMSwitchPortMonitorMode -SwitchName VLAN10-Management-External
gwmi : Invalid object path
At C:\Users\Administrator\Desktop\VMSwitchPortMonitorMode.psm1:49 char:21

  •         $eswp = gwmi -Namespace $ns -Query "ASSOCIATORS OF {$lep2} WHERE Res ...
    
  • - CategoryInfo          : InvalidOperation: (:) [Get-WmiObject], ManagementException
    - FullyQualifiedErrorId : GetWMIManagementException,Microsoft.PowerShell.Commands.GetWmiObjectCommand
    
    

gwmi : Invalid object path
At C:\Users\Administrator\Desktop\VMSwitchPortMonitorMode.psm1:50 char:19

  •         $sw = gwmi -Namespace $ns -Query "ASSOCIATORS OF {$eswp} WHERE Resul ...
    
  • - CategoryInfo          : InvalidOperation: (:) [Get-WmiObject], ManagementException
    - FullyQualifiedErrorId : GetWMIManagementException,Microsoft.PowerShell.Commands.GetWmiObjectCommand
    
    

gwmi : Invalid object path
At C:\Users\Administrator\Desktop\VMSwitchPortMonitorMode.psm1:49 char:21

  •         $eswp = gwmi -Namespace $ns -Query "ASSOCIATORS OF {$lep2} WHERE Res ...
    
  • - CategoryInfo          : InvalidOperation: (:) [Get-WmiObject], ManagementException
    - FullyQualifiedErrorId : GetWMIManagementException,Microsoft.PowerShell.Commands.GetWmiObjectCommand
    
    

gwmi : Invalid object path
At C:\Users\Administrator\Desktop\VMSwitchPortMonitorMode.psm1:50 char:19

  •         $sw = gwmi -Namespace $ns -Query "ASSOCIATORS OF {$eswp} WHERE Resul ...
    
    • CategoryInfo : InvalidOperation: (:) [Get-WmiObject], ManagementException

    • FullyQualifiedErrorId : GetWMIManagementException,Microsoft.PowerShell.Commands.GetWmiObjectCommand

                                             PortType                                                 MonitorMode
                                             --------                                                 -----------
                                             External                                                        None
                                                 Host                                                        None
      

PS C:\Users\Administrator> get-VMSwitchPortMonitorMode VLAN10-Management-External
gwmi : Invalid object path
At C:\Users\Administrator\Desktop\VMSwitchPortMonitorMode.psm1:49 char:21

  •         $eswp = gwmi -Namespace $ns -Query "ASSOCIATORS OF {$lep2} WHERE Res ...
    
  • - CategoryInfo          : InvalidOperation: (:) [Get-WmiObject], ManagementException
    - FullyQualifiedErrorId : GetWMIManagementException,Microsoft.PowerShell.Commands.GetWmiObjectCommand
    
    

gwmi : Invalid object path
At C:\Users\Administrator\Desktop\VMSwitchPortMonitorMode.psm1:50 char:19

  •         $sw = gwmi -Namespace $ns -Query "ASSOCIATORS OF {$eswp} WHERE Resul ...
    
  • - CategoryInfo          : InvalidOperation: (:) [Get-WmiObject], ManagementException
    - FullyQualifiedErrorId : GetWMIManagementException,Microsoft.PowerShell.Commands.GetWmiObjectCommand
    
    

gwmi : Invalid object path
At C:\Users\Administrator\Desktop\VMSwitchPortMonitorMode.psm1:49 char:21

  •         $eswp = gwmi -Namespace $ns -Query "ASSOCIATORS OF {$lep2} WHERE Res ...
    
  • - CategoryInfo          : InvalidOperation: (:) [Get-WmiObject], ManagementException
    - FullyQualifiedErrorId : GetWMIManagementException,Microsoft.PowerShell.Commands.GetWmiObjectCommand
    
    

gwmi : Invalid object path
At C:\Users\Administrator\Desktop\VMSwitchPortMonitorMode.psm1:50 char:19

  •         $sw = gwmi -Namespace $ns -Query "ASSOCIATORS OF {$eswp} WHERE Resul ...
    
    • CategoryInfo : InvalidOperation: (:) [Get-WmiObject], ManagementException

    • FullyQualifiedErrorId : GetWMIManagementException,Microsoft.PowerShell.Commands.GetWmiObjectCommand

                                             PortType                                                 MonitorMode
                                             --------                                                 -----------
                                             External                                                        None
                                                 Host                                                        None
      
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant