This commit is contained in:
2026-10-21 21:01:47 -04:00
parent e6604564a7
commit aea80c7be4
6 changed files with 131 additions and 7 deletions
+8 -1
View File
@@ -29,8 +29,15 @@ $drives | Format-Table User, Drive, RemotePath, Source -AutoSize -Wrap
.\Get-AllNetworkDrives.ps1 | Export-Csv .\NetworkDrives.csv -NoTypeInformation -Encoding UTF8
#>
[CmdletBinding()]
[CmdletBinding(PositionalBinding=$false)]
param(
# Run-Script passes an empty positional argument even when none was supplied.
# Absorb only blank input here so it cannot bind to the SavedOnly switch.
[Parameter(Position=0,DontShow=$true)]
[AllowEmptyString()]
[ValidatePattern('^\s*$')]
[string]$RmmArgument,
[switch]$SavedOnly
)