Good places to find installer silent switches and post optimization/cleanup tasks

https://www.powershellgallery.com/packages/Evergreenrefer to JSON manifest files https://silentinstallhq.com/silent-install-knowledge-base/ https://community.chocolatey.org/packages https://github.com/ScoopInstaller/Main/tree/master/bucket

Download Windows Security Updates for MDT (packages) offline deployment

Deploy your MDT image Install Microsoft Baseline Security Analyzer (MBSA) Scan MBSA saves the result under the current user profile directory – %USERPROFILE%\SecurityScans Powershell Script to download the missing updates [code language=”powershell”] [xml] $MBSAResult = Get-Content ‘.\SecurityScans\WORKGROUP – I3-PC (10-11-2015 8-03 PM).mbsa’ $MBSAResult.SelectNodes("//UpdateData") | ? { $_.IsInstalled -eq "false" } | % { $URL = …

Powershell Snippets – Create local windows user and set password to never expire

[code language=”powershell”] [ADSI]$server = "WinNT://localhost" $LocalUser = $server.Create("User", "localuser") $LocalUser.SetPassword("localuser") $ADS_UF_DONT_EXPIRE_PASSWD = 0x10000 $LocalUser.userflags = $LocalUser.userflags[0] -bor $ADS_UF_DONT_EXPIRE_PASSWD $LocalUser.SetInfo() [/code]

Powershell Snippet – check for isAdmin?

[code language=”powershell”] $isAdmin = ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator") if (-NOT $isAdmin) { Write-Error "You must run this script as an Administrator." return } [/code]

Disable Particular IE add-on via registry

Step 1: Get the Class ID from IE > Tools  > Manage  Add-ons Step 2: [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Ext\Settings\{47833539-D0C5-4125-9FA8-0819E2EAAC93}] “Flags”=dword:00000001 Note: 0 is for enable and 1 is for disable.

Windows 7 AutoPlay Registry Settings

Reg Settings [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlersDefaultSelection\AutorunINFLegacyArrival] @=”MSAutoRun” [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlersDefaultSelection\HandleBDBurningOnArrival] @=”MSCDBurningOnArrival” [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlersDefaultSelection\HandleCDBurningOnArrival] @=”MSCDBurningOnArrival” [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlersDefaultSelection\HandleDVDBurningOnArrival] @=”MSDVDArrivalDvdMaker” [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlersDefaultSelection\MixedContentOnArrival] @=”MSPromptEachTime” [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlersDefaultSelection\PlayBluRayOnArrival] @=”MSTakeNoAction” [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlersDefaultSelection\PlayCDAudioOnArrival] @=”MSPlayCDAudioOnArrival” [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlersDefaultSelection\PlayDVDAudioOnArrival] @=”VLCPlayDVDAudioOnArrival” [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlersDefaultSelection\PlayDVDMovieOnArrival] @=”MSTakeNoAction” [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlersDefaultSelection\PlayEnhancedCDOnArrival] @=”iTunesImportSongsOnArrival” [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlersDefaultSelection\PlayEnhancedDVDOnArrival] @=”VLCPlayDVDMovieOnArrival” [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlersDefaultSelection\PlayMusicFilesOnArrival] @=”VLCPlayMusicFilesOnArrival” [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlersDefaultSelection\PlaySuperVideoCDMovieOnArrival] @=”MSPlaySuperVideoCDMovieOnArrival” [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlersDefaultSelection\PlayVideoCDMovieOnArrival] @=”MSPlayVideoCDMovieOnArrival” [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlersDefaultSelection\PlayVideoFilesOnArrival] @=”MSOpenFolder” [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlersDefaultSelection\ShowPicturesOnArrival] @=”MSOpenFolder” [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlersDefaultSelection\UnknownContentOnArrival] @=”MSOpenFolder” [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\UserChosenExecuteHandlers] @=”” [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\UserChosenExecuteHandlers\AutorunINFLegacyArrival] @=”MSAutoRun” [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\UserChosenExecuteHandlers\HandleBDBurningOnArrival] @=”MSCDBurningOnArrival” [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\UserChosenExecuteHandlers\HandleCDBurningOnArrival] @=”MSCDBurningOnArrival” [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\UserChosenExecuteHandlers\HandleDVDBurningOnArrival] @=”MSDVDArrivalDvdMaker” [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\UserChosenExecuteHandlers\MixedContentOnArrival] @=”MSPromptEachTime” [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\UserChosenExecuteHandlers\PlayBluRayOnArrival] @=”MSTakeNoAction” [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\UserChosenExecuteHandlers\PlayCDAudioOnArrival] @=”MSPlayCDAudioOnArrival” [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\UserChosenExecuteHandlers\PlayDVDAudioOnArrival] @=”VLCPlayDVDAudioOnArrival” [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\UserChosenExecuteHandlers\PlayDVDMovieOnArrival] …

7-ZIP Custom Application Settings

The following registry values help in customizing the default encryption settings for an enterprise user. [HKEY_CURRENT_USER\Software\7-Zip] “Lang”=”-” [HKEY_CURRENT_USER\Software\7-Zip\Compression] “Level”=dword:00000005 “Archiver”=”zip” “ShowPassword“=dword:00000000 “EncryptHeaders”=dword:00000000 [HKEY_CURRENT_USER\Software\7-Zip\Compression\Options] [HKEY_CURRENT_USER\Software\7-Zip\Compression\Options\zip] “Level”=dword:00000005 “Dictionary“=dword:000e1000 “NumThreads”=dword:00000002 “Method”=”BZip2” “EncryptionMethod”=”AES256” End Result for User

Greenshot Deployment for Enterprise

Greenshot is a free and open source light-weight screenshot software tool for Windows. If you havent heard about it; I strongly suggest to try it out. http://getgreenshot.org/ Silent Install “Greenshot-INSTALLER-0.8.0-0627.exe” /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- Application Settings Greenshot uses an encoded file based config file unique for each user, located at %APPDATA%/Greenshot/Config.dat So the ideal setting …

WordPress Appliance - Powered by TurnKey Linux