mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-09 05:04:39 +02:00
Add datatype to param()
This commit is contained in:
@ -13,7 +13,8 @@
|
||||
|
||||
#Requires -Version 3
|
||||
|
||||
param($Username = "", $Password = "")
|
||||
param([string]$Username = "", [string]$Password = "")
|
||||
|
||||
if ($Username -eq "") { $Username = read-host "Enter username for FRITZ!Box" }
|
||||
if ($Password -eq "") { $Password = read-host "Enter password for FRITZ!Box" }
|
||||
|
||||
|
Reference in New Issue
Block a user