You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/backup/scripts/set-system-state-backup-policy.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Script Sample - Create a new or modify the current system state backup policy
3
3
description: Learn about how to use a script to create a new or modify the current system state backup policy.
4
4
ms.topic: sample
5
-
ms.date: 06/23/2021
5
+
ms.date: 03/27/2025
6
6
author: jyothisuri
7
7
ms.author: jsuri
8
8
---
@@ -115,11 +115,13 @@ Catch {
115
115
116
116
```
117
117
118
-
## How to execute the script
118
+
## Execute the script
119
+
120
+
To execute the script, follow these steps:
119
121
120
122
1. Save the above script on your machine with a name of your choice and .ps1 extension.
121
123
1. Execute the script by providing the following parameters: <br> Schedule of backup and number of days/weeks/months or years that the backup needs to be retained.
122
124
123
125
## Next steps
124
126
125
-
[Learn more](../backup-client-automation.md) about how to use PowerShell to deploy and manage on-premises backups using MARS agent.
127
+
[Use PowerShell to deploy and manage on-premises backups using MARS agent](../backup-client-automation.md).
0 commit comments