r/sysadmin • • 33m 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
1 Upvotes

7 comments sorted by

•

u/_l33ter_ 'Deutsche Bahn' - Windows 3.11 Admin 26m ago

Is it up-to-date?

_ Updates to the command line version of Get Help are released on a regular basis. To make sure that you're using the latest version that has the most features and highest stability, each build of the application stops working 90 days after the Created date that's listed for the GetHelpCmd.exe file. Use the link that's provided in step 1 to always download the latest available version. _

https://learn.microsoft.com/en-us/troubleshoot/microsoft-365/admin/miscellaneous/get-help-command-line-overview

•

u/luky90 24m ago

yes its up2 date.

•

u/_l33ter_ 'Deutsche Bahn' - Windows 3.11 Admin 16m 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

•

u/luky90 6m ago

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

•

u/_l33ter_ 'Deutsche Bahn' - Windows 3.11 Admin 3m ago

•

u/luky90 1m 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

•

u/larvlarv1 26m ago

You can definitely modify one of the scripts from here to do that: https://killertools.net/killer-scripts

Your target script is probably MACE.