Comments (1)
Hello, It was designed to run from the current user. So It does not have a switch for handle wide system(I thought to add it time ago but never get time/a chance to work on it but You can edit script by yourself to work in MACHINE Registry Keys). Or You could probably use common remote execution if you're in a domain.
If You are not part of a domain the only way I can think right now to handle it is like this:
$username = 'Test'
$password = '123456'
$securePassword = ConvertTo-SecureString $password -AsPlainText -Force
$credential = New-Object System.Management.Automation.PSCredential $username, $securePassword
$scriptBlock = {
[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 "ChromeHTML" ".pdf" -Verbose #set chrome as default .pdf reader
}
Start-Job -ScriptBlock $scriptBlock -Credential $credential | Wait-Job | Receive-Job
from ps-sfta.
Related Issues (20)
- Issues on 21H2 HOT 12
- 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
- Cleanup $allApplicationAssociationToasts handling
- "Sometimes" the HTTPS protocol set by the {Set-PTA ChromeHTML https} command gets deleted by SystemSettings.exe when it opens! HOT 7
- Commands Aren't Recognized HOT 11
- Put it on PSGallery HOT 1
- Select an app to open this . file prompt HOT 4
- The LDAP Server is unavailable HOT 8
- Suggestion: Use alternative approach for obtaining the user SID HOT 3
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.