Saturday, January 28, 2023

Thursday, January 12, 2023

Group Policies Reset

CMD Admin
RD /S /Q "%WinDir%\System32\GroupPolicy"
RD /S /Q "%WinDir%\System32\GroupPolicyUsers"
gpupdate /force
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies" /f
reg delete "HKCU\Software\Microsoft\WindowsSelfHost" /f
reg delete "HKCU\Software\Policies" /f
reg delete "HKLM\Software\Microsoft\Policies" /f
reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies" /f
reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsStore\WindowsUpdate" /f
reg delete "HKLM\Software\Microsoft\WindowsSelfHost" /f
reg delete "HKLM\Software\Policies" /f
reg delete "HKLM\Software\WOW6432Node\Microsoft\Policies" /f
reg delete "HKLM\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Policies" /f
reg delete "HKLM\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\WindowsStore\WindowsUpdate" /f
Now reboot pc and the policies should be removed

Wednesday, January 11, 2023

Install - Update Windows Software (the moving target)

In my quest to set up the "perfect" program install worksheet for Windows. Priorities are easy update, easy install besides useful.

Chris Titus Script (Will install Chocolatey on first run) Powershell Admin
irm christitus.com/win | iex
In case you want to install Windows through CMD

The first things I install are:
Symenu
    Defender Exclusion Tool
    PatchMyPC
        Windows Update MiniTool portable
In Win10 must first update Windows App Installer in Windows Store
    It doesn't work install from github Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle
WingetUI (winget install SomePythonThings.WingetUIStore)
Wintoys (MS Store) (Excellent way to check and stop the Windows snooping and irritations)
Chris Titus Tool powershell (irm christitus.com/win | iex) (in the app make shortcut button)
Chris's Tool is a quick  (maybe best) way to install:
NET Desktop Runtime 3.1
NET Desktop Runtime 5
NET Desktop Runtime 6
Visual C++ 2015-2022 64-bit
Visual C++ 2015-2022 32-bit
Maybe use the Desktop or Laptop Tweak
Set Windows Update to security only.

Exclude Folder
Create a "Portable Programs" folder on C:
In that folder create an "Excluded" folder.
Get Defender Exclusion from Sordum and place in the Excluded folder. (Also in Symenu)
Use Defender Exclusion to exclude the folder from Windows Defender.
Get Defender Control from Sordum and place it into the Exclude folder.
Now unzip with password "sordum". You may need to "allow" and unzip twice.
The first time Control is run Defender will ask to allow. I add Control exe file to exclusion.
These simple steps will now work for running stuff Defender hates but you know are safe.

Looking for a specific Windows version?

Visual C Runtimes
(If you need an old one or a reinstall) Chris Titus has them also.

The Mother Load of tweeks

Symenu: Updates are easy & source is usually original provider. Unfortunately you have to pick them one by one so after PatchMyPC and LaunchyQT, I grab them when I need them.

AnyDesk (can install from the portable version if needed)
Any_Burn
Autoruns
BCUninstaller (I still like Revo)
CCleaner_Portable
CrystalDiskInfo_Portable
CrystalDiskMark_Portable
DriverBackup
HFS
HWiNFO
IcoFX
LaunchyQT (on one dual monitor setup I use original launchy - qt would not behave)
MiniTool_Partition_Wizard_Free_(x64) (No clone disk is in v10)
NexusFont
O&O Shutup
PatchMyPC
PDF_Arranger
PeStudio (File analysis crazy detail)
Process_Explorer (I like the Virustotal column)
Process_Hacker
Q-Dir_(x64)
Rainmeter4_(x64) (skins Enigma mod the network.inc for IP) (SilverAzide Gadgets)
Revo_Uninstaller
ScreenToGif_(x64)
Speccy
Sumatra_PDF_(x64)
SUMo_Portable
Tor_Browser
Ventoy
VeraCrypt_Portable
Windows_Repair_Toolbox
WinSCP
Wise_Disk_Cleaner
Nirsoft
QuickSetDNS
TaskSchedulerView_x64
Volumouse_x64
Wireless_Network_Watcher

PatchMyPC.ini file: Will find updates for programs not installed with PatchMyPC.
WinaeroTweaker
PortableWindowsRepair
PortableWindowsUpdateMiniTool

Choco: 
WingetUI makes this almost obsolete because it handles Choco sources.
Chirs Titus Tool also checks that Choco is installed. I think it installs if not already.
Open CMD Admin (If you need to do it manually)
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"

taskbarx (Win 10 only)
irfanviewplugins
sciteautohotkey (this is screwed up lately 16-APR-2023)

Winget:
*Just had a machine not launch winget. Had to github winget and reinstall. Worked fine. Download the Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle. Right click and install.

Win10 install App Installer from Microsoft Store (probably just update)
- If the store gives you grief go to https://winget.run upper left.
Win11 update App Installer from Microsoft Store

To export
winget export -o D:\Users\George\Desktop\appslist --accept-source-agreements

To import
winget import -i D:\Users\George\Desktop\appslist --ignore-versions --accept-package-agreements --accept-source-agreements

I usually install . . .
7zip.7zip
2BrightSparks.SyncBackFree
AOMEI.Backupper
AutoHotkey.AutoHotkey
Brave.Brave
Chocolatey.ChocolateyGUI
voidtools.Everything
FileConverter winget install -e --id AdrienAllard.FileConverter
Google.Chrome
  chrome://flags
    parallel downloading
HexChat.HexChat
IrfanSkiljan.IrfanView
JavadMotallebi.NeatDownloadManager
Microsoft.PowerToys (I use text and file locked)
NirSoft.Volumouse
Notepad++.Notepad++
PrivateInternetAccess
qBittorrent.qBittorrent (Uncheck Behavior, Use Magnet) It's a bug ignore warning.
ShareX.ShareX
SomePythonThings.WingetUIStore
TechPowerUp.NVCleanstall
Microsoft.VCRedist.2015+.x86 (Done in Chris Titus)
Microsoft.VCRedist.2015+.x64 (Done in Chris Titus)
Microsoft.WindowsTerminal
VirtualBox Oracle.VirtualBox
VideoLAN.VLC
VMware.WorkstationPlayer

Alternatives:
SMPlayer (Much slicker that VLC & I'm considering changing)
winget install --id SMPlayer.SMPlayer also in Symenu

Find It Somewhere:
Trinity Android Emulator (I'm not big on these but this is open source and fast)


Defender Antivirus (Is more aggressive lately and does not turn off)
Sordum has a couple solutions when needed (I do always on my personal) (Work in excluded folder)
Defender Control (will need to be excluded in Defender)
Defender Exclusion Tool (Speaking of exclusions)

ClearDisk Info (SSD Health)

Free PC Audit (great little PC inventory portable)

Display Driver Uninstaller (advised to disable internet before running)

Ginger Writer (I like this. Select text ctl + c + c) Still evaluating

G'mic for Gimp (I use Parth's portable now so included) Latest Gimp install breaks some things I like.

HFS (also in Symenu) May need Defender exclusion.
Xlight FTP is a better choice. 

NvUpdate (Nvidia updater)

TaskbarX
- Win11 (I use TranslucentTB instead)


in Microsoft Store easy access to Windows settings. Great for initial setup.

Xlight FTP
And it grabs your IP address :) Edit paths in user settings. Use WinSCP on the other end.

Try "pairdrop.net" if on the same network. Snapdrop on Android phone. Can stall out.
Windows sharing is great unless you have problems.

Tweaks
Trash bin shortcut C:\Windows\explorer.exe shell:RecycleBinFolder

Websites
Spelling & Grammar

Windows Repair
FixWin leaves an irritating context menu entry. Remove it with this .reg file
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\DesktopBackground\Shell\UWTSettings]
Tron Script  (run prep and disinfect sections only) (results in the log file)

This list will not run in CMD being on lines like this instead of continuous string.
winget install -e --id=7zip.7zip &&
winget install -e --id=2BrightSparks.SyncBackFree &&
winget install -e --id=AOMEI.Backupper.Standard &&
winget install -e --id=AutoHotkey.AutoHotkey &&
winget install -e --id=Brave.Brave &&
winget install -e --id=Chocolatey.ChocolateyGUI &&
winget install -e --id=voidtools.Everything &&
winget install -e --id AdrienAllard.FileConverter &&
winget install -e --id=Google.Chrome &&
winget install -e --id=HexChat.HexChat &&
winget install -e --id= IrfanSkiljan.IrfanView &&
winget install -e --id=JavadMotallebi.NeatDownloadManager &&
winget install -e --id=Microsoft.PowerToys &&
winget install -e --id=NirSoft.Volumouse &&
winget install -e --id=Notepad++.Notepad++ &&
winget install -e --id=PrivateInternetAccess &&
winget install -e --id=qBittorrent.qBittorrent &&
winget install -e --id=ShareX.ShareX &&
winget install -e --id=SomePythonThings.WingetUIStore &&
winget install -e --id=TechPowerUp.NVCleanstall &&
winget install -e --id=Microsoft.VCRedist.2015+.x86 &&
winget install -e --id=Microsoft.VCRedist.2015+.x64 &&
winget install -e --id=Microsoft.WindowsTerminal &&
winget install -e --id=Oracle.VirtualBox &&
winget install -e --id=VideoLAN.VLC &&
winget install -e --id=VMware.WorkstationPlayer

Win11
winget install -e --id=Nilesoft.shell
(May need to alter shell on dark background link.)

Or import this into winget (winget import -i <Path>\<EXPORT.TXT or JASON>
)
Save everything below in a file named appslist with no extension or .json.
{
"$schema" : "https://aka.ms/winget-packages.schema.2.0.json",
"CreationDate" : "2023-01-11T20:40:30.859-00:00",
"Sources" : 
[
{
"Packages" : 
[
{
"PackageIdentifier" : "7zip.7zip"
},
{
"PackageIdentifier" : "ShareX.ShareX"
},
{
"PackageIdentifier" : "AutoHotkey.AutoHotkey"
},
{
"PackageIdentifier" : "Brave.Brave"
},
{
"PackageIdentifier" : "voidtools.Everything"
},
{
"PackageIdentifier" : "Google.Chrome"
},
{
"PackageIdentifier" : "IrfanSkiljan.IrfanView"
},
{
"PackageIdentifier" : "Microsoft.WindowsTerminal"
},
                                {
"PackageIdentifier" : "NirSoft.Volumouse"
},
{
"PackageIdentifier" : "Notepad++.Notepad++"
},
{
"PackageIdentifier" : "2BrightSparks.SyncBackFree"
},
{
"PackageIdentifier" : "VideoLAN.VLC"
},
{
"PackageIdentifier" : "qBittorrent.qBittorrent"
},
{
"PackageIdentifier" : "JavadMotallebi.NeatDownloadManager"
},
{
"PackageIdentifier" : "Chocolatey.ChocolateyGUI"
},
{
"PackageIdentifier" : "Microsoft.PowerToys"
},
{
"PackageIdentifier" : "Microsoft.VCRedist.2015+.x86"
},
{
"PackageIdentifier" : "Microsoft.VisualStudioCode"
},
{
"PackageIdentifier" : "SomePythonThings.WingetUIStore"
},
{
"PackageIdentifier" : "AOMEI.Backupper.Standard"
},
{
"PackageIdentifier" : "Oracle.VirtualBox"
},
{
"PackageIdentifier" : "TechPowerUp.NVCleanstall"
},
{
"PackageIdentifier" : "VMware.WorkstationPlayer"
},
{
"PackageIdentifier" : "Microsoft.VCRedist.2012.x64"
},
{
"PackageIdentifier" : "Microsoft.VCRedist.2015+.x64"
}
],
"SourceDetails" : 
{
"Argument" : "https://cdn.winget.microsoft.com/cache",
"Identifier" : "Microsoft.Winget.Source_8wekyb3d8bbwe",
"Name" : "winget",
"Type" : "Microsoft.PreIndexed.Package"
}
},
{
"Packages" : 
[
{
"PackageIdentifier" : "XPFFTQ037JWMHS"
}
],
"SourceDetails" : 
{
"Argument" : "https://storeedgefd.dsx.mp.microsoft.com/v9.0",
"Identifier" : "StoreEdgeFD",
"Name" : "msstore",
"Type" : "Microsoft.Rest"
}
}
],
"WinGetVersion" : "1.3.2691"
}

Pin Not Available

Crazy Error I had not seen before. Pin not available blah blah. I restarted a few times and it finally worked. If it doesn't some say to...