57 lines
2.1 KiB
PowerShell
57 lines
2.1 KiB
PowerShell
Write-Host "---Disable UAC---"
|
|
Set-ItemProperty -Path REGISTRY::HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System -Name ConsentPromptBehaviorAdmin -Value 0
|
|
|
|
Write-Host "---Installing Programs---"
|
|
Write-Host "---Installing git---"
|
|
C:\sc\tools\7zip\7zr.exe x -o "C:\sc\tools\git\" "C:\sctools\git\PortableGit.7z.exe"
|
|
Write-Host "---Installing Custom Resolution Utility---"
|
|
C:\sc\tools\7zip\7zr.exe x -o "C:\sc\tools\cru\" "C:\sctools\cru\customresolutionutility.zip"
|
|
Write-Host "---Installing AntiMicroX---"
|
|
C:\sc\tools\7zip\7zr.exe x -o "C:\sc\tools\antimicrox\" "C:\sctools\antimicrox\antimicrox-portable.zip"
|
|
Write-Host "---Installing Attract Mode---"
|
|
C:\sc\tools\7zip\7zr.exe x -o "C:\sc\tools\attractmode\" "C:\sctools\attractmode\attract.zip"
|
|
Write-Host "---Installing FastIO2KB---"
|
|
C:\sc\tools\7zip\7zr.exe x -o "C:\sc\tools\fastio2kb\" "C:\sctools\fastio2kb\fastio2kb.zip"
|
|
Write-Host "---Installing AutoHotKeyV2---"
|
|
C:\sc\tools\ahk\ahk-v2.exe /S
|
|
Write-Host "---Installing WinIPAC Version 2---"
|
|
C:\sc\tools\ipac\winipacv2setup.exe /S /W
|
|
Write-Host "---Setting Wallpaper---"
|
|
$vSCSetWallpaperPath = "C:\sc\tools\wall\wallpaper.png"
|
|
$vSCSetWallpaperCode = @'
|
|
|
|
using System.Runtime.InteropServices;
|
|
namespace Win32
|
|
{
|
|
public class Wallpaper
|
|
{
|
|
[DllImport("user32.dll", CharSet=CharSet.Auto)]
|
|
static extern int SystemParametersInfo (int uAction , int uParam , string lpvParam , int fuWinIni) ;
|
|
|
|
public static void SetWallpaper(string thePath)
|
|
{
|
|
SystemParametersInfo(20,0,thePath,3);
|
|
}
|
|
}
|
|
}
|
|
|
|
'@
|
|
|
|
Add-Type $vSCSetWallpaperCode
|
|
[Win32.Wallpaper]::SetWallpaper($vSCSetWallpaperPath)
|
|
|
|
Write-Host "---Configure Power Settings---"
|
|
powercfg.exe /Change monitor-timeout-ac 0
|
|
powercfg.exe /Change monitor-timeout-dc 0
|
|
powercfg.exe /Change standby-timeout-ac 0
|
|
powercfg.exe /Change standby-timeout-dc 0
|
|
|
|
Write-Host "---Initial Copy Games to C:\sc\content\---"
|
|
#TODO
|
|
|
|
Write-Host "---Install Unified Write Filter---"
|
|
Enable-WindowsOptionalFeature -Online -FeatureName "Client-UnifiedWriteFilter" -All
|
|
|
|
Write-Host "---Enable Unified Write Filter---"
|
|
uwfmgr.exe Filter Enable
|