You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Install guest agent on vRA 7.4/7.5 automatically....sort of
3
3
4
-
Be sure the read the README.md in the scripts folder
4
+
## REASON
5
+
Each time ther is an issue with deploying a blueprint its always something with the template. For instance, vRA is upgraded or certs have changed and the agents need to be updated.
6
+
Also each month the templates need to updated with the latest patches.
5
7
6
-
# Reason
7
-
Each time I have tempalte issues or we've upgrade vRA or certs have changed we need to update the agents in out Templates.
8
-
On top of that we also need to update the templates to the latest patches. So I wrote a few batch files to launch on the desktop or in command line.
8
+
I wrote a few scripts to automate and solve these issues quickly.
9
9
10
-
## InstallAgentAsDarwin.bat
10
+
Be sure the read the [README.md](Scripts/README.md) in the scripts folder
11
+
12
+
## SCRIPTS
13
+
**InstallAgentAsDarwin.bat**
11
14
This script id designed to install the VRA Guest Agent and VRA Appd Agent using the script provide by vRA (with little modification )
12
-
1. Change the variable in the top section of the script for vRA App, mgr and cert thumbprints
13
-
2. Copy entire project and subfolder to c: drive.
15
+
1. Change the variables in the top section of the script for vRA App, mgr and cert thumb prints
16
+
2. Copy entire project and sub folder to c: drive.
14
17
3. Right click this InstallAgentAsDarwin.bat and select runas administrator
15
18
4. Type in Darwins password
16
19
5. shutdown when done
17
20
21
+
### Process:
18
22
The script prompts in the beginning for the Darwin's password. After that it will auto create the account and ensure no residual account profiles exists (if deleted before).
19
23
It also set the local account to not expire and as a administrator
20
24
If all variables are correct, script will download and install the agents
21
-
After completed, it promtps to be shutdown. If left alone for 30sec, it will auto shutdown
25
+
After completed, it prompts to be shutdown. If left alone for 30sec, it will auto shutdown
22
26
23
-
## InstallAgentAsSYSTEM.bat
27
+
**InstallAgentAsSYSTEM.bat**
24
28
Does exactly as the Darwin script above does but instead uses the bulletin SYSTEMS account (no password required). Fully automated
25
29
30
+
##Additions
26
31
In addition to the above script installing the agents, it also copied a vbscript to a scripts folder folder for vRA Guest Agent. This script I wrote to manage local user accounts settings and passwords. Its has a bunch of switches that allow you to automatically add user to admin groups and administer the admin account. This is especially useful during vRA deployment.
- Use the /admin swithc to configure the admin account name based on what the vm has (eg. newadmin)
45
+
- Use the /admin switch to configure the admin account name based on what the vm has (eg. newadmin)
41
46
- in the blueprint, add the windows password property, with show in request enabled, to the virtual machine custom properties.
42
47
- in the blueprint, add the UserAndGroupControl property group to the virtual machine property group section.
43
48
- in the blueprint, configure the VM so it joins the domain (cloneSpec)
44
49
- Publish and Entitle the blueprint
45
50
- Request the item, and if done correctly the password and security group will be passed during deployment, changing the load admin password and adding the group.
51
+
- If you need to debug the UserAndGroupControl vbscript, use the /debug switch. The log is place right next to the script and will display the password in plain text.
46
52
47
53
48
-
## UninstallAgent.bat
54
+
**UninstallAgent.bat**
55
+
1. Change the variables in the top section of the script for fqdn and wsus info
49
56
This script will remove the old Agents if they exists and delete their folders. SHould be ran before any other if doing a cleanup
50
-
It will also remove the Darwin account. However since the Darwin account was running as a service, it is considered to be in use even thought the active service has been removed. So there will be a residula folder residing in C:\Users folder. The InstallAgentAsDarwin.bat scritp will clean that up before creating a new Darwin account.
57
+
It will also remove the Darwin account. However since the Darwin account was running as a service, it is considered to be in use even thought the active service has been removed. So there will be a residual folder residing in C:\Users folder. The InstallAgentAsDarwin.bat script will clean that up before creating a new Darwin account.
51
58
52
-
## InstallUpdatesOnly.bat
59
+
**InstallUpdatesOnly.bat**
53
60
this script installs updates from WSUS point. It will also install PowerShell 5.1 on Windows 7, 8 , 8.1, 2012 and 2012r2. Unlike typical scripts where registry key are set.
54
-
This one use LGPO.exe to build the WSUS pointer locally. I did this so that it can be viewed and changed via gpedit.msc. There are a few prerequisites that must be done. Follow the README.md in the Updates folder
61
+
This one use LGPO.exe to build the WSUS pointer locally. I did this so that it can be viewed and changed via gpedit.msc. There are a few prerequisites that must be done.
62
+
- Follow the [README.md](Updates/README.md) in the Updates folder
0 commit comments