Last active
October 21, 2022 10:53
-
-
Save byBretema/5ca4d64ceeaa617c8dcaf75becb0e42c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#--- NOT ADMIN | |
# . SCOOP | |
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser | |
Invoke-Expression (new-object net.webclient).downloadstring('https://get.scoop.sh') | |
scoop install git gcc cmake make ninja openssh python sudo gow xming | |
#--- ADMIN | |
sudo powershell # maybe this do the work to change between no-admin/admin modes ?? | |
# . POSH MODULES | |
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted | |
Install-Module -Name "posh-git" -Force | |
Install-Module -Name "oh-my-posh" -Force | |
# . POSH THEMES | |
# Add this to your $PROFILE: oh-my-posh init pwsh --config "${env:LOCALAPPDATA}/Programs/oh-my-posh/themes/jandedobbeleer.omp.json" | Invoke-Expression | |
Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://ohmyposh.dev/install.ps1')) | |
# . CHOCO | |
Set-ExecutionPolicy Bypass | |
Invoke-WebRequest https://chocolatey.org/install.ps1 -UseBasicParsing | Invoke-Expression | |
C:\ProgramData\chocolatey\bin\choco.EXE feature enable -n allowGlobalConfirmation | |
C:\ProgramData\chocolatey\bin\choco.EXE install 7zip blender caffeine clipgrab ditto notion obs-studio rufus sumatrapdf steam telegram whatsapp vscode visualstudio2019community | |
# . 7-ZIP : Double-Click Simply Extract | |
New-PSDrive -PSProvider registry -Root HKEY_CLASSES_ROOT -Name HKCR | |
New-Item -path "hkcr:\Applications\7zG.exe\shell\open\command" -value "`"C:\Program Files\7-Zip\7zG.exe`" x `"%1`" -o* -aou" -Force | |
# . TELEMETRY OFF | |
Set-Service DiagTrack -StartupType Disabled | |
Set-Service dmwappushservice -StartupType Disabled | |
New-ItemProperty -path "hklm:\SOFTWARE\Policies\Microsoft\Windows\DataCollection" -name "AllowTelemetry" -PropertyType DWORD -value 0 -Force | |
# . DISABLE PHONE LINK (Could be reinstalled from store) | |
(Get-AppxPackage Microsoft.YourPhone -AllUsers).PackageFullName | Remove-AppxPackage | |
# . TASKS OFF | |
@("usbceip", "microsoft", "consolidator", "silentcleanup", "dmclient", "scheduleddefrag") | ForEach-Object | |
{ | |
(Get-ScheduledTask -TaskName "*$_*") | ForEach-Object { Disable-ScheduledTask -TaskName $_.TaskName -TaskPath $_.TaskPath } | |
} | |
# . ENABLE "HYBERNATE AFTER" OPTION | |
REG ADD HKLM\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\9d7815a6-7ee4-497e-8888-515a05f02364 /v Attributes /t REG_DWORD /d 2 /f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment