en-US/about_Invoke-DownloadsCleanup.help.txt

.EXTERNALHELP Invoke-DownloadsCleanup-help.xml
 
.NOTES
  NAME: about_Invoke-DownloadsCleanup
 
.DESCRIPTION
  The Invoke-DownloadsCleanup function cleans up old files from the Downloads folder.
  It removes files older than a specified cutoff year from user Downloads directories,
  either locally or on a remote computer.
 
.PARAMETER ComputerName
  Specifies the name of the remote computer to clean up. If not specified, the cleanup
  runs on the local computer.
 
.PARAMETER CutoffYear
  Specifies the year threshold for file deletion. Files older than this year will be removed.
  If not specified, the value from the configuration settings (downloadsCleanup.cutoffYear) is used.
 
.PARAMETER Local
  A switch parameter that forces the cleanup to run locally even if a ComputerName is specified.
 
.EXAMPLE
  Invoke-DownloadsCleanup -Local
 
  Description:
  Cleans up old files in the local user's Downloads folder using the default cutoff year from configuration.
 
.EXAMPLE
  Invoke-DownloadsCleanup -ComputerName "SERVER01" -CutoffYear 2020
 
  Description:
  Cleans up files older than January 1, 2020, in the Downloads folders of all users on SERVER01.