GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - xiaotang158/PS-SFTA: PowerShell Set File Type Association

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

22 Commits
22 Commits

Folders and files

NameName
Last commit message
Last commit date
CHANGELOG.md
CHANGELOG.md
 
 
README.md
README.md
 
 
SFTA.ps1
SFTA.ps1
 
 

Repository files navigation

PowerShell SFTA

Latest Version MIT License Made with Love

PowerShell Set File/Protocol Type Association Default Application Windows 10/11

Features

  • Set File Type Association.
  • Set Protocol Association.
  • Get File Type Association.
  • List File Type Association.
  • Get Protocol Type Association.
  • List Protocol Type Association.
  • Register Application.
  • Unregister Application.

Usage

Type Get-Help command for information
Get-Help .\SFTA.ps1 -full

Basic Usage

Set Acrobat Reader DC as Default .pdf reader:
Set-FTA AcroExch.Document.DC .pdf
Set Sumatra PDF as Default .pdf reader:
Set-FTA Applications\SumatraPDF.exe .pdf
Set Google Chrome as Default for http Protocol:
Set-PTA ChromeHTML http
Register Application and Set as Default for .pdf reader:
Register-FTA "C:\SumatraPDF.exe" .pdf -Icon "shell32.dll,100"
Remove:
Remove-FTA  "360ChromeXURL" ".shtm"
. Get the default program for a specific extension
Get-FTA ".zip"
  • Returns the ProgID associated with .zip files.
. List all registered file extensions and their ProgIDs
Get-FTA
  • When called without parameters, it enumerates all file extensions that have a default program assigned.

Additional Instructions

Set Microsoft Edge as Default .pdf reader from Windows Command Processor (cmd.exe):
powershell -ExecutionPolicy Bypass -command "& { . .\SFTA.ps1; Set-FTA 'MSEdgePDF' '.pdf' }"
Set Sumatra PDF as Default .pdf reader from Windows Command Processor (cmd.exe):
powershell -ExecutionPolicy Bypass -command "& { . .\SFTA.ps1; Set-FTA 'Applications\SumatraPDF.exe' '.pdf' }"
Set Sumatra PDF as Default .pdf reader from Windows Command Processor (cmd.exe) (Load Script From GitHub Raw URL):
powershell -ExecutionPolicy Bypass -command "& { [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/DanysysTeam/PS-SFTA/master/SFTA.ps1'));Set-FTA 'Applications\SumatraPDF.exe' '.pdf' }"

Release History

See CHANGELOG.md

License

Usage is provided under the MIT License.

Copyright © 2022, Danysys.

About

PowerShell Set File Type Association

Resources

Readme
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.