1 person found this helpful
Sometimes it helps just to step away...
here the answer:
profile=hostProfileManager.findAssociatedProfile(host); exec=profile.executeHostProfile(host); taskID=hostProfileManager.applyHostConfig_Task(host,exec.configSpec); stuff=System.getModule("com.vmware.library.vc.basic").vim3WaitTaskEnd(taskID,false,2);
The problem was that I didn't realize that the type vc:Profile is the same as the type vc:HostProfile
Can you share part of your code for what you did to edit the answer file? I've managed to pick the profile I want, apply it to the host and do the remediation (with the help of your code above) but the trying to feed in all the answers are giving me a little trouble.
Anything you can share would be helpful