Red text means there was an error. Run it again but hold Alt when you click Submit. That will leave the console on screen so we can see the error(s). Copy and paste that text here or take a screenshot(s) and paste here.
Here you go -- glad I mentioned the color! Side note -- I noticed in the past while using the command prompt that I'd have to type "path=c:\windows\system32" in order to achieve functionality that used to be present by default. I'm not sure how long this has been going on -- possibly when I upgraded to Windows 11 from Windows 10.
I just tried typing "reg" from a fresh command prompt, and got the following:
'reg' is not recognized as an internal or external command,
operable program or batch file.
After entering "path=c:\windows\system32" I now get:
ERROR: Invalid syntax.
Type "REG /?" for usage.
Looks like all I need to do is get "path=c:\windows\system32" to be universally recognized by default somehow...
***
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
Install the latest PowerShell for new features and improvements!
Migrating from Windows PowerShell 5.1 to PowerShell 7 - PowerShell
Setting Explorer folder views...
Reg : The term 'Reg' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Zip\WinSetView-main\WinSetView.ps1:166 char:1
+ Reg Export $BagM $T1 /y 2>$Null
+ ~~~
+ CategoryInfo : ObjectNotFound: (Reg:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Reg : The term 'Reg' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Zip\WinSetView-main\WinSetView.ps1:167 char:1
+ Reg Export $Bags $T2 /y 2>$Null
+ ~~~
+ CategoryInfo : ObjectNotFound: (Reg:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Reg : The term 'Reg' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Zip\WinSetView-main\WinSetView.ps1:168 char:1
+ Reg Export $Strm $T3 /y 2>$Null
+ ~~~
+ CategoryInfo : ObjectNotFound: (Reg:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Reg : The term 'Reg' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Zip\WinSetView-main\WinSetView.ps1:169 char:1
+ Reg Export $CUFT $T4 /y 2>$Null
+ ~~~
+ CategoryInfo : ObjectNotFound: (Reg:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Cmd : The term 'Cmd' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Zip\WinSetView-main\WinSetView.ps1:171 char:1
+ Cmd /c Copy $T1+$T2+$T3+$T4 $BakFile >$Null 2>$Null
+ ~~~
+ CategoryInfo : ObjectNotFound: (Cmd:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Reg : The term 'Reg' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Zip\WinSetView-main\WinSetView.ps1:120 char:3
+ Reg Delete $BagM /f 2>$Null
+ ~~~
+ CategoryInfo : ObjectNotFound: (Reg:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Reg : The term 'Reg' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Zip\WinSetView-main\WinSetView.ps1:121 char:3
+ Reg Delete $Bags /f 2>$Null
+ ~~~
+ CategoryInfo : ObjectNotFound: (Reg:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Reg : The term 'Reg' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Zip\WinSetView-main\WinSetView.ps1:122 char:3
+ Reg Delete $CUFT /f 2>$Null
+ ~~~
+ CategoryInfo : ObjectNotFound: (Reg:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Reg : The term 'Reg' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Zip\WinSetView-main\WinSetView.ps1:123 char:26
+ If ($KeepViews -eq 0) {Reg Delete $Defs /f 2>$Null}
+ ~~~
+ CategoryInfo : ObjectNotFound: (Reg:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Reg : The term 'Reg' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Zip\WinSetView-main\WinSetView.ps1:192 char:1
+ Reg Add $Advn /v HideFileExt /t REG_DWORD /d (1-$ShowExt) /f
+ ~~~
+ CategoryInfo : ObjectNotFound: (Reg:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Reg : The term 'Reg' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Zip\WinSetView-main\WinSetView.ps1:198 char:1
+ Reg Add $Advn /v UseCompactMode /t REG_DWORD /d ($CompView) /f
+ ~~~
+ CategoryInfo : ObjectNotFound: (Reg:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Reg : The term 'Reg' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Zip\WinSetView-main\WinSetView.ps1:243 char:3
+ Reg Add "$BagM" /v NodeSlots /d '02' /t REG_BINARY /f
+ ~~~
+ CategoryInfo : ObjectNotFound: (Reg:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Reg : The term 'Reg' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Zip\WinSetView-main\WinSetView.ps1:244 char:3
+ Reg Add "$BagM" /v MRUListEx /d '00000000ffffffff' /t REG_BINARY /f ...
+ ~~~
+ CategoryInfo : ObjectNotFound: (Reg:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Reg : The term 'Reg' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Zip\WinSetView-main\WinSetView.ps1:245 char:3
+ Reg Add "$BagM" /v '0' /d '14001F50E04FD020EA3A6910A2D808002B30309D ...
+ ~~~
+ CategoryInfo : ObjectNotFound: (Reg:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Reg : The term 'Reg' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Zip\WinSetView-main\WinSetView.ps1:246 char:3
+ Reg Add "$BagM\0" /v NodeSlot /d 1 /t REG_DWORD /f >$Null
+ ~~~
+ CategoryInfo : ObjectNotFound: (Reg:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Reg : The term 'Reg' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Zip\WinSetView-main\WinSetView.ps1:210 char:3
+ Reg Add $Key /v LogicalViewMode /d $LVMode /t REG_DWORD /f >$Null
+ ~~~
+ CategoryInfo : ObjectNotFound: (Reg:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Reg : The term 'Reg' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Zip\WinSetView-main\WinSetView.ps1:211 char:3
+ Reg Add $Key /v Mode /d $Mode /t REG_DWORD /f >$Null
+ ~~~
+ CategoryInfo : ObjectNotFound: (Reg:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Reg : The term 'Reg' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Zip\WinSetView-main\WinSetView.ps1:213 char:3
+ Reg Add $Key /v GroupView /d $Group /t REG_DWORD /f >$Null
+ ~~~
+ CategoryInfo : ObjectNotFound: (Reg:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Reg : The term 'Reg' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Zip\WinSetView-main\WinSetView.ps1:210 char:3
+ Reg Add $Key /v LogicalViewMode /d $LVMode /t REG_DWORD /f >$Null
+ ~~~
+ CategoryInfo : ObjectNotFound: (Reg:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Reg : The term 'Reg' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Zip\WinSetView-main\WinSetView.ps1:211 char:3
+ Reg Add $Key /v Mode /d $Mode /t REG_DWORD /f >$Null
+ ~~~
+ CategoryInfo : ObjectNotFound: (Reg:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Reg : The term 'Reg' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Zip\WinSetView-main\WinSetView.ps1:213 char:3
+ Reg Add $Key /v GroupView /d $Group /t REG_DWORD /f >$Null
+ ~~~
+ CategoryInfo : ObjectNotFound: (Reg:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Reg : The term 'Reg' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Zip\WinSetView-main\WinSetView.ps1:269 char:3
+ Reg Add "$Bags\AllFolders\Shell\$GUID" /v Mode /d "$Mode" /t REG_DW ...
+ ~~~
+ CategoryInfo : ObjectNotFound: (Reg:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Reg : The term 'Reg' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Zip\WinSetView-main\WinSetView.ps1:270 char:3
+ Reg Add "$Bags\AllFolders\Shell\$GUID" /v LogicalViewMode /d "$LVMo ...
+ ~~~
+ CategoryInfo : ObjectNotFound: (Reg:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Reg : The term 'Reg' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Zip\WinSetView-main\WinSetView.ps1:272 char:25
+ If ($GroupBy -eq '') {Reg Add "$Bags\AllFolders\Shell\$GUID" /v Gro ...
+ ~~~
+ CategoryInfo : ObjectNotFound: (Reg:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Reg : The term 'Reg' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Zip\WinSetView-main\WinSetView.ps1:284 char:1
+ Reg Export $LMFT $RegFile1 /y
+ ~~~
+ CategoryInfo : ObjectNotFound: (Reg:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Reg : The term 'Reg' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Zip\WinSetView-main\WinSetView.ps1:288 char:1
+ Reg Import $RegFile1
+ ~~~
+ CategoryInfo : ObjectNotFound: (Reg:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Get-ChildItem : Cannot find path 'HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FolderTypes'
because it does not exist.
At C:\Zip\WinSetView-main\WinSetView.ps1:304 char:1
+ Get-ChildItem $FolderTypes | Get-ItemProperty | ForEach {
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (HKEY_CURRENT_US...rer\FolderTypes:String) [Get-ChildItem], ItemNotFound
Exception
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand
Reg : The term 'Reg' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Zip\WinSetView-main\WinSetView.ps1:360 char:1
+ Reg Export $CUFT $RegFile2 /y
+ ~~~
+ CategoryInfo : ObjectNotFound: (Reg:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Explorer : The term 'Explorer' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Zip\WinSetView-main\WinSetView.ps1:115 char:3
+ Explorer $PSScriptRoot
+ ~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Explorer:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException