Skip to content

Commit 18e6c67

Browse files
Merge pull request #300076 from AbhishekMallick01/May-20-2025-Freshness
Freshness - Script to register Win Server
2 parents dca6a2c + 5327407 commit 18e6c67

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

articles/backup/scripts/register-microsoft-azure-recovery-services-agent.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Script Sample - Register an on-premises Windows server or client machine with a Recovery Services vault
33
description: Learn about how to use a script to registering an on-premises Windows Server or client machine with a Recovery Services vault.
44
ms.topic: sample
5-
ms.date: 06/23/2021
5+
ms.date: 05/20/2025
66
author: jyothisuri
77
ms.author: jsuri
88
---
@@ -53,15 +53,17 @@ Catch {
5353
5454
```
5555

56-
## How to execute the script
56+
## Run the script
5757

58-
1. Save the above script on your machine with a name of your choice and .ps1 extension.
59-
1. Execute the script by providing the following parameters:
58+
To run the PowerShell Script for registering an on-premises Windows server/ a client machine, follow these steps:
59+
60+
1. Save the preceding script on your machine with a name of your choice and `.ps1` extension.
61+
1. Run the script by providing the following parameters:
6062
- `$vaultcredPath` - Complete Path of downloaded vault credential file
6163
- `$passphrase` - Plain text string converted into secure string using [ConvertTo-SecureString](/powershell/module/microsoft.powershell.security/convertto-securestring) cmdlet.
6264

6365
>[!Note]
64-
>You also need to provide the Security PIN generated from the Azure portal. To generate the PIN, navigate to **Settings** -> **Properties** -> **Security PIN** in the Recovery Services vault blade, and then select **Generate**.
66+
>You also need to provide the Security PIN generated from the Azure portal. To generate the PIN, go to the **Recovery Services vault** > **Settings** -> **Properties** -> **Security PIN**, and then select **Generate**.
6567
6668
## Next steps
6769

articles/backup/scripts/set-file-folder-backup-policy.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Script Sample - Create a new or modify the current file and folder backup policy
33
description: Learn about how to use a script to create a new policy or modify the current file and folder Backup policy.
44
ms.topic: sample
5-
ms.date: 06/23/2021
5+
ms.date: 05/20/2025
66
author: jyothisuri
77
ms.author: jsuri
88
---
@@ -162,10 +162,12 @@ Catch {
162162
163163
```
164164

165-
## How to execute the script
165+
## Run the script
166166

167-
1. Save the above script on your machine with a name of your choice and .ps1 extension.
168-
1. Execute the script by providing the following parameters:
167+
To run the PowerShell Script to create a new or modify the current file and folder backup policy, follow these steps:
168+
169+
1. Save the preceding script on your machine with a name of your choice and `.ps1` extension.
170+
1. Run the script by providing the following parameters:
169171
- Schedule of backup and number of days/weeks/months or years that the backup needs to be retained.
170172
- -filePath- Files and folders that should be included or excluded from backup.
171173

0 commit comments

Comments
 (0)