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

The system cannot find the file specified (gpedit.msc) #365

Closed
3 of 4 tasks
notDavid opened this issue Jul 16, 2022 · 3 comments
Closed
3 of 4 tasks

The system cannot find the file specified (gpedit.msc) #365

notDavid opened this issue Jul 16, 2022 · 3 comments

Comments

@notDavid
Copy link

Prerequisites

Steps to reproduce

Hi there, i downloaded the script via irm script.sophi.app | iex and ran it via Sophia Script Wrapper and got this error, please advise and perhaps it is useful to you to prevent it in the future :-)

Thank you.

$ systeminfo
Host Name:                 PC
OS Name:                   Microsoft Windows 11 Home
OS Version:                10.0.22000 N/A Build 22000
OS Manufacturer:           Microsoft Corporation
OS Configuration:          Standalone Workstation

Windows Version 21H2 (OS Build 22000.795)

Start-Process : This command cannot be run due to the error: The system cannot find the file specified.
At C:\Users\David\Apps\Sophia Script for Windows 11 v6.1.1\Module\Sophia.psm1:12219 char:3
+         Start-Process -FilePath gpedit.msc
terminal.output.log

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------                                              Script     6.1.1      Sophia                              {ActiveHours, AdminApprovalMode, AdvertisingID, AeroShakin... Script     3.0.1      PolicyFileEditor                    {Get-PolicyFileEntry, Remove-PolicyFileEntry, Set-PolicyFi...                                                                                                                         Have you customized every function in the DS.ps1 preset file before running Sophia Script?                              [N] No  [Y] Yes  [?] Help (default is "N"): y

SystemRestorePointCreationFrequency : 0
PSPath                              : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
                                     NT\CurrentVersion\SystemRestore
PSParentPath                        : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
                                     NT\CurrentVersion
PSChildName                         : SystemRestore
PSDrive                             : HKLM
PSProvider                          : Microsoft.PowerShell.Core\Registry


SystemRestorePointCreationFrequency : 1440
PSPath                              : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
                                     NT\CurrentVersion\SystemRestore
PSParentPath                        : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
                                     NT\CurrentVersion
PSChildName                         : SystemRestore
PSDrive                             : HKLM
PSProvider                          : Microsoft.PowerShell.Core\Registry


AllowTelemetry : 1
PSPath         : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\DataCollect
               ion
PSParentPath   : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows
PSChildName    : DataCollection
PSDrive        : HKLM
PSProvider     : Microsoft.PowerShell.Core\Registry


MaxTelemetryAllowed : 1
PSPath              : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\
                    Policies\DataCollection
PSParentPath        : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\
                    Policies
PSChildName         : DataCollection
PSDrive             : HKLM
PSProvider          : Microsoft.PowerShell.Core\Registry


ShowedToastAtLevel : 1
PSPath             : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Di
                   agnostics\DiagTrack
PSParentPath       : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Di
                   agnostics
PSChildName        : DiagTrack
PSDrive            : HKCU
PSProvider         : Microsoft.PowerShell.Core\Registry


NumberOfSIUFInPeriod : 0
PSPath               : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Siuf\Rules
PSParentPath         : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Siuf
PSChildName          : Rules
PSDrive              : HKCU
PSProvider           : Microsoft.PowerShell.Core\Registry


VERBOSE: Please wait...

VERBOSE: Displaying the dialog box...
True
True

VERBOSE: Please wait...
VERBOSE: ProgramDataUpdater
VERBOSE: Proxy
VERBOSE: Consolidator
VERBOSE: UsbCeip
VERBOSE: Microsoft-Windows-DiskDiagnosticDataCollector
VERBOSE: MapsToastTask
VERBOSE: FamilySafetyMonitor
VERBOSE: FamilySafetyRefreshTask
VERBOSE: XblGameSaveTask

Property      : {}
PSPath        : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
              NT\CurrentVersion\Winlogon\UserARSO\S-1-5-21-1864770260-442081401-2044799921-1001
PSParentPath  : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
              NT\CurrentVersion\Winlogon\UserARSO
PSChildName   : S-1-5-21-1864770260-442081401-2044799921-1001
PSDrive       : HKLM
PSProvider    : Microsoft.PowerShell.Core\Registry
PSIsContainer : True
SubKeyCount   : 0
View          : Default
Handle        : Microsoft.Win32.SafeHandles.SafeRegistryHandle
ValueCount    : 0
Name          : HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
              NT\CurrentVersion\Winlogon\UserARSO\S-1-5-21-1864770260-442081401-2044799921-1001


OptOut       : 1
PSPath       : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
             NT\CurrentVersion\Winlogon\UserARSO\S-1-5-21-1864770260-442081401-2044799921-1001
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
             NT\CurrentVersion\Winlogon\UserARSO
PSChildName  : S-1-5-21-1864770260-442081401-2044799921-1001
PSDrive      : HKLM
PSProvider   : Microsoft.PowerShell.Core\Registry


HttpAcceptLanguageOptOut : 1
PSPath                   : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\Control Panel\International\User
                         Profile
PSParentPath             : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\Control Panel\International
PSChildName              : User Profile
PSDrive                  : HKCU
PSProvider               : Microsoft.PowerShell.Core\Registry


Enabled      : 0
PSPath       : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Advertis
             ingInfo
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion
PSChildName  : AdvertisingInfo
PSDrive      : HKCU
PSProvider   : Microsoft.PowerShell.Core\Registry


SubscribedContent-310093Enabled : 0
PSPath                          : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\Curr
                                entVersion\ContentDeliveryManager
PSParentPath                    : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\Curr
                                entVersion
PSChildName                     : ContentDeliveryManager
PSDrive                         : HKCU
PSProvider                      : Microsoft.PowerShell.Core\Registry


SubscribedContent-338389Enabled : 1
PSPath                          : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\Curr
                                entVersion\ContentDeliveryManager
PSParentPath                    : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\Curr
                                entVersion
PSChildName                     : ContentDeliveryManager
PSDrive                         : HKCU
PSProvider                      : Microsoft.PowerShell.Core\Registry


SubscribedContent-338393Enabled : 0
PSPath                          : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\Curr
                                entVersion\ContentDeliveryManager
PSParentPath                    : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\Curr
                                entVersion
PSChildName                     : ContentDeliveryManager
PSDrive                         : HKCU
PSProvider                      : Microsoft.PowerShell.Core\Registry


SubscribedContent-353694Enabled : 0
PSPath                          : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\Curr
                                entVersion\ContentDeliveryManager
PSParentPath                    : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\Curr
                                entVersion
PSChildName                     : ContentDeliveryManager
PSDrive                         : HKCU
PSProvider                      : Microsoft.PowerShell.Core\Registry


SubscribedContent-353696Enabled : 0
PSPath                          : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\Curr
                                entVersion\ContentDeliveryManager
PSParentPath                    : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\Curr
                                entVersion
PSChildName                     : ContentDeliveryManager
PSDrive                         : HKCU
PSProvider                      : Microsoft.PowerShell.Core\Registry


SilentInstalledAppsEnabled : 0
PSPath                     : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVe
                           rsion\ContentDeliveryManager
PSParentPath               : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVe
                           rsion
PSChildName                : ContentDeliveryManager
PSDrive                    : HKCU
PSProvider                 : Microsoft.PowerShell.Core\Registry


ScoobeSystemSettingEnabled : 0
PSPath                     : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVe
                           rsion\UserProfileEngagement
PSParentPath               : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVe
                           rsion
PSChildName                : UserProfileEngagement
PSDrive                    : HKCU
PSProvider                 : Microsoft.PowerShell.Core\Registry


TailoredExperiencesWithDiagnosticDataEnabled : 0
PSPath                                       : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft
                                             \Windows\CurrentVersion\Privacy
PSParentPath                                 : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft
                                             \Windows\CurrentVersion
PSChildName                                  : Privacy
PSDrive                                      : HKCU
PSProvider                                   : Microsoft.PowerShell.Core\Registry


Property      : {}
PSPath        : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows\Explorer
PSParentPath  : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows
PSChildName   : Explorer
PSDrive       : HKCU
PSProvider    : Microsoft.PowerShell.Core\Registry
PSIsContainer : True
SubKeyCount   : 0
View          : Default
Handle        : Microsoft.Win32.SafeHandles.SafeRegistryHandle
ValueCount    : 0
Name          : HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows\Explorer


DisableSearchBoxSuggestions : 1
PSPath                      : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows
                            \Explorer
PSParentPath                : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows
PSChildName                 : Explorer
PSDrive                     : HKCU
PSProvider                  : Microsoft.PowerShell.Core\Registry


{20D04FE0-3AEA-1069-A2D8-08002B30309D} : 0
PSPath                                 : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windo
                                       ws\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel
PSParentPath                           : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windo
                                       ws\CurrentVersion\Explorer\HideDesktopIcons
PSChildName                            : NewStartPanel
PSDrive                                : HKCU
PSProvider                             : Microsoft.PowerShell.Core\Registry


AutoCheckSelect : 0
PSPath          : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explo
                rer\Advanced
PSParentPath    : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explo
                rer
PSChildName     : Advanced
PSDrive         : HKCU
PSProvider      : Microsoft.PowerShell.Core\Registry


Hidden       : 1
PSPath       : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer
             \Advanced
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer
PSChildName  : Advanced
PSDrive      : HKCU
PSProvider   : Microsoft.PowerShell.Core\Registry


HideFileExt  : 0
PSPath       : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer
             \Advanced
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer
PSChildName  : Advanced
PSDrive      : HKCU
PSProvider   : Microsoft.PowerShell.Core\Registry


HideMergeConflicts : 0
PSPath             : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Ex
                   plorer\Advanced
PSParentPath       : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Ex
                   plorer
PSChildName        : Advanced
PSDrive            : HKCU
PSProvider         : Microsoft.PowerShell.Core\Registry


LaunchTo     : 1
PSPath       : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer
             \Advanced
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer
PSChildName  : Advanced
PSDrive      : HKCU
PSProvider   : Microsoft.PowerShell.Core\Registry


UseCompactMode : 0
PSPath         : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explor
               er\Advanced
PSParentPath   : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explor
               er
PSChildName    : Advanced
PSDrive        : HKCU
PSProvider     : Microsoft.PowerShell.Core\Registry


ShowSyncProviderNotifications : 0
PSPath                        : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\Curren
                              tVersion\Explorer\Advanced
PSParentPath                  : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\Curren
                              tVersion\Explorer
PSChildName                   : Advanced
PSDrive                       : HKCU
PSProvider                    : Microsoft.PowerShell.Core\Registry


Property      : {}
PSPath        : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explore
              r\OperationStatusManager
PSParentPath  : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explore
              r
PSChildName   : OperationStatusManager
PSDrive       : HKCU
PSProvider    : Microsoft.PowerShell.Core\Registry
PSIsContainer : True
SubKeyCount   : 0
View          : Default
Handle        : Microsoft.Win32.SafeHandles.SafeRegistryHandle
ValueCount    : 0
Name          : HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\OperationStatusManager


EnthusiastMode : 1
PSPath         : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explor
               er\OperationStatusManager
PSParentPath   : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explor
               er
PSChildName    : OperationStatusManager
PSDrive        : HKCU
PSProvider     : Microsoft.PowerShell.Core\Registry


ShellState   : {36, 0, 0, 0...}
PSPath       : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion
PSChildName  : Explorer
PSDrive      : HKCU
PSProvider   : Microsoft.PowerShell.Core\Registry


ShowRecent   : 0
PSPath       : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion
PSChildName  : Explorer
PSDrive      : HKCU
PSProvider   : Microsoft.PowerShell.Core\Registry


ShowFrequent : 0
PSPath       : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion
PSChildName  : Explorer
PSDrive      : HKCU
PSProvider   : Microsoft.PowerShell.Core\Registry


TaskbarAl    : 1
PSPath       : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer
             \Advanced
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer
PSChildName  : Advanced
PSDrive      : HKCU
PSProvider   : Microsoft.PowerShell.Core\Registry


SearchboxTaskbarMode : 0
PSPath               : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\
                     Search
PSParentPath         : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion
PSChildName          : Search
PSDrive              : HKCU
PSProvider           : Microsoft.PowerShell.Core\Registry


TaskbarDa    : 0
PSPath       : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer
             \Advanced
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer
PSChildName  : Advanced
PSDrive      : HKCU
PSProvider   : Microsoft.PowerShell.Core\Registry


TaskbarMn    : 0
PSPath       : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer
             \Advanced
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer
PSChildName  : Advanced
PSDrive      : HKCU
PSProvider   : Microsoft.PowerShell.Core\Registry


Property      : {}
PSPath        : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explore
              r\ControlPanel
PSParentPath  : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explore
              r
PSChildName   : ControlPanel
PSDrive       : HKCU
PSProvider    : Microsoft.PowerShell.Core\Registry
PSIsContainer : True
SubKeyCount   : 0
View          : Default
Handle        : Microsoft.Win32.SafeHandles.SafeRegistryHandle
ValueCount    : 0
Name          : HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel


AllItemsIconView : 0
PSPath           : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Expl
                 orer\ControlPanel
PSParentPath     : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Expl
                 orer
PSChildName      : ControlPanel
PSDrive          : HKCU
PSProvider       : Microsoft.PowerShell.Core\Registry


StartupPage  : 1
PSPath       : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer
             \ControlPanel
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer
PSChildName  : ControlPanel
PSDrive      : HKCU
PSProvider   : Microsoft.PowerShell.Core\Registry


EnableFirstLogonAnimation : 0
PSPath                    : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
                          NT\CurrentVersion\Winlogon
PSParentPath              : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
                          NT\CurrentVersion
PSChildName               : Winlogon
PSDrive                   : HKLM
PSProvider                : Microsoft.PowerShell.Core\Registry


JPEGImportQuality : 100
PSPath            : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\Control Panel\Desktop
PSParentPath      : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\Control Panel
PSChildName       : Desktop
PSDrive           : HKCU
PSProvider        : Microsoft.PowerShell.Core\Registry


Id      : 8388
Handles : 100
CPU     : 0
SI      : 1
Name    : Taskmgr


Preferences  : {14, 0, 0, 0...}
PSPath       : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\TaskMana
             ger
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion
PSChildName  : TaskManager
PSDrive      : HKCU
PSProvider   : Microsoft.PowerShell.Core\Registry


RestartNotificationsAllowed2 : 1
PSPath                       : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\
                             UX\Settings
PSParentPath                 : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\
                             UX
PSChildName                  : Settings
PSDrive                      : HKLM
PSProvider                   : Microsoft.PowerShell.Core\Registry


Property      : {}
PSPath        : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explore
              r\NamingTemplates
PSParentPath  : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explore
              r
PSChildName   : NamingTemplates
PSDrive       : HKCU
PSProvider    : Microsoft.PowerShell.Core\Registry
PSIsContainer : True
SubKeyCount   : 0
View          : Default
Handle        : Microsoft.Win32.SafeHandles.SafeRegistryHandle
ValueCount    : 0
Name          : HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\NamingTemplates


ShortcutNameTemplate : %s.lnk
PSPath               : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\
                     Explorer\NamingTemplates
PSParentPath         : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\
                     Explorer
PSChildName          : NamingTemplates
PSDrive              : HKCU
PSProvider           : Microsoft.PowerShell.Core\Registry


01           : 1
PSPath       : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\StorageS
             ense\Parameters\StoragePolicy
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\StorageS
             ense\Parameters
PSChildName  : StoragePolicy
PSDrive      : HKCU
PSProvider   : Microsoft.PowerShell.Core\Registry


2048         : 30
PSPath       : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\StorageS
             ense\Parameters\StoragePolicy
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\StorageS
             ense\Parameters
PSChildName  : StoragePolicy
PSDrive      : HKCU
PSProvider   : Microsoft.PowerShell.Core\Registry


04           : 1
PSPath       : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\StorageS
             ense\Parameters\StoragePolicy
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\StorageS
             ense\Parameters
PSChildName  : StoragePolicy
PSDrive      : HKCU
PSProvider   : Microsoft.PowerShell.Core\Registry


EnableLinkedConnections : 1
PSPath                  : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVers
                        ion\Policies\System
PSParentPath            : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVers
                        ion\Policies
PSChildName             : System
PSDrive                 : HKLM
PSProvider              : Microsoft.PowerShell.Core\Registry


DownloadMode : 0
PSPath       : Microsoft.PowerShell.Core\Registry::HKEY_USERS\S-1-5-20\SOFTWARE\Microsoft\Windows\CurrentVersion\Delive
             ryOptimization\Settings
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_USERS\S-1-5-20\SOFTWARE\Microsoft\Windows\CurrentVersion\Delive
             ryOptimization
PSChildName  : Settings
PSProvider   : Microsoft.PowerShell.Core\Registry

Deleting...
Successfully deleted Delivery Optimization cache

LegacyDefaultPrinterMode : 1
PSPath                   : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows
                         NT\CurrentVersion\Windows
PSParentPath             : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows
                         NT\CurrentVersion
PSChildName              : Windows
PSDrive                  : HKCU
PSProvider               : Microsoft.PowerShell.Core\Registry


RegistrationState           : 3
ServiceID                   : 7971f918-a847-4430-9279-4a52d1efe18d
IsPendingRegistrationWithAU : False
Service                     : System.__ComObject


Property      : {}
PSPath        : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Classes\Typelib\{8cec5860-07a1-11d9-b15e
              -000d56bfe6ee}\1.0\0\win64
PSParentPath  : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Classes\Typelib\{8cec5860-07a1-11d9-b15e
              -000d56bfe6ee}\1.0\0
PSChildName   : win64
PSDrive       : HKCU
PSProvider    : Microsoft.PowerShell.Core\Registry
PSIsContainer : True
SubKeyCount   : 0
View          : Default
Handle        : Microsoft.Win32.SafeHandles.SafeRegistryHandle
ValueCount    : 0                                                                                                       Name          : HKEY_CURRENT_USER\SOFTWARE\Classes\Typelib\{8cec5860-07a1-11d9-b15e-000d56bfe6ee}\1.0\0\win64                                                                                                                                                                                                                                                           (default)    :                                                                                                          PSPath       : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Classes\Typelib\{8cec5860-07a1-11d9-b15e-                000d56bfe6ee}\1.0\0\win64
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Classes\Typelib\{8cec5860-07a1-11d9-b15e-
             000d56bfe6ee}\1.0\0
PSChildName  : win64
PSDrive      : HKCU
PSProvider   : Microsoft.PowerShell.Core\Registry


InitialKeyboardIndicators : 2147483650                                                                                  PSPath                    : Microsoft.PowerShell.Core\Registry::HKEY_USERS\.DEFAULT\Control Panel\Keyboard              PSParentPath              : Microsoft.PowerShell.Core\Registry::HKEY_USERS\.DEFAULT\Control Panel                       PSChildName               : Keyboard                                                                                    PSProvider                : Microsoft.PowerShell.Core\Registry


Flags        : 506
PSPath       : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\Control Panel\Accessibility\StickyKeys
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\Control Panel\Accessibility
PSChildName  : StickyKeys
PSDrive      : HKCU
PSProvider   : Microsoft.PowerShell.Core\Registry


DisableAutoplay : 1
PSPath          : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explo
                rer\AutoplayHandlers
PSParentPath    : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explo
                rer
PSChildName     : AutoplayHandlers
PSDrive         : HKCU
PSProvider      : Microsoft.PowerShell.Core\Registry


RestartApps  : 1
PSPath       : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows
             NT\CurrentVersion\Winlogon
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion
PSChildName  : Winlogon
PSDrive      : HKCU
PSProvider   : Microsoft.PowerShell.Core\Registry

The `msstore` source requires that you view the following agreements before using.
Terms of Transaction: https://aka.ms/microsoft-store-terms-of-transaction
The source requires the current machine's 2-letter geographic region to be sent to the backend service to function properly (ex. "US").

Found Microsoft Visual C++ 2015-2022 Redistributable (x64) [Microsoft.VC++2015-2022Redist-x64] Version 14.32.31332.0
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://download.visualstudio.microsoft.com/download/pr/ed95ef9e-da02-4735-9064-bd1f7f69b6ed/CE6593A1520591E7DEA2B93FD03116E3FC3B3821A0525322B0A430FAA6B3C0B4/VC_redist.x64.exe
██████████████████████████████  24.0 MB / 24.0 MB
Successfully verified installer hash
Starting package install...
Successfully installed
Found Microsoft .NET Windows Desktop Runtime 6.0 [Microsoft.DotNet.DesktopRuntime.6] Version 6.0.7
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://dotnetcli.azureedge.net/dotnet/WindowsDesktop/6.0.7/windowsdesktop-runtime-6.0.7-win-x86.exe
██████████████████████████████  50.0 MB / 50.0 MB
Successfully verified installer hash
Starting package install...
Successfully installed
Found Microsoft .NET Windows Desktop Runtime 6.0 [Microsoft.DotNet.DesktopRuntime.6] Version 6.0.7
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://dotnetcli.azureedge.net/dotnet/WindowsDesktop/6.0.7/windowsdesktop-runtime-6.0.7-win-x64.exe
██████████████████████████████  55.0 MB / 55.0 MB
Successfully verified installer hash
Starting package install...
Successfully installed

State        : 1
PSPath       : Microsoft.PowerShell.Core\Registry::HKEY_CLASSES_ROOT\Local Settings\Software\Microsoft\Windows\CurrentV
             ersion\AppModel\SystemAppData\Microsoft.549981C3F5F10_8wekyb3d8bbwe\CortanaStartupId
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_CLASSES_ROOT\Local Settings\Software\Microsoft\Windows\CurrentV
             ersion\AppModel\SystemAppData\Microsoft.549981C3F5F10_8wekyb3d8bbwe
PSChildName  : CortanaStartupId
PSProvider   : Microsoft.PowerShell.Core\Registry


VERBOSE: Please wait...

ReturnValue    : 0
PSComputerName :


AppCaptureEnabled : 0
PSPath            : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Gam
                  eDVR
PSParentPath      : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion
PSChildName       : GameDVR
PSDrive           : HKCU
PSProvider        : Microsoft.PowerShell.Core\Registry


GameDVR_Enabled : 0
PSPath          : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\System\GameConfigStore
PSParentPath    : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\System
PSChildName     : GameConfigStore
PSDrive         : HKCU
PSProvider      : Microsoft.PowerShell.Core\Registry


ShowStartupPanel : 0
PSPath           : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\GameBar
PSParentPath     : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft
PSChildName      : GameBar
PSDrive          : HKCU
PSProvider       : Microsoft.PowerShell.Core\Registry


StateFlags1337 : 2
PSPath         : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explo
               rer\VolumeCaches\Delivery Optimization Files
PSParentPath   : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explo
               rer\VolumeCaches
PSChildName    : Delivery Optimization Files
PSDrive        : HKLM
PSProvider     : Microsoft.PowerShell.Core\Registry

New-ItemProperty : Cannot find path
'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\BranchCache' because it does not exist.
At C:\Users\David\Apps\Sophia Script for Windows 11 v6.1.1\Module\Sophia.psm1:9935 char:6
+ ...             New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\ ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  + CategoryInfo          : ObjectNotFound: (HKLM:\SOFTWARE\...hes\BranchCache:String) [New-ItemProperty], ItemNotFo
 undException
  + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.NewItemPropertyCommand


StateFlags1337 : 2
PSPath         : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explo
               rer\VolumeCaches\Device Driver Packages
PSParentPath   : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explo
               rer\VolumeCaches
PSChildName    : Device Driver Packages
PSDrive        : HKLM
PSProvider     : Microsoft.PowerShell.Core\Registry


StateFlags1337 : 2
PSPath         : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explo
               rer\VolumeCaches\Language Pack
PSParentPath   : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explo
               rer\VolumeCaches
PSChildName    : Language Pack
PSDrive        : HKLM
PSProvider     : Microsoft.PowerShell.Core\Registry


StateFlags1337 : 2
PSPath         : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explo
               rer\VolumeCaches\Previous Installations
PSParentPath   : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explo
               rer\VolumeCaches
PSChildName    : Previous Installations
PSDrive        : HKLM
PSProvider     : Microsoft.PowerShell.Core\Registry


StateFlags1337 : 2
PSPath         : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explo
               rer\VolumeCaches\Setup Log Files
PSParentPath   : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explo
               rer\VolumeCaches
PSChildName    : Setup Log Files
PSDrive        : HKLM
PSProvider     : Microsoft.PowerShell.Core\Registry


StateFlags1337 : 2
PSPath         : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explo
               rer\VolumeCaches\System error memory dump files
PSParentPath   : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explo
               rer\VolumeCaches
PSChildName    : System error memory dump files
PSDrive        : HKLM
PSProvider     : Microsoft.PowerShell.Core\Registry


StateFlags1337 : 2
PSPath         : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explo
               rer\VolumeCaches\System error minidump files
PSParentPath   : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explo
               rer\VolumeCaches
PSChildName    : System error minidump files
PSDrive        : HKLM
PSProvider     : Microsoft.PowerShell.Core\Registry


StateFlags1337 : 2
PSPath         : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explo
               rer\VolumeCaches\Temporary Setup Files
PSParentPath   : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explo
               rer\VolumeCaches
PSChildName    : Temporary Setup Files
PSDrive        : HKLM
PSProvider     : Microsoft.PowerShell.Core\Registry


StateFlags1337 : 2
PSPath         : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explo
               rer\VolumeCaches\Update Cleanup
PSParentPath   : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explo
               rer\VolumeCaches
PSChildName    : Update Cleanup
PSDrive        : HKLM
PSProvider     : Microsoft.PowerShell.Core\Registry


StateFlags1337 : 2
PSPath         : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explo
               rer\VolumeCaches\Windows Defender
PSParentPath   : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explo
               rer\VolumeCaches
PSChildName    : Windows Defender
PSDrive        : HKLM
PSProvider     : Microsoft.PowerShell.Core\Registry


StateFlags1337 : 2
PSPath         : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explo
               rer\VolumeCaches\Windows ESD installation files
PSParentPath   : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explo
               rer\VolumeCaches
PSChildName    : Windows ESD installation files
PSDrive        : HKLM
PSProvider     : Microsoft.PowerShell.Core\Registry


StateFlags1337 : 2
PSPath         : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explo
               rer\VolumeCaches\Windows Upgrade Log Files
PSParentPath   : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explo
               rer\VolumeCaches
PSChildName    : Windows Upgrade Log Files
PSDrive        : HKLM
PSProvider     : Microsoft.PowerShell.Core\Registry


Actions            : {MSFT_TaskExecAction}
Author             :
Date               :
Description        : Cleaning up Windows unused files and updates using built-in Disk cleanup app
Documentation      :
Principal          : MSFT_TaskPrincipal2
SecurityDescriptor :
Settings           : MSFT_TaskSettings3
Source             :
State              : Ready
TaskName           : Windows Cleanup
TaskPath           : \Sophia Script\
Triggers           :
URI                : \Sophia Script\Windows Cleanup
Version            :
PSComputerName     :


ShowInActionCenter : 1
PSPath             : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\No
                   tifications\Settings\windows.immersivecontrolpanel_cw5n1h2txyewy!microsoft.windows.immersivecontro
                   lpanel
PSParentPath       : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\No
                   tifications\Settings
PSChildName        : windows.immersivecontrolpanel_cw5n1h2txyewy!microsoft.windows.immersivecontrolpanel
PSDrive            : HKCU
PSProvider         : Microsoft.PowerShell.Core\Registry


Property      : {}
PSPath        : Microsoft.PowerShell.Core\Registry::HKEY_CLASSES_ROOT\WindowsCleanup\shell\open\command
PSParentPath  : Microsoft.PowerShell.Core\Registry::HKEY_CLASSES_ROOT\WindowsCleanup\shell\open
PSChildName   : command
PSProvider    : Microsoft.PowerShell.Core\Registry
PSIsContainer : True
SubKeyCount   : 0
View          : Default
Handle        : Microsoft.Win32.SafeHandles.SafeRegistryHandle
ValueCount    : 0
Name          : HKEY_CLASSES_ROOT\WindowsCleanup\shell\open\command


(default)    : URL:WindowsCleanup
PSPath       : Microsoft.PowerShell.Core\Registry::HKEY_CLASSES_ROOT\WindowsCleanup
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_CLASSES_ROOT
PSChildName  : WindowsCleanup
PSProvider   : Microsoft.PowerShell.Core\Registry


URL Protocol :
PSPath       : Microsoft.PowerShell.Core\Registry::HKEY_CLASSES_ROOT\WindowsCleanup
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_CLASSES_ROOT
PSChildName  : WindowsCleanup
PSProvider   : Microsoft.PowerShell.Core\Registry


EditFlags    : 2162688
PSPath       : Microsoft.PowerShell.Core\Registry::HKEY_CLASSES_ROOT\WindowsCleanup
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_CLASSES_ROOT
PSChildName  : WindowsCleanup
PSProvider   : Microsoft.PowerShell.Core\Registry


(default)    : powershell.exe -Command "& {Start-ScheduledTask -TaskPath '\Sophia Script\' -TaskName 'Windows
             Cleanup'}"
PSPath       : Microsoft.PowerShell.Core\Registry::HKEY_CLASSES_ROOT\WindowsCleanup\shell\open\command
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_CLASSES_ROOT\WindowsCleanup\shell\open
PSChildName  : command
PSProvider   : Microsoft.PowerShell.Core\Registry


Actions            : {MSFT_TaskExecAction}
Author             :
Date               :
Description        : Pop-up notification reminder about cleaning up Windows unused files and updates
Documentation      :
Principal          : MSFT_TaskPrincipal2
SecurityDescriptor :
Settings           : MSFT_TaskSettings3
Source             :
State              : Ready
TaskName           : Windows Cleanup Notification
TaskPath           : \Sophia Script\
Triggers           : {MSFT_TaskDailyTrigger}
URI                : \Sophia Script\Windows Cleanup Notification
Version            :
PSComputerName     :


ShowInActionCenter : 1
PSPath             : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\No
                   tifications\Settings\windows.immersivecontrolpanel_cw5n1h2txyewy!microsoft.windows.immersivecontro
                   lpanel
PSParentPath       : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\No
                   tifications\Settings
PSChildName        : windows.immersivecontrolpanel_cw5n1h2txyewy!microsoft.windows.immersivecontrolpanel
PSDrive            : HKCU
PSProvider         : Microsoft.PowerShell.Core\Registry


Actions            : {MSFT_TaskExecAction}
Author             :
Date               :
Description        : The %SystemRoot%\SoftwareDistribution\Download folder cleanup
Documentation      :
Principal          : MSFT_TaskPrincipal2
SecurityDescriptor :
Settings           : MSFT_TaskSettings3
Source             :
State              : Ready
TaskName           : SoftwareDistribution
TaskPath           : \Sophia Script\
Triggers           : {MSFT_TaskDailyTrigger}
URI                : \Sophia Script\SoftwareDistribution
Version            :
PSComputerName     :


Actions            : {MSFT_TaskExecAction}
Author             :
Date               :
Description        : The %TEMP% folder cleanup
Documentation      :
Principal          : MSFT_TaskPrincipal2
SecurityDescriptor :
Settings           : MSFT_TaskSettings3
Source             :
State              : Ready
TaskName           : Temp
TaskPath           : \Sophia Script\
Triggers           : {MSFT_TaskDailyTrigger}
URI                : \Sophia Script\Temp
Version            :
PSComputerName     :


SmartScreenEnabled : Off
PSPath             : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\E
                   xplorer
PSParentPath       : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion
PSChildName        : Explorer
PSDrive            : HKLM
PSProvider         : Microsoft.PowerShell.Core\Registry


Property      : {}
PSPath        : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policie
              s\Attachments
PSParentPath  : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policie
              s
PSChildName   : Attachments
PSDrive       : HKCU
PSProvider    : Microsoft.PowerShell.Core\Registry
PSIsContainer : True
SubKeyCount   : 0
View          : Default
Handle        : Microsoft.Win32.SafeHandles.SafeRegistryHandle
ValueCount    : 0
Name          : HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Attachments


SaveZoneInformation : 1
PSPath              : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\P
                    olicies\Attachments
PSParentPath        : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\P
                    olicies
PSChildName         : Attachments
PSDrive             : HKCU
PSProvider          : Microsoft.PowerShell.Core\Registry


AccountProtection_MicrosoftAccount_Disconnected : 1
PSPath                                          : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Micros
                                                oft\Windows Security Health\State
PSParentPath                                    : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Micros
                                                oft\Windows Security Health
PSChildName                                     : State
PSDrive                                         : HKCU
PSProvider                                      : Microsoft.PowerShell.Core\Registry


AppAndBrowser_EdgeSmartScreenOff : 0
PSPath                           : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows
                                 Security Health\State
PSParentPath                     : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows
                                 Security Health
PSChildName                      : State
PSDrive                          : HKCU
PSProvider                       : Microsoft.PowerShell.Core\Registry


Property      : {}
PSPath        : Microsoft.PowerShell.Core\Registry::HKEY_CLASSES_ROOT\Msi.Package\shell\Extract\Command
PSParentPath  : Microsoft.PowerShell.Core\Registry::HKEY_CLASSES_ROOT\Msi.Package\shell\Extract
PSChildName   : Command
PSProvider    : Microsoft.PowerShell.Core\Registry
PSIsContainer : True
SubKeyCount   : 0
View          : Default
Handle        : Microsoft.Win32.SafeHandles.SafeRegistryHandle
ValueCount    : 0
Name          : HKEY_CLASSES_ROOT\Msi.Package\shell\Extract\Command


(default)    : msiexec.exe /a "%1" /qb TARGETDIR="%1 extracted"
PSPath       : Microsoft.PowerShell.Core\Registry::HKEY_CLASSES_ROOT\Msi.Package\shell\Extract\Command
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_CLASSES_ROOT\Msi.Package\shell\Extract
PSChildName  : Command
PSProvider   : Microsoft.PowerShell.Core\Registry


MUIVerb      : @shell32.dll,-37514
PSPath       : Microsoft.PowerShell.Core\Registry::HKEY_CLASSES_ROOT\Msi.Package\shell\Extract
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_CLASSES_ROOT\Msi.Package\shell
PSChildName  : Extract
PSProvider   : Microsoft.PowerShell.Core\Registry


Icon         : shell32.dll,-16817
PSPath       : Microsoft.PowerShell.Core\Registry::HKEY_CLASSES_ROOT\Msi.Package\shell\Extract
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_CLASSES_ROOT\Msi.Package\shell
PSChildName  : Extract
PSProvider   : Microsoft.PowerShell.Core\Registry


Property      : {}
PSPath        : Microsoft.PowerShell.Core\Registry::HKEY_CLASSES_ROOT\CABFolder\Shell\runas\Command
PSParentPath  : Microsoft.PowerShell.Core\Registry::HKEY_CLASSES_ROOT\CABFolder\Shell\runas
PSChildName   : Command
PSProvider    : Microsoft.PowerShell.Core\Registry
PSIsContainer : True
SubKeyCount   : 0
View          : Default
Handle        : Microsoft.Win32.SafeHandles.SafeRegistryHandle
ValueCount    : 0
Name          : HKEY_CLASSES_ROOT\CABFolder\Shell\runas\Command


(default)    : cmd /c DISM.exe /Online /Add-Package /PackagePath:"%1" /NoRestart & pause
PSPath       : Microsoft.PowerShell.Core\Registry::HKEY_CLASSES_ROOT\CABFolder\Shell\runas\Command
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_CLASSES_ROOT\CABFolder\Shell\runas
PSChildName  : Command
PSProvider   : Microsoft.PowerShell.Core\Registry


MUIVerb      : @shell32.dll,-10210
PSPath       : Microsoft.PowerShell.Core\Registry::HKEY_CLASSES_ROOT\CABFolder\Shell\runas
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_CLASSES_ROOT\CABFolder\Shell
PSChildName  : runas
PSProvider   : Microsoft.PowerShell.Core\Registry


HasLUAShield :
PSPath       : Microsoft.PowerShell.Core\Registry::HKEY_CLASSES_ROOT\CABFolder\Shell\runas
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_CLASSES_ROOT\CABFolder\Shell
PSChildName  : runas
PSProvider   : Microsoft.PowerShell.Core\Registry


Property      : {}
PSPath        : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell
              Extensions\Blocked
PSParentPath  : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell
              Extensions
PSChildName   : Blocked
PSDrive       : HKLM
PSProvider    : Microsoft.PowerShell.Core\Registry
PSIsContainer : True
SubKeyCount   : 0
View          : Default
Handle        : Microsoft.Win32.SafeHandles.SafeRegistryHandle
ValueCount    : 0
Name          : HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked


{7AD84985-87B4-4a16-BE58-8B72A5B390F7} : Play to menu
PSPath                                 : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Wind
                                       ows\CurrentVersion\Shell Extensions\Blocked
PSParentPath                           : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Wind
                                       ows\CurrentVersion\Shell Extensions
PSChildName                            : Blocked
PSDrive                                : HKLM
PSProvider                             : Microsoft.PowerShell.Core\Registry


(default)    : -{3dad6c5d-2167-4cae-9914-f99e41c12cfa}
PSPath       : Microsoft.PowerShell.Core\Registry::HKEY_CLASSES_ROOT\Folder\ShellEx\ContextMenuHandlers\Library
             Location
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_CLASSES_ROOT\Folder\ShellEx\ContextMenuHandlers
PSChildName  : Library Location
PSProvider   : Microsoft.PowerShell.Core\Registry


Property      : {}
PSPath        : Microsoft.PowerShell.Core\Registry::HKEY_CLASSES_ROOT\Directory\Background\shell\runas\command
PSParentPath  : Microsoft.PowerShell.Core\Registry::HKEY_CLASSES_ROOT\Directory\Background\shell\runas
PSChildName   : command
PSProvider    : Microsoft.PowerShell.Core\Registry
PSIsContainer : True
SubKeyCount   : 0
View          : Default
Handle        : Microsoft.Win32.SafeHandles.SafeRegistryHandle
ValueCount    : 0
Name          : HKEY_CLASSES_ROOT\Directory\Background\shell\runas\command


(default)    : Open in Windows Terminal
PSPath       : Microsoft.PowerShell.Core\Registry::HKEY_CLASSES_ROOT\Directory\Background\shell\runas
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_CLASSES_ROOT\Directory\Background\shell
PSChildName  : runas
PSProvider   : Microsoft.PowerShell.Core\Registry


Icon         : imageres.dll,73
PSPath       : Microsoft.PowerShell.Core\Registry::HKEY_CLASSES_ROOT\Directory\Background\shell\runas
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_CLASSES_ROOT\Directory\Background\shell
PSChildName  : runas
PSProvider   : Microsoft.PowerShell.Core\Registry


NoWorkingDirectory :
PSPath             : Microsoft.PowerShell.Core\Registry::HKEY_CLASSES_ROOT\Directory\Background\shell\runas
PSParentPath       : Microsoft.PowerShell.Core\Registry::HKEY_CLASSES_ROOT\Directory\Background\shell
PSChildName        : runas
PSProvider         : Microsoft.PowerShell.Core\Registry


(default)    : wt.exe -d "%V\."
PSPath       : Microsoft.PowerShell.Core\Registry::HKEY_CLASSES_ROOT\Directory\Background\shell\runas\command
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_CLASSES_ROOT\Directory\Background\shell\runas
PSChildName  : command
PSProvider   : Microsoft.PowerShell.Core\Registry


Property      : {}
PSPath        : Microsoft.PowerShell.Core\Registry::HKEY_CLASSES_ROOT\Directory\shell\runas\command
PSParentPath  : Microsoft.PowerShell.Core\Registry::HKEY_CLASSES_ROOT\Directory\shell\runas
PSChildName   : command
PSProvider    : Microsoft.PowerShell.Core\Registry
PSIsContainer : True
SubKeyCount   : 0
View          : Default
Handle        : Microsoft.Win32.SafeHandles.SafeRegistryHandle
ValueCount    : 0
Name          : HKEY_CLASSES_ROOT\Directory\shell\runas\command


(default)    : Open in Windows Terminal
PSPath       : Microsoft.PowerShell.Core\Registry::HKEY_CLASSES_ROOT\Directory\shell\runas
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_CLASSES_ROOT\Directory\shell
PSChildName  : runas
PSProvider   : Microsoft.PowerShell.Core\Registry


Icon         : imageres.dll,73
PSPath       : Microsoft.PowerShell.Core\Registry::HKEY_CLASSES_ROOT\Directory\shell\runas
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_CLASSES_ROOT\Directory\shell
PSChildName  : runas
PSProvider   : Microsoft.PowerShell.Core\Registry


NoWorkingDirectory :
PSPath             : Microsoft.PowerShell.Core\Registry::HKEY_CLASSES_ROOT\Directory\shell\runas
PSParentPath       : Microsoft.PowerShell.Core\Registry::HKEY_CLASSES_ROOT\Directory\shell
PSChildName        : runas
PSProvider         : Microsoft.PowerShell.Core\Registry


(default)    : wt.exe -d "%1"
PSPath       : Microsoft.PowerShell.Core\Registry::HKEY_CLASSES_ROOT\Directory\shell\runas\command
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_CLASSES_ROOT\Directory\shell\runas
PSChildName  : command
PSProvider   : Microsoft.PowerShell.Core\Registry

VERBOSE: Please wait...

VERBOSE: TCGSecurityActivationDisabled
VERBOSE: PreventHandwritingDataSharing
VERBOSE: AllowSearchToUseLocation
VERBOSE: DisableWebSearch
VERBOSE: ConnectedSearchUseWeb
VERBOSE: AllowCloudSearch
VERBOSE: AllowCortanaAboveLock
Start-Process : This command cannot be run due to the error: The system cannot find the file specified.
At C:\Users\David\Apps\Sophia Script for Windows 11 v6.1.1\Module\Sophia.psm1:12219 char:3
+         Start-Process -FilePath gpedit.msc
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  + CategoryInfo          : InvalidOperation: (:) [Start-Process], InvalidOperationException
  + FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartProcessCommand

Get-Process : Cannot bind argument to parameter 'Id' because it is null.
At C:\Users\David\Apps\Sophia Script for Windows 11 v6.1.1\Module\Sophia.psm1:12226 char:19
+         Get-Process -Id $gpedit_Process_ID | Stop-Process -Force
+                         ~~~~~~~~~~~~~~~~~~
  + CategoryInfo          : InvalidData: (:) [Get-Process], ParameterBindingValidationException
  + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.GetProcessC
 ommand

Update-GptIniVersion : Cannot validate argument on parameter 'Path'. Path 'C:\windows\System32\GroupPolicy\GPT.ini'
does not exist.
At C:\Users\David\Apps\Sophia Script for Windows 11 v6.1.1\Module\Sophia.psm1:12229 char:29
+ ... IniVersion -Path $env:SystemRoot\System32\GroupPolicy\GPT.ini -Policy ...
+                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  + CategoryInfo          : InvalidData: (:) [Update-GptIniVersion], ParameterBindingValidationException
  + FullyQualifiedErrorId : ParameterArgumentValidationError,Update-GptIniVersion

Updating policy...

Computer Policy update has completed successfully.
User Policy update has completed successfully.


Sometimes in order for the changes to take effect the File Explorer process has to be restarted
[N] No  [Y] Yes  [?] Help (default is "Y"): y

WARNING: Make sure to restart your PC
Line File         Errors/Warnings
---- ----         ---------------
533 Commands.ps1 Path 'C:\windows\System32\GroupPolicy\GPT.ini' does not exist.
9935 Sophia.psm1  Cannot find path
                 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\BranchCache' because it does
                 not exist.
12219 Sophia.psm1  This command cannot be run due to the error: The system cannot find the file specified.
12226 Sophia.psm1  Cannot bind argument to parameter 'Id' because it is null.
12229 Sophia.psm1  Cannot validate argument on parameter 'Path'. Path 'C:\windows\System32\GroupPolicy\GPT.ini' does
                 not exist.


PS C:\Users\David\Apps\Sophia Script Wrapper v2.5.5>
@farag2
Copy link
Owner

farag2 commented Jul 16, 2022

I know about this bug. Already fixed in 6.1.2. ;) will be released soon

@notDavid
Copy link
Author

Thank you... i assume you will close this issue when fixed/released👍🏼

@farag2 farag2 closed this as completed Jul 16, 2022
@farag2
Copy link
Owner

farag2 commented Jul 16, 2022

https://github.com/farag2/Sophia-Script-for-Windows/releases/tag/6.1.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants