mirror of
https://github.com/jamesstringerparsec/Easy-GPU-PV.git
synced 2024-08-30 18:22:17 +00:00
Check for long usernames
This commit is contained in:
parent
6ded99d066
commit
c222dfda65
@ -32,8 +32,8 @@ if ($params.Username -eq $params.VMName ) {
|
||||
if (!($params.Username -match "^[a-zA-Z0-9]+$")) {
|
||||
$ExitReason += "Username cannot contain special characters."
|
||||
}
|
||||
if (!($params.VMName -match "^[a-zA-Z0-9]+$")) {
|
||||
$ExitReason += "VMName cannot contain special characters."
|
||||
if (($params.VMName -notmatch "^[a-zA-Z0-9]+$") -or ($params.VMName.Length -gt 15)) {
|
||||
$ExitReason += "VMName cannot contain special characters, or be more than 15 characters long"
|
||||
}
|
||||
if (([Environment]::OSVersion.Version.Build -lt 22000) -and ($params.GPUName -ne "AUTO")) {
|
||||
$ExitReason += "GPUName must be set to AUTO on Windows 10."
|
||||
|
Loading…
Reference in New Issue
Block a user