Restore Bloatynosy classic assets

This commit is contained in:
Belim 2024-02-26 20:54:58 +01:00
parent edd737aa3e
commit 1d25ac9119
33 changed files with 986 additions and 0 deletions

BIN
assets/BackgroundImage.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 138 KiB

BIN
assets/BackgroundImageA.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

View File

@ -0,0 +1,14 @@
[LOW] Use Apps dark theme
[LOW] Use Windows dark theme
[LOW] Disable acrylic Fluent Design effects
[MIDDLE] Disable Widgets
[LOW] Disable Microsoft Teams on Startup
[MIDDLE] Disable Game DVR feature
[MIDDLE] Disable PowerThrottling
[MIDDLE] Adjust visual effects for best performance
[HIGH] Disable Diagnostic data
[MIDDLE] Disable Connected User Experiences and Telemetry
[HIGH] Disable Compatibility Telemetry
[HIGH] Disable Automatic Installation of apps
[HIGH] Disable Tailored experiences
[HIGH] Disable Apps running in background

2
assets/InstaPackage.app Normal file
View File

@ -0,0 +1,2 @@
IrfanSkiljan.IrfanView
7zip.7zip

View File

@ -0,0 +1 @@
Bloatware (from Microsoft, ASUS, Adobe, HP, Meta etc.)

20
assets/OOBE_Profile.bloos Normal file
View File

@ -0,0 +1,20 @@
[HIGH] Disable Google Chrome Telemetry
[HIGH] Show hidden file name extensions
[LOW] Disable acrylic Fluent Design effects
[MIDDLE] Disable Widgets
[MIDDLE] Uninstall Widgets feature
Privacy
[HIGH] Disable Diagnostic data
[MIDDLE] Disable Connected User Experiences and Telemetry
[HIGH] Disable Compatibility Telemetry
[HIGH] Disable Location tracking
[HIGH] Disable Advertising ID for Relevant Ads
[HIGH] Disable Feedback notifications
[HIGH] Disable Suggested content in Settings app
[LOW] Disable Windows Hello Biometrics
[HIGH] Disable Automatic Installation of apps
[LOW] Disable Windows tips
[HIGH] Disable Tailored experiences
[LOW] We've recommend enabling Microsoft Windows Subsystem for Linux
Bloatware (from Microsoft, Meta, ASUS, Adobe etc.)
[HIGH] Search and remove pre-installed bloatware apps automatically

BIN
assets/bloatynosy.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

71
assets/packages.git Normal file
View File

@ -0,0 +1,71 @@
### LoveWindowsAgain - Packages (Supported packages)
### License: MIT
### Updated: 2022-02-10
### More info: https://github.com/builtbybel/LoveWindowsAgain
### You can add or delete entries in this file at any time.
### You will find more packages in the Windows Package Manager manifest repository: https://github.com/microsoft/winget-pkgs/tree/master/manifests
### Or just get them with this Web-GUI for Windows Package Manager: https://winstall.app
7zip.7zip
Adobe.AdobeAcrobatReaderDC
AnyDeskSoftwareGmbH.AnyDesk
Audacity.Audacity
Bandisoft.Bandizip
BleachBit.BleachBit
BraveSoftware.BraveBrowser
Discord.Discord
DominikReichl.KeePass
valinet.ExplorerPatcher
GIMP.GIMP
Git.Git
GitHub.GitHubDesktop
GitHub.cli
Google.Chrome
IrfanSkiljan.IrfanView
LibreOffice.LibreOffice
M2Team.NanaZip
Malwarebytes.MalwarebytesMalwarebytes
MehediHassan.Tweeten
Microsoft.PowerToys
Microsoft.Skype
Microsoft.Teams
Microsoft.VisualStudioCode
Microsoft.WindowsTerminal
Microsoft.dotNetFramework
Mozilla.Firefox
Mozilla.Thunderbird
Notepad++.Notepad++
Opera.Opera
Oracle.JavaRuntimeEnvironment
Oracle.VirtualBox
PDFsam.PDFsam
Piriform.CCleaner
Piriform.Defraggler
Piriform.Recuva
PuTTY.PuTTY
RARLab.WinRAR
Rufus.Rufus
ShareX.ShareXShareX
SlackTechnologies.Slack
SomePythonThings.ElevenClock
StartIsBack.StartAllBack
SumatraPDF.SumatraPDF
TeamSpeakSystems.TeamSpeakClient
TeamViewer.TeamViewer
Telegram.TelegramDesktop
TimKosse.FileZillaClient
Tonec.InternetDownloadManager
Twitch.Twitch
Valve.SteamSteam
VideoLAN.VLC
VivaldiTechnologies.Vivaldi
WinSCP.WinSCP
WiresharkFoundation.Wireshark
XBMCFoundation.Kodi
Zoom.Zoom
calibre.calibre
flux.flux
picpick.picpick
qBittorrent.qBittorrent
voidtools.EverythingLite
yt-dlg.yt-dlg

12
mods/AutoLogon.ini Normal file
View File

@ -0,0 +1,12 @@
[Info]
DisplayName=Enable secure AutoLogon
Publisher=https://gist.github.com/RezaAmbler/bc91bfeb57458bb9a9bc
AboutScript=If your computer is used in an environment where you are happy for all users to have easy access, you can enable auto login with this script.
ScriptLanguage=PowerShell
ConditionScript=autologon.ps1
CreateNoWindow=false

View File

@ -0,0 +1,12 @@
[Info]
DisplayName=Backup Edge (based on Chromium) Bookmarks to Desktop
Publisher=Gunnar Haslinger
AboutScript=Read Microsoft Edge (based on Chromium) Bookmarks (JSON File) and Export/Backup to HTML-File (Edge/Firefox/Chrome compatible Format) on your Desktop.
ScriptLanguage=PowerShell
ConditionScript=backup-edge_chromium-bookmarks.ps1
CreateNoWindow=true

View File

@ -0,0 +1,7 @@
[Info]
DisplayName=Download MSEdgeRedirect
Publisher=https://github.com/AveYo/fox/blob/main/ChrEdgeFkOff.cmd
AboutScript=Certain elements of Windows 11, such as the News and interests widget, open links in Edge regardless of which browser is set as default. This is done through the use of edge:// protocol links. This mod intercepts URIs that force-open web links in Microsoft Edge and redirects it to the system's default web browser to revert to Edge as the default handler for web searches, all you have to do is run the script again.
ScriptLanguage=PowerShell
ConditionScript=bypass-edge_default_handler_web.ps1
CreateNoWindow=true

View File

@ -0,0 +1,12 @@
[Info]
DisplayName=Chris Titus Tech's Windows Utility - Install Programs, Tweaks, Fixes, and Updates
Publisher=https://github.com/ChrisTitusTech/winutil
AboutScript=This Utility is a compilation of windows tasks I perform on each Windows system I use. It is meant to streamline installs, debloat with tweaks, troubleshoot with config, and fix Windows updates. I am extremely picky on any contributions to keep this project clean and efficient.
ScriptLanguage=PowerShell
ConditionScript=ChrisTitusApp.ps1
CreateNoWindow=true

1
mods/ChrisTitusApp.ps1 Normal file
View File

@ -0,0 +1 @@
irm christitus.com/win | iex

View File

@ -0,0 +1,7 @@
[Info]
DisplayName=Run Microsoft Disk Clean-up aka cleanmgr.exe
Publisher=https://stackoverflow.com/questions/40534323/windows-update-cleanup-in-registry-editor/40537520#40537520
AboutScript=This will use classic Disk clean-up utility aka Cleanmgr.exe to clear unnecessary files from your computer's hard disk instead of Microsoft's replacement "Storage Sense app" which is part of the Settings app. This script will use command-line options to specify that Cleanmgr.exe cleans up all areas expect Recycle Bin and Previous Windows Installations.
ScriptLanguage=PowerShell
ConditionScript=clean-up_windows.ps1
CreateNoWindow=true

View File

@ -0,0 +1,7 @@
[Info]
DisplayName=Clear event logs
Publisher=Builtbybel
AboutScript=In some cases it is necessary to delete all entries from Windows event logs on a computer or a server. Of course, you can clear the system logs from the Event Viewer console GUI - Eventvwr.msc (right-click the log you would like to clear and select Clear Log).
ScriptLanguage=PowerShell
ConditionScript=clear-event_logs.ps1
CreateNoWindow=true

View File

@ -0,0 +1,7 @@
[Info]
DisplayName=Disable services
Publisher=https://nerdschalk.com/what-windows-11-services-to-disable-safely-and-how
AboutScript=This mod will turn off unnecessary Windows 11 services. A detailed explantation of each service can be found here: https://nerdschalk.com/what-windows-11-services-to-disable-safely-and-how
ScriptLanguage=PowerShell
ConditionScript=disable-services.ps1
CreateNoWindow=true

7
mods/Remove OneDrive.ini Normal file
View File

@ -0,0 +1,7 @@
[Info]
DisplayName=Remove and disable OneDrive integration
Publisher=https://github.com/W4RH4WK/Debloat-Windows-10
AboutScript=This script will remove and disable OneDrive integration.
ScriptLanguage=PowerShell
ConditionScript=remove_onedrive.ps1
CreateNoWindow=true

View File

@ -0,0 +1,7 @@
[Info]
DisplayName=Remove telemetry of third-party apps
Publisher=Builtbybel
AboutScript=This mod will block and disable telemetry features of the following apps:\n- Block Google Chrome Software Reporter Tool\n- Disable Mozilla Firefox telemetry\n- Disable CCleaner Monitoring\n- Disable Dropbox Update service\n- Disable Google Update service\n- Disable Media Player telemetry\n- Disable Microsoft Office telemetry
ScriptLanguage=PowerShell
ConditionScript=remove_telemetry-third-party-apps.ps1
CreateNoWindow=true

View File

@ -0,0 +1,8 @@
[Info]
DisplayName=Reinstall all built-in apps
Publisher=Builtbybel
AboutScript=This mod will reinstall all built-in modern apps in a single step. This command will take a few moments and will reinstall all built-in apps. If you receive any error message, ignore it. You may need to restart the computer to take effect.
ScriptLanguage=PowerShell
ConditionScript=reinstall-inbox-apps.ps1
CreateNoWindow=false
ScriptParam=-noexit

View File

@ -0,0 +1,7 @@
[Info]
DisplayName=Enable Ultimate Performance Mode
Publisher=Builtbybel
AboutScript=Microsoft added the "Ultimate Performance mode" power scheme to Windows 10 April 2018 Update to optimize the system's performance, especially high-end PCs. The "Ultimate Performance" power plan option may not be available on some systems, especially if you are using a laptop.
ScriptLanguage=PowerShell
ConditionScript=ultimate_performance-mode.ps1
CreateNoWindow=true

View File

@ -0,0 +1,7 @@
[Info]
DisplayName=Update Microsoft Store apps
Publisher=Builtbybel
AboutScript=This mod will run an update check for Microsoft Store apps.
ScriptLanguage=PowerShell
ConditionScript=update_store-apps.ps1
CreateNoWindow=true

311
mods/autologon.ps1 Normal file
View File

@ -0,0 +1,311 @@
[cmdletbinding()]
param (
    [Parameter(Mandatory=$true)] [ValidateNotNullOrEmpty()] [string]
    $Username,
 
    [Parameter(Mandatory=$true)] [ValidateNotNullOrEmpty()] [System.Security.SecureString]
    $Password,
     
    [string]
    $Domain,
     
    [Int]
    $AutoLogonCount,
     
    [switch]
    $RemoveLegalPrompt,
     
    [System.IO.FileInfo]
    $BackupFile
)
 
begin {
     
    [string] $WinlogonPath = "HKLM:\Software\Microsoft\Windows NT\CurrentVersion\Winlogon"
    [string] $WinlogonBannerPolicyPath = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System"
 
    [string] $Enable = 1
    [string] $Disable = 0
     
    #region C# Code to P-invoke LSA LsaStorePrivateData function.
    Add-Type @"
        using System;
        using System.Collections.Generic;
        using System.Text;
        using System.Runtime.InteropServices;
 
        namespace ComputerSystem
        {
            public class LSAutil
            {
                [StructLayout(LayoutKind.Sequential)]
                private struct LSA_UNICODE_STRING
                {
                    public UInt16 Length;
                    public UInt16 MaximumLength;
                    public IntPtr Buffer;
                }
 
                [StructLayout(LayoutKind.Sequential)]
                private struct LSA_OBJECT_ATTRIBUTES
                {
                    public int Length;
                    public IntPtr RootDirectory;
                    public LSA_UNICODE_STRING ObjectName;
                    public uint Attributes;
                    public IntPtr SecurityDescriptor;
                    public IntPtr SecurityQualityOfService;
                }
 
                private enum LSA_AccessPolicy : long
                {
                    POLICY_VIEW_LOCAL_INFORMATION = 0x00000001L,
                    POLICY_VIEW_AUDIT_INFORMATION = 0x00000002L,
                    POLICY_GET_PRIVATE_INFORMATION = 0x00000004L,
                    POLICY_TRUST_ADMIN = 0x00000008L,
                    POLICY_CREATE_ACCOUNT = 0x00000010L,
                    POLICY_CREATE_SECRET = 0x00000020L,
                    POLICY_CREATE_PRIVILEGE = 0x00000040L,
                    POLICY_SET_DEFAULT_QUOTA_LIMITS = 0x00000080L,
                    POLICY_SET_AUDIT_REQUIREMENTS = 0x00000100L,
                    POLICY_AUDIT_LOG_ADMIN = 0x00000200L,
                    POLICY_SERVER_ADMIN = 0x00000400L,
                    POLICY_LOOKUP_NAMES = 0x00000800L,
                    POLICY_NOTIFICATION = 0x00001000L
                }
 
                [DllImport("advapi32.dll", SetLastError = true, PreserveSig = true)]
                private static extern uint LsaRetrievePrivateData(
                            IntPtr PolicyHandle,
                            ref LSA_UNICODE_STRING KeyName,
                            out IntPtr PrivateData
                );
 
                [DllImport("advapi32.dll", SetLastError = true, PreserveSig = true)]
                private static extern uint LsaStorePrivateData(
                        IntPtr policyHandle,
                        ref LSA_UNICODE_STRING KeyName,
                        ref LSA_UNICODE_STRING PrivateData
                );
 
                [DllImport("advapi32.dll", SetLastError = true, PreserveSig = true)]
                private static extern uint LsaOpenPolicy(
                    ref LSA_UNICODE_STRING SystemName,
                    ref LSA_OBJECT_ATTRIBUTES ObjectAttributes,
                    uint DesiredAccess,
                    out IntPtr PolicyHandle
                );
 
                [DllImport("advapi32.dll", SetLastError = true, PreserveSig = true)]
                private static extern uint LsaNtStatusToWinError(
                    uint status
                );
 
                [DllImport("advapi32.dll", SetLastError = true, PreserveSig = true)]
                private static extern uint LsaClose(
                    IntPtr policyHandle
                );
 
                [DllImport("advapi32.dll", SetLastError = true, PreserveSig = true)]
                private static extern uint LsaFreeMemory(
                    IntPtr buffer
                );
 
                private LSA_OBJECT_ATTRIBUTES objectAttributes;
                private LSA_UNICODE_STRING localsystem;
                private LSA_UNICODE_STRING secretName;
 
                public LSAutil(string key)
                {
                    if (key.Length == 0)
                    {
                        throw new Exception("Key lenght zero");
                    }
 
                    objectAttributes = new LSA_OBJECT_ATTRIBUTES();
                    objectAttributes.Length = 0;
                    objectAttributes.RootDirectory = IntPtr.Zero;
                    objectAttributes.Attributes = 0;
                    objectAttributes.SecurityDescriptor = IntPtr.Zero;
                    objectAttributes.SecurityQualityOfService = IntPtr.Zero;
 
                    localsystem = new LSA_UNICODE_STRING();
                    localsystem.Buffer = IntPtr.Zero;
                    localsystem.Length = 0;
                    localsystem.MaximumLength = 0;
 
                    secretName = new LSA_UNICODE_STRING();
                    secretName.Buffer = Marshal.StringToHGlobalUni(key);
                    secretName.Length = (UInt16)(key.Length * UnicodeEncoding.CharSize);
                    secretName.MaximumLength = (UInt16)((key.Length + 1) * UnicodeEncoding.CharSize);
                }
 
                private IntPtr GetLsaPolicy(LSA_AccessPolicy access)
                {
                    IntPtr LsaPolicyHandle;
 
                    uint ntsResult = LsaOpenPolicy(ref this.localsystem, ref this.objectAttributes, (uint)access, out LsaPolicyHandle);
 
                    uint winErrorCode = LsaNtStatusToWinError(ntsResult);
                    if (winErrorCode != 0)
                    {
                        throw new Exception("LsaOpenPolicy failed: " + winErrorCode);
                    }
 
                    return LsaPolicyHandle;
                }
 
                private static void ReleaseLsaPolicy(IntPtr LsaPolicyHandle)
                {
                    uint ntsResult = LsaClose(LsaPolicyHandle);
                    uint winErrorCode = LsaNtStatusToWinError(ntsResult);
                    if (winErrorCode != 0)
                    {
                        throw new Exception("LsaClose failed: " + winErrorCode);
                    }
                }
 
                public void SetSecret(string value)
                {
                    LSA_UNICODE_STRING lusSecretData = new LSA_UNICODE_STRING();
 
                    if (value.Length > 0)
                    {
                        //Create data and key
                        lusSecretData.Buffer = Marshal.StringToHGlobalUni(value);
                        lusSecretData.Length = (UInt16)(value.Length * UnicodeEncoding.CharSize);
                        lusSecretData.MaximumLength = (UInt16)((value.Length + 1) * UnicodeEncoding.CharSize);
                    }
                    else
                    {
                        //Delete data and key
                        lusSecretData.Buffer = IntPtr.Zero;
                        lusSecretData.Length = 0;
                        lusSecretData.MaximumLength = 0;
                    }
 
                    IntPtr LsaPolicyHandle = GetLsaPolicy(LSA_AccessPolicy.POLICY_CREATE_SECRET);
                    uint result = LsaStorePrivateData(LsaPolicyHandle, ref secretName, ref lusSecretData);
                    ReleaseLsaPolicy(LsaPolicyHandle);
 
                    uint winErrorCode = LsaNtStatusToWinError(result);
                    if (winErrorCode != 0)
                    {
                        throw new Exception("StorePrivateData failed: " + winErrorCode);
                    }
                }
            }
        }
"@
    #endregion
}
 
process {
 
    try {
        $ErrorActionPreference = "Stop"
         
        $decryptedPass = [Runtime.InteropServices.Marshal]::PtrToStringAuto(
            [Runtime.InteropServices.Marshal]::SecureStringToBSTR($Password)
        )
 
        if ($BackupFile) {
                # Initialize the hash table with a string comparer to allow case sensitive keys.
                # This allows differentiation between the winlogon and system policy logon banner strings.
            $OrigionalSettings = New-Object System.Collections.Hashtable ([system.stringcomparer]::CurrentCulture)
             
            $OrigionalSettings.AutoAdminLogon = (Get-ItemProperty $WinlogonPath ).AutoAdminLogon
            $OrigionalSettings.ForceAutoLogon = (Get-ItemProperty $WinlogonPath).ForceAutoLogon
            $OrigionalSettings.DefaultUserName = (Get-ItemProperty $WinlogonPath).DefaultUserName
            $OrigionalSettings.DefaultDomainName = (Get-ItemProperty $WinlogonPath).DefaultDomainName
            $OrigionalSettings.DefaultPassword = (Get-ItemProperty $WinlogonPath).DefaultPassword
            $OrigionalSettings.AutoLogonCount = (Get-ItemProperty $WinlogonPath).AutoLogonCount
             
                # The winlogon logon banner settings.
            $OrigionalSettings.LegalNoticeCaption = (Get-ItemProperty $WinlogonPath).LegalNoticeCaption
            $OrigionalSettings.LegalNoticeText = (Get-ItemProperty $WinlogonPath).LegalNoticeText
             
                # The system policy logon banner settings.
            $OrigionalSettings.legalnoticecaption = (Get-ItemProperty $WinlogonBannerPolicyPath).legalnoticecaption
            $OrigionalSettings.legalnoticetext = (Get-ItemProperty $WinlogonBannerPolicyPath).legalnoticetext
             
            $OrigionalSettings | Export-Clixml -Depth 10 -Path $BackupFile
        }
         
            # Store the password securely.
        $lsaUtil = New-Object ComputerSystem.LSAutil -ArgumentList "DefaultPassword"
        $lsaUtil.SetSecret($decryptedPass)
 
            # Store the autologon registry settings.
        Set-ItemProperty -Path $WinlogonPath -Name AutoAdminLogon -Value $Enable -Force
 
        Set-ItemProperty -Path $WinlogonPath -Name DefaultUserName -Value $Username -Force
        Set-ItemProperty -Path $WinlogonPath -Name DefaultDomainName -Value $Domain -Force
 
        if ($AutoLogonCount) {
            Set-ItemProperty -Path $WinlogonPath -Name AutoLogonCount -Value $AutoLogonCount -Force
        } else {
            Remove-ItemProperty -Path $WinlogonPath -Name AutoLogonCount -ErrorAction SilentlyContinue
        }
 
        if ($RemoveLegalPrompt) {
            Set-ItemProperty -Path $WinlogonPath -Name LegalNoticeCaption -Value $null -Force
            Set-ItemProperty -Path $WinlogonPath -Name LegalNoticeText -Value $null -Force
             
            Set-ItemProperty -Path $WinlogonBannerPolicyPath -Name legalnoticecaption -Value $null -Force
            Set-ItemProperty -Path $WinlogonBannerPolicyPath -Name legalnoticetext -Value $null -Force
        }
    } catch {
        throw 'Failed to set auto logon. The error was: "{0}".' -f $_
    }
 
}
 
<#
    .SYNOPSIS
        Enables auto logon using the specified username and password.
 
    .PARAMETER  Username
        The username of the user to automatically logon as.
 
    .PARAMETER  Password
        The password for the user to automatically logon as.
         
    .PARAMETER  Domain
        The domain of the user to automatically logon as.
         
    .PARAMETER  AutoLogonCount
        The number of logons that auto logon will be enabled.
         
    .PARAMETER  RemoveLegalPrompt
        Removes the system banner to ensure interventionless logon.
         
    .PARAMETER  BackupFile
        If specified the existing settings such as the system banner text will be backed up to the specified file.
 
    .EXAMPLE
        PS C:\> Set-SecureAutoLogon `
                -Username $env:USERNAME `
                -Password (Read-Host -AsSecureString) `
                -AutoLogonCount 2 `
                -RemoveLegalPrompt `
                -BackupFile "C:\WinlogonBackup.xml"
 
    .INPUTS
        None.
 
    .OUTPUTS
        None.
 
    .NOTES
        Revision History:
            2011-04-19 : Andy Arismendi - Created.
            2011-09-29 : Andy Arismendi - Changed to use LSA secrets to store password securely.
 
    .LINK
        http://support.microsoft.com/kb/324737
         
    .LINK
        http://msdn.microsoft.com/en-us/library/aa378750
 
#>

View File

@ -0,0 +1,87 @@
# Read EdgeChromium Bookmarks (JSON File) and Export/Backup to HTML File
# Gunnar Haslinger, 30.10.2019 - tested width EdgeChromium Beta 78
# SCCMOG - Richie Schuster, 2022.02.08 - Tested with Edge Chromium 98.0.1108.43 - https://github.com/SCCMOG - SCCMOG.com
# Path to EdgeChromium Bookmarks File and HTML Export
$JSON_File_Path = "$($env:localappdata)\Microsoft\Edge\User Data\Profile 1\Bookmarks"
$ExportedTime = Get-Date -Format 'yyyy-MM-dd_HH.mm'
$HTML_File_Root = $DesktopPath = [Environment]::GetFolderPath("Desktop")
$HTML_File_Path = "$($HTML_File_Root)\EdgeChromium-Bookmarks.backup_$($ExportedTime).html"
# Reference-Timestamp needed to convert Timestamps of JSON (Milliseconds / Ticks since LDAP / NT epoch 01.01.1601 00:00:00 UTC) to Unix-Timestamp (Epoch)
$Date_LDAP_NT_EPOCH = Get-Date -Year 1601 -Month 1 -Day 1 -Hour 0 -Minute 0 -Second 0
if (!(Test-Path -Path $JSON_File_Path -PathType Leaf)) {
throw "Source-File Path $JSON_File_Path does not exist!"
}
if (!(Test-Path -Path $HTML_File_Root -PathType Container)) {
throw "Destination-Root Path $HTML_File_Root does not exist!"
}
# ---- HTML Header ----
$BookmarksHTML_Header = @'
<!DOCTYPE NETSCAPE-Bookmark-file-1>
<!-- This is an automatically generated file.
It will be read and overwritten.
DO NOT EDIT! -->
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<TITLE>Bookmarks</TITLE>
<H1>Bookmarks</H1>
<DL><p>
'@
$BookmarksHTML_Header | Out-File -FilePath $HTML_File_Path -Force -Encoding utf8
# ---- Enumerate Bookmarks Folders ----
Function Get-BookmarkFolder {
[cmdletbinding()]
Param(
[Parameter(Position = 0, ValueFromPipeline = $True)]
$Node
)
function ConvertTo-UnixTimeStamp {
param(
[Parameter(Position = 0, ValueFromPipeline = $True)]
$TimeStamp
)
$date = [Decimal] $TimeStamp
if ($date -gt 0) {
$date = $Date_LDAP_NT_EPOCH.AddTicks($date * 10)
$date = $date | Get-Date -UFormat %s
$unixTimeStamp = [int][double]::Parse($date) - 1
return $unixTimeStamp
}
}
if ($node.name -like "Favorites Bar") {
$DateAdded = [Decimal] $node.date_added | ConvertTo-UnixTimeStamp
$DateModified = [Decimal] $node.date_modified | ConvertTo-UnixTimeStamp
" <DT><H3 FOLDED ADD_DATE=`"$($DateAdded)`" LAST_MODIFIED=`"$($DateModified)`" PERSONAL_TOOLBAR_FOLDER=`"true`">$($node.name )</H3>" | Out-File -FilePath $HTML_File_Path -Append -Force -Encoding utf8
" <DL><p>" | Out-File -FilePath $HTML_File_Path -Append -Force -Encoding utf8
}
foreach ($child in $node.children) {
$DateAdded = [Decimal] $child.date_added | ConvertTo-UnixTimeStamp
$DateModified = [Decimal] $child.date_modified | ConvertTo-UnixTimeStamp
if ($child.type -eq 'folder') {
" <DT><H3 ADD_DATE=`"$($DateAdded)`" LAST_MODIFIED=`"$($DateModified)`">$($child.name)</H3>" | Out-File -FilePath $HTML_File_Path -Append -Force -Encoding utf8
" <DL><p>" | Out-File -FilePath $HTML_File_Path -Append -Force -Encoding utf8
Get-BookmarkFolder $child # Recursive call in case of Folders / SubFolders
" </DL><p>" | Out-File -FilePath $HTML_File_Path -Append -Force -Encoding utf8
}
else {
# Type not Folder => URL
" <DT><A HREF=`"$($child.url)`" ADD_DATE=`"$($DateAdded)`">$($child.name)</A>" | Out-File -FilePath $HTML_File_Path -Append -Encoding utf8
}
}
if ($node.name -like "Favorites Bar") {
" </DL><p>" | Out-File -FilePath $HTML_File_Path -Append -Force -Encoding utf8
}
}
# ---- Convert the JSON Contens (recursive) ----
$data = Get-content $JSON_File_Path -Encoding UTF8 | out-string | ConvertFrom-Json
$sections = $data.roots.PSObject.Properties | Select-Object -ExpandProperty name
ForEach ($entry in $sections) {
$data.roots.$entry | Get-BookmarkFolder
}
# ---- HTML Footer ----
'</DL>' | Out-File -FilePath $HTML_File_Path -Append -Force -Encoding utf8

View File

@ -0,0 +1,41 @@
###Certain elements of Windows 11, such as the News and interests widget, open links in Edge regardless of which browser is set as default. This is done through the use of edge:// protocol links. ###
###This script intercepts URIs that force-open web links in Microsoft Edge and redirects it to the system's default web browser ###
###To revert to Edge as the default handler for web searches, all you have to do is run the script again. ###
###Projects page: https://github.com/AveYo/fox/blob/main/ChrEdgeFkOff.cmd
@(set "0=%~f0"^)#) & powershell -nop -c iex([io.file]::ReadAllText($env:0)) & exit/b
#:: double-click to run or just copy-paste into powershell - it's a standalone hybrid script
#::
#:: ChrEdgeFkOff - make start menu web search or widgets links open in your chosen default browser - by AveYo
#:: v2.0 only redirects microsoft-edge: links, no longer blocks msedge.exe (with a junction trick)
#::
$_Paste_in_Powershell = {
$vbs = @'
' ChrEdgeFkOff - make start menu web search or widgets links open in your chosen default browser - by AveYo
Dim C, A: For Each i in WScript.Arguments: A = A&" """&i&"""": Next
Set W = CreateObject("WScript.Shell"): Set E = W.Environment( "Process" ): E("CL") = A : C = ""
C = C & "$U = get-itemproperty 'HKCU:\SOFTWARE\Microsoft\Windows\Shell\Associations\UrlAssociations\https\UserChoice' 'ProgID';"
C = C & "$C = get-itemproperty -lit $('Registry::HKCR\' + $U.ProgID + '\shell\open\command') '(Default)' -ea 0;"
C = C & "$UserChoice = ($C.'(Default)'-split [char]34,3)[1]; $MSE = $env:CL -replace '\\Microsoft\\Edge', '\Microsoft\ChrEdge';"
C = C & "if ($UserChoice -like '*Microsoft\Edge\Application\msedge.exe*') {iex('&'+$MSE); return 2};"
C = C & "if ($env:CL -notlike '*microsoft-edge:*') {iex('&'+$MSE); return 1};"
C = C & "start $UserChoice $([uri]::unescapedatastring(($env:CL-split'(?=http[s]?)')[1] -replace [char]34)+' '); return 0"
W.Run "powershell -nop -c " & C, 0, False
'@
$DATA = [Environment]::GetFolderPath('CommonApplicationData'); $file = join-path $DATA "ChrEdgeFkOff.vbs"
$PROF = [Environment]::GetFolderPath('ProgramFiles'+('x86','')[![Environment]::Is64BitOperatingSystem])
$EDGE = join-path $PROF 'Microsoft\Edge\'; $CREDGE = join-path $PROF 'Microsoft\ChrEdge\'
$IFEO = 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\msedge.exe'
if (test-path "$IFEO\0") {
remove-item "$IFEO\0" -rec -force -ea 0 >''; remove-itemproperty $IFEO 'Debugger' -force -ea 0 >''
del $file -force -ea 0 >''; rmdir $CREDGE -rec -force -ea 0 >'';
write-host -fore 0xf -back 0xd "`n ChrEdgeFkOff v2.0 [REMOVED] run again to install "
} else {
new-item "$IFEO\0" -force -ea 0 >''; remove-itemproperty $IFEO 'Debugger' -force -ea 0 >''
[io.file]::WriteAllText($file, $vbs) >''; start -nonew cmd "/d/x/r mklink /J ""$CREDGE"" ""$EDGE"" >nul"
set-itemproperty $IFEO 'UseFilter' 1 -type dword -force -ea 0
set-itemproperty "$IFEO\0" 'FilterFullPath' $(join-path $PROF 'Microsoft\Edge\Application\msedge.exe') -force -ea 0
set-itemproperty "$IFEO\0" 'Debugger' "wscript $file //B //T:5" -force -ea 0
write-host -fore 0xf -back 0x2 "`n ChrEdgeFkOff v2.0 [INSTALLED] run again to remove " } ; timeout /t 5
} ; start -verb runas powershell -args "-nop -c & {`n`n$($_Paste_in_Powershell-replace'"','\"')}"
$_Press_Enter
#::

54
mods/clean-up_windows.ps1 Normal file
View File

@ -0,0 +1,54 @@
Requires -RunAsAdministrator
$SageSet = "StateFlags0099"
$Base = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\"
$Locations= @(
"Active Setup Temp Folders"
"BranchCache"
"Downloaded Program Files"
"GameNewsFiles"
"GameStatisticsFiles"
"GameUpdateFiles"
"Internet Cache Files"
"Memory Dump Files"
"Offline Pages Files"
"Old ChkDsk Files"
"D3D Shader Cache"
"Delivery Optimization Files"
"Diagnostic Data Viewer database files"
#"Previous Installations"
#"Recycle Bin"
"Service Pack Cleanup"
"Setup Log Files"
"System error memory dump files"
"System error minidump files"
"Temporary Files"
"Temporary Setup Files"
"Temporary Sync Files"
"Thumbnail Cache"
"Update Cleanup"
"Upgrade Discarded Files"
"User file versions"
"Windows Defender"
"Windows Error Reporting Archive Files"
"Windows Error Reporting Queue Files"
"Windows Error Reporting System Archive Files"
"Windows Error Reporting System Queue Files"
"Windows ESD installation files"
"Windows Upgrade Log Files"
)
# -ea silentlycontinue will supress error messages
ForEach($Location in $Locations) {
Set-ItemProperty -Path $($Base+$Location) -Name $SageSet -Type DWORD -Value 2 -ea silentlycontinue | Out-Null
}
# Do the clean-up. Have to convert the SageSet number
$Args = "/sagerun:$([string]([int]$SageSet.Substring($SageSet.Length-4)))"
Start-Process -Wait "$env:SystemRoot\System32\cleanmgr.exe" -ArgumentList $Args
# Remove the Stateflags
ForEach($Location in $Locations)
{
Remove-ItemProperty -Path $($Base+$Location) -Name $SageSet -Force -ea silentlycontinue | Out-Null
}

View File

@ -0,0 +1,2 @@
Import-Module Microsoft.PowerShell.Management
Get-EventLog -LogName * | ForEach { Clear-EventLog $_.Log }

31
mods/disable-services.ps1 Normal file
View File

@ -0,0 +1,31 @@
###- Connected User Experiences and Telemetry
###- FAX
###- AllJoyn Router Service
###- Program Compatibility Assistant Service
###- Device Management Wireless Application Protocol (WAP) Push message Routing Service
###- Remote Registry
###- Windows Media Player Network Sharing Service
###- Windows Image Acquisition
###- Xbox Services
###- Windows Network Data Usage Monitor###
$services = @(
"DiagTrack" # Connected User Experiences and Telemetry. If you're concerned with privacy and don't want to send usage data to Microsoft for analysis, then this service is one to go.
"fxssvc.exe" # Fax. As its name suggests, this is a service needed only if you want to send and receive faxes.
"AxInstSV" # AllJoyn Router Service. This is a service that lets you connect Windows to the Internet of Things and communicate with devices such as smart TVs, refrigerators, light bulbs, thermostats, etc.
"PcaSvc" # Program Compatibility Assistant Service (Unless you're still using legacy software on your Windows 11 PC, you can easily turn off this service. This service lets you detect software incompatibility issues for old games and software. But if you're using programs and apps built for Window 11, go ahead and disable it.)
"dmwappushservice" # Device Management Wireless Application Protocol (WAP) Push message Routing Service. This service is another service that helps to collect and send user data to Microsoft. Strengthen your privacy by disabling it, it is recommended that you do so.
"Remote Registry" # Remote Registry. This service lets any user access and modify the Windows registry. It is highly recommended that you disable this service for security purposes. Your ability to edit the registry locally (or as admin) won't be affected.
"WMPNetworkSvc" # Windows Media Player Network Sharing Service
"StiSvc" # Windows Image Acquisition. This service is important for people who connect scanners and digital cameras to their PC. But if you don't have one of those, or are never planning on getting one, disable it by all means.
"XblAuthManager" # Xbox Live Auth Manager. If you don't use Xbox app to play games, then you don't need any of the Xbox services.
"XblGameSave" # Xbox Live Game Save Service
"XboxNetApiSvc" # Xbox Live Networking Service
"ndu" # Windows Network Data Usage Monitor
#"wisvc" # Windows Insider Service. Disable this service only if you're not in the Windows Insider program. Currently, as Windows 11 is only available through it, you shouldn't disable it.
)
foreach ($service in $services) {
Write-Output "Trying to disable $service"
Get-Service -Name $service | Set-Service -StartupType Disabled
}

104
mods/modsApp2.xml Normal file
View File

@ -0,0 +1,104 @@
<BloatyNosy>
<Mod>
<id>Update signature file</id>
<description>All features offered here are obtained from this file</description>
<dev>Builtbybel</dev>
<uri>https://raw.githubusercontent.com/builtbybel/BloatyNosy/main/mods/modsApp2.xml</uri>
</Mod>
<Mod>
<id>Backup Edge Bookmarks</id>
<description>Mod to Backup Edge Chromium Bookmarks as JSON-to-HTML to Desktop</description>
<dev>gunnarhaslinger</dev>
<uri>https://raw.githubusercontent.com/builtbybel/BloatyNosy/main/mods/Backup%20Edge%20Bookmarks.ini,https://raw.githubusercontent.com/builtbybel/BloatyNosy/main/mods/backup-edge_chromium-bookmarks.ps1</uri>
</Mod>
<Mod>
<id>Clear event logs</id>
<description>This mod will clear System events and errors stored in event logs</description>
<dev>Builtbybel</dev>
<uri>https://raw.githubusercontent.com/builtbybel/BloatyNosy/main/mods/Clear%20event%20logs.ini,https://raw.githubusercontent.com/builtbybel/BloatyNosy/main/mods/clear-event_logs.ps1</uri>
</Mod>
<Mod>
<id>Chris Titus Tech's Windows Utility - Install Programs, Tweaks, Fixes, and Updates</id>
<description>Debloating Script from Chris Titus Tech. It has a few extras that complement BloatyNosy well and works for both windows 10 and 11</description>
<dev>Chris Titus</dev>
<uri>https://raw.githubusercontent.com/builtbybel/BloatyNosy/main/mods/Chris%20Titus%20WinUtil.ini,https://raw.githubusercontent.com/builtbybel/BloatyNosy/main/mods/ChrisTitusApp.ps1</uri>
</Mod>
<Mod>
<id>Recommended OOBE preset file for BloatyNosy</id>
<description>Goto main page > Kebap menu > Import profile (from apps directory of BloatyNosy) to import this configuration</description>
<dev>Builtbybel</dev>
<uri>https://raw.githubusercontent.com/builtbybel/BloatyNosy/main/assets/OOBE_Profile.bloos</uri>
</Mod>
<Mod>
<id>Gaming preset file for BloatyNosy</id>
<description>Recommended settings for a better Gaming Experience</description>
<dev>Builtbybel</dev>
<uri>https://raw.githubusercontent.com/builtbybel/BloatyNosy/main/assets/Gaming_Profile.bloos</uri>
</Mod>
<Mod>
<id>Debloat preset file for BloatyNosy</id>
<description>This will load a fast debloating preset that will allow you to automatically debloat your system</description>
<dev>Builtbybel</dev>
<uri>https://raw.githubusercontent.com/builtbybel/BloatyNosy/main/assets/Just-Debloat.bloos</uri>
</Mod>
<Mod>
<id>Offline packages template for InstaPackage</id>
<description>Allows creating custom installation packages. To do this, open file "InstaPackage.app" in apps directory of BloatyNosy with any editor and add your Winget packages. (Support from version 0.32)</description>
<dev>Builtbybel</dev>
<uri>https://raw.githubusercontent.com/builtbybel/BloatyNosy/main/assets/InstaPackage.app</uri>
</Mod>
<Mod>
<id>Bypass Edge default handler</id>
<description>This mod will bypass Microsoft Edge default handler</description>
<dev>https://github.com/AveYo/fox/blob/main/ChrEdgeFkOff.cmd</dev>
<uri>https://raw.githubusercontent.com/builtbybel/BloatyNosy/main/mods/Bypass%20Edge%20default%20handler.ini,https://raw.githubusercontent.com/builtbybel/BloatyNosy/main/mods/bypass-edge_default_handler_web.ps1</uri>
</Mod>
<Mod>
<id>Clean up Windows </id>
<description>This mod will use classic Disk clean-up utility aka Cleanmgr.exe to clear unnecessary files from your computer's hard disk </description>
<dev>Builtbybel</dev>
<uri>https://raw.githubusercontent.com/builtbybel/BloatyNosy/main/mods/Clean-up%20Windows.ini,https://raw.githubusercontent.com/builtbybel/BloatyNosy/main/mods/clean-up_windows.ps1</uri>
</Mod>
<Mod>
<id>Remove telemetry</id>
<description>This will install mods to remove telemetry, disable services etc. </description>
<dev>Builtbybel</dev>
<uri>https://raw.githubusercontent.com/builtbybel/BloatyNosy/main/mods/Disable%20services.ini,https://raw.githubusercontent.com/builtbybel/BloatyNosy/main/mods/disable-services.ps1</uri>
</Mod>
<Mod>
<id>Remove OneDrive</id>
<description>This mod will remove and disable OneDrive integration.</description>
<dev>W4RH4WK</dev>
<uri>https://raw.githubusercontent.com/builtbybel/BloatyNosy/main/mods/Remove%20OneDrive.ini,https://raw.githubusercontent.com/builtbybel/BloatyNosy/main/mods/remove_onedrive.ps1</uri>
</Mod>
<Mod>
<id>Reinstall all in-box apps</id>
<description>This mod will reinstall all in-box apps in a single step.</description>
<dev>Builtbybel</dev>
<uri>https://raw.githubusercontent.com/builtbybel/BloatyNosy/main/mods/Restore%20In-box%20apps.ini,https://raw.githubusercontent.com/builtbybel/BloatyNosy/main/mods/restore-inbox-apps.ps1</uri>
</Mod>
<Mod>
<id>Enable Ultimate Peformance Mode</id>
<description>This mod will add an "Ultimate Performance" power plan option to energy options.</description>
<dev>Builtbybel</dev>
<uri>https://raw.githubusercontent.com/builtbybel/BloatyNosy/main/mods/Ultimate%20Performance%20Mode.ini,https://raw.githubusercontent.com/builtbybel/BloatyNosy/main/mods/ultimate_performance-mode.ps1</uri>
</Mod>
<Mod>
<id>AutoLogon </id>
<description>This mod will enable secure Windows AutoLogon</description>
<dev>Andy Arismendi - Created.</dev>
<uri>https://raw.githubusercontent.com/builtbybel/BloatyNosy/main/mods/AutoLogon.ini,https://raw.githubusercontent.com/builtbybel/BloatyNosy/main/mods/autologon.ps1</uri>
</Mod>
<Mod>
<id>Update Microsoft Store apps</id>
<description>This mod will run an update check for Microsoft Store apps.</description>
<dev>Builtbybel</dev>
<uri>https://raw.githubusercontent.com/builtbybel/BloatyNosy/main/mods/Update%20Store%20apps.ini,https://raw.githubusercontent.com/builtbybel/BloatyNosy/main/mods/update_store-apps.ps1</uri>
</Mod>
<Mod>
<id>Remove telemetry of third-party apps</id>
<description>This mod will block and disable telemetry features of third party apps, e.g. CCleaner, Mozilla Firefox, Google Chrome etc.</description>
<dev>Builtbybel</dev>
<uri>https://raw.githubusercontent.com/builtbybel/BloatyNosy/main/mods/Remove%20telemetry%20of%20third-party%20apps.ini,https://raw.githubusercontent.com/builtbybel/BloatyNosy/main/mods/remove_telemetry-third-party-apps.ps1</uri>
</Mod>
</BloatyNosy>

59
mods/remove_onedrive.ps1 Normal file
View File

@ -0,0 +1,59 @@
Import-Module -DisableNameChecking $PSScriptRoot\..\lib\force-mkdir.psm1
Import-Module -DisableNameChecking $PSScriptRoot\..\lib\take-own.psm1
Write-Output "Kill OneDrive process"
taskkill.exe /F /IM "OneDrive.exe"
taskkill.exe /F /IM "explorer.exe"
Write-Output "Remove OneDrive"
if (Test-Path "$env:systemroot\System32\OneDriveSetup.exe") {
& "$env:systemroot\System32\OneDriveSetup.exe" /uninstall
}
if (Test-Path "$env:systemroot\SysWOW64\OneDriveSetup.exe") {
& "$env:systemroot\SysWOW64\OneDriveSetup.exe" /uninstall
}
Write-Output "Removing OneDrive leftovers"
Remove-Item -Recurse -Force -ErrorAction SilentlyContinue "$env:localappdata\Microsoft\OneDrive"
Remove-Item -Recurse -Force -ErrorAction SilentlyContinue "$env:programdata\Microsoft OneDrive"
Remove-Item -Recurse -Force -ErrorAction SilentlyContinue "$env:systemdrive\OneDriveTemp"
# check if directory is empty before removing:
If ((Get-ChildItem "$env:userprofile\OneDrive" -Recurse | Measure-Object).Count -eq 0) {
Remove-Item -Recurse -Force -ErrorAction SilentlyContinue "$env:userprofile\OneDrive"
}
Write-Output "Disable OneDrive via Group Policies"
force-mkdir "HKLM:\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows\OneDrive"
Set-ItemProperty "HKLM:\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows\OneDrive" "DisableFileSyncNGSC" 1
Write-Output "Remove Onedrive from explorer sidebar"
New-PSDrive -PSProvider "Registry" -Root "HKEY_CLASSES_ROOT" -Name "HKCR"
mkdir -Force "HKCR:\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}"
Set-ItemProperty "HKCR:\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" "System.IsPinnedToNameSpaceTree" 0
mkdir -Force "HKCR:\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}"
Set-ItemProperty "HKCR:\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" "System.IsPinnedToNameSpaceTree" 0
Remove-PSDrive "HKCR"
# Thank you Matthew Israelsson
Write-Output "Removing run hook for new users"
reg load "hku\Default" "C:\Users\Default\NTUSER.DAT"
reg delete "HKEY_USERS\Default\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "OneDriveSetup" /f
reg unload "hku\Default"
Write-Output "Removing startmenu entry"
Remove-Item -Force -ErrorAction SilentlyContinue "$env:userprofile\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\OneDrive.lnk"
Write-Output "Removing scheduled task"
Get-ScheduledTask -TaskPath '\' -TaskName 'OneDrive*' -ea SilentlyContinue | Unregister-ScheduledTask -Confirm:$false
Write-Output "Restarting explorer"
Start-Process "explorer.exe"
Write-Output "Waiting for explorer to complete loading"
Start-Sleep 10
Write-Output "Removing additional OneDrive leftovers"
foreach ($item in (Get-ChildItem "$env:WinDir\WinSxS\*onedrive*")) {
Takeown-Folder $item.FullName
Remove-Item -Recurse -Force $item.FullName
}

View File

@ -0,0 +1,68 @@
###This is a plugin template which will block and disable telemetry features of the following apps: ###
###- Block Google Chrome Software Reporter Tool
# The Software Reporter Tool (also known as Chrome Cleanup Tool and Software Removal Tool, the executable file is software_reporter_tool.exe), is a tool that Google distributes with the Google Chrome web browser.
# It is a part of Google Chrome's Clean up Computer feature which scans your computer for harmful software. If this tool finds any harmful app or extension which can cause problems, it removes them from your computer.
# Anything that interferes with a user's browsing experience may be removed by the tool.
# Its disadvantages, high CPU load or privacy implications, may be reason enough to block it from running. This script will disable the software_reporter_tool.exe in a more cleaner way using Image File Execution Options Debugger value.
# Setting this value to an executable designed to kill processes disables it. Chrome won't re-enable it with almost each update. Next to this, it will also be disabled per default in Registry.
New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Google\Chrome" -Name ChromeCleanupEnabled -Type String -Value 0 -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Google\Chrome" -Name ChromeCleanupReportingEnabled -Type String -Value 0 -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Google\Chrome" -Name MetricsReportingEnabled -Type String -Value 0 -Force
# This will disable the software_reporter_tool.exe in a more cleaner way using Image File Execution Options Debugger value.
# Setting this value to an executable designed to kill processes disables it. Chrome won't re-enable it with almost each update.
If (!(Test-Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\software_reporter_tool.exe")) {
New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\software_reporter_tool.exe" -Force | Out-Null
Write-Output "Google Chrome Software Reporter Tool has been successfully blocked."
}
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\software_reporter_tool.exe" -Name "Debugger" -Type String -Value %windir%\System32\taskkill.exe -Force
###- Disable Mozilla Firefox telemetry
# Firefox 75 comes with a new telemetry agent that sends information about your operating system and your default browser to Firefox every day.
# The information collected is sent as a background telemetry ping every 24 hours to Mozilla.
# Mozilla has introduced a Windows group policy that prevents the default-browser-agent.exe executable from sending your default browser info.
New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Mozilla\Firefox" -Name DisableTelemetry -Type DWord -Value 1 -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Mozilla\Firefox" -Name DisableDefaultBrowserAgent -Type DWord -Value 1 -Force
###- Disable CCleaner Monitoring
# Since Avast acquired Piriform, the popular system cleaning software CCleaner has become bloated with malware, bundled PUPs(potentially unwanted programs), and an alarming amount of pop-up ads.
# If you're highly dependent on CCleaner you can disable with this script the CCleaner Active Monitoring ("Active Monitoring" feature has been renamed with v5.46 to "Smart Cleaning"),
# automatic Update check and download function, trial offer notifications, the new integrated Software Updater and the privacy option to "Help Improve CCleaner by sending anonymous usage data".
Stop-Process -name CCleaner*
New-ItemProperty -Path "HKCU:\Software\Piriform\CCleaner" -Name Monitoring -Type String -Value 0 -Force
New-ItemProperty -Path "HKCU:\Software\Piriform\CCleaner" -Name HelpImproveCCleaner -Type String -Value 0 -Force
New-ItemProperty -Path "HKCU:\Software\Piriform\CCleaner" -Name SystemMonitoring -Type String -Value 0 -Force
New-ItemProperty -Path "HKCU:\Software\Piriform\CCleaner" -Name UpdateAuto -Type String -Value 0 -Force
New-ItemProperty -Path "HKCU:\Software\Piriform\CCleaner" -Name UpdateCheck -Type String -Value 0 -Force
New-ItemProperty -Path "HKCU:\Software\Piriform\CCleaner" -Name CheckTrialOffer -Type String -Value 0 -Force
New-ItemProperty -Path "HKLM:\Software\Piriform\CCleaner" -Name (Cfg)GetIpmForTrial -Type String -Value 0 -Force
New-ItemProperty -Path "HKLM:\Software\Piriform\CCleaner" -Name (Cfg)SoftwareUpdater -Type String -Value 0 -Force
New-ItemProperty -Path "HKLM:\Software\Piriform\CCleaner" -Name (Cfg)SoftwareUpdaterIpm -Type String -Value 0 -Force
Get-ScheduledTask -TaskName "CCleaner Update" | Disable-ScheduledTask
###- Disable Dropbox Update service
# This will disable Dropbox auto update service
Get-ScheduledTask -TaskName "DropboxUpdateTaskMachineCore" | Disable-ScheduledTask
Get-ScheduledTask -TaskName "DropboxUpdateTaskMachineUA" | Disable-ScheduledTask
###- Disable Google Update service
# This will disable Google update service
Get-ScheduledTask -TaskName "GoogleUpdateTaskMachineCore" | Disable-ScheduledTask
Get-ScheduledTask -TaskName "GoogleUpdateTaskMachineUA" | Disable-ScheduledTask
###- Disable Media Player telemetry
# This will disable Media Player telemetry
New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\MediaPlayer\Preferences" -Name UsageTracking -Type DWord -Value 0 -Force
New-ItemProperty -Path "HKCU:\Software\Policies\Microsoft\WindowsMediaPlayer" -Name PreventCDDVDMetadataRetrieval -Type DWord -Value 1 -Force
New-ItemProperty -Path "HKCU:\Software\Policies\Microsoft\WindowsMediaPlayer" -Name PreventMusicFileMetadataRetrieval -Type DWord -Value 1 -Force
New-ItemProperty -Path "HKCU:\Software\Policies\Microsoft\WindowsMediaPlayer" -Name PreventRadioPresetsRetrieval -Type DWord -Value 0 -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\WMDRM" -Name DisableOnline -Type DWord -Value 1 -Force
Set-Service WMPNetworkSvc -StartupType Disabled
###- Disable Microsoft Office telemetry
# This will disable Microsoft Office telemetry (supports Microsoft Office 2013 and 2016)
Get-ScheduledTask -TaskName "OfficeTelemetryAgentFallBack2016" | Disable-ScheduledTask
Get-ScheduledTask -TaskName "OfficeTelemetryAgentLogOn2016" | Disable-ScheduledTask
New-ItemProperty -Path "HKCU:\SOFTWARE\Policies\Microsoft\Office\15.0\osm" -Name Enablelogging -Type DWord -Value 0 -Force
New-ItemProperty -Path "HKCU:\SOFTWARE\Policies\Microsoft\Office\15.0\osm" -Name EnableUpload -Type DWord -Value 0 -Force
New-ItemProperty -Path "HKCU:\SOFTWARE\Policies\Microsoft\Office\16.0\osm" -Name Enablelogging -Type DWord -Value 0 -Force
New-ItemProperty -Path "HKCU:\SOFTWARE\Policies\Microsoft\Office\16.0\osm" -Name EnableUpload -Type DWord -Value 0 -Force

View File

@ -0,0 +1 @@
Get-AppxPackage -allusers | foreach {Add-AppxPackage -register "$($_.InstallLocation)\appxmanifest.xml" -DisableDevelopmentMode}

View File

@ -0,0 +1,15 @@
[reflection.assembly]::loadwithpartialname("System.Windows.Forms") | Out-Null
$msgBoxInput = [System.Windows.Forms.MessageBox]::Show('Do you want to enable the Ultimate Performance power plan?','Tweakomatic','YesNo','Question')
switch ($msgBoxInput) {
'Yes' {
powercfg -duplicatescheme e9a42b02-d5df-448d-aa00-03f14749eb61
[System.Windows.Forms.MessageBox]::Show('Power plan has been successfully enabled. Now open Settings and navigate to System > Power & sleep > Additional Power Settings and enable the Ultimate Performance power plan.')
}
'No'{}
}

View File

@ -0,0 +1,4 @@
$namespaceName = "root\cimv2\mdm\dmmap"
$className = "MDM_EnterpriseModernAppManagement_AppManagement01"
$wmiObj = Get-WmiObject -Namespace $namespaceName -Class $className
$result = $wmiObj.UpdateScanMethod()