﻿<?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 Add/Remove Programs" treePres="3">
    <Body description="Script Name: Disable Add/Remove Programs option&#xD;&#xA;Script Desc: Prevents user access to Add/Remove Programs option.  This is a policy setting change and requires a reboot.&#xD;&#xA;Date: 07/15/2010&#xD;&#xA;Company: VirtualAdministrator&#xD;&#xA;Author: Chris A&#xD;&#xA;Acknowledgments:&#xD;&#xA;">
      <If description="Script Name: Disable Add/Remove Programs option&#xD;&#xA;Script Desc: Prevents user access to Add/Remove Programs option.  This is a policy setting change and requires a reboot.&#xD;&#xA;Date: 07/15/2010&#xD;&#xA;Company: VirtualAdministrator&#xD;&#xA;Author: Chris A&#xD;&#xA;Acknowledgments:&#xD;&#xA;">
        <Condition name="True" />
        <Then>
          <Statement name="SetRegistryValue" continueOnFail="false">
            <Parameter xsi:type="StringParameter" name="RegistryPath" value="HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Uninstall\NoAddRemovePrograms" />
            <Parameter xsi:type="StringParameter" name="Value" value="1" />
            <Parameter xsi:type="EnumParameter" name="DataType" value="Integer" />
          </Statement>
          <Statement name="SetRegistryValue" continueOnFail="false">
            <Parameter xsi:type="StringParameter" name="RegistryPath" value="HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Uninstall\NoAddRemovePrograms" />
            <Parameter xsi:type="StringParameter" name="Value" value="1" />
            <Parameter xsi:type="EnumParameter" name="DataType" value="Integer" />
          </Statement>
          <Statement name="WriteScriptLogEntry" continueOnFail="false">
            <Parameter xsi:type="StringParameter" name="Comment" value="Disabled Add/Remove Programs" />
          </Statement>
        </Then>
      </If>
    </Body>
  </Procedure>
</ScriptExport>
