mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-14 06:48:46 +02:00
Add datatype to param()
This commit is contained in:
@ -13,7 +13,7 @@
|
||||
|
||||
#Requires -RunAsAdministrator
|
||||
|
||||
param($Drive = "")
|
||||
param([string]$Drive = "")
|
||||
|
||||
if ($Drive -eq "" ) {
|
||||
$Drive = read-host "Enter drive (letter) to check"
|
||||
|
Reference in New Issue
Block a user