Skip to content

Scripts

Scover edited this page Aug 21, 2022 · 13 revisions

Scripts

What are scripts?

Scripts are individual, interchangeable snippets of Batch, PowerShell or Regedit script code associated with metadata. They can be executed to debloat, optimize or maintain the system in a simple and unique way.

Scripts can be scheduled for execution from WinClean's interface.

Storage

Script code and metadata are stored in XML files. WinClean deseralizes them. Here's the expected XML structure:

<?xml version="1.0" encoding="utf-8"?>
<Script>
  <Name>EnglishName</Name>
  <Name xml:lang="fr">FrenchName</Name>
  <Description>EnglishDescription</Description>
  <Description xml:lang="fr">FrenchDescription</Description>
  <!-- Choose one -->
  <Category>Maintenance/Debloat/Customization</Category>
  <!-- Choose one -->
  <Advised>Yes/No/Limited</Advised>
  <!-- Choose one -->
  <Extension>.cmd/.bat/.reg/.ps1</Extension>
  <!-- Choose one -->
  <Impact>Ergonomics/FreeStorageSpace/MemoryUsage/NetworkUsage/Privacy/Performance/ShutdownTime/StartupTime/StorageSpeed/Visuals</Impact>
  <Code>Code</Code>
</Script>

The expected encoding is UTF-8. The expected value of the xml:lang attribute is a BCP-47 language tag.

Clone this wiki locally