mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-09 05:04:39 +02:00
Improved the scripts
This commit is contained in:
@ -8,13 +8,15 @@
|
||||
|
||||
#Requires -Version 3
|
||||
|
||||
param([string]$Username = "", [string]$Password = "")
|
||||
param($Username = "", $Password = "")
|
||||
|
||||
if ($Username -eq "") {
|
||||
$Username = read-host "Enter username for FRITZ!Box"
|
||||
}
|
||||
if ($Password -eq "") {
|
||||
$Password = read-host "Enter password for FRITZ!Box"
|
||||
}
|
||||
|
||||
write-progress "Contacting FRITZ!Box ..."
|
||||
[string]$HostURL = "https://fritz.box:49443"
|
||||
[string]$SOAPAction="urn:dslforum-org:service:Hosts:1#X_AVM-DE_GetHostListPath"
|
||||
|
Reference in New Issue
Block a user