Skip to content

Commit 58235b9

Browse files
readme updates
1 parent 56d6632 commit 58235b9

File tree

4 files changed

+33
-3
lines changed

4 files changed

+33
-3
lines changed

InstallUpdatesOnly.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ ECHO
2828
ECHO ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
2929
ECHO.
3030
ECHO Powershell is out-of-date, current version is: !PSVersion!
31-
powershell.exe -noprofile -executionPolicy bypass -file "%~dp0scripts\Install-WMF5.1.ps1" -UpdatesPath "%~dp0scripts\Updates" -AcceptEULA -AllowRestart
31+
powershell.exe -noprofile -executionPolicy bypass -file "%~dp0scripts\Install-WMF5.1.ps1" -UpdatesPath "%~dp0Updates" -AcceptEULA -AllowRestart
3232

3333
:UPDATES
3434
CLS

README.md

+25-1
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,34 @@ If all variables are correct, script will download and install the agents
2121
After completed, it promtps to be shutdown. If left alone for 30sec, it will auto shutdown
2222

2323
## InstallAgentAsSYSTEM.bat
24-
Does exactly as the Darwin scritp above does but instead uses the bulletin SYSTEMS account (no password required). Fully automated
24+
Does exactly as the Darwin script above does but instead uses the bulletin SYSTEMS account (no password required). Fully automated
25+
26+
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.
27+
28+
To do this
29+
- create a property for each business group (bg.security.group) that is the same as an AD security group.
30+
- create a property definition for setting the windows password (windows.os.password)
31+
- create a Property group:
32+
33+
`
34+
VirtualMachine.Software0.Name = UserAndGroupControl
35+
VirtualMachine.Customize.WaitComplete = True
36+
VirtualMachine.Software0.ScriptPath = cscript c:\VRMGuestAgent\scripts\UserAndGroupControl.vbs /admin:newadmin /password:{windows.os.password} /group:{bg.security.group} /user:{Owner}
37+
VirtualMachine.Admin.UseGuestAgent = True
38+
`
39+
40+
- Use the /admin swithc to configure the admin account name based on what the vm has (eg. newadmin)
41+
- in the blueprint, add the windows password property, with show in request enabled, to the virtual machine custom properties.
42+
- in the blueprint, add the UserAndGroupControl property group to the virtual machine property group section.
43+
- in the blueprint, configure the VM so it joins the domain (cloneSpec)
44+
- Publish and Entitle the blueprint
45+
- 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.
46+
2547

2648
## UninstallAgent.bat
2749
This script will remove the old Agents if they exists and delete their folders. SHould be ran before any other if doing a cleanup
2850
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.
2951

3052
## InstallUpdatesOnly.bat
53+
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
File renamed without changes.

scripts/README.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# Extract vRA PowerShell script from appliance for these files:
2-
curl.exe
2+
`curl.exe
33
openssl.exe
44
prepare_vra_template.bat
55
prepare_vra_template.ps1
6+
`
67

78
Also need LGPO.exe for WSUS policy configurations
89

@@ -11,12 +12,17 @@ To get the PowerShell script to properly submit using Darwin's user-name and pas
1112

1213
Line: 549
1314
From
15+
1416
`if ($NonInteractive)`
17+
1518
to
19+
1620
`
1721
if ($NonInteractive -and !$SoftwarePassword)
1822
`
23+
1924
The add a second Else statement in betweenthe else around line: 553
25+
2026
`
2127
elseif($SoftwarePassword)
2228
{

0 commit comments

Comments
 (0)