Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Loading PSScheduledJob Module in PowerShell Script #119

Closed
us254 opened this issue Sep 16, 2023 · 0 comments · Fixed by #127
Closed

Issue with Loading PSScheduledJob Module in PowerShell Script #119

us254 opened this issue Sep 16, 2023 · 0 comments · Fixed by #127
Labels
Bug Something isn't working

Comments

@us254
Copy link

us254 commented Sep 16, 2023

Describe the Bug

I encountered an issue in a PowerShell script where the PSScheduledJob module is not being loaded correctly, resulting in errors when trying to use cmdlets from this module. Specifically, the New-JobTrigger and Get-ScheduledJob cmdlets are affected.

the lines of code causing the problem and the modifications needed to fix it are as follows:

  1. Line 47:
Trigger = New-JobTrigger -Daily -At $Time

To fix this line, you should add Import-Module PSScheduledJob before using the New-JobTrigger cmdlet, like this:

Import-Module PSScheduledJob
Trigger = New-JobTrigger -Daily -At $Time
  1. Line 51:
(Get-ScheduledJob -Name $JobName -ErrorAction SilentlyContinue) -or (Get-ScheduledJob -Name $ ...

To fix this line, you should also add Import-Module PSScheduledJob before using the Get-ScheduledJob cmdlet, like this:

Import-Module PSScheduledJob
(Get-ScheduledJob -Name $JobName -ErrorAction SilentlyContinue) -or (Get-ScheduledJob -Name $ ...

How can this issue be reproduced?

To reproduce the issue, you can follow these steps:

1: Run the PowerShell script (Install-PackageManager.ps1) that attempts to create a daily task to automatically upgrade Chocolatey packages at 13:00.
2: Observe the error messages related to the PSScheduledJob module not being loaded.

Expected behavior?

When running the PowerShell script, I expected the PSScheduledJob module to be loaded successfully, allowing the script to create a scheduled task and manage scheduled jobs without encountering any errors.

Operating System

Windows 11

Operating System Version

10.0.22621 N/A Build 22621

Screenshots

No response

Logs

No response

Additional Info

No response

@us254 us254 added the Bug Something isn't working label Sep 16, 2023
LeDragoX added a commit that referenced this issue Oct 12, 2023
- For some reason the import was missing again.
LeDragoX added a commit that referenced this issue Oct 12, 2023
* fix: console background color changing
- Add new background colors which works greatly with Powershell and Windows Terminal

* docs: update ISSUE_TEMPLATEs
- Log folder location
- change label to only Feature Request

* Fix: Tab 1 Panel 2 app order

* refactor: change script tmp folder to actually be on User Temp
- Get the Script Temp folder using a new function

* Delete remaining from old tmp\ folder

* arch: rename all powershell scripts to match PS naming
- Even if it isn't approved

* chore: remove unused code
- Install-HEVCSupport function which doesn't work anymore

* arch: rename remaining scripts
- Also fix an name warning from PSScriptAnalyzer
- Remove Main() functions

* style: change debloat script order
- Remove useless code from Remove-CapabilitiesList

* feat: remove old quick assist if the new one is already installed

* feat: Install Quick Assist by GUI
- Remove some console output which wasn't important

* BREAKING CHANGE: Attempt to correctly rename the remaining files (part 1)

* fix: Attempt to correctly rename the remaining files (part 2)

* Change CONTRIBUTING to a less strict policy

* Fix path not being found while downloading (#95)
- This is not a complete fix

* Fix adwcleaner not working (#95)
- Organize imports (yes, again)

* Fix adwcleaner not working (yikes!) (#95)

* Don't set NVIDIA services to Manual anymore (#98)
- Solves issues with GeForce Experience and Control Panel

* Remove more Apps: (#102)
- WhatsApp
- Amazon Prime Video
- TikTok
- Facebook
- Instagram

Spotify will not be removed, as i don't want to :v

* Remove useless files and code
- The lib Grant-RegistryPermission isn't working at all
- Removing all references from this handmade lib

* Prefer using "legacy" Windows 10 context menu on Windows 11
- If you dislike it you can click twice on "Enable Legacy Context Menu" to restore the default
- Less laggy

* Stop triggering github actions everyday

* Rename powershell-linter CI

* Refactor Issue templates
- Need less info
- Fixed punctuation.

* Logs should be divided monthly

* Modify Windows Explorer Navigation Pane behaviors
- Hide Duplicated Removable Devices
- Disable Expand to folder on navigation pane

(Seems to solve: Explorer opening as the primary window without any reason)

* Making disable expand to folder on navigation pane irreversible
- The default is already disabled

* Load PSScheduledJob Module before using it's calls (#119)

* Add DELL bloatware to remove
- Add Alienware apps, but keep them commented
.
.
.
I've been thinking about this for a long time...

* Use less colors on terminal
> This is not Cyberpunk 2077
- Change credits location

* Enable Run Dialog History back (#102)
- Press Win + R, then type something, you should see more stuff now.

* Add Hyper-V to Optional Features (#102)

* Add Windows Sandbox to Optional Features (#102)

* Add new MS Edge Apps to Remove

* Organize Bloatware list in each category
- Add Dev Home to MSApps

* Don't remove Dev Home yet, it can't be reinstalled

* Winget and Chocolatey won't install while initializing the script (#110)
- Every Winget/Chocolatey operation was moved to Software Install Tab.
- To be able to install apps again, you need to install individually Winget and Chocolatey.
- Also, you can Add or Remove Daily Upgrade for Winget and Chocolatey.
- Chocolatey can now be Uninstalled! *(Be aware to uninstall everything before)*

infra: Manage-Software and every code related to package managers were moved to /src/lib/package-managers/

* Update the message when a package manager was already found before enabling daily upgrade

* Switch Xbox app order on list
- Replace comments

No code changes.

* Update CONTRIBUTING
- I thought i made this change before, sorry for the inconvenience.

* Purge Cortana from reinstallable system apps. (#124)

* When removing Microsoft Edge, keep EdgeWebView (#125)

* Keep EdgeCore folder
- Testing to Remove Edge but keep EdgeWebView working

* Fix Remove-ItemVerified hardcode

* Revert EdgeCore commit (#125)
- Refactor what folders are removed (The Exclude param was broken)

* Move the last package manager related file to /src/lib/package-managers/

* Allow WinDebloatTools to run asking for admin perms +
+ Run Windows Terminal or PowerShell depending on winget.
- If script is in the wrong folder, it'll be able to detect and correct it.

* Install Winget, Chocolatey and WSL on DEMAND (#110 #112)
- If the user wants to install something, instead of going directly to an error, install the missing package manager.
- The 1st time installing will prompt a bigger message (I don't know how this happened)

* Fix PSScriptAnalyzer note.
- The cmdlet 'Install-Software' returns an object of type 'System.Management.Automation.ScriptBlock' but this type is not declared in the OutputType attribute.

* Add option to switch Mouse Acceleration (#102)

* Add option to turn on/off Family Safety Features from Task Schedules (#104)

* Improve Windows Search info (#112)
- Use lib to disable/enable service for WSearch service
- Isolate WSearch tweak on Services category

* Fix Mouse Acceleration persistance after reboot (#102)
- Changed Type to String.

* Add Messenger app and Spotify (#102)
- Spotify line was uncommented

* Fix missing .URL file association :D (#113)
- Took a long time to find out, I'm not doing this again
- All .reg files should wait until finished
- Add "None" type to Set-ItemPropertyVerified
  - Used to a specific case where REG_NONE was needed
- Check if system is Windows 10, then only apply on it
- Added other comment to Windows Photos App, because it's the same as Video Editor (2 apps in 1)
- Create new reg file to bypass perms, solving the .url file disassociation
- In Enable-LegacyContextMenu suppress the New-Item command output

* Use -Encoding UTF8 parameter (#118?)

* Load PSScheduledJob Module in Manage-DailyUpgradeJob (#119)
- For some reason the import was missing again.

* Disable Edge Tasks and Services after uninstalling (#123/#125)
- Add a disclaimer to the message before Removing Edge
- Fixed wildcard usage '*' in Set-ScheduledTaskState function
LeDragoX added a commit that referenced this issue May 16, 2024
* fix: console background color changing
- Add new background colors which works greatly with Powershell and Windows Terminal

* docs: update ISSUE_TEMPLATEs
- Log folder location
- change label to only Feature Request

* Fix: Tab 1 Panel 2 app order

* refactor: change script tmp folder to actually be on User Temp
- Get the Script Temp folder using a new function

* Delete remaining from old tmp\ folder

* arch: rename all powershell scripts to match PS naming
- Even if it isn't approved

* chore: remove unused code
- Install-HEVCSupport function which doesn't work anymore

* arch: rename remaining scripts
- Also fix an name warning from PSScriptAnalyzer
- Remove Main() functions

* style: change debloat script order
- Remove useless code from Remove-CapabilitiesList

* feat: remove old quick assist if the new one is already installed

* feat: Install Quick Assist by GUI
- Remove some console output which wasn't important

* BREAKING CHANGE: Attempt to correctly rename the remaining files (part 1)

* fix: Attempt to correctly rename the remaining files (part 2)

* Change CONTRIBUTING to a less strict policy

* Fix path not being found while downloading (#95)
- This is not a complete fix

* Fix adwcleaner not working (#95)
- Organize imports (yes, again)

* Fix adwcleaner not working (yikes!) (#95)

* Don't set NVIDIA services to Manual anymore (#98)
- Solves issues with GeForce Experience and Control Panel

* Remove more Apps: (#102)
- WhatsApp
- Amazon Prime Video
- TikTok
- Facebook
- Instagram

Spotify will not be removed, as i don't want to :v

* Remove useless files and code
- The lib Grant-RegistryPermission isn't working at all
- Removing all references from this handmade lib

* Prefer using "legacy" Windows 10 context menu on Windows 11
- If you dislike it you can click twice on "Enable Legacy Context Menu" to restore the default
- Less laggy

* Stop triggering github actions everyday

* Rename powershell-linter CI

* Refactor Issue templates
- Need less info
- Fixed punctuation.

* Logs should be divided monthly

* Modify Windows Explorer Navigation Pane behaviors
- Hide Duplicated Removable Devices
- Disable Expand to folder on navigation pane

(Seems to solve: Explorer opening as the primary window without any reason)

* Making disable expand to folder on navigation pane irreversible
- The default is already disabled

* Load PSScheduledJob Module before using it's calls (#119)

* Add DELL bloatware to remove
- Add Alienware apps, but keep them commented
.
.
.
I've been thinking about this for a long time...

* Use less colors on terminal
> This is not Cyberpunk 2077
- Change credits location

* Enable Run Dialog History back (#102)
- Press Win + R, then type something, you should see more stuff now.

* Add Hyper-V to Optional Features (#102)

* Add Windows Sandbox to Optional Features (#102)

* Add new MS Edge Apps to Remove

* Organize Bloatware list in each category
- Add Dev Home to MSApps

* Don't remove Dev Home yet, it can't be reinstalled

* Winget and Chocolatey won't install while initializing the script (#110)
- Every Winget/Chocolatey operation was moved to Software Install Tab.
- To be able to install apps again, you need to install individually Winget and Chocolatey.
- Also, you can Add or Remove Daily Upgrade for Winget and Chocolatey.
- Chocolatey can now be Uninstalled! *(Be aware to uninstall everything before)*

infra: Manage-Software and every code related to package managers were moved to /src/lib/package-managers/

* Update the message when a package manager was already found before enabling daily upgrade

* Switch Xbox app order on list
- Replace comments

No code changes.

* Update CONTRIBUTING
- I thought i made this change before, sorry for the inconvenience.

* Purge Cortana from reinstallable system apps. (#124)

* When removing Microsoft Edge, keep EdgeWebView (#125)

* Keep EdgeCore folder
- Testing to Remove Edge but keep EdgeWebView working

* Fix Remove-ItemVerified hardcode

* Revert EdgeCore commit (#125)
- Refactor what folders are removed (The Exclude param was broken)

* Move the last package manager related file to /src/lib/package-managers/

* Allow WinDebloatTools to run asking for admin perms +
+ Run Windows Terminal or PowerShell depending on winget.
- If script is in the wrong folder, it'll be able to detect and correct it.

* Install Winget, Chocolatey and WSL on DEMAND (#110 #112)
- If the user wants to install something, instead of going directly to an error, install the missing package manager.
- The 1st time installing will prompt a bigger message (I don't know how this happened)

* Fix PSScriptAnalyzer note.
- The cmdlet 'Install-Software' returns an object of type 'System.Management.Automation.ScriptBlock' but this type is not declared in the OutputType attribute.

* Add option to switch Mouse Acceleration (#102)

* Add option to turn on/off Family Safety Features from Task Schedules (#104)

* Improve Windows Search info (#112)
- Use lib to disable/enable service for WSearch service
- Isolate WSearch tweak on Services category

* Fix Mouse Acceleration persistance after reboot (#102)
- Changed Type to String.

* Add Messenger app and Spotify (#102)
- Spotify line was uncommented

* Fix missing .URL file association :D (#113)
- Took a long time to find out, I'm not doing this again
- All .reg files should wait until finished
- Add "None" type to Set-ItemPropertyVerified
  - Used to a specific case where REG_NONE was needed
- Check if system is Windows 10, then only apply on it
- Added other comment to Windows Photos App, because it's the same as Video Editor (2 apps in 1)
- Create new reg file to bypass perms, solving the .url file disassociation
- In Enable-LegacyContextMenu suppress the New-Item command output

* Use -Encoding UTF8 parameter (#118?)

* Load PSScheduledJob Module in Manage-DailyUpgradeJob (#119)
- For some reason the import was missing again.

* Disable Edge Tasks and Services after uninstalling (#123/#125)
- Add a disclaimer to the message before Removing Edge
- Fixed wildcard usage '*' in Set-ScheduledTaskState function

* Update script GUI

* Fix Powershell workflow badge

* Truly fix PSScriptAnalizer badge
- .yml -> yaml

* Update README info to match all functionalities

* Fix Randomize System Color function call

* Don't enable Net Framework 4.8 Advanced Services

* Rename function "Use-DebloatSoftware" to "Invoke-DebloatSoftware"

* Disable reserved storage
- Gives more storage space

* Add ROADMAP file, containing major changes
- This was moved from the Projects tab

* docs: Shorten unnecessary parts
- Test new markdown feature.

* Fix formatting when using highlighted blockquotes

* Fix UI button inconsistencies
- Change Date format and how opened scripts are shown.

* Added Disk cleanup scripts
- Remove-TemporaryFiles
- Remove-WindowsOld
- Start-DiskCleanUp
*NOTE: These are not integrated with the Apply Tweaks button as some of then delete occurring install/update files and should be done separately or while you're aware

* GUI: Display version [DATE] rather than [File name] [DATE]

* Remove Windows.old folder after cleaning

* Fix CLI mode not working if not admin (#136)

* Add "Power Automate" to the Bloatware list

* Do not enable .NET strong cryptography (#130)
- Better off than enabled
- All users still need to remove it manually.

* Fix value from mouse hover time
- This registry key is using milliseconds unit to define the time

* Use firefox version from Chocolatey
- Winget version seems a mix from MS Store, which can't open some URLs

* Increase Mouse Hover time to 100ms
- 10ms was pretty unstable

* Add option to Disable and Enable News And Interest (Win10)

* NewsAndInterest: Remove the key value rather than putting value forced to 1

* Add title to PowerShell window
- Fix wrong location warning color
- Make last Personal Tweak one line

* cleanup: Remove useless date line

* Only set High Performance power plan to DESKTOP PCs (Laptops and other types will be ignored)
- Avoid thermonuclear mobile devices (reduces performance and BATTERY drain in these devices)

* Add my (LeDragoX) Pix as a donation method (Just copy and remove the 2 first words + "-")
- Allow Brazilians to donate easily

* Update Request-FileDownload.psm1 (#140)

Had to dig deeper... 
If the the path "$(Get-TempScriptFolder)\downloads" is not existent. An has to be created, the script will fail. 
Cause of the error was a non-captured output in this function at corrected line.

* Update Invoke-DebloatSoftware.ps1 (#141)

Some minor optimization on cleaning after tool download & execution.

* Fix OneDrive install
- Remove whitespace

* Fix OneDrive reinstall*

* Use doubled quotation marks ( " ) instead of single ( ' )
- Add quotation marks when a component "was not found".

* Fix Windows Update always notifying (return to normal behavior)
- Will updates be automatic?
- Set Scheduled Update to be 3AM (was 4AM)

* Update README

* Update README Warning

* fix: Return to default WU automatic updates policies when enabling it
I messed up automatic updates, as it waited for 3AM to reach, but never happened

* Add an option to Enable Location Services settings (#133)
- Fix "lfsvc" service tweak, the parameter was named "EnableStatus", not "Status"

* Move Winget/Chocolatey Settings to new tab "Settings"

* Rename Location tweak type to "Privacy"

* Improve Set-ItemPropertyVerified lib
- Use less hardcode
- Check if $null before inserting parameters
- Binary types need a special input
- Allow to input multiple Paths

* Check $null before inserting parameters on Remove-ItemVerified lib
- Add a Write-Verbose line to check the command processed

* Make available the Uninstall option to Microsoft Edge natively
- Added the tweak to Remove-MSEdge
  * This may help with edge cmd uninstall, as it unlocks the software uninstall option.

Inspired by: "How Difficult is it to Uninstall Microsoft Edge?" from Endermanch

* Comment Whatsapp, as it couldn't be instantly removed from Windows
- This is one of the apps by demand, which start just as a link/stub to download

* fix: DNS over HTTPS internet slowdown setting (10s+ loading)
- All settings must be set to $false
- Added the -DohTemplate to fulfill the parameters.

* README: don't want to be the next Yuz- (hope this helps on the legal part)
- Added a link to new Discussion in case you got any question or concern

* Update Emulation section
- Remove BSnes HD
- Remove Project 64
- Add Duckstation
- Install PPSSPP via Chocolatey (newer)

* Increase MouseHoverTime a bit

* Add Support to Windows 11 23H2 (#137)
- Add tweak to keep the show desktop button enabled
- When uninstalling WSL, also uninstall the optional feature
- Insert Windows version for some tweaks
- Update ROADMAP

* Add an option to enable/disable Windows Spotlight (#156)
- Allows the user to enable Windows Spotlight as Desktop Background

* chore(deps): bump github/codeql-action from 2 to 3 (#145)

Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2 to 3.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](github/codeql-action@v2...v3)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* docs: update link to ps1 file (#159)

* docs: update link to ps1 file

Update link from silent-debloat-softwares.ps1 to Use-DebloatSoftware.ps1, reading the script this file looks the right one now.

* Update file name to `Invoke-DebloatSoftware.ps1`

- related to develop branch

---------

Co-authored-by: Plínio Larrubia <plinio2xd@gmail.com>

* Remove other Funding.yml option

* Restore Sleep Button (#158)
- Also restoring the default Hibernate type (Full)

* chore(deps): bump github/codeql-action from 2 to 3 (#161)

Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2 to 3.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](github/codeql-action@v2...v3)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Fix: Restore sleep button
- Remove space after path

* Make function Remove-ItemPropertyVerified
- Serves to verify empty paths while removing properties from registry

* Update README documentation

* Enable NDU back, allowing the  task manager to show network usage per process

* Remove old linux versions for WSL
- Removed Ubuntu 18 and 20 too

* Bypass the Restore Point limit (#131)

* Fix OneDrive removal (#147)

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: 747DB66FBC <133031823+747DB66FBC@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Italo A <italoaurelior@gmail.com>
Co-authored-by: 5p3ctra <5p3ctra@users.noreply.github.com>
LeDragoX added a commit that referenced this issue Sep 8, 2024
* fix: console background color changing
- Add new background colors which works greatly with Powershell and Windows Terminal

* docs: update ISSUE_TEMPLATEs
- Log folder location
- change label to only Feature Request

* Fix: Tab 1 Panel 2 app order

* refactor: change script tmp folder to actually be on User Temp
- Get the Script Temp folder using a new function

* Delete remaining from old tmp\ folder

* arch: rename all powershell scripts to match PS naming
- Even if it isn't approved

* chore: remove unused code
- Install-HEVCSupport function which doesn't work anymore

* arch: rename remaining scripts
- Also fix an name warning from PSScriptAnalyzer
- Remove Main() functions

* style: change debloat script order
- Remove useless code from Remove-CapabilitiesList

* feat: remove old quick assist if the new one is already installed

* feat: Install Quick Assist by GUI
- Remove some console output which wasn't important

* BREAKING CHANGE: Attempt to correctly rename the remaining files (part 1)

* fix: Attempt to correctly rename the remaining files (part 2)

* Change CONTRIBUTING to a less strict policy

* Fix path not being found while downloading (#95)
- This is not a complete fix

* Fix adwcleaner not working (#95)
- Organize imports (yes, again)

* Fix adwcleaner not working (yikes!) (#95)

* Don't set NVIDIA services to Manual anymore (#98)
- Solves issues with GeForce Experience and Control Panel

* Remove more Apps: (#102)
- WhatsApp
- Amazon Prime Video
- TikTok
- Facebook
- Instagram

Spotify will not be removed, as i don't want to :v

* Remove useless files and code
- The lib Grant-RegistryPermission isn't working at all
- Removing all references from this handmade lib

* Prefer using "legacy" Windows 10 context menu on Windows 11
- If you dislike it you can click twice on "Enable Legacy Context Menu" to restore the default
- Less laggy

* Stop triggering github actions everyday

* Rename powershell-linter CI

* Refactor Issue templates
- Need less info
- Fixed punctuation.

* Logs should be divided monthly

* Modify Windows Explorer Navigation Pane behaviors
- Hide Duplicated Removable Devices
- Disable Expand to folder on navigation pane

(Seems to solve: Explorer opening as the primary window without any reason)

* Making disable expand to folder on navigation pane irreversible
- The default is already disabled

* Load PSScheduledJob Module before using it's calls (#119)

* Add DELL bloatware to remove
- Add Alienware apps, but keep them commented
.
.
.
I've been thinking about this for a long time...

* Use less colors on terminal
> This is not Cyberpunk 2077
- Change credits location

* Enable Run Dialog History back (#102)
- Press Win + R, then type something, you should see more stuff now.

* Add Hyper-V to Optional Features (#102)

* Add Windows Sandbox to Optional Features (#102)

* Add new MS Edge Apps to Remove

* Organize Bloatware list in each category
- Add Dev Home to MSApps

* Don't remove Dev Home yet, it can't be reinstalled

* Winget and Chocolatey won't install while initializing the script (#110)
- Every Winget/Chocolatey operation was moved to Software Install Tab.
- To be able to install apps again, you need to install individually Winget and Chocolatey.
- Also, you can Add or Remove Daily Upgrade for Winget and Chocolatey.
- Chocolatey can now be Uninstalled! *(Be aware to uninstall everything before)*

infra: Manage-Software and every code related to package managers were moved to /src/lib/package-managers/

* Update the message when a package manager was already found before enabling daily upgrade

* Switch Xbox app order on list
- Replace comments

No code changes.

* Update CONTRIBUTING
- I thought i made this change before, sorry for the inconvenience.

* Purge Cortana from reinstallable system apps. (#124)

* When removing Microsoft Edge, keep EdgeWebView (#125)

* Keep EdgeCore folder
- Testing to Remove Edge but keep EdgeWebView working

* Fix Remove-ItemVerified hardcode

* Revert EdgeCore commit (#125)
- Refactor what folders are removed (The Exclude param was broken)

* Move the last package manager related file to /src/lib/package-managers/

* Allow WinDebloatTools to run asking for admin perms +
+ Run Windows Terminal or PowerShell depending on winget.
- If script is in the wrong folder, it'll be able to detect and correct it.

* Install Winget, Chocolatey and WSL on DEMAND (#110 #112)
- If the user wants to install something, instead of going directly to an error, install the missing package manager.
- The 1st time installing will prompt a bigger message (I don't know how this happened)

* Fix PSScriptAnalyzer note.
- The cmdlet 'Install-Software' returns an object of type 'System.Management.Automation.ScriptBlock' but this type is not declared in the OutputType attribute.

* Add option to switch Mouse Acceleration (#102)

* Add option to turn on/off Family Safety Features from Task Schedules (#104)

* Improve Windows Search info (#112)
- Use lib to disable/enable service for WSearch service
- Isolate WSearch tweak on Services category

* Fix Mouse Acceleration persistance after reboot (#102)
- Changed Type to String.

* Add Messenger app and Spotify (#102)
- Spotify line was uncommented

* Fix missing .URL file association :D (#113)
- Took a long time to find out, I'm not doing this again
- All .reg files should wait until finished
- Add "None" type to Set-ItemPropertyVerified
  - Used to a specific case where REG_NONE was needed
- Check if system is Windows 10, then only apply on it
- Added other comment to Windows Photos App, because it's the same as Video Editor (2 apps in 1)
- Create new reg file to bypass perms, solving the .url file disassociation
- In Enable-LegacyContextMenu suppress the New-Item command output

* Use -Encoding UTF8 parameter (#118?)

* Load PSScheduledJob Module in Manage-DailyUpgradeJob (#119)
- For some reason the import was missing again.

* Disable Edge Tasks and Services after uninstalling (#123/#125)
- Add a disclaimer to the message before Removing Edge
- Fixed wildcard usage '*' in Set-ScheduledTaskState function
LeDragoX added a commit that referenced this issue Sep 8, 2024
* fix: console background color changing
- Add new background colors which works greatly with Powershell and Windows Terminal

* docs: update ISSUE_TEMPLATEs
- Log folder location
- change label to only Feature Request

* Fix: Tab 1 Panel 2 app order

* refactor: change script tmp folder to actually be on User Temp
- Get the Script Temp folder using a new function

* Delete remaining from old tmp\ folder

* arch: rename all powershell scripts to match PS naming
- Even if it isn't approved

* chore: remove unused code
- Install-HEVCSupport function which doesn't work anymore

* arch: rename remaining scripts
- Also fix an name warning from PSScriptAnalyzer
- Remove Main() functions

* style: change debloat script order
- Remove useless code from Remove-CapabilitiesList

* feat: remove old quick assist if the new one is already installed

* feat: Install Quick Assist by GUI
- Remove some console output which wasn't important

* BREAKING CHANGE: Attempt to correctly rename the remaining files (part 1)

* fix: Attempt to correctly rename the remaining files (part 2)

* Change CONTRIBUTING to a less strict policy

* Fix path not being found while downloading (#95)
- This is not a complete fix

* Fix adwcleaner not working (#95)
- Organize imports (yes, again)

* Fix adwcleaner not working (yikes!) (#95)

* Don't set NVIDIA services to Manual anymore (#98)
- Solves issues with GeForce Experience and Control Panel

* Remove more Apps: (#102)
- WhatsApp
- Amazon Prime Video
- TikTok
- Facebook
- Instagram

Spotify will not be removed, as i don't want to :v

* Remove useless files and code
- The lib Grant-RegistryPermission isn't working at all
- Removing all references from this handmade lib

* Prefer using "legacy" Windows 10 context menu on Windows 11
- If you dislike it you can click twice on "Enable Legacy Context Menu" to restore the default
- Less laggy

* Stop triggering github actions everyday

* Rename powershell-linter CI

* Refactor Issue templates
- Need less info
- Fixed punctuation.

* Logs should be divided monthly

* Modify Windows Explorer Navigation Pane behaviors
- Hide Duplicated Removable Devices
- Disable Expand to folder on navigation pane

(Seems to solve: Explorer opening as the primary window without any reason)

* Making disable expand to folder on navigation pane irreversible
- The default is already disabled

* Load PSScheduledJob Module before using it's calls (#119)

* Add DELL bloatware to remove
- Add Alienware apps, but keep them commented
.
.
.
I've been thinking about this for a long time...

* Use less colors on terminal
> This is not Cyberpunk 2077
- Change credits location

* Enable Run Dialog History back (#102)
- Press Win + R, then type something, you should see more stuff now.

* Add Hyper-V to Optional Features (#102)

* Add Windows Sandbox to Optional Features (#102)

* Add new MS Edge Apps to Remove

* Organize Bloatware list in each category
- Add Dev Home to MSApps

* Don't remove Dev Home yet, it can't be reinstalled

* Winget and Chocolatey won't install while initializing the script (#110)
- Every Winget/Chocolatey operation was moved to Software Install Tab.
- To be able to install apps again, you need to install individually Winget and Chocolatey.
- Also, you can Add or Remove Daily Upgrade for Winget and Chocolatey.
- Chocolatey can now be Uninstalled! *(Be aware to uninstall everything before)*

infra: Manage-Software and every code related to package managers were moved to /src/lib/package-managers/

* Update the message when a package manager was already found before enabling daily upgrade

* Switch Xbox app order on list
- Replace comments

No code changes.

* Update CONTRIBUTING
- I thought i made this change before, sorry for the inconvenience.

* Purge Cortana from reinstallable system apps. (#124)

* When removing Microsoft Edge, keep EdgeWebView (#125)

* Keep EdgeCore folder
- Testing to Remove Edge but keep EdgeWebView working

* Fix Remove-ItemVerified hardcode

* Revert EdgeCore commit (#125)
- Refactor what folders are removed (The Exclude param was broken)

* Move the last package manager related file to /src/lib/package-managers/

* Allow WinDebloatTools to run asking for admin perms +
+ Run Windows Terminal or PowerShell depending on winget.
- If script is in the wrong folder, it'll be able to detect and correct it.

* Install Winget, Chocolatey and WSL on DEMAND (#110 #112)
- If the user wants to install something, instead of going directly to an error, install the missing package manager.
- The 1st time installing will prompt a bigger message (I don't know how this happened)

* Fix PSScriptAnalyzer note.
- The cmdlet 'Install-Software' returns an object of type 'System.Management.Automation.ScriptBlock' but this type is not declared in the OutputType attribute.

* Add option to switch Mouse Acceleration (#102)

* Add option to turn on/off Family Safety Features from Task Schedules (#104)

* Improve Windows Search info (#112)
- Use lib to disable/enable service for WSearch service
- Isolate WSearch tweak on Services category

* Fix Mouse Acceleration persistance after reboot (#102)
- Changed Type to String.

* Add Messenger app and Spotify (#102)
- Spotify line was uncommented

* Fix missing .URL file association :D (#113)
- Took a long time to find out, I'm not doing this again
- All .reg files should wait until finished
- Add "None" type to Set-ItemPropertyVerified
  - Used to a specific case where REG_NONE was needed
- Check if system is Windows 10, then only apply on it
- Added other comment to Windows Photos App, because it's the same as Video Editor (2 apps in 1)
- Create new reg file to bypass perms, solving the .url file disassociation
- In Enable-LegacyContextMenu suppress the New-Item command output

* Use -Encoding UTF8 parameter (#118?)

* Load PSScheduledJob Module in Manage-DailyUpgradeJob (#119)
- For some reason the import was missing again.

* Disable Edge Tasks and Services after uninstalling (#123/#125)
- Add a disclaimer to the message before Removing Edge
- Fixed wildcard usage '*' in Set-ScheduledTaskState function

* Update script GUI

* Fix Powershell workflow badge

* Truly fix PSScriptAnalizer badge
- .yml -> yaml

* Update README info to match all functionalities

* Fix Randomize System Color function call

* Don't enable Net Framework 4.8 Advanced Services

* Rename function "Use-DebloatSoftware" to "Invoke-DebloatSoftware"

* Disable reserved storage
- Gives more storage space

* Add ROADMAP file, containing major changes
- This was moved from the Projects tab

* docs: Shorten unnecessary parts
- Test new markdown feature.

* Fix formatting when using highlighted blockquotes

* Fix UI button inconsistencies
- Change Date format and how opened scripts are shown.

* Added Disk cleanup scripts
- Remove-TemporaryFiles
- Remove-WindowsOld
- Start-DiskCleanUp
*NOTE: These are not integrated with the Apply Tweaks button as some of then delete occurring install/update files and should be done separately or while you're aware

* GUI: Display version [DATE] rather than [File name] [DATE]

* Remove Windows.old folder after cleaning

* Fix CLI mode not working if not admin (#136)

* Add "Power Automate" to the Bloatware list

* Do not enable .NET strong cryptography (#130)
- Better off than enabled
- All users still need to remove it manually.

* Fix value from mouse hover time
- This registry key is using milliseconds unit to define the time

* Use firefox version from Chocolatey
- Winget version seems a mix from MS Store, which can't open some URLs

* Increase Mouse Hover time to 100ms
- 10ms was pretty unstable

* Add option to Disable and Enable News And Interest (Win10)

* NewsAndInterest: Remove the key value rather than putting value forced to 1

* Add title to PowerShell window
- Fix wrong location warning color
- Make last Personal Tweak one line

* cleanup: Remove useless date line

* Only set High Performance power plan to DESKTOP PCs (Laptops and other types will be ignored)
- Avoid thermonuclear mobile devices (reduces performance and BATTERY drain in these devices)

* Add my (LeDragoX) Pix as a donation method (Just copy and remove the 2 first words + "-")
- Allow Brazilians to donate easily

* Update Request-FileDownload.psm1 (#140)

Had to dig deeper... 
If the the path "$(Get-TempScriptFolder)\downloads" is not existent. An has to be created, the script will fail. 
Cause of the error was a non-captured output in this function at corrected line.

* Update Invoke-DebloatSoftware.ps1 (#141)

Some minor optimization on cleaning after tool download & execution.

* Fix OneDrive install
- Remove whitespace

* Fix OneDrive reinstall*

* Use doubled quotation marks ( " ) instead of single ( ' )
- Add quotation marks when a component "was not found".

* Fix Windows Update always notifying (return to normal behavior)
- Will updates be automatic?
- Set Scheduled Update to be 3AM (was 4AM)

* Update README

* Update README Warning

* fix: Return to default WU automatic updates policies when enabling it
I messed up automatic updates, as it waited for 3AM to reach, but never happened

* Add an option to Enable Location Services settings (#133)
- Fix "lfsvc" service tweak, the parameter was named "EnableStatus", not "Status"

* Move Winget/Chocolatey Settings to new tab "Settings"

* Rename Location tweak type to "Privacy"

* Improve Set-ItemPropertyVerified lib
- Use less hardcode
- Check if $null before inserting parameters
- Binary types need a special input
- Allow to input multiple Paths

* Check $null before inserting parameters on Remove-ItemVerified lib
- Add a Write-Verbose line to check the command processed

* Make available the Uninstall option to Microsoft Edge natively
- Added the tweak to Remove-MSEdge
  * This may help with edge cmd uninstall, as it unlocks the software uninstall option.

Inspired by: "How Difficult is it to Uninstall Microsoft Edge?" from Endermanch

* Comment Whatsapp, as it couldn't be instantly removed from Windows
- This is one of the apps by demand, which start just as a link/stub to download

* fix: DNS over HTTPS internet slowdown setting (10s+ loading)
- All settings must be set to $false
- Added the -DohTemplate to fulfill the parameters.

* README: don't want to be the next Yuz- (hope this helps on the legal part)
- Added a link to new Discussion in case you got any question or concern

* Update Emulation section
- Remove BSnes HD
- Remove Project 64
- Add Duckstation
- Install PPSSPP via Chocolatey (newer)

* Increase MouseHoverTime a bit

* Add Support to Windows 11 23H2 (#137)
- Add tweak to keep the show desktop button enabled
- When uninstalling WSL, also uninstall the optional feature
- Insert Windows version for some tweaks
- Update ROADMAP

* Add an option to enable/disable Windows Spotlight (#156)
- Allows the user to enable Windows Spotlight as Desktop Background

* chore(deps): bump github/codeql-action from 2 to 3 (#145)

Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2 to 3.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](github/codeql-action@v2...v3)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* docs: update link to ps1 file (#159)

* docs: update link to ps1 file

Update link from silent-debloat-softwares.ps1 to Use-DebloatSoftware.ps1, reading the script this file looks the right one now.

* Update file name to `Invoke-DebloatSoftware.ps1`

- related to develop branch

---------

Co-authored-by: Plínio Larrubia <plinio2xd@gmail.com>

* Remove other Funding.yml option

* Restore Sleep Button (#158)
- Also restoring the default Hibernate type (Full)

* chore(deps): bump github/codeql-action from 2 to 3 (#161)

Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2 to 3.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](github/codeql-action@v2...v3)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Fix: Restore sleep button
- Remove space after path

* Make function Remove-ItemPropertyVerified
- Serves to verify empty paths while removing properties from registry

* Update README documentation

* Enable NDU back, allowing the  task manager to show network usage per process

* Remove old linux versions for WSL
- Removed Ubuntu 18 and 20 too

* Bypass the Restore Point limit (#131)

* Fix OneDrive removal (#147)

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: 747DB66FBC <133031823+747DB66FBC@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Italo A <italoaurelior@gmail.com>
Co-authored-by: 5p3ctra <5p3ctra@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant