Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 219257

Issue when i add add-PSSnapin VMware.VimAutomation.Core

$
0
0

Hi guys,

 

 

Im new in the power cli world !!

 

 

Hi guys,

Im new in the powercli world and i need help and read/practice a lot.

 

I have a problem when a create a task sheduler in W2K8R2 i got an error and the folowwing param is not

recognized by the script when i add the cli add-PSSnapin VMware.VimAutomation.Core

:

param (

    [String[]]$vCenters

)

 

 

When i remove the script recognize the param !

 

 

 

 

----------------------------------------------------

 

 

 

 

 

 

add-PSSnapin VMware.VimAutomation.Core

 

param (

    [String[]]$vCenters

)

 

$fecha = get-date -uFormat "%d%m%y"

 

 

I check few posts with people that have the same issue but i dont find the solution.

I need to but a wildcard ?

 

Many Thanks

Carlos


Viewing all articles
Browse latest Browse all 219257

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>