Comments (7)
does this happens "sometimes" or "all time" have you tried in other Windows 11 to be sure?
from ps-sfta.
Only sometimes but more often than we can let it go. Yes, this is one of the steps in our task sequence when we image a new laptop. Out of the 40 we imaged recently, about 30 of them had this happening. I can reproduce it in VMs as well. The strange thing is when it sticks, it sticks for good. Even if I delete and set it again, it seems to work every time afterward.
from ps-sfta.
I spoke too soon. Just got the same issue but with HTTP this time. I'll let you know if it happens with any of the file types as well. Thank you for looking in to it.
from ps-sfta.
I don't have access to Windows 11 right now. but I'll try with some virtual machines soon. Please paste the exactly command you're using here.
from ps-sfta.
Sure thing. We are using a vanilla Win11 Enterprise 22H2 installation, fully updated and patched, before getting the latest Chrome and Adobe Reader installed on it.
You should be able to reproduce it by running the {Set-PTA ChromeHTML https} and then opening System Settings to check for it. If you are using a VM, make sure to create a checkpoint/snapshot right before running the command for the first time so if it worked fine, you can revert back to it and repeat it until it fails.
We started off with this code:
Set-FTA Acrobat.Document.DC .pdf
Set-PTA ChromeHTML http
Set-PTA ChromeHTML https
Set-FTA ChromeHTML .htm
Set-FTA ChromeHTML .html
But to get around the issue, so far that simple 5 liner has evolved to this:
`Start-Process ms-settings:defaultapps?registeredAppMachine=Google%20Chrome
Sleep 15
$i=0
Do{ Set-FTA Acrobat.Document.DC .pdf
$i++
Sleep 15
} While ((Get-FTA .pdf) -ne "Acrobat.Document.DC" -or $i -ge 6)
Write-Host "[$(Get-Date -Format 'MM-dd-yyyy HH:mm:ss.fff')] Got $(Get-FTA .pdf) set as the Default App for .pdf files on try #$i."
$i=0
Do{ Set-PTA ChromeHTML http
$i++
Sleep 15
} While ((Get-PTA http) -ne "ChromeHTML" -or $i -ge 6)
Write-Host "[$(Get-Date -Format 'MM-dd-yyyy HH:mm:ss.fff')] Got $(Get-PTA http) set as the Default Protocol for http on try #$i."
$i=0
Do{ Set-PTA ChromeHTML https
$i++
Sleep 15
} While ((Get-PTA https) -ne "ChromeHTML" -or $i -ge 6)
Write-Host "[$(Get-Date -Format 'MM-dd-yyyy HH:mm:ss.fff')] Got $(Get-PTA https) set as the Default Protocol for https on try #$i."
$i=0
Do{ Set-FTA ChromeHTML .htm
$i++
Sleep 15
} While ((Get-FTA .htm) -ne "ChromeHTML" -or $i -ge 6)
Write-Host "[$(Get-Date -Format 'MM-dd-yyyy HH:mm:ss.fff')] Got $(Get-FTA .htm) set as the Default App for .htm files on try #$i."
$i=0
Do{ Set-FTA ChromeHTML .html
$i++
Sleep 15
} While ((Get-FTA .html) -ne "ChromeHTML" -or $i -ge 6)
Write-Host "[$(Get-Date -Format 'MM-dd-yyyy HH:mm:ss.fff')] Got $(Get-FTA .html) set as the Default App for .html files on try #$i."
Sleep 15
Get-Process SystemSettings -ErrorAction SilentlyContinue | Stop-Process`
Please let me know if I can help.
Thanks again,
@-
from ps-sfta.
As soon as you mentioned that this was occurring on newly imaged machines, I recalled running into this issue myself, in the past.
Unfortunately, this is not a new issue, as I even ran into this problem with the "SetUserFTA.exe" Tool, a couple years back.
From what I've been able to gather, the Registry Keys/Values for the File Type Association, that you are attempting to Update, need to already exist, before they can be updated.
I'm not sure if the Developers of PS-SFTA have accounted for this issue, but the Developer of "SetUserFTA" has acknowledged this Issue (in the Comments Section, on his site).
When I have some free-time I'll do some testing, to see if I can re-produce your issue.
The Application that I personally ran into problems with was MODI (Microsoft Office Document Imaging), when attempting to Set the File Type Associations for .TIF and .TIFF.
I'll see if I can re-produce those results, with the current version PS-SFTA, as well.
from ps-sfta.
Try with SetUserFTA too to be sure if you get same result.
from ps-sfta.
Related Issues (20)
- Register-FTA throws an error when StrictMode enabled HOT 2
- IndexOf HOT 11
- Acrobat 64-Bit HOT 15
- Convert-Int32 sometimes performs the wrong conversion, due to a Double coming in HOT 2
- Error Logging HOT 2
- When there is a space in the path to exe, `Register-FTA` doesn't work HOT 2
- Thanks! HOT 1
- Change registry values for different user HOT 2
- "SFTA." prepended unintentionally to ProgId HOT 3
- Does not change file associations HOT 4
- Set association for multiple extensions using a foreach loop/my own variable: NO WAY! HOT 2
- No system-wide defaults set HOT 1
- Cleanup $allApplicationAssociationToasts handling
- Commands Aren't Recognized HOT 11
- Put it on PSGallery HOT 1
- Select an app to open this . file prompt HOT 4
- This code makes no sense HOT 1
- Set-PTA - Error Thrown - Write Reg Protocol UserChoice FAILED HOT 21
- Set-FTA flashes all icons on the desktop.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ps-sfta.