Code Monkey home page Code Monkey logo

Comments (7)

Danyfirex avatar Danyfirex commented on August 10, 2024

does this happens "sometimes" or "all time" have you tried in other Windows 11 to be sure?

from ps-sfta.

AmirTerani avatar AmirTerani commented on August 10, 2024

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.

AmirTerani avatar AmirTerani commented on August 10, 2024

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.

Danyfirex avatar Danyfirex commented on August 10, 2024

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.

AmirTerani avatar AmirTerani commented on August 10, 2024

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.

mrmattipants avatar mrmattipants commented on August 10, 2024

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.

Danyfirex avatar Danyfirex commented on August 10, 2024

Try with SetUserFTA too to be sure if you get same result.

from ps-sfta.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.