r/DeployR • 2Pint Employee • 5d ago

New Hyper-V variables in 1.4

Some cool new variables in DeployR 1.4: PHYSICALHOSTNAME, VIRTUALMACHINEID, and VIRTUALMACHINENAME. It makes setting the OS computer name to the virtual machine name super easy.

10 Upvotes

3 comments sorted by

3

u/mtniehaus 2Pint Employee 4d ago

We also discover any custom variables (KVPs) set on the VM. For example, if you wanted to say "this VM should always run this task sequence" you could set a "TSID" KVP value on the VM and it would no longer prompt for which task sequence to run.

3

u/gwblok 2Pint Employee 3d ago

I run a script in WinPE that creates several variables, including one that leverages this information
2Pint-DeployR/WinPE/Create-ExtraVariables.ps1 at main · 2pintsoftware/2Pint-DeployR · GitHub

I should update to show a list of examples of variables created.
They are all prefixed with PA_ because the script runs pre-authentication (pre-auth script calls it).

I use those variables to feed into a web front end:
2PintLabs/DeployR/FrontEnd/FrontEndWebUI at main · gwblok/2PintLabs · GitHub

These updates to allow access to Hyper-V information while in WinPE allowed for some extra nifty customization, just providing an example of how I'm using it.

0

u/KSeverud 5d ago

Fantastic! Thank you.