michalpawlak
Enthusiast
Enthusiast

Problem with PSHost add-module

Hi All,

I have came across another problem. I have pretty long script which should be executed against AD. However at the PShost I cannot load module:

WARNING: Error initializing default drive: 'Unable to contact the server. This 

may be because this server does not exist, it is currently down, or it does not

 have the Active Directory Web Services running.'.

Code which is being executed:

sessionID= System.getModule("com.vmware.library.powershell").openSession(psHost) ;

script = "Import-Module ActiveDirectory";

 

output = System.getModule("com.vmware.library.powershell").invokeScript(psHost,script,sessionID);

Do you have similar problems?

I am running 7.0.1 vRA solution.

All other powershell commands works fine.

Thanks for help!

WARNING: Error initializing default drive: 'Unable to contact the server. This 
may be because this server does not exist, it is currently down, or it does not
 have the Active Directory Web Services running.'."
0 Kudos
1 Reply
drummoau
Enthusiast
Enthusiast

What OS version is your PSHost? Have you installed the AD LDS feature?

Does your script work on the host if you run it manually (not via vRO)?

We haven't had any issues with AD cmdlets on vRA 6.x/7.x PSHosts.

0 Kudos