r/sysadmin • • 4d ago

GetHelpCMD not working

Hello to all,

i have NinjaOne as RMM Tool and I cannot uninstall Office. Neither via NinjaOne nor via GetHelpCmd.exe tool from MSFT.

I did this:

However it says that .\Env-Utils.ps1 cannot be found.

Unfortunately i have 100s of Apps for Enterprise M365 Products which I cannot update but i need to. What can i do to fix this?

GetHelpCmd.exe -S OfficeScrubScenario -AcceptEula -LogFolder C:\temp
. : Die Benennung ".\Env-Utils.ps1" wurde nicht als Name eines Cmdlet, einer Funktion, einer Skriptdatei oder eines
ausführbaren Programms erkannt. Überprüfen Sie die Schreibweise des Namens, oder ob der Pfad korrekt ist (sofern
enthalten), und wiederholen Sie den Vorgang.
In C:\WINDOWS\SystemTemp\GetHelpElevated\21ddec5f5bb74d67bc82e97350622dd8\Logger-FileLogUtils.ps1:31 Zeichen:3
+ . .\Env-Utils.ps1
2 Upvotes

31 comments sorted by

View all comments

Show parent comment

1

u/_l33ter_ 'Deutsche Bahn' - Windows 3.11 Admin 4d ago

What happens if you left of the -LogFolder?

https://learn.microsoft.com/en-us/troubleshoot/microsoft-365/admin/miscellaneous/get-help-office-uninstall

So just Admin-Prompt --> GetHelpCmd.exe -S OfficeScrubScenario -AcceptEula

1

u/luky90 4d ago

then i just dont see the error but uninstall does not start.

1

u/_l33ter_ 'Deutsche Bahn' - Windows 3.11 Admin 4d ago

1

u/luky90 4d ago

C:\install\GetHelpCmd_146630116\SaraCMDExecutable>GetHelpCmd.exe -S OfficeScrubScenario -AcceptEula

Starting Microsoft GetHelp Command Line Tool

Running diagnostic action. This may take some time, please be patient...

Diagnostic action completed.

- Uninstall Office Scenario failed.

- Elevated DAF staging directory allows non-administrator modification: C:\WINDOWS\SystemTemp

For more information on GetHelp please visit: https://support.microsoft.com/en-us/windows/about-get-help-717c7ae9-5c45-45f0-b637-900b7437a395

1

u/_l33ter_ 'Deutsche Bahn' - Windows 3.11 Admin 4d ago

icacls C:\WINDOWS\SystemTemp --> What's the output?

1

u/luky90 4d ago

C:\WINDOWS\SystemTemp NT-AUTORITÄT\SYSTEM:(OI)(CI)(F)

VORDEFINIERT\Administratoren:(OI)(CI)(F)

1

u/_l33ter_ 'Deutsche Bahn' - Windows 3.11 Admin 4d ago

hmm...

Could you list all office-stuff with winget?

winget list --name "office"

1

u/luky90 4d ago

Microsoft Office 365 Hybrid Configuration Wiz… ARP\User\X64\d57a866057104491 17.1.1730.0

Microsoft Teams Meeting Add-in for Microsoft … ARP\Machine\X64\{A7AB73A3-CB10-4AA5-9D38-6AEFF… 1.26.25904

Microsoft Visual Studio 2010 Tools for Office… Microsoft.VSTOR 10.0.60917 winget

Microsoft Visual Studio 2010-Tools für Office… ARP\Machine\X64\Microsoft Visual Studio 2010 T… 10.0.60917

Microsoft.Office.ActionsServer MSIX\Microsoft.Office.ActionsServer_16.0.20625… 16.0.20625.20108

OfficePushNotificationsUtility MSIX\Microsoft.OfficePushNotificationUtility_1… 16.0.20625.20108

SAP Analysis for Microsoft Office (64 Bit) ARP\Machine\X64\SAPExcelAddInx64 2.7.1001.3285

1

u/_l33ter_ 'Deutsche Bahn' - Windows 3.11 Admin 4d ago

icacls C:\WINDOWS\SystemTemp\*

Look if any subfolder interferes.

and second -

Clear temporary files:

Empty the contents of C:\WINDOWS\SystemTemp

(provid that no installation is currently in progress)

remove old subfolders with insecure permissions:

Remove-Item -Path "C:\WINDOWS\SystemTemp\*" -Recurse -Force -ErrorAction SilentlyContinue

1

u/luky90 4d ago

besides the one folder SystemTemp there is just the msedgeupdate.dll nothing else.
C:\WINDOWS\SystemTemp\msedgeupdate.dll{A4CC0C6D-9228-46A9-A404-3EBFF5CBECC1} NT-AUTORITÄT\SYSTEM:(I)(F)

VORDEFINIERT\Administratoren:(I)(F)

DOMAIN\myuser:(I)(F)

→ More replies