Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 30534

Re: Disable/Enable UAC and Reboot in Windows 7

$
0
0

<?xml version="1.0" encoding="utf-8"?>
<ScriptExport xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.kaseya.com/vsa/2008/12/Scripting">
  <Procedure name="Disable UAC and reboot" treePres="3" id="704852581" folderId="72218561899161971271146919">
    <Body description="">
      <Statement description="Set the specified registry value - Regedit displays keys as folders and values as documents." name="SetRegistryValue" continueOnFail="false" osType="7">
        <Parameter xsi:type="StringParameter" name="RegistryPath" value="HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System\EnableLUA" />
        <Parameter xsi:type="StringParameter" name="Value" value="0" />
        <Parameter xsi:type="EnumParameter" name="DataType" value="Integer" />
      </Statement>
      <Statement description="Set the specified registry value - Regedit displays keys as folders and values as documents." name="SetRegistryValue" continueOnFail="false" osType="7">
        <Parameter xsi:type="StringParameter" name="RegistryPath" value="HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System\ConsentPromptBehaviorAdmin" />
        <Parameter xsi:type="StringParameter" name="Value" value="0" />
        <Parameter xsi:type="EnumParameter" name="DataType" value="Integer" />
      </Statement>
      <If description="">
        <Condition name="UserIsLoggedIn">
          <Parameter xsi:type="StringParameter" name="UserName" value="" />
        </Condition>
        <Then>
          <Statement description="Display a message dialog to the user." name="SendMessage" continueOnFail="false" osType="7">
            <Parameter xsi:type="StringParameter" name="Message" value="Please reboot your computer at your earliest convenience.  " />
            <Parameter xsi:type="BooleanParameter" name="Immediate" value="True" />
          </Statement>
        </Then>
        <Else>
          <Statement description="Reboot the machine this procedure is running on. - WARNING: Reboot must be the last step in a procedure or the procedure will start again from step 1 after the reboot." name="Reboot" continueOnFail="false" osType="7" />
        </Else>
      </If>
    </Body>
  </Procedure>
</ScriptExport>


Viewing all articles
Browse latest Browse all 30534

Trending Articles