From ba445a34f5bcfad149a439071179a2bbecab9e7a Mon Sep 17 00:00:00 2001 From: 0xe7 Date: Mon, 9 Jan 2023 15:38:52 +0000 Subject: remove check for $Zone in Remove-MachineAccount as it is not required --- Powermad.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Powermad.ps1 b/Powermad.ps1 index 742e886..52b32c5 100644 --- a/Powermad.ps1 +++ b/Powermad.ps1 @@ -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 \ No newline at end of file +#endregion -- cgit v1.2.3