Quantcast
Channel: VMware Communities : All Content - vRealize Automation Tools
Viewing all articles
Browse latest Browse all 9859

Unable to make GuestAgent and Software Components working together

$
0
0

I have a Windows blueprint that I use custom properties to add the owner to the local administrators groups like described here: Adding the vRealize Automation machine owner to the local Administrator group in Windows when provisioning (2081190) | V… and it works fine. But if I add a software component to just write a text to a log file, the deployment fails and if I remove the custom properties and try the deploy again, the deploy finish with success and the text is written to the log file.

 

Looking the VRMGuestAgent.log, looks like the custom properties that adds the owner to the local administrators groups is running more than one time (when we use in conjunction with a software component) and on the second execution, since the user is already on the Administrators groups, the execution fails and the deployment fails.

 

See part of the log:

2016-07-01 15:14:39 Application: [Information] vrm.software.command -> C:\VRMGuestAgent\scripts\addusertoadmin.cmd xxx@domain.local

2016-07-01 15:14:39 Application: [Information] Executing '10_installsoftware.bat' ...

2016-07-01 15:14:39 Application: [Information] Wait for completion of '10_installsoftware.bat'

2016-07-01 15:14:39 Application: [Error] Failure executing script '10_installsoftware.bat'

2016-07-01 15:14:39 Application: [Information]

2016-07-01 15:14:39 Application: [Information] c:\VRMGuestAgent\site\InstallSoftware>net localgroup Administrators /add xxx@domain.local

2016-07-01 15:14:39 Application: [Information] System error 1378 has occurred.

2016-07-01 15:14:39 Application: [Information]

2016-07-01 15:14:39 Application: [Information] The specified account name is already a member of the group.

2016-07-01 15:14:39 Application: [Information]

2016-07-01 15:14:39 Application: [Information]

2016-07-01 15:14:39 Application: [Information] <workItemResponse id="80bc522b-0a2c-4f06-b278-0bb10b20b0dc">

  <task type="InstallSoftware">

  <result succeeded="false">

  <message>Failure executing script &apos;10_installsoftware.bat&apos; - </message>

  </result>

  </task>

</workItemResponse>


Viewing all articles
Browse latest Browse all 9859

Trending Articles



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