I’m wondering how to pass a variable in a argument for cmd.exe. The variable $Java Pathin below command is not recognized as variable rather as a text.
Ok, I try to figure this out with Powershell using set-itemproperty.
In cmd I’ve loaded the virtual registry with below command: cmd.exe /appvve:ef1af223-8cc4-4622-a8c2-cd5af4308d05_e3394101-18b5-4679-86da-76a2209b2a81.
How can I reach this with Powershell, means first I have to load the virtual registry and hereafter to change this registry with using set-itemproperty?