From 29bba81164b03e78b0e6035be2606e5c83ccd61c Mon Sep 17 00:00:00 2001 From: Max Krieger Date: Tue, 28 Jan 2025 08:48:24 +0100 Subject: [PATCH] Update readme.md --- msoffice-removal-tool.ps1 | 36 ++++++++++++++++++------------------ readme.md | 21 +++++++++++---------- 2 files changed, 29 insertions(+), 28 deletions(-) diff --git a/msoffice-removal-tool.ps1 b/msoffice-removal-tool.ps1 index a3bf3da..a5f5571 100644 --- a/msoffice-removal-tool.ps1 +++ b/msoffice-removal-tool.ps1 @@ -25,9 +25,8 @@ Just output on screen .NOTES Version: 1.2 - Author: Singleton Factory GmbH - Creation Date: 2023-01-18 - Purpose/Change: New company, new luck + Author: Heko Büroservice GmbH & Co. KG. + Creation Date: 2025-01-28 .EXAMPLE .\msoffice-removal-tool.ps1 -InstallOffice365 -SupressReboot #> @@ -175,23 +174,24 @@ Function Invoke-RebootInSeconds($Seconds) { } Function Set-CurrentStage($StageValue) { - if (-not (Test-Path "HKLM:\Software\OEM\Singleton-Factory-GmbH\M365\Install")) { - New-Item -Path "HKLM:\Software\OEM\Singleton-Factory-GmbH\M365\Install" -Force | Out-Null + if (-not (Test-Path "HKLM:\Software\OEM\Heko-Bueroservice-GmbH\M365\Install")) { + New-Item -Path "HKLM:\Software\OEM\Heko-Bueroservice-GmbH\M365\Install" -Force | Out-Null } - New-ItemProperty -Path "HKLM:\Software\OEM\Singleton-Factory-GmbH\M365\Install" -Name "CurrentStage" -Value $StageValue -PropertyType String -Force | Out-Null + New-ItemProperty -Path "HKLM:\Software\OEM\Heko-Bueroservice-GmbH\M365\Install" -Name "CurrentStage" -Value $StageValue -PropertyType String -Force | Out-Null } -Function Invoke-Intro { -Write-Host " __ _ _ _ ___ _ " -Write-Host " / _(_)_ __ __ _| | ___| |_ ___ _ __ / __\_ _ ___| |_ ___ _ __ _ _ " -Write-Host " \ \| | '_ \ / _' | |/ _ \ __/ _ \| '_ \ / _\/ _' |/ __| __/ _ \| '__| | | |" -Write-Host " _\ \ | | | | (_| | | __/ || (_) | | | | / / | (_| | (__| || (_) | | | |_| |" -Write-Host " \__/_|_| |_|\__, |_|\___|\__\___/|_| |_| \/ \__,_|\___|\__\___/|_| \__, |" -Write-Host " |___/ |___/ " -Write-Host "Microsoft Office Removal Tool" -Write-Host "by Aaron Viehl (Singleton Factory GmbH)" -Write-Host "singleton-factory.de" +Function Invoke-Intro { +Write-Host " _ _ _ ______ _ _ _ " +Write-Host "| | | | | | | ___ (_) (_) (_) " +Write-Host "| |_| | ___| | _____ | |_/ /_ _ _ __ ___ ___ ___ _ ____ ___ ___ ___ " +Write-Host "| _ |/ _ \ |/ / _ \ | ___ \ | | | '__/ _ \/ __|/ _ \ '__\ \ / / |/ __/ _ \" +Write-Host "| | | | __/ < (_) | | |_/ / |_| | | | (_) \__ \ __/ | \ V /| | (_| __/" +Write-Host "\_| |_/\___|_|\_\___/ \____/ \__,_|_| \___/|___/\___|_| \_/ |_|\___\___|" Write-Host "" +Write-Host "Microsoft Office Removal Tool" +Write-Host "by Max Krieger" +Write-Host "heko-bs.de" +Write-Host "" } #-----------------------------------------------------------[Execution]------------------------------------------------------------ @@ -209,8 +209,8 @@ if (-Not $Force) { Invoke-Intro # Check if there is a stage to resume if (-not ($RunAgain)) { - if (Test-Path "HKLM:\Software\OEM\Singleton-Factory-GmbH\M365\Install") { - $CurrentStageValue = (Get-ItemProperty "HKLM:\Software\OEM\Singleton-Factory-GmbH\M365\Install").CurrentStage + if (Test-Path "HKLM:\Software\OEM\Heko-Bueroservice-GmbH\M365\Install") { + $CurrentStageValue = (Get-ItemProperty "HKLM:\Software\OEM\Heko-Bueroservice-GmbH\M365\Install").CurrentStage Switch ($CurrentStageValue) { 1 { Write-Host "Resuming Stage 1: Uninstalling Office ..." diff --git a/readme.md b/readme.md index 0a4c8e9..8042cc7 100644 --- a/readme.md +++ b/readme.md @@ -1,16 +1,17 @@ # Microsoft Office Removal Tool ```plain - __ _ _ _ ___ _ -/ _(_)_ __ __ _| | ___| |_ ___ _ __ / __\_ _ ___| |_ ___ _ __ _ _ -\ \| | '_ \ / _` | |/ _ \ __/ _ \| '_ \ / _\/ _` |/ __| __/ _ \| '__| | | | -_\ \ | | | | (_| | | __/ || (_) | | | | / / | (_| | (__| || (_) | | | |_| | -\__/_|_| |_|\__, |_|\___|\__\___/|_| |_| \/ \__,_|\___|\__\___/|_| \__, | - |___/ |___/ + _ _ _ ______ _ _ _ +| | | | | | | ___ (_) (_) (_) +| |_| | ___| | _____ | |_/ /_ _ _ __ ___ ___ ___ _ ____ ___ ___ ___ +| _ |/ _ \ |/ / _ \ | ___ \ | | | '__/ _ \/ __|/ _ \ '__\ \ / / |/ __/ _ \ +| | | | __/ < (_) | | |_/ / |_| | | | (_) \__ \ __/ | \ V /| | (_| __/ +\_| |_/\___|_|\_\___/ \____/ \__,_|_| \___/|___/\___|_| \_/ |_|\___\___| + Microsoft Office Removal Tool -by Aaron Viehl (Singleton Factory GmbH) -singleton-factory.de +by Max Krieger +heko-bs.de ``` ## Synopsis @@ -40,7 +41,7 @@ By using `-UseSetupRemoval` the Office365 setup method will be used. ## Stage mechanism -To make sure that the program will only do the necessary parts a _stage mechanism_ is builtin. After every stage a registry value will be written to ``HKLM:\Software\OEM\Singleton-Factory-GmbH\M365\Install\CurrentStage`` +To make sure that the program will only do the necessary parts a _stage mechanism_ is builtin. After every stage a registry value will be written to ``HKLM:\Software\OEM\Heko-Bueroservice-GmbH\M365\Install\CurrentStage`` To overwrite all stages and restart the whole script use ``-RunAgain``. @@ -49,5 +50,5 @@ To overwrite all stages and restart the whole script use ``-RunAgain``. You may use this script without explicit download: ```powershell -iwr https://raw.githubusercontent.com/Admonstrator/msoffice-removal-tool/main/msoffice-removal-tool.ps1 -OutFile msoffice-removal-tool.ps1; powershell -ExecutionPolicy Bypass .\msoffice-removal-tool.ps1 +iwr https://git.heko-technik.de/mkrieger/msoffice-removal-tool/raw/branch/main/msoffice-removal-tool.ps1 -OutFile msoffice-removal-tool.ps1; powershell -ExecutionPolicy Bypass .\msoffice-removal-tool.ps1 ```