LeDragoX / Win-Debloat-Tools

Re-imagining Windows like a minimal OS install, already debloated with minimal impact for most functionality.
MIT License
4.88k stars 246 forks source link

The terminal is all errors #95

Closed gkursi closed 1 year ago

gkursi commented 1 year ago

Describe the Bug

i selected a bunch of stuff, then i clicked apply tweaks and then in the terminal it was all just errors. idk if thats the expected behavior since in the end a popup with the text "operation complete" showed up or not.

How can this issue be reproduced?

  1. Launch the program
  2. Select anything
  3. Press "apply tweaks"
  4. profit

Expected behavior?

working

Operating System

Windows 11

Operating System Version

22H2

Screenshots

No response

Logs


New-Item : The filename, directory name, or volume label syntax is incorrect.
At C:\Users\gusta\Downloads\Win-Debloat-Tools-main\Win-Debloat-Tools-main\src\lib\Request-FileDownload.psm1:28 char:9
+         New-Item -Path $OutputFolder
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (C:\Users\gusta\...ools\downloads\:String) [New-Item], IOException
    + FullyQualifiedErrorId : NewItemIOError,Microsoft.PowerShell.Commands.NewItemCommand

[@] Downloading from: 'https://downloads.malwarebytes.com/file/adwcleaner' as 'adwcleaner.exe'
[@] On: 'C:\Users\gusta\AppData\Local\Temp\Win-Debloat-Tools\downloads\adwcleaner.exe'
Start-BitsTransfer : Cannot find path 'C:\Users\gusta\AppData\Local\Temp\Win-Debloat-Tools\downloads' because it does
not exist.
At C:\Users\gusta\Downloads\Win-Debloat-Tools-main\Win-Debloat-Tools-main\src\lib\Request-FileDownload.psm1:37 char:5
+     Start-BitsTransfer -Dynamic -RetryTimeout 60 -TransferType Downlo ...
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\gusta\...Tools\downloads:String) [Start-BitsTransfer], ParentC
   ontainsErrorRecordException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.BackgroundIntelligentTransfer.Management.NewBitsTransferCommand

[+] Running MalwareBytes AdwCleaner scanner...
Start-Process : This command cannot be run due to the error: The system cannot find the file specified.
At C:\Users\gusta\Downloads\Win-Debloat-Tools-main\Win-Debloat-Tools-main\src\scripts\Use-DebloatSoftware.ps1:18 char:9
+         Start-Process -FilePath $AdwCleanerOutput -ArgumentList "/eul ...
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Start-Process], InvalidOperationException
    + FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartProcessCommand

[?] [Exp/Reg] The path C:\Users\gusta\AppData\Local\Temp\Win-Debloat-Tools\downloads\adwcleaner.exe does not exist
[@] C:\Users\gusta\AppData\Local\Temp\Win-Debloat-Tools\downloads\shutup10 doesn't exist, creating folder...

[@] Downloading from: 'https://dl5.oo-software.com/files/ooshutup10/OOSU10.exe' as 'OOSU10.exe'
[@] On: 'C:\Users\gusta\AppData\Local\Temp\Win-Debloat-Tools\downloads\shutup10\OOSU10.exe'
Start-BitsTransfer : The directory name is invalid. (Exception from HRESULT: 0x8007010B)
At C:\Users\gusta\Downloads\Win-Debloat-Tools-main\Win-Debloat-Tools-main\src\lib\Request-FileDownload.psm1:37 char:5
+     Start-BitsTransfer -Dynamic -RetryTimeout 60 -TransferType Downlo ...
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Start-BitsTransfer], COMException
    + FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,Microsoft.BackgroundIntelligentTransfer.Mana
   gement.NewBitsTransferCommand

Push-Location : Cannot convert 'System.Object[]' to the type 'System.String' required by parameter 'Path'. Specified
method is not supported.
At C:\Users\gusta\Downloads\Win-Debloat-Tools-main\Win-Debloat-Tools-main\src\scripts\Use-DebloatSoftware.ps1:25
char:25
+     Push-Location -Path (Split-Path -Path $ShutUpOutput)
+                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Push-Location], ParameterBindingException
    + FullyQualifiedErrorId : CannotConvertArgument,Microsoft.PowerShell.Commands.PushLocationCommand

[+] Running ShutUp10 and applying Recommended settings...
Start-Process : Cannot convert 'System.Object[]' to the type 'System.String' required by parameter 'FilePath'.
Specified method is not supported.
At C:\Users\gusta\Downloads\Win-Debloat-Tools-main\Win-Debloat-Tools-main\src\scripts\Use-DebloatSoftware.ps1:32
char:33
+         Start-Process -FilePath $ShutUpOutput -ArgumentList "ooshutup ...
+                                 ~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Start-Process], ParameterBindingException
    + FullyQualifiedErrorId : CannotConvertArgument,Microsoft.PowerShell.Commands.StartProcessCommand

[?] [Exp/Reg] The path C:\Users\gusta\AppData\Local\Temp\Win-Debloat-Tools\downloads\shutup10 C:\Users\gusta\AppData\Local\Temp\Win-Debloat-Tools\downloads\shutup10\OOSU10.exe does not exist
Get-Item : Cannot find path
'C:\Users\gusta\Downloads\Win-Debloat-Tools-main\Win-Debloat-Tools-main\Optimize-TaskScheduler.ps1' because it does
not exist.
At C:\Users\gusta\Downloads\Win-Debloat-Tools-main\Win-Debloat-Tools-main\src\lib\Open-File.psm1:21 char:31
+         $LastAccessUtc = "v$((Get-Item "$FileName").LastWriteTimeUtc  ...
+                               ~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\gusta\...skScheduler.ps1:String) [Get-Item], ItemNotFoundExcep
   tion
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetItemCommand

Get-Date : The input object cannot be bound to any parameters for the command either because the command does not take
pipeline input or the input and its properties do not match any of the parameters that take pipeline input.
At C:\Users\gusta\Downloads\Win-Debloat-Tools-main\Win-Debloat-Tools-main\src\lib\Open-File.psm1:21 char:72
+ ... -Item "$FileName").LastWriteTimeUtc | Get-Date -Format "yyyy-MM-dd")"
+                                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Get-Date], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,Microsoft.PowerShell.Commands.GetDateCommand

<•••••••••••••••••••••••••••••••••••••••••••••••••••••••>
   (3/11) - Optimize-TaskScheduler.ps1 (v)
<•••••••••••••••••••••••••••••••••••••••••••••••••••••••>
Import-Module : The specified module '.\Optimize-TaskScheduler.ps1' was not loaded because no valid module file was
found in any module directory.
At C:\Users\gusta\Downloads\Win-Debloat-Tools-main\Win-Debloat-Tools-main\src\lib\Open-File.psm1:24 char:13
+             Import-Module -DisableNameChecking .\"$FileName" -Force
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (.\Optimize-TaskScheduler.ps1:String) [Import-Module], FileNotFound
   Exception
    + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand

Get-Item : Cannot find path
'C:\Users\gusta\Downloads\Win-Debloat-Tools-main\Win-Debloat-Tools-main\Optimize-ServicesRunning.ps1' because it does
not exist.
At C:\Users\gusta\Downloads\Win-Debloat-Tools-main\Win-Debloat-Tools-main\src\lib\Open-File.psm1:21 char:31
+         $LastAccessUtc = "v$((Get-Item "$FileName").LastWriteTimeUtc  ...
+                               ~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\gusta\...icesRunning.ps1:String) [Get-Item], ItemNotFoundExcep
   tion
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetItemCommand

Get-Date : The input object cannot be bound to any parameters for the command either because the command does not take
pipeline input or the input and its properties do not match any of the parameters that take pipeline input.
At C:\Users\gusta\Downloads\Win-Debloat-Tools-main\Win-Debloat-Tools-main\src\lib\Open-File.psm1:21 char:72
+ ... -Item "$FileName").LastWriteTimeUtc | Get-Date -Format "yyyy-MM-dd")"
+                                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Get-Date], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,Microsoft.PowerShell.Commands.GetDateCommand

<•••••••••••••••••••••••••••••••••••••••••••••••••••••••>
   (4/11) - Optimize-ServicesRunning.ps1 (v)
<•••••••••••••••••••••••••••••••••••••••••••••••••••••••>
Import-Module : The specified module '.\Optimize-ServicesRunning.ps1' was not loaded because no valid module file was
found in any module directory.
At C:\Users\gusta\Downloads\Win-Debloat-Tools-main\Win-Debloat-Tools-main\src\lib\Open-File.psm1:24 char:13
+             Import-Module -DisableNameChecking .\"$FileName" -Force
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (.\Optimize-ServicesRunning.ps1:String) [Import-Module], FileNotFou
   ndException
    + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand

Get-Item : Cannot find path
'C:\Users\gusta\Downloads\Win-Debloat-Tools-main\Win-Debloat-Tools-main\Remove-BloatwareAppsList.ps1' because it does
not exist.
At C:\Users\gusta\Downloads\Win-Debloat-Tools-main\Win-Debloat-Tools-main\src\lib\Open-File.psm1:21 char:31
+         $LastAccessUtc = "v$((Get-Item "$FileName").LastWriteTimeUtc  ...
+                               ~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\gusta\...areAppsList.ps1:String) [Get-Item], ItemNotFoundExcep
   tion
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetItemCommand

Get-Date : The input object cannot be bound to any parameters for the command either because the command does not take
pipeline input or the input and its properties do not match any of the parameters that take pipeline input.
At C:\Users\gusta\Downloads\Win-Debloat-Tools-main\Win-Debloat-Tools-main\src\lib\Open-File.psm1:21 char:72
+ ... -Item "$FileName").LastWriteTimeUtc | Get-Date -Format "yyyy-MM-dd")"
+                                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Get-Date], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,Microsoft.PowerShell.Commands.GetDateCommand

<•••••••••••••••••••••••••••••••••••••••••••••••••••••••>
   (5/11) - Remove-BloatwareAppsList.ps1 (v)
<•••••••••••••••••••••••••••••••••••••••••••••••••••••••>
Import-Module : The specified module '.\Remove-BloatwareAppsList.ps1' was not loaded because no valid module file was
found in any module directory.
At C:\Users\gusta\Downloads\Win-Debloat-Tools-main\Win-Debloat-Tools-main\src\lib\Open-File.psm1:24 char:13
+             Import-Module -DisableNameChecking .\"$FileName" -Force
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (.\Remove-BloatwareAppsList.ps1:String) [Import-Module], FileNotFou
   ndException
    + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand

Get-Item : Cannot find path
'C:\Users\gusta\Downloads\Win-Debloat-Tools-main\Win-Debloat-Tools-main\Optimize-Privacy.ps1' because it does not
exist.
At C:\Users\gusta\Downloads\Win-Debloat-Tools-main\Win-Debloat-Tools-main\src\lib\Open-File.psm1:21 char:31
+         $LastAccessUtc = "v$((Get-Item "$FileName").LastWriteTimeUtc  ...
+                               ~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\gusta\...ize-Privacy.ps1:String) [Get-Item], ItemNotFoundExcep
   tion
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetItemCommand

Get-Date : The input object cannot be bound to any parameters for the command either because the command does not take
pipeline input or the input and its properties do not match any of the parameters that take pipeline input.
At C:\Users\gusta\Downloads\Win-Debloat-Tools-main\Win-Debloat-Tools-main\src\lib\Open-File.psm1:21 char:72
+ ... -Item "$FileName").LastWriteTimeUtc | Get-Date -Format "yyyy-MM-dd")"
+                                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Get-Date], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,Microsoft.PowerShell.Commands.GetDateCommand

<•••••••••••••••••••••••••••••••••••••••••••••••••••••••>
   (6/11) - Optimize-Privacy.ps1 (v)
<•••••••••••••••••••••••••••••••••••••••••••••••••••••••>
Import-Module : The specified module '.\Optimize-Privacy.ps1' was not loaded because no valid module file was found in
any module directory.
At C:\Users\gusta\Downloads\Win-Debloat-Tools-main\Win-Debloat-Tools-main\src\lib\Open-File.psm1:24 char:13
+             Import-Module -DisableNameChecking .\"$FileName" -Force
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (.\Optimize-Privacy.ps1:String) [Import-Module], FileNotFoundExcept
   ion
    + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand

Get-Item : Cannot find path
'C:\Users\gusta\Downloads\Win-Debloat-Tools-main\Win-Debloat-Tools-main\Optimize-Performance.ps1' because it does not
exist.
At C:\Users\gusta\Downloads\Win-Debloat-Tools-main\Win-Debloat-Tools-main\src\lib\Open-File.psm1:21 char:31
+         $LastAccessUtc = "v$((Get-Item "$FileName").LastWriteTimeUtc  ...
+                               ~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\gusta\...Performance.ps1:String) [Get-Item], ItemNotFoundExcep
   tion
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetItemCommand

Get-Date : The input object cannot be bound to any parameters for the command either because the command does not take
pipeline input or the input and its properties do not match any of the parameters that take pipeline input.
At C:\Users\gusta\Downloads\Win-Debloat-Tools-main\Win-Debloat-Tools-main\src\lib\Open-File.psm1:21 char:72
+ ... -Item "$FileName").LastWriteTimeUtc | Get-Date -Format "yyyy-MM-dd")"
+                                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Get-Date], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,Microsoft.PowerShell.Commands.GetDateCommand

<•••••••••••••••••••••••••••••••••••••••••••••••••••••••>
   (7/11) - Optimize-Performance.ps1 (v)
<•••••••••••••••••••••••••••••••••••••••••••••••••••••••>
Import-Module : The specified module '.\Optimize-Performance.ps1' was not loaded because no valid module file was
found in any module directory.
At C:\Users\gusta\Downloads\Win-Debloat-Tools-main\Win-Debloat-Tools-main\src\lib\Open-File.psm1:24 char:13
+             Import-Module -DisableNameChecking .\"$FileName" -Force
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (.\Optimize-Performance.ps1:String) [Import-Module], FileNotFoundEx
   ception
    + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand

Get-Item : Cannot find path
'C:\Users\gusta\Downloads\Win-Debloat-Tools-main\Win-Debloat-Tools-main\Register-PersonalTweaksList.ps1' because it
does not exist.
At C:\Users\gusta\Downloads\Win-Debloat-Tools-main\Win-Debloat-Tools-main\src\lib\Open-File.psm1:21 char:31
+         $LastAccessUtc = "v$((Get-Item "$FileName").LastWriteTimeUtc  ...
+                               ~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\gusta\...lTweaksList.ps1:String) [Get-Item], ItemNotFoundExcep
   tion
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetItemCommand

Get-Date : The input object cannot be bound to any parameters for the command either because the command does not take
pipeline input or the input and its properties do not match any of the parameters that take pipeline input.
At C:\Users\gusta\Downloads\Win-Debloat-Tools-main\Win-Debloat-Tools-main\src\lib\Open-File.psm1:21 char:72
+ ... -Item "$FileName").LastWriteTimeUtc | Get-Date -Format "yyyy-MM-dd")"
+                                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Get-Date], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,Microsoft.PowerShell.Commands.GetDateCommand

<•••••••••••••••••••••••••••••••••••••••••••••••••••••••>
   (8/11) - Register-PersonalTweaksList.ps1 (v)
<•••••••••••••••••••••••••••••••••••••••••••••••••••••••>
Import-Module : The specified module '.\Register-PersonalTweaksList.ps1' was not loaded because no valid module file
was found in any module directory.
At C:\Users\gusta\Downloads\Win-Debloat-Tools-main\Win-Debloat-Tools-main\src\lib\Open-File.psm1:24 char:13
+             Import-Module -DisableNameChecking .\"$FileName" -Force
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (.\Register-PersonalTweaksList.ps1:String) [Import-Module], FileNot
   FoundException
    + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand

Get-Item : Cannot find path
'C:\Users\gusta\Downloads\Win-Debloat-Tools-main\Win-Debloat-Tools-main\Optimize-Security.ps1' because it does not
exist.
At C:\Users\gusta\Downloads\Win-Debloat-Tools-main\Win-Debloat-Tools-main\src\lib\Open-File.psm1:21 char:31
+         $LastAccessUtc = "v$((Get-Item "$FileName").LastWriteTimeUtc  ...
+                               ~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\gusta\...ze-Security.ps1:String) [Get-Item], ItemNotFoundExcep
   tion
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetItemCommand

Get-Date : The input object cannot be bound to any parameters for the command either because the command does not take
pipeline input or the input and its properties do not match any of the parameters that take pipeline input.
At C:\Users\gusta\Downloads\Win-Debloat-Tools-main\Win-Debloat-Tools-main\src\lib\Open-File.psm1:21 char:72
+ ... -Item "$FileName").LastWriteTimeUtc | Get-Date -Format "yyyy-MM-dd")"
+                                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Get-Date], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,Microsoft.PowerShell.Commands.GetDateCommand

<•••••••••••••••••••••••••••••••••••••••••••••••••••••••>
   (9/11) - Optimize-Security.ps1 (v)
<•••••••••••••••••••••••••••••••••••••••••••••••••••••••>
Import-Module : The specified module '.\Optimize-Security.ps1' was not loaded because no valid module file was found
in any module directory.
At C:\Users\gusta\Downloads\Win-Debloat-Tools-main\Win-Debloat-Tools-main\src\lib\Open-File.psm1:24 char:13
+             Import-Module -DisableNameChecking .\"$FileName" -Force
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (.\Optimize-Security.ps1:String) [Import-Module], FileNotFoundExcep
   tion
    + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand

Get-Item : Cannot find path
'C:\Users\gusta\Downloads\Win-Debloat-Tools-main\Win-Debloat-Tools-main\Remove-CapabilitiesList.ps1' because it does
not exist.
At C:\Users\gusta\Downloads\Win-Debloat-Tools-main\Win-Debloat-Tools-main\src\lib\Open-File.psm1:21 char:31
+         $LastAccessUtc = "v$((Get-Item "$FileName").LastWriteTimeUtc  ...
+                               ~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\gusta\...ilitiesList.ps1:String) [Get-Item], ItemNotFoundExcep
   tion
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetItemCommand

Get-Date : The input object cannot be bound to any parameters for the command either because the command does not take
pipeline input or the input and its properties do not match any of the parameters that take pipeline input.
At C:\Users\gusta\Downloads\Win-Debloat-Tools-main\Win-Debloat-Tools-main\src\lib\Open-File.psm1:21 char:72
+ ... -Item "$FileName").LastWriteTimeUtc | Get-Date -Format "yyyy-MM-dd")"
+                                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Get-Date], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,Microsoft.PowerShell.Commands.GetDateCommand

<•••••••••••••••••••••••••••••••••••••••••••••••••••••••>
   (10/11) - Remove-CapabilitiesList.ps1 (v)
<•••••••••••••••••••••••••••••••••••••••••••••••••••••••>
Import-Module : The specified module '.\Remove-CapabilitiesList.ps1' was not loaded because no valid module file was
found in any module directory.
At C:\Users\gusta\Downloads\Win-Debloat-Tools-main\Win-Debloat-Tools-main\src\lib\Open-File.psm1:24 char:13
+             Import-Module -DisableNameChecking .\"$FileName" -Force
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (.\Remove-CapabilitiesList.ps1:String) [Import-Module], FileNotFoun
   dException
    + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand

Get-Item : Cannot find path
'C:\Users\gusta\Downloads\Win-Debloat-Tools-main\Win-Debloat-Tools-main\Optimize-WindowsFeaturesList.ps1' because it
does not exist.
At C:\Users\gusta\Downloads\Win-Debloat-Tools-main\Win-Debloat-Tools-main\src\lib\Open-File.psm1:21 char:31
+         $LastAccessUtc = "v$((Get-Item "$FileName").LastWriteTimeUtc  ...
+                               ~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\gusta\...eaturesList.ps1:String) [Get-Item], ItemNotFoundExcep
   tion
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetItemCommand

Get-Date : The input object cannot be bound to any parameters for the command either because the command does not take
pipeline input or the input and its properties do not match any of the parameters that take pipeline input.
At C:\Users\gusta\Downloads\Win-Debloat-Tools-main\Win-Debloat-Tools-main\src\lib\Open-File.psm1:21 char:72
+ ... -Item "$FileName").LastWriteTimeUtc | Get-Date -Format "yyyy-MM-dd")"
+                                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Get-Date], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,Microsoft.PowerShell.Commands.GetDateCommand

<•••••••••••••••••••••••••••••••••••••••••••••••••••••••>
   (11/11) - Optimize-WindowsFeaturesList.ps1 (v)
<•••••••••••••••••••••••••••••••••••••••••••••••••••••••>
Import-Module : The specified module '.\Optimize-WindowsFeaturesList.ps1' was not loaded because no valid module file
was found in any module directory.
At C:\Users\gusta\Downloads\Win-Debloat-Tools-main\Win-Debloat-Tools-main\src\lib\Open-File.psm1:24 char:13
+             Import-Module -DisableNameChecking .\"$FileName" -Force
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (.\Optimize-WindowsFeaturesList.ps1:String) [Import-Module], FileNo
   tFoundException
    + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand```

### Additional Info

N/A
gkursi commented 1 year ago

also im using the code from branch main

LeDragoX commented 1 year ago

I could reproduce one of the issues, but i can't reproduce the other path problems you've found, maybe it's a Win 11 only issue. And i hope the files from src\scripts didn't got removed.

gkursi commented 1 year ago

And i hope the files from src\scripts didn't got removed.

Well idk, i followed what the tutorial said ¯_(ツ)_/¯

LeDragoX commented 1 year ago

Okay, last question, are you using an antivirus? Did it detected the files from the script folder?

gkursi commented 1 year ago

I'm not using an antivirus, no.

gkursi commented 1 year ago

also, i checked and all the scripts that weren't found are there. (in src\scripts)

weirdal3333 commented 1 year ago

I found the issue! The user is not part of the group "Users" when you set up the PC using a Microsoft account. Adding the user to the "Users" group fixes the issue.

weirdal3333 commented 1 year ago

Add-ADGroupMember Users $env:username might work to add the current user to the Users group, but I'm not at a powershell terminal to test this atm.

LeDragoX commented 1 year ago

I used that command, but since powershell (at least 5.1) doesnt support it, it gives an error "CommandNotFoundException". I tried another ways to solve this problem, but still in development branch.