Update Scripts/Powershell/General Purpose/Inactive User Profile Data Cleanup.md
All checks were successful
GitOps Automatic Deployment / GitOps Automatic Deployment (push) Successful in 8s
All checks were successful
GitOps Automatic Deployment / GitOps Automatic Deployment (push) Successful in 8s
This commit is contained in:
@@ -7,12 +7,12 @@ This script is designed to iterate over every computer device within an Active D
|
|||||||
!!! example "Commandline Arguments"
|
!!! example "Commandline Arguments"
|
||||||
You can execute the script with the following arguments to change the behavior of the script: `.\UserProfileDataPruner.ps1`
|
You can execute the script with the following arguments to change the behavior of the script: `.\UserProfileDataPruner.ps1`
|
||||||
|
|
||||||
- `-DryRun`: Do not Delete Data, just report on what (would) be deleted.
|
- `-DryRun` : Do not Delete Data, just report on what (*would*) be deleted.
|
||||||
- `-InactiveDays 90`: Adjust the threshold of the pruning cutoff. (Default 90 Days)
|
- `-InactiveDays 90` : Adjust the threshold of the pruning cutoff. (*Default 90 Days*)
|
||||||
- `-PilotTestingDevices`: Optional comma-separated list of devices to target instead of all workstations in Active Directory
|
- `-PilotTestingDevices` : Optional comma-separated list of devices to target (*instead of all workstations in Active Directory*)
|
||||||
|
|
||||||
### Powershell Script
|
### Script
|
||||||
You can find the full script below:
|
You can find the full script below, save it as `UserProfileDataPruner.ps1`:
|
||||||
```powershell
|
```powershell
|
||||||
<#
|
<#
|
||||||
UserProfileDataPruner.ps1
|
UserProfileDataPruner.ps1
|
||||||
|
Reference in New Issue
Block a user