winactivate
winactivate copied to clipboard
2 propositions
Hello! i made a some kind of similar but a very simple script But it is contained in one file, not two, and it runs as Admininstrator by default Maybe it can be used in some way with more complicated script too? `<# : Activate.cmd @echo off (cd /d "%~dp0")&&(NET FILE||(powershell start-process -FilePath '%0' -verb runas)&&(exit /B)) >NUL 2>&1 powershell -NoProfile -ExecutionPolicy Bypass "iex (${%~f0} | out-string)" goto :EOF : end Batch portion / begin PowerShell #>
Start-Process -FilePath 'rundll32.exe' -ArgumentList """$([System.Environment]::CurrentDirectory)\slc.dll"",PatchGatherosstate" -Wait -NoNewWindow Start-Process -FilePath "$([System.Environment]::CurrentDirectory)\gatherosstatemodified.exe" -ArgumentList """$([Environment]::GetFolderPath('CommonApplicationData'))\Microsoft\Windows\ClipSVC\GenuineTicket""" -Wait -NoNewWindow Start-Process -FilePath 'ClipUp.exe' -ArgumentList '-o', '-v' -Wait -NoNewWindow Start-Process -FilePath "$([System.Environment]::SystemDirectory)\cscript.exe" -ArgumentList "//nologo", """$([System.Environment]::SystemDirectory)\slmgr.vbs""","/ato" -Wait -NoNewWindow pause`