Thanks for the quick response, now it appears no snapin's are not available, nor can I install them.
[vSphere PowerCLI] C:\test> get-pssnapin vmware*
Name : VMware.VimAutomation.Core
PSVersion : 2.0
Description : This Windows PowerShell snap-in contains Windows PowerShell cmdlets for managing vSphere.
[vSphere PowerCLI] C:\test> add-pssnapin vmware.view.broker
Add-PSSnapin : The Windows PowerShell snap-in 'vmware.view.broker' is not installed on this machine.
At line:1 char:13
+ add-pssnapin <<<< vmware.view.broker
+ CategoryInfo : InvalidArgument: (vmware.view.broker:String) [Add-PSSnapin], PSArgumentException
+ FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.AddPSSnapinCommand
[vSphere PowerCLI] C:\custom_vmware_view_011212>
[root@test ]# cat bla2
Add-PSSnapin : The Windows PowerShell snap-in 'vmware.view.broker' is not installed on this machine.
At C:\test\adam_update.ps1:14 char:13
+ add-pssnapin <<<< vmware.view.broker
+ CategoryInfo : InvalidArgument: (vmware.view.broker:String) [Add-PSSnapin], PSArgumentException
+ FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.AddPSSnapinCommand
Import-Module : The specified module 'activedirectory' was not loaded because no valid module file was found in any module directory.
At C:\test\adam_update.ps1:15 char:14
+ import-module <<<< activedirectory
+ CategoryInfo : ResourceUnavailable: (activedirectory:String) [Import-Module], FileNotFoundException
+ FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand
The following exception occurred while retrieving member "Put": "Logon failure: unknown user name or bad password.
"
At C:\test\adam_update.ps1:32 char:37
+ $objPool.Put <<<< ("pae-Disabled","0")
+ CategoryInfo : NotSpecified: (:) [], ExtendedTypeSystemException
+ FullyQualifiedErrorId : CatchFromBaseGetMember
The following exception occurred while retrieving member "Setinfo": "Logon failure: unknown user name or bad password.
"
At C:\test\adam_update.ps1:58 char:17
+ $objPool.Setinfo <<<< ()
+ CategoryInfo : NotSpecified: (:) [], ExtendedTypeSystemException
+ FullyQualifiedErrorId : CatchFromBaseGetMember
The following exception occurred while retrieving member "close": "Logon failure: unknown user name or bad password.
"
At C:\custom_vmware_view_011212\adam_update.ps1:59 char:15
+ $objPool.close <<<< ()
+ CategoryInfo : NotSpecified: (:) [], ExtendedTypeSystemException
+ FullyQualifiedErrorId : CatchFromBaseGetMember
#-----------------------------------------------
# Check not there
[vSphere PowerCLI] C:\test> get-pssnapin vmware*
Name : VMware.VimAutomation.Core
PSVersion : 2.0
Description : This Windows PowerShell snap-in contains Windows PowerShell cmdlets for managing vSphere.
#----- Try to Add failed
[vSphere PowerCLI] C:\test> add-pssnapin vmware.view.broker
Add-PSSnapin : The Windows PowerShell snap-in 'vmware.view.broker' is not installed on this machine.
At line:1 char:13
+ add-pssnapin <<<< vmware.view.broker
+ CategoryInfo : InvalidArgument: (vmware.view.broker:String) [Add-PSSnapin], PSArgumentException
+ FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.AddPSSnapinCommand
thanks