Customization General

VCAC 6.1 Pre-req Automation Script Released!

As many of you are now seeing the announcement that vCloud Automation Center 6.1 is GA, you will most likely already be downloading the bits. Let me save you all some time once again with the latest Prerequisite Automation Script.

What’s New:

  • .NET no longer needs to be installed before using this script. The script will determine if .NET needs to be updated, if it does, the script presents you with several options to proceed.
  • With the new version of vCloud Automation Center comes a new dependency during install, Java JRE 1.7 or higher (64-bit). The script has added in a check for Java and will determine if it needs to be updated. If so, the script presents you with several options to proceed.
  • Installer also creates the JAVA_HOME variable directory and points it to the installed location.
  • New variable in the user config section of the script allows for local installer locations to be set and the menu options pre-selected
  • Currently works with Server 2008r2, 2012, and 2012r2

Download: vCAC 6.1 Prereq Automation Script

For those of you who prefer to see what it looks like before using it, I’ve provided some screenshots below.

*NOTE: as always, you should look through any script and understand what it is doing before running it. This is an unsupported script.

Screenshots (Server 2012):

Screenshot2014090813.49.29.png

Screenshot2014090813.50.15.png Screenshot2014090813.51.12.png  Screenshot2014090813.52.45_thumb.png

Server 2008r2:

Screenshot2014090813.58.14_thumb.pngScreenshot2014090814.02.36_thumb.png Screenshot2014090814.04.41.png Screenshot2014090814.05.33.png Screenshot2014090814.20.10.png

Comments

72 comments have been added so far

  1. Hello Brian ,

    Very helpful information.Do we have any documentation or procedure to migrate VMs from vCD to vCAC for management purpose ?

    Appreciate your ideas.

    Thanks,
    Harsha

  2. Perhaps a silly issue but can’t seem download and “save” this script as a .ps1 file. When I click on the download link it brings me to the source code on GitHub. Unfortunately when I attempt to copy the actual code, it also copies all of the Line Numbering that is present. Pasting the code within PowerShell ISE duplicates the line numbering within the ISE Editor…and is truly messy… Is there another way to get the contents of this script without Line Numbers??

    Thx.

    1. Ron,
      there is a button on the right side of the screen that says “raw” click that button and then copy the source-code into a file that you save as .ps1 and you should be good to go!

      1. Yeah I noticed and tried that before as well, Brian, but the code that gets copied is really messed up…looks like binary…says it’s in Unicode format during Save operation…..but still is not legible even afterward.. Not sure if this is an isolated issue (i.e. just my current workstation or internet policies preventing proper download).. I’ll try form another environment. Thx for your prompt reply.

        Ron

        1. Yep..embarrassed to report that it was my damn environment creating all my issues… Proxy filtering and security policies in place.. Was able to effectively download proper RAW data from another machine…

          Thx for pointing me in the right direction, Brian.. :-o)

          And thanks for creating this script.. 🙂

          Ron

  3. Brian,
    Thanks so much for making this script and hopefully the error I am seeing is something simple. I’m trying to run it on windows 2012 R2 Update 1 ( possibly…the one that finally lets you reboot from the logoff screen). Anyway I downloaded all the latest patches. When I run the script I get a bunch of error messages when your script is trying to
    “set authentication values for IIS”
    I confirmed that IIS7 has anonymous authentication disabled and windows enabled but still see these error messages. When I eventually run the VCAC checker it shows the red x and say ” Not OK – IIS Server” with details
    The IIS Server is installed. Verify that it is running and that its authentication module is installed and enabled.

    here is the error messages I am seeing within your script so if you have any suggestions or if I can ignore the alerts and proceed that would be great. Thanks in advance and for helping out the community.

    Set-WebConfigurationProperty : filename: \\?\c:\windows\system32\inetsrv\config\applicationHost.config
    Line number: 925
    Error : Cannot add duplicate collection entry of type ‘add’ with unique key attribute ‘value’ set to ‘Negotiate’
    At C:\vcacscript.ps1 :310 Char :1

  4. I am getting there errors when running as local admin on 2012 R2. Any thoughts?

    OS = Microsoft Windows Server 2012 R2 Standard
    Importing Server Manager
    Installing IIS roles

    (1) – I have the Server 2012 ISO mounted and want to install the framework files from a local folder
    (2) – I have internet access and want to download it from Microsoft and install it automatically
    (3) – Exit this script
    Choose a number to proceed: : 1
    Unable to locate folder. Please specify the source folder for required files (ex D:\sources\sxs\): E:\sources\sxs
    Attempting to Install .NET Framework. Please be patient.
    Add-WindowsFeature : The request to add or remove features on the specified server failed.
    Installation of one or more roles, role services, or features failed.
    The source files could not be downloaded.
    Use the “source” option to specify the location of the files that are required to restore the feature. For more
    information on specifying a source location, see http://go.microsoft.com/fwlink/?LinkId=243077. Error: 0x800f0906
    At I:\Infrastructure_Team\VMware\Software\VCAC\vCAC61-PreReq-Automation.ps1:233 char:6
    + Add-WindowsFeature -Name Web-Webserver,Web-Http-Redirect,Web-Asp-Net,Web-Wi …
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidOperation: (@{Vhd=; Credent…Name=localhost}:PSObject) [Install-WindowsFeature],
    Exception
    + FullyQualifiedErrorId : DISMAPI_Error__Cbs_Download_Failure,Microsoft.Windows.ServerManager.Commands.AddWindowsF

    1. so one of a few things could be happening here. A) your machine is behind a proxy and therefore cannot make the connection and download the correct files. B) in your variables before running the script, you either have chosen to go off of the Windows ISO (check the path if that is the case) and have the wrong path, or the wrong ISO… just some thoughts

      1. Thanks Brian, shouldn’t be behind a proxy, but I know our security team is working on implementing one. I am using the Windows 2012 R2 ISO, but maybe iso is wrong

        1. Ok, so i just installed the components, but then ran portions of hte script manually to do the configuration.

          PS thank god for this script as I am not much of an IIS guy. I wouldn’t have known where to enable/disable half this stuff.

          1. Brian,
            We think it might be an issue with 2012 R2, we had to run windows update to get some patches and reboot and it appears to possibly fix the issue.

          2. Thanks for tracking down the issue Mark. It would be interesting to know what the root cause was, but at least we can now document this for others. Thanks for the hard work!

  5. This is a great script, that has saved me a lot of time in the past. Thanks a lot for creating this, Brian.

    Today I used “vCAC 6.1 Prereq Automation Script” for the first time in a customer PoC with Java 1.8. I noticed that JAVA_HOME has a hard coded path to C:\Program Files\Java\jre7

    Java 1.8 uses a different path. C:\Program Files\Java\jre1.8.0_25, if I remember correctly.

    Not a big deal, you can manually adjust JAVA_HOME afterwards. However, when you are planning an upgrade to this script, you might want to consider making this more “fool-proof”.

    Anyhow, really great work.
    –Jurgen

  6. Great script, and great improvements over the previous one.

    I was hoping a next version of the script will set the services to “retry” in case of failure

  7. Did any one used this script against 6.2. Was the system working fine if we use this script.
    I had an instance where i setup by running this script. after installation
    https:///WAPI/api/status is always says 404 (not found).

    have anyone had success with this script on 6.2

  8. Brian
    I just used this script for a customer production environment. I loved it and for the most part it worked. I did have an issue that I wanted to report
    I was installing on all windows 2012 R2 64 OS hosts.
    Ran the script and it completed and installed all of the components with no errors.
    However, when I installed vRA and began configuring it to talk to vsphere endpoints, the dem worker/agents were complaining about connectivity .
    I can send you screen shots but the error message I was receiving was this
     DatabaseStatsService, ignoring exception, Error executing query usp_SelectAgent Inner Exception, Error executing query usp_SelectAgentCapabilities

    After a lot of troubleshooting it appeared that MSDTC was corrupted or not working
    We performed a MSDTC uninstall and install to assure unique GUID
    A MS DTC uninstall and install should be performed if the VMs used by any component in vRA has been cloned from a template or another VM. This is because the MS DTC Globally unique identifier (GUID) configuration does not change while running sys prep meaning you still have the original VMs MS DTC configuration.
    After we completed this work, vRA worked.

    I’m curious to know if this is a known bug? Has anyone else experienced this?

    /scott

    1. Scott this is normal/”to be expected” This has been broadcast in social media, blogs, and I believe in the documentation as well. The only problem with this is that I either have to have my script uninstall and reinstall MSDTC EVERY SINGLE TIME or have the user do that if it’s cloned/templated… I have chosen not to do it in the script. Glad you have found it useful though 🙂

  9. This is the right site for everyone who would like to find out about this topic. You realize so much its almost tough to argue with you (not that I actually would want to…HaHa). You definitely put a fresh spin on a topic which has been discussed for ages. Wonderful stuff, just great

  10. After I initially commented I seem to have clicked on the -Notify me when new comments are added- checkbox and now every time a comment is added I receive 4 emails with the exact same comment. There has to be an easy method you are able to remove me from that service? Kudos!

  11. You are so interesting! I don’t believe I’ve truly read through anything like that before. So wonderful to discover another person with a few unique thoughts on this issue. Seriously.. many thanks for starting this up. This website is something that is required on the internet, someone with a bit of originality!

  12. Bigg Boss

    An intriguing discussion is worth comment. I think that you ought to publish more on this subject matter, it might not be a taboo matter but generally people don’t discuss these issues. To the next! Kind regards!!

  13. Thank you for your share! Your shared information is very helpful to me and many people are looking for them just like me! The problem seems simple, but through your pen, it impresses me! Here we share easy tips to fix HP laptop black screen issue.

  14. I blog frequently and I really appreciate your content. Your article has really peaked my interest. I am going to bookmark your website and keep checking for new details about once per week. I subscribed to your RSS feed too.

  15. Hi!admin Thank you for sharing exceptional informations. Your site is quite cool. I am impressed with the details you have on this website. It shows how well you comprehend this topic. Bookmarked this web page, will return for more posts. I discovered only the advice that I searched all around the area and just could not encounter. What a fantastic web-site.

  16. This is the right site for everyone who would like to find out about this topic. You realize so much its almost tough to argue with you (not that I actually would want to…HaHa). You definitely put a fresh spin on a topic which has been discussed for ages. Wonderful stuff, just great

  17. of course like your web-site however you need
    to take a look at the spelling on several of your posts. Many of them are
    rife with spelling issues and I find it very troublesome to tell the reality on the
    other hand I will definitely come again again.

  18. Wow, so why should anyone expect the Gartner APM MQ, In the last year or currently moving forward?!?

    This has to be a total conflict of interest, so that you have to tell me that the two people he has named Will Cappelli and Cameron would not be heavily influenced by the Jonah guy in his brand new perch at AppDynamics? I kind of feel duped and this scenario seems dirty. This guy Jonah leaving to have a cushy VP job at a business he allegedly provided unbiased investigation for the previous 4 years, why should anybody believe a word coming from these documents.

  19. You are so intriguing! I don’t really accept that I’ve genuinely perused anything like that previously. So awesome to find someone else with a couple of interesting considerations on this issue. Truly.. much obliged for firing this up. This site is something that is needed on the web, somebody with a touch of innovation!

  20. Thank you for sharing exceptional informations. Your site is quite cool. I am impressed with the details you have on this website. It shows how well you comprehend this topic. Bookmarked this web page, will return for more posts. I discovered only the advice that I searched all around the area and just could not encounter. What a fantastic web-site.

  21. Voot Show In HD, Bigg Boss 15 Is Indian Tv Show Watch Complete Show Online in High Quality On Colors Tv Show Bigg Boss 15 watch online. Watch all videos episode, news, and updates about Bigg Boss 15.

  22. You are just one click away to watch your favorite Anime on this and you don’t even have to wait for long time buffering of the videos. People do mostly name it as Japanese cartoons; we call it“ANIME.

Leave a Reply

Your email address will not be published. Required fields are marked *