Just an update in my troubleshooting here... I removed the $ before the Enabled/Disabled for the netFX check and that now works properly. However, I am not running into an issue with the
Edit 1:
It would seem I have figured out the issue with the -Arguments, the following works:
I will continue to keep this updated with my findings
-Arguments "-s -a /s /v" /qn CREATESHORTCUT=1 REBOOT=R
portion of the script... as I am converting this from batch the above switches are called exactly as displayed minus the -Arguments obviously. I know the " is throwing it off and I've also tried separating each to display as follows.-Arguments "-s, -a, /s, /v" /qn CREATESHORTCUT=1 REBOOT=R"
Thank youEdit 1:
It would seem I have figured out the issue with the -Arguments, the following works:
-Arguments "-s -a /s /v/qn CREATESHORTCUT=1 REBOOT=R"
Now Im trying to figure out how to establish whether or not it is currently installed, and if so, what version? Is it the current? If not - install the current according to the script. I will continue to keep this updated with my findings