• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

The form specified for the subject is not one supported or known by the specified trust provider.

M

Max2006

#1
Hi,

When I attempt to execute another script from my C: drive, I use the
following command:

Invoke-Expression c:\hi.ps1

or simply call:

&c:\hi.ps1

The Powershell gives me this error:

File C:\hi.ps1 cannot be loaded. The form specified for the subject is not
one supported or known by the specified trus
t provider.
At line:1 char:2
+ &c <<<< :\hi.ps1


How can I fix that?

A link to an online resource would be a great help.

Thank you,
Max
 

My Computer

B

Brandon Shell

#2
Niether of those are needed... You use those if you are executing an
expression.

Call the script directly

PS> Path\script.ps1
you can . source if you want to launch in current context
PS> . Path\Script.ps1

"Max2006" <alanalan@newsgroup.nospam> wrote in message
news:uBDECroOHHA.4260@TK2MSFTNGP02.phx.gbl...
> Hi,
>
> When I attempt to execute another script from my C: drive, I use the
> following command:
>
> Invoke-Expression c:\hi.ps1
>
> or simply call:
>
> &c:\hi.ps1
>
> The Powershell gives me this error:
>
> File C:\hi.ps1 cannot be loaded. The form specified for the subject is not
> one supported or known by the specified trus
> t provider.
> At line:1 char:2
> + &c <<<< :\hi.ps1
>
>
> How can I fix that?
>
> A link to an online resource would be a great help.
>
> Thank you,
> Max
>
>
 

My Computer

L

Lee Holmes [MSFT]

#3
Hi Max;

It looks like your install has been corrupted. This message comes when
Windows fails to load the DLL that we use to verify the security signatures
on script files.

From PowerShell, the following should fix that specific error message:

regsvr32 $pshome\Pwrshsip.dll

However, this being broken suggests that your computer may have other
problems (due to whatever broke this in the first place.) You might want to
see if you can figure out what may have caused this problem so you can
determine if anything else is wrong.

--
Lee Holmes [MSFT]
Windows PowerShell Development
Microsoft Corporation
This posting is provided "AS IS" with no warranties, and confers no rights.


"Brandon Shell" <tshell@mask.gmail.com> wrote in message
news:e33WNEpOHHA.2312@TK2MSFTNGP04.phx.gbl...
> Niether of those are needed... You use those if you are executing an
> expression.
>
> Call the script directly
>
> PS> Path\script.ps1
> you can . source if you want to launch in current context
> PS> . Path\Script.ps1
>
> "Max2006" <alanalan@newsgroup.nospam> wrote in message
> news:uBDECroOHHA.4260@TK2MSFTNGP02.phx.gbl...
>> Hi,
>>
>> When I attempt to execute another script from my C: drive, I use the
>> following command:
>>
>> Invoke-Expression c:\hi.ps1
>>
>> or simply call:
>>
>> &c:\hi.ps1
>>
>> The Powershell gives me this error:
>>
>> File C:\hi.ps1 cannot be loaded. The form specified for the subject is
>> not one supported or known by the specified trus
>> t provider.
>> At line:1 char:2
>> + &c <<<< :\hi.ps1
>>
>>
>> How can I fix that?
>>
>> A link to an online resource would be a great help.
>>
>> Thank you,
>> Max
>>
>>

>
 

My Computer

Users Who Are Viewing This Thread (Users: 1, Guests: 0)