You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not really sure if this qualifies as an actual issue. A naming conflict is being created because the script name and function within it are both called Get-vmotion.
If I use Install-Script the script name itself registers as a command. When I try Get-vMotion it executes the script itself and registers the function, but I can not get it to run the function.
I've hit this before where two modules (Hyper-V & PowerCLI) had the same command name, and I got around it by prefixing the module when I import it, or directly referencing the one I want- (vmware.powercli/Get-VM instead of Get-VM). I have not been able to use that method in this case because the script isn't a module.
The text was updated successfully, but these errors were encountered:
I'm not really sure if this qualifies as an actual issue. A naming conflict is being created because the script name and function within it are both called Get-vmotion.
If I use
Install-Script
the script name itself registers as a command. When I tryGet-vMotion
it executes the script itself and registers the function, but I can not get it to run the function.I've hit this before where two modules (Hyper-V & PowerCLI) had the same command name, and I got around it by prefixing the module when I import it, or directly referencing the one I want- (
vmware.powercli/Get-VM
instead ofGet-VM
). I have not been able to use that method in this case because the script isn't a module.The text was updated successfully, but these errors were encountered: