remove check for $Zone in Remove-MachineAccount as it is not required

This commit is contained in:
0xe7
2023-01-09 15:38:52 +00:00
parent dbb6230244
commit ba445a34f5
+2 -2
View File
@@ -1029,7 +1029,7 @@ function Remove-MachineAccount
throw
}
if(!$DomainController -or !$Domain -or !$Zone)
if(!$DomainController -or !$Domain)
{
try
@@ -4477,4 +4477,4 @@ function Get-KerberosAESKey
}
#endregion
#endregion