winactivate icon indicating copy to clipboard operation
winactivate copied to clipboard

2 propositions

Open roddy20 opened this issue 3 years ago • 0 comments

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`

roddy20 avatar Feb 11 '22 19:02 roddy20