updates
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user