Solved (cant) Change file type icon for .ps1 files


Bug locker

Well-known member
Member
VIP
Local time
6:34 AM
Posts
381
Location
Athens
OS
Windows 11 Pro
Hi.
I try to change the .ps1 file type icon , because the default one is little terrible :

1.jpg

I have tried with three programs (types, filetypesman, default program editor) to change it, without success.
Does anyone know if and how this is done?
Thanks.:)
 

My Computer

System One

  • OS
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    HP Pavilion 17 cd2205nw
    CPU
    Intel 113700H
    Memory
    16GB
    Graphics Card(s)
    NVIDIA RTX 3050 ti
    Screen Resolution
    1980x1020
    Hard Drives
    Micron 512GB
    Mouse
    Logitech
    Internet Speed
    100Mbs
    Browser
    Vivaldi , Edge
    Antivirus
    Norton Plus
Have you tried the more-horrible Terminal icon in the list of Apps? It's pretty much the same look as Terminal in Linux [at least the Debian varieties] and maybe Mac OS X [don't know about the newer macOS]. And Terminal opens PowerShell.
 

My Computers

System One System Two

  • OS
    Win11 Pro RTM
    Computer type
    Laptop
    Manufacturer/Model
    Dell Vostro 3400
    CPU
    Intel Core i5 11th Gen. 2.40GHz
    Memory
    12GB
    Hard Drives
    256GB SSD NVMe
  • Operating System
    Windows 11 Pro RTM x64
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Vostro 5890
    CPU
    Intel Core i5 10th Gen. 2.90GHz
    Memory
    16GB
    Graphics card(s)
    Onboard, no VGA, using a DisplayPort-to-VGA adapter
    Monitor(s) Displays
    24" Dell
    Hard Drives
    512GB SSD NVMe, 2TB WDC HDD
    Browser
    Firefox, Edge
    Antivirus
    Windows Defender/Microsoft Security
Have you tried the more-horrible Terminal icon in the list of Apps? It's pretty much the same look as Terminal in Linux [at least the Debian varieties] and maybe Mac OS X [don't know about the newer macOS]. And Terminal opens PowerShell.
Yes i have it. It is so strong that it does not even have a find command on the page..........:
1.jpg
 

My Computer

System One

  • OS
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    HP Pavilion 17 cd2205nw
    CPU
    Intel 113700H
    Memory
    16GB
    Graphics Card(s)
    NVIDIA RTX 3050 ti
    Screen Resolution
    1980x1020
    Hard Drives
    Micron 512GB
    Mouse
    Logitech
    Internet Speed
    100Mbs
    Browser
    Vivaldi , Edge
    Antivirus
    Norton Plus
Yeah, PS doesn't have the same things Command Prompt does [which still works].
 

My Computers

System One System Two

  • OS
    Win11 Pro RTM
    Computer type
    Laptop
    Manufacturer/Model
    Dell Vostro 3400
    CPU
    Intel Core i5 11th Gen. 2.40GHz
    Memory
    12GB
    Hard Drives
    256GB SSD NVMe
  • Operating System
    Windows 11 Pro RTM x64
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Vostro 5890
    CPU
    Intel Core i5 10th Gen. 2.90GHz
    Memory
    16GB
    Graphics card(s)
    Onboard, no VGA, using a DisplayPort-to-VGA adapter
    Monitor(s) Displays
    24" Dell
    Hard Drives
    512GB SSD NVMe, 2TB WDC HDD
    Browser
    Firefox, Edge
    Antivirus
    Windows Defender/Microsoft Security
Hi.
I try to change the .ps1 file type icon , because the default one is little terrible :

View attachment 30162

I have tried with three programs (types, filetypesman, default program editor) to change it, without success.
Does anyone know if and how this is done?
Thanks.:)
All three programs Work for me (Types, FileTypesMan, Default Programs Editor) Also "Right Click Enhancer Pro" & "Windows 10 Manager"
2022-05-28_00-18-16.png2022-05-28_00-14-59.png2022-05-27_23-18-09.png2022-05-28_00-07-30.png

REG:
Code:
Windows Registry Editor Version 5.00

; Edit File Type Icon
[HKEY_CURRENT_USER\Software\Classes\Microsoft.PowerShellScript.1\DefaultIcon]
@="c:\\windows\\system32\\imageres.dll,311"
 

My Computers

System One System Two

  • OS
    10
    Computer type
    Tablet
    Graphics Card(s)
    BMW
    Sound Card
    BMW
  • Computer type
    Tablet
    Graphics card(s)
    BMW
    Sound Card
    BMW
All three programs Work for me (Types, FileTypesMan, Default Programs Editor) Also "Right Click Enhancer Pro" & "Windows 10 Manager"

REG:
Code:
Windows Registry Editor Version 5.00

; Edit File Type Icon
[HKEY_CURRENT_USER\Software\Classes\Microsoft.PowerShellScript.1\DefaultIcon]
@="c:\\windows\\system32\\imageres.dll,311"
Do you have windows 10 or 11 ? Because at windows 10 it works for me and at 11 not. And the "Windows 10 manager" is for windows 10.
 

My Computer

System One

  • OS
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    HP Pavilion 17 cd2205nw
    CPU
    Intel 113700H
    Memory
    16GB
    Graphics Card(s)
    NVIDIA RTX 3050 ti
    Screen Resolution
    1980x1020
    Hard Drives
    Micron 512GB
    Mouse
    Logitech
    Internet Speed
    100Mbs
    Browser
    Vivaldi , Edge
    Antivirus
    Norton Plus
Have you tried tracking down the CLSID entry for the filetype and changing it there? Seem to remember having to do that with .eml and .pdf files in Win 11 when playing about.
 

My Computer

System One

  • OS
    Windows 11 Pro 22H2, build: 22621.521
    Computer type
    PC/Desktop
    Manufacturer/Model
    Scan 3XS Custom 1700
    CPU
    Intel i7-12700K 3.6GHz Base (5.0GHz Turbo)
    Motherboard
    Asus ProArt Creator B660 D4
    Memory
    64GB DDR 3600Mhz
    Graphics Card(s)
    Asus Tuff RTX 3080 10GB OC
    Sound Card
    Onboard Realtek
    Monitor(s) Displays
    Gigabyte G32QC 32inch 16:9 curved @2560 x 1440p 165Hz Freesync Premium Pro/ Dell SE2422H 24inch 16:9 1920 x 1080p 75Hz Freesync
    Screen Resolution
    2560 x 1440p & 1920 x 1080p
    Hard Drives
    WD SN570 1TB NVME (Boot), Samsung 870QVO 1TB (SSD), SanDisk 3D Ultra 500Gb (SSD) x2, Seagate 3Tb Expansion Desk (Ext HDD), 2x Toshiba 1Tb P300 (Ext HDD)
    PSU
    Corsair RM1000X Modular
    Case
    Corsair 4000D Airflow Desktop
    Cooling
    Corsair Hydro H150i RGB Pro XT 360mm Liquid Cooler, 3 x 120mm fans, 1x Exhaust
    Keyboard
    Microsoft Ergonomic
    Mouse
    Logitech G402
    Internet Speed
    800Mbs
    Browser
    Edge Chromium
    Antivirus
    Defender, Malwarebytes
All three programs Work for me (Types, FileTypesMan, Default Programs Editor) Also "Right Click Enhancer Pro" & "Windows 10 Manager"

REG:
Code:
Windows Registry Editor Version 5.00

; Edit File Type Icon
[HKEY_CURRENT_USER\Software\Classes\Microsoft.PowerShellScript.1\DefaultIcon]
@="c:\\windows\\system32\\imageres.dll,311"
At all programs looks OK. But it not works , e.g :
1.jpg

Also , i dont have yours registry key :

2.jpg

I guess things are different at registry at Win 10 and 11.
 

My Computer

System One

  • OS
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    HP Pavilion 17 cd2205nw
    CPU
    Intel 113700H
    Memory
    16GB
    Graphics Card(s)
    NVIDIA RTX 3050 ti
    Screen Resolution
    1980x1020
    Hard Drives
    Micron 512GB
    Mouse
    Logitech
    Internet Speed
    100Mbs
    Browser
    Vivaldi , Edge
    Antivirus
    Norton Plus
Have you tried tracking down the CLSID entry for the filetype and changing it there? Seem to remember having to do that with .eml and .pdf files in Win 11 when playing about.
What do you mean ? HKEY_CLASSES_ROOT at registry ? Could you give some details ?
 

My Computer

System One

  • OS
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    HP Pavilion 17 cd2205nw
    CPU
    Intel 113700H
    Memory
    16GB
    Graphics Card(s)
    NVIDIA RTX 3050 ti
    Screen Resolution
    1980x1020
    Hard Drives
    Micron 512GB
    Mouse
    Logitech
    Internet Speed
    100Mbs
    Browser
    Vivaldi , Edge
    Antivirus
    Norton Plus
I'll Test Those in Win11 And let You Know
 

My Computers

System One System Two

  • OS
    10
    Computer type
    Tablet
    Graphics Card(s)
    BMW
    Sound Card
    BMW
  • Computer type
    Tablet
    Graphics card(s)
    BMW
    Sound Card
    BMW
I'll Test Those in Win11 And let You Know
Finally i made it only with "Right Click Enhancer Pro". It looks like the key point was to change the "Microsoft.PowerShellXMLData.1" file type icon also. When i changed only .ps1 it not works. When i change additionally "Microsoft.PowerShellXMLData.1" file type icon it works ! :party:
 

My Computer

System One

  • OS
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    HP Pavilion 17 cd2205nw
    CPU
    Intel 113700H
    Memory
    16GB
    Graphics Card(s)
    NVIDIA RTX 3050 ti
    Screen Resolution
    1980x1020
    Hard Drives
    Micron 512GB
    Mouse
    Logitech
    Internet Speed
    100Mbs
    Browser
    Vivaldi , Edge
    Antivirus
    Norton Plus

Latest Support Threads

Back
Top Bottom