Changed company

This commit is contained in:
Aaron Viehl 2023-01-18 12:38:38 +01:00
parent bf26602026
commit 15a65057af
No known key found for this signature in database
2 changed files with 30 additions and 25 deletions

View File

@ -24,10 +24,10 @@
.OUTPUTS .OUTPUTS
Just output on screen Just output on screen
.NOTES .NOTES
Version: 1.0 Version: 1.1
Author: aaron.viehl@frankfurt.einsnulleins.de Author: Singleton Factory GmbH
Creation Date: 2022-02-04 Creation Date: 2023-01-18
Purpose/Change: Initial script development Purpose/Change: New company, new luck
.EXAMPLE .EXAMPLE
.\msoffice-removal-tool.ps1 -InstallOffice365 -SupressReboot .\msoffice-removal-tool.ps1 -InstallOffice365 -SupressReboot
#> #>
@ -167,21 +167,22 @@ Function Invoke-RebootInSeconds($Seconds) {
} }
Function Set-CurrentStage($StageValue) { Function Set-CurrentStage($StageValue) {
if (-not (Test-Path "HKLM:\Software\OEM\101\M365\Install")) { if (-not (Test-Path "HKLM:\Software\OEM\Singleton-Factory-GmbH\M365\Install")) {
New-Item -Path "HKLM:\Software\OEM\101\M365\Install" -Force | Out-Null New-Item -Path "HKLM:\Software\OEM\Singleton-Factory-GmbH\M365\Install" -Force | Out-Null
} }
New-ItemProperty -Path "HKLM:\Software\OEM\101\M365\Install" -Name "CurrentStage" -Value $StageValue -PropertyType String -Force | Out-Null New-ItemProperty -Path "HKLM:\Software\OEM\Singleton-Factory-GmbH\M365\Install" -Name "CurrentStage" -Value $StageValue -PropertyType String -Force | Out-Null
} }
Function Invoke-Intro { Function Invoke-Intro {
Write-Host " ___ ___ ___ _____ _____ _____ " Write-Host " __ _ _ _ ___ _ "
Write-Host "|_ | | |_ | | __| __| |" Write-Host " / _(_)_ __ __ _| | ___| |_ ___ _ __ / __\_ _ ___| |_ ___ _ __ _ _ "
Write-Host " _| |_| | |_| |_ | __| __| | | |" Write-Host " \ \| | '_ \ / _' | |/ _ \ __/ _ \| '_ \ / _\/ _' |/ __| __/ _ \| '__| | | |"
Write-Host "|_____|___|_____| |__| |__| |_|_|_|" Write-Host " _\ \ | | | | (_| | | __/ || (_) | | | | / / | (_| | (__| || (_) | | | |_| |"
Write-Host "" Write-Host " \__/_|_| |_|\__, |_|\___|\__\___/|_| |_| \/ \__,_|\___|\__\___/|_| \__, |"
Write-Host " |___/ |___/ "
Write-Host "Microsoft Office Removal Tool" Write-Host "Microsoft Office Removal Tool"
Write-Host "by Aaron Viehl (101 Frankfurt)" Write-Host "by Aaron Viehl (Singleton Factory GmbH)"
Write-Host "einsnulleins.de" Write-Host "singleton-factory.de"
Write-Host "" Write-Host ""
} }
@ -197,10 +198,12 @@ if (-Not $Force) {
} }
} }
Invoke-Intro
exit
# Check if there is a stage to resume # Check if there is a stage to resume
if (-not ($RunAgain)) { if (-not ($RunAgain)) {
if (Test-Path "HKLM:\Software\OEM\101\M365\Install") { if (Test-Path "HKLM:\Software\OEM\Singleton-Factory-GmbH\M365\Install") {
$CurrentStageValue = (Get-ItemProperty "HKLM:\Software\OEM\101\M365\Install").CurrentStage $CurrentStageValue = (Get-ItemProperty "HKLM:\Software\OEM\Singleton-Factory-GmbH\M365\Install").CurrentStage
Switch ($CurrentStageValue) { Switch ($CurrentStageValue) {
1 { 1 {
Write-Host "Resuming Stage 1: Uninstalling Office ..." Write-Host "Resuming Stage 1: Uninstalling Office ..."

View File

@ -1,14 +1,16 @@
# Microsoft Office Removal Tool # Microsoft Office Removal Tool
```plain ```plain
___ ___ ___ _____ _____ _____ __ _ _ _ ___ _
|_ | | |_ | | __| __| | / _(_)_ __ __ _| | ___| |_ ___ _ __ / __\_ _ ___| |_ ___ _ __ _ _
_| |_| | |_| |_ | __| __| | | | \ \| | '_ \ / _` | |/ _ \ __/ _ \| '_ \ / _\/ _` |/ __| __/ _ \| '__| | | |
|_____|___|_____| |__| |__| |_|_|_| _\ \ | | | | (_| | | __/ || (_) | | | | / / | (_| | (__| || (_) | | | |_| |
\__/_|_| |_|\__, |_|\___|\__\___/|_| |_| \/ \__,_|\___|\__\___/|_| \__, |
|___/ |___/
Microsoft Office Removal Tool Microsoft Office Removal Tool
by Aaron Viehl (101 Frankfurt) by Aaron Viehl (Singleton Factory GmbH)
einsnulleins.de singleton-factory.de
``` ```
## Synopsis ## Synopsis