Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

Problem with PSHost add-module

$
0
0

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.'."

Viewing all articles
Browse latest Browse all 6251

Trending Articles



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