aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author0xe7 <charlie@exploit.ph>2023-01-09 15:38:52 +0000
committer0xe7 <charlie@exploit.ph>2023-01-09 15:38:52 +0000
commitba445a34f5bcfad149a439071179a2bbecab9e7a (patch)
tree365a92d23023a9e6431b8211bbefe84a56bd6e23
parentdbb6230244df9a2e19e879b5c3f7b141e6c36bcd (diff)
downloadPowermad-ba445a34f5bcfad149a439071179a2bbecab9e7a.tar.gz
Powermad-ba445a34f5bcfad149a439071179a2bbecab9e7a.zip
remove check for $Zone in Remove-MachineAccount as it is not required
-rw-r--r--Powermad.ps14
1 files 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