DanysysTeam / PS-SFTA

PowerShell Set File Type Association
253 stars 53 forks source link

Commands Aren't Recognized #29

Closed RainzDev closed 9 months ago

RainzDev commented 9 months ago

When I try to run the script and then running any of the commands, it doesn't recognize any of them. I've ran into errors before, but that was just about the policy thing which I bypassed using a powershell command.

Danyfirex commented 9 months ago

and? I don't' understand your issue.

RainzDev commented 9 months ago

and? I don't' understand your issue.

The main issue is that none of the commands are being recognizable for powershell. For example, i tried using Set-PTA

"'Set-PTA' is not recognized as the name of a cmdlet, function, script file, or operable program."

Danyfirex commented 9 months ago

how are you running the script?

RainzDev commented 9 months ago

how are you running the script?

.\SFTA.ps1

Danyfirex commented 9 months ago

check your Powershell Execution Policy

RainzDev commented 9 months ago

check your Powershell Execution Policy

It's set as bypass.

Danyfirex commented 9 months ago

have you used the command adding -verbose parameter?

RainzDev commented 9 months ago

Nope, is that needed?

RainzDev commented 9 months ago

If yes, then I tried it just now and it still doesn't work when I try to run the script again.

Danyfirex commented 9 months ago

not needed I'm just trying to determine your issue. what error do you see when trying to run a command?

RainzDev commented 9 months ago

No errors. Don't worry though, I managed to get it to run by doing Import-Module .\SFTA.ps1 instead