LucD,
Now its working as you suggested due browser it was giving problem but now its shows error like
Any suugestion to work fine
[vSphere PowerCLI] C:\tmp> .\scripttask.ps1
Add-PSSnapin : Cannot add Windows PowerShell snap-in VMware.VimAutomation.Core
because it is already added. Verify the name of the snap-in and try again.
At C:\tmp\scripttask.ps1:6 char:13
+ Add-PSsnapin <<<< VMware.VimAutomation.Core
+ CategoryInfo : InvalidArgument: (VMware.VimAutomation.Core:Stri
ng) [Add-PSSnapin], PSArgumentException
+ FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.Ad
dPSSnapinCommand
The term 'Initialize-VIToolkitEnvironment.ps1' is not recognized as the name of
a cmdlet, function, script file, or operable program. Check the spelling of th
e name, or if a path was included, verify that the path is correct and try agai
n.
At C:\tmp\scripttask.ps1:7 char:36
+ Initialize-VIToolkitEnvironment.ps1 <<<<
+ CategoryInfo : ObjectNotFound: (Initialize-VIToolkitEnvironment
.ps1:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException