---
updatedAt: 2025-08-14T13:35:33.000Z
agentTools:
  siteIndex: https://developer.n-able.com/llms.txt
  projectIndex: https://developer.n-able.com/n-central/llms.txt
---

# Configure VSS Shadowstorage

```powershell Automation Policy
<?xml version="1.0" encoding="utf-8" standalone="yes"?><Policy ID="b07e66b3-3df7-4db2-b68c-ea9280e3e021" Name="Enable VSS ShadowProtect" Description="RW5hYmxlIFZTUyBTaGFkb3dQcm90ZWN0IGRlcGVuZGluZyBvbiBTeXN0ZW0gVmVyc2lvbiAoU2VydmVyIHZzIFdvcmtzdGF0aW9uKQ==" Version="2.16.0.1" MinRequiredVersion="2.16.0.1" RemoteCategory="0" ExecutionType="Local" MinimumPSVersionRequired="3.0">
  <Object ID="{d59d6ca5-1970-4c71-82ab-3005987b6725}" Type="{B6FA6D8B-EEAA-47A6-8463-7F9A4F5BBB6E}" Data="&lt;xml&gt;&lt;Parameters&gt;&lt;Parameter ParameterName=&quot;DriveLetter&quot; Label=&quot;Drive Letter&quot; ParameterType=&quot;string&quot; Value=&quot;C:&quot; /&gt;&lt;Parameter ParameterName=&quot;StorageSize&quot; Label=&quot;Storage Size&quot; ParameterType=&quot;string&quot; Value=&quot;10%&quot; /&gt;&lt;/Parameters&gt;&lt;/xml&gt;" />
  <LinkManager xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PolicyExecutor">
    <hashset xmlns:d2p1="http://schemas.datacontract.org/2004/07/System" />
  </LinkManager>
  <Diagnostics OriginalVersion="2.18.0.25" />
  <Activity mc:Ignorable="sap sads" x:Class="Policy Builder" xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mva="clr-namespace:Microsoft.VisualBasic.Activities;assembly=System.Activities" xmlns:p="clr-namespace:PolicyExecutor;assembly=PolicyExecutionEngine" xmlns:sads="http://schemas.microsoft.com/netfx/2010/xaml/activities/debugger" xmlns:sap="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation" xmlns:scg="clr-namespace:System.Collections.Generic;assembly=mscorlib" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <x:Members>
      <x:Property Name="PolicyGUID" Type="InArgument(x:String)" />
    </x:Members>
    <sap:VirtualizedContainerService.HintSize>1092,1253</sap:VirtualizedContainerService.HintSize>
    <mva:VisualBasic.Settings>Assembly references and imported namespaces serialized as XML namespaces</mva:VisualBasic.Settings>
    <p:PolicySequence DisplayName="Policy Builder" sap:VirtualizedContainerService.HintSize="1092,1253" MinRequiredVersion="2.16.0.1" mva:VisualBasic.Settings="Assembly references and imported namespaces serialized as XML namespaces">
      <p:PolicySequence.Activities>
        <p:GetWindowsOSVersionAndBuild AssemblyName="PolicyExecutionEngine, Version=2.18.0.25, Culture=neutral, PublicKeyToken=null" DisplayName="Get Windows OS Version and Build" sap:VirtualizedContainerService.HintSize="1056,81" MinRequiredVersion="2.15.1.1" Moniker="a7f7f08e-88f0-48ca-b4f2-c7c89d27a3cf" OSArchitecture="[GetWindowsOSVersionAndBuild_OSArchitecture]" OSBuildNumber="[GetWindowsOSVersionAndBuild_OSBuildNumber]" OSName="[GetWindowsOSVersionAndBuild_OSName]" OSVersion="[GetWindowsOSVersionAndBuild_OSVersion]" OutPut_64="[GetWindowsOSVersionAndBuild_OutPut_64]" ReleaseID="[GetWindowsOSVersionAndBuild_ReleaseID]" Result="[GetWindowsOSVersionAndBuild_Result]" ResultString="[GetWindowsOSVersionAndBuild_ResultString]" Results_x64="[GetWindowsOSVersionAndBuild_Results_x64]" RunAsCurrentLoggedOnUser="False" ScriptExecutionMethod="Execute64bit" TypeName="GetWindowsOSVersionAndBuild" m_bTextLinkChange="False" />
        <p:IfElse CaseSensitive_Item="{x:Null}" CaseSensitive_ItemProp="{x:Null}" Condition_Item="{x:Null}" Condition_ItemProp="{x:Null}" Value_Item="{x:Null}" Value_ItemProp="{x:Null}" Variable_Item="{x:Null}" Variable_ItemProp="{x:Null}" AssemblyName="PolicyExecutionEngine, Version=2.18.0.25, Culture=neutral, PublicKeyToken=null" CaseSensitive="False" CaseSensitive_DisplayArg="false" Condition="does not contain" Condition_DisplayArg="does not contain" DisplayName="If/Else" sap:VirtualizedContainerService.HintSize="1056,909" MinRequiredVersion="2.16.0.1" Moniker="78ac456c-98de-4f2a-b8dc-79f9114259d4" Result="[IfElse_Result]" ResultString="[IfElse_ResultString]" RunAsCurrentLoggedOnUser="False" ScriptExecutionMethod="None" TypeName="IfElse" Value_DisplayArg="Server" Value_Type="x:String" Variable="[GetWindowsOSVersionAndBuild_OSVersion]" Variable_DisplayArg="Get Windows OS Version and Build.OS Version" Variable_Type="x:String" m_bTextLinkChange="False">
          <p:IfElse.ElseOption>
            <p:SequenceActivity DisplayName="Else" sap:VirtualizedContainerService.HintSize="506,672" Name="SequenceActivity">
              <p:SequenceActivity.Activities>
                <p:RunPowerShellScript AssemblyName="PolicyExecutionEngine, Version=2.18.0.25, Culture=neutral, PublicKeyToken=null" DisplayName="Run PowerShell Script" sap:VirtualizedContainerService.HintSize="468,522" MinRequiredVersion="2.10.0.19" Moniker="19291fc5-2286-48ff-85f5-09463303847b" OutPut_64="[RunPowerShellScript_OutPut_64_1]" Result="[RunPowerShellScript_Result_1]" ResultString="[RunPowerShellScript_ResultString_1]" Results_x64="[RunPowerShellScript_Results_x64_1]" RunAsCurrentLoggedOnUser="False" ScriptExecutionMethod="ExecuteDebug" TypeName="RunPowerShellScript" genArgEvent="5be9a739-12d1-4d6b-a8b0-8dfa1570198d" m_bTextLinkChange="False" script="dgBzAHMAYQBkAG0AaQBuAC4AZQB4AGUAIABhAGQAZAAgAHMAaABhAGQAbwB3AHMAdABvAHIAYQBnAGUAIAAvAGYAbwByAD0AJABEAHIAaQB2AGUAIAAvAG8AbgA9ACQARAByAGkAdgBlACAALwBtAGEAeABzAGkAegBlAD0AJABTAGkAegBlAA==">
                  <p:RunPowerShellScript.InArgs>
                    <p:InArg Item="{x:Null}" ItemProp="{x:Null}" x:Key="Drive" ArgType="string" DisplayArg="Input Parameters.Drive Letter" DisplayName="Drive" Name="Drive" isRequired="False">
                      <p:InArg.Arg>
                        <InArgument x:TypeArguments="x:Object">[DriveLetter]</InArgument>
                      </p:InArg.Arg>
                    </p:InArg>
                    <p:InArg Item="{x:Null}" ItemProp="{x:Null}" x:Key="Size" ArgType="string" DisplayArg="Input Parameters.Storage Size" DisplayName="Size" Name="Size" isRequired="False">
                      <p:InArg.Arg>
                        <InArgument x:TypeArguments="x:Object">[StorageSize]</InArgument>
                      </p:InArg.Arg>
                    </p:InArg>
                  </p:RunPowerShellScript.InArgs>
                  <p:RunPowerShellScript.OutArgs>
                    <scg:Dictionary x:TypeArguments="x:String, p:OutArg" />
                  </p:RunPowerShellScript.OutArgs>
                </p:RunPowerShellScript>
              </p:SequenceActivity.Activities>
              <p:SequenceActivity.Variables>
                <Variable x:TypeArguments="x:String" Name="RunPowerShellScript_OutPut_64_1" />
                <Variable x:TypeArguments="x:String" Name="RunPowerShellScript_ResultString_1" />
                <Variable x:TypeArguments="scg:IEnumerable(x:Object)" Name="RunPowerShellScript_Results_x64_1" />
                <Variable x:TypeArguments="x:Double" Name="RunPowerShellScript_Result_1" />
              </p:SequenceActivity.Variables>
            </p:SequenceActivity>
          </p:IfElse.ElseOption>
          <p:IfElse.IfOption>
            <p:SequenceActivity DisplayName="Then" sap:VirtualizedContainerService.HintSize="506,672" Name="SequenceActivity">
              <p:SequenceActivity.Activities>
                <p:RunPowerShellScript AssemblyName="PolicyExecutionEngine, Version=2.18.0.25, Culture=neutral, PublicKeyToken=null" DisplayName="Run PowerShell Script" sap:VirtualizedContainerService.HintSize="468,522" MinRequiredVersion="2.10.0.19" Moniker="a05ac3f3-2bba-4bff-9a44-776946f1f620" OutPut_64="[RunPowerShellScript_OutPut_64]" Result="[RunPowerShellScript_Result]" ResultString="[RunPowerShellScript_ResultString]" Results_x64="[RunPowerShellScript_Results_x64]" RunAsCurrentLoggedOnUser="False" ScriptExecutionMethod="ExecuteDebug" TypeName="RunPowerShellScript" genArgEvent="83b7df1a-af51-41cc-a9f9-943e0f40a8c3" m_bTextLinkChange="False" script="dgBzAHMAYQBkAG0AaQBuAC4AZQB4AGUAIAByAGUAcwBpAHoAZQAgAHMAaABhAGQAbwB3AHMAdABvAHIAYQBnAGUAIAAvAGYAbwByAD0AJABEAHIAaQB2AGUAIAAvAG8AbgA9ACQARAByAGkAdgBlACAALwBtAGEAeABzAGkAegBlAD0AJABTAGkAegBlAA==">
                  <p:RunPowerShellScript.InArgs>
                    <p:InArg Item="{x:Null}" ItemProp="{x:Null}" x:Key="Drive" ArgType="string" DisplayArg="Input Parameters.Drive Letter" DisplayName="Drive" Name="Drive" isRequired="False">
                      <p:InArg.Arg>
                        <InArgument x:TypeArguments="x:Object">[DriveLetter]</InArgument>
                      </p:InArg.Arg>
                    </p:InArg>
                    <p:InArg Item="{x:Null}" ItemProp="{x:Null}" x:Key="Size" ArgType="string" DisplayArg="Input Parameters.Storage Size" DisplayName="Size" Name="Size" isRequired="False">
                      <p:InArg.Arg>
                        <InArgument x:TypeArguments="x:Object">[StorageSize]</InArgument>
                      </p:InArg.Arg>
                    </p:InArg>
                  </p:RunPowerShellScript.InArgs>
                  <p:RunPowerShellScript.OutArgs>
                    <scg:Dictionary x:TypeArguments="x:String, p:OutArg" />
                  </p:RunPowerShellScript.OutArgs>
                </p:RunPowerShellScript>
              </p:SequenceActivity.Activities>
              <p:SequenceActivity.Variables>
                <Variable x:TypeArguments="x:String" Name="RunPowerShellScript_OutPut_64" />
                <Variable x:TypeArguments="x:String" Name="RunPowerShellScript_ResultString" />
                <Variable x:TypeArguments="scg:IEnumerable(x:Object)" Name="RunPowerShellScript_Results_x64" />
                <Variable x:TypeArguments="x:Double" Name="RunPowerShellScript_Result" />
              </p:SequenceActivity.Variables>
            </p:SequenceActivity>
          </p:IfElse.IfOption>
          <p:IfElse.Value>
            <InArgument x:TypeArguments="x:Object">
              <p:ObjectLiteral Value="Server" />
            </InArgument>
          </p:IfElse.Value>
        </p:IfElse>
      </p:PolicySequence.Activities>
      <p:PolicySequence.Variables>
        <Variable x:TypeArguments="x:String" Name="GetWindowsOSVersionAndBuild_OSName" />
        <Variable x:TypeArguments="x:String" Name="GetWindowsOSVersionAndBuild_OSBuildNumber" />
        <Variable x:TypeArguments="x:String" Name="GetWindowsOSVersionAndBuild_OSArchitecture" />
        <Variable x:TypeArguments="x:String" Name="GetWindowsOSVersionAndBuild_OSVersion" />
        <Variable x:TypeArguments="x:String" Name="GetWindowsOSVersionAndBuild_ReleaseID" />
        <Variable x:TypeArguments="x:String" Name="GetWindowsOSVersionAndBuild_OutPut_64" />
        <Variable x:TypeArguments="scg:IEnumerable(x:Object)" Name="GetWindowsOSVersionAndBuild_Results_x64" />
        <Variable x:TypeArguments="x:String" Name="GetWindowsOSVersionAndBuild_ResultString" />
        <Variable x:TypeArguments="x:Double" Name="GetWindowsOSVersionAndBuild_Result" />
        <Variable x:TypeArguments="x:String" Name="IfElse_ResultString" />
        <Variable x:TypeArguments="x:Double" Name="IfElse_Result" />
        <Variable x:TypeArguments="x:String" Default="C:" Name="DriveLetter" />
        <Variable x:TypeArguments="x:String" Default="10%" Name="StorageSize" />
      </p:PolicySequence.Variables>
    </p:PolicySequence>
  </Activity>
</Policy>
```

```json Response Example
{"success":true}
```

# SCRIPT