Skip to content

Instantly share code, notes, and snippets.

@cosmo0
Last active January 27, 2023 17:46
Show Gist options
  • Save cosmo0/02c60e42e8084402e05891c34717c6c9 to your computer and use it in GitHub Desktop.
Save cosmo0/02c60e42e8084402e05891c34717c6c9 to your computer and use it in GitHub Desktop.
@echo off
rem stackoverflow.com/a/8995407/6776
NET SESSION >nul 2>&1
IF %ERRORLEVEL% EQU 0 (
ECHO Administrator PRIVILEGES Detected!
) ELSE (
echo ######## ######## ######## ####### ########
echo ## ## ## ## ## ## ## ## ##
echo ## ## ## ## ## ## ## ## ##
echo ###### ######## ######## ## ## ########
echo ## ## ## ## ## ## ## ## ##
echo ## ## ## ## ## ## ## ## ##
echo ######## ## ## ## ## ####### ## ##
echo.
echo.
echo ####### ERROR: ADMINISTRATOR PRIVILEGES REQUIRED #########
echo This script must be run as administrator to work properly!
echo ##########################################################
echo.
PAUSE
EXIT /B 1
)
rem login config
rem https://superuser.com/questions/1107480/how-do-i-kill-the-lockscreen-after-the-windows-10-anniversary-update
reg.exe add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\SessionData /t REG_DWORD /v AllowLockScreen /d 0 /f
rem https://www.computerhope.com/issues/ch000792.htm
reg.exe add HKU\.Default\Control Panel\Keyboard /t REG_SZ /v InitialKeyboardIndicators /d 2 /f
rem install chocolatey
powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
rem make sure Powershell is up to date
powershell -Command "choco install powershell -y"
powershell -Command "choco install powershell-core -y"
rem browsers
powershell -Command "choco install googlechrome -y"
powershell -Command "choco install firefox -y"
powershell -Command "choco install microsoft-edge -y"
powershell -Command "choco install opera -y"
rem .net
powershell -Command "choco install dotnet-sdk -y"
powershell -Command "choco install dotnetcore-sdk -y"
rem code editors
powershell -Command "choco install notepadplusplus -y"
powershell -Command "choco install visualstudiocode -y"
powershell -Command "choco install visualstudio2019community -y"
powershell -Command "choco install sql-server-management-studio -y"
rem general dev tools
powershell -Command "choco install nuget.commandline -y"
powershell -Command "choco install microsoft-windows-terminal -y"
powershell -Command "choco install git -y"
powershell -Command "choco install tortoisegit -y"
powershell -Command "choco install winmerge -y"
powershell -Command "choco install beyondcompare --version=3.3.13.18981 -y"
powershell -Command "choco install hxd -y"
powershell -Command "choco install nodejs -y"
powershell -Command "choco install fiddler -y"
powershell -Command "choco install filezilla -y"
powershell -Command "choco install ojdkbuild -y"
powershell -Command "choco install ghostdoc-enterprise -y"
powershell -Command "choco install robo3t -y"
powershell -Command "choco install postman -y"
powershell -Command "choco install rdmfree -y"
powershell -Command "choco install webpi -y"
powershell -Command "choco install mysql.installer -y"
powershell -Command "choco install php-manager -y"
rem Inno Setup
powershell -Command "choco install innosetup -y"
powershell -Command "choco install inno-script-studio -y"
powershell -Command "choco install inno-download-plugin -y"
rem UX and graphics
powershell -Command "choco install pencil -y"
powershell -Command "choco install paint.net -y"
powershell -Command "choco install icofx -y"
powershell -Command "choco install inkscape -y"
rem media
powershell -Command "choco install vlc -y"
powershell -Command "choco install spotify -y"
powershell -Command "choco install foobar2000 -y"
rem other tools
powershell -Command "choco install 7zip -y"
powershell -Command "choco install f.lux -y"
powershell -Command "choco install yed -y"
powershell -Command "choco install flashbackexpress -y"
powershell -Command "choco install fontforge -y"
powershell -Command "choco install picpick.portable -y"
powershell -Command "choco install microsoft-teams -y"
powershell -Command "choco install ant-renamer -y"
rem drivers & system
powershell -Command "choco install sysinternals -y"
powershell -Command "choco install setpoint -y"
rem install & configurure Powershell
rem powershell -NoProfile -ExecutionPolicy Bypass -Command "(new-object Net.WebClient).DownloadString(""http://psget.net/GetPsGet.ps1"") | iex"
Install-PackageProvider -Name NuGet -Force
powershell -Command "Install-Module posh-git -Force"
powershell -Command "Install-Module oh-my-posh -Force"
powershell -Command "Install-Module Terminal-Icons -Force"
@kiquenet
Copy link

check status for package (choco search: https://github.com/MrDKOz/HandyScripts/blob/12295ca13bf180612c2fb61c0710aaf8143eacfe/app-installer.ps1)

Only improvements like:

Unpin to taskbar Microsoft Store, Mail, ... apps
Pin to taskbar any apps like Remote Desktop

Set SearchProvider and SearchProviderUrl for Google in Edge navigator.

Pin to QuickAccess

Pin to Start Menu

Connect to network drive

Shortcuts

Describe the solution you'd like

Pin / Unpin to taskbar
https://stackoverflow.com/questions/9739772/how-to-pin-to-taskbar-using-powershell

Hidden Cortana button

Edge
https://stackoverflow.com/questions/60892120/edge-chromium-gp-how-to-set-google-as-default-bypass-first-run-dialog-and-ha

Pin to QuickAccess
https://stackoverflow.com/questions/30051634/is-it-possible-programmatically-add-folders-to-the-windows-10-quick-access-panel

Pin to Start Menu
https://stackoverflow.com/questions/9903847/how-to-pin-to-start-menu-using-powershell

Connect to network drive
https://www.itechguides.com/how-to-map-a-drive-in-powershell/

Create shortcut
https://stackoverflow.com/questions/9701840/how-to-create-a-shortcut-using-powershell

Describe alternatives you've considered
Using powershell

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment