I noticed that Powershell 7.2.5 installs its modules and other scripts into my OneDrive folder, specifically C:\Users\myuser\OneDrive\Documents\PowerShell. This is undesirable, as the subfolder can become quite large and can take up the majority of my OneDrive space.
How do i prevent this from happening? I checked the PSModulePath environmental variable and it doesn’t contain a OneDrive location.