When working with SCVMM it is common to perform administrative tasks using PowerShell. One very nice thing in SCVMM is that when using the UI it will create a script in the end and the idea is that you should be able to use that script and you can, one time…why?
…because you need to generate a new ID every time you run the script, so how do you do that?
Generate a GUID using PowerShell:
$JobGroupID1 = [Guid]::NewGuid().ToString()
The result when generating a GUID.
Using the generated GUID in a SCVMM PowerShell script
Here is a list of CMDlets that uses _JobGroup
Categories: PowerShell, SCVMM, System Center 2012 R2
Leave a Reply