Feeding Windows Exit Code to Deployment Server/Solution
I am trying to generate a script that can be run on a DS that can give user's a quick way to verify a registry setting.
Setx _scforce /k "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System\scforceoption" /m
IF "%_scforce% " == "0" (
) ELSE (
IF "%_scforce% " == "1" (
Has anyone had any luck with this? I can set the variable, but I am having a difficult time sending that variable back to Windows and to the DS.