This message was deleted.
# citrix-vad
s
This message was deleted.
b
Depending on scale could you do a startup script that based on name of the machine sets the IP address? Assuming you have a block to work with to make it feasible you could bake it into the image. Just a first thought off the top of my head
j
Yep probably have to script something.
c
Yea that was my thought too. Probably use a simple csv
h
Dhcp with reservations not an option? You could set manual mac's and based on last 3 of the MAC is the IP as well.
Or make the machine names 3 digit at the end and that be the last octect of the ip
j
You can also use custom personality.ini strings and a startup script. This is what I do for PVS. Haven't used MCS with personality strings. Happy to share my startup script to help you.
šŸ‘€ 1
c
@Jeremy Saunders I would love to see your startup script. Always like recycling scripts
e
Please send it over @Jeremy Saunders when you got some time so I can implement it šŸ™‚
Works perfectly
j
I really need to write this up into a blog, but here is what I do for PVS. The Personality strings I set on the Target Devices look like this...
green smiley face clip art thumbs up emoji green 1
Then I use a script to get them and set them at Startup. Actually, I use a Scheduled Task that is set to Normal priority so that the IP Address is applied without delay.
green smiley face clip art thumbs up emoji green 1
The following zip contains 3 scripts. • SetPVSTargetAgentStaticIP.ps1 - This is the main script • SetPVSTargetAgentStaticIPScheduledTask.ps1 - This creates the Scheduled Task • SetPVSTargetAgentStaticIP.cmd - This deploy it via an app in MDT as part of the Task Sequence
green smiley face clip art thumbs up emoji green 1
h
We do kinda the same with personality in PVS. We set WEM, DCs, SR, FileServer, and env (prod, train, stg)
green smiley face clip art thumbs up emoji green 1
j
Cool.
j
Nice way to do it @Jeremy Saunders! I have used personality strings in the past a long time ago to do something similar but you've taken a step further. šŸ‘šŸ½
h
We use a script at startup to set all the needed env properties, registration to proper site. That way we use one image across 3 different sites
šŸ‘ 1
green smiley face clip art thumbs up emoji green 1
j
It's very powerful
So basically, this Scheduled Task and Script are deployed to every build we do. So the script will always run. If the EnableStaticIP string is not present or set to FALSE, the script does nothing. It just gives us so many options and allows us to quickly bring up Session Hosts if something happens to DHCP services. Obviously we also need BDMs with static IPs too, but that's a simple thing to create and apply.