MCS Experts — do we have any reg key that can dete...
# citrix-vad
s
MCS Experts — do we have any reg key that can determine its mcs provisioned linked clone vms vs non mcs provisioned (ie manual built) vm ?
j
Can’t you check the ini file?
s
I was looking for another option rather than ini file
Like Powershell Command or Reg key
r
You can parse an INI with Powershell. I use this function quite a bit.
Copy code
function ImportIni {
	param ($file)

	$ini = @{}
	switch -regex -file $file
	{
    		"^\[(.+)\]$" {
        		$section = $matches[1]
        		$ini[$section] = @{}
    		}
    		"([A-Za-z0-9#_]+)=(.+)" {
        		$name,$value = $matches[1..2]
        		$ini[$section][$name] = $value.Trim()
    		}
	}
	$ini
}

ImportIni "C:\my.ini"
⤴️ 1
s
Ok