mirror of
https://github.com/massgravel/get.activated.win.git
synced 2024-11-09 13:28:33 +01:00
Use GUID instead of random
This commit is contained in:
parent
7744a34ba7
commit
0b7cc3d8a0
1 changed files with 1 additions and 1 deletions
2
get
2
get
|
@ -18,7 +18,7 @@ catch {
|
||||||
$response = Invoke-WebRequest -Uri $RandomURL2 -UseBasicParsing
|
$response = Invoke-WebRequest -Uri $RandomURL2 -UseBasicParsing
|
||||||
}
|
}
|
||||||
|
|
||||||
$rand = Get-Random -Maximum 99999999
|
$rand = [Guid]::NewGuid().Guid
|
||||||
$isAdmin = [bool]([Security.Principal.WindowsIdentity]::GetCurrent().Groups -match 'S-1-5-32-544')
|
$isAdmin = [bool]([Security.Principal.WindowsIdentity]::GetCurrent().Groups -match 'S-1-5-32-544')
|
||||||
$FilePath = if ($isAdmin) { "$env:SystemRoot\Temp\MAS_$rand.cmd" } else { "$env:TEMP\MAS_$rand.cmd" }
|
$FilePath = if ($isAdmin) { "$env:SystemRoot\Temp\MAS_$rand.cmd" } else { "$env:TEMP\MAS_$rand.cmd" }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue