lucyllewy / one-script-wsl2-systemd

The one-script variant of the systemd hack for WSL2
MIT License
233 stars 39 forks source link

In Uninstal.ps1 Out-IniFile $wslconfig "$env:USERPROFILE/.wslconfig" #37

Closed andrealcantara closed 2 years ago

andrealcantara commented 2 years ago

I just came to inform you that the Out-IniFile function is missing in the uninstall file.

#########################################################
#                                                       #
#       One Script WSL2 Systemd uninstall script        #
#                                                       #
#########################################################

---------------------------------------------------------

Uninstalling systemd enablement from Ubuntu
Uninstalling GnuPG
Nenhum pacote instalado foi encontrado que corresponda aos critérios de entrada.
Reverting WSL to the Microsoft-provided kernel
Out-IniFile: C:\Users\USER\OneDrive\script-completo\Systemd-WSL\uninstall.ps1:256
Line |
 256 |          Out-IniFile $wslconfig "$env:USERPROFILE/.wslconfig"
     |          ~~~~~~~~~~~
     | The term 'Out-IniFile' is not recognized as a name of a cmdlet, function, script file, or executable program. Check
     | the spelling of the name, or if a path was included, verify that the path is correct and try again.

Done.

I found the function in the setup-agent-services.ps1 file from lines 82-106

Thank you for the good work.