Cant get Pshell or @pshell to work... I suspect a path error, but it looks correct to me.
I always get the following message:
pshell /s "d:\utils\Toast.ps1" (I've tried with and without the double quotes and with single quotes)
PSHELL: The library file is missing or specified functions can't be found.
Version and path is provided below. Is there a need for some type of environment varible? Please help
I don't think a PATH entry is needed. Here, NSILP_PowerShell.x64.dll is in TCC's installation directory (and not in the path) and TCC finds it OK. It's likely that this has something to do with the PowerShell version and/or what's in Toast.ps1. Does the script work when run from PowerShell?
I dont have a profile.ps1 defined anywhere. Do I need one?
I have tried issuing direct powershell commands instead of a ps1 file.
pshell "Get-Host | Select-Object Version"
PSHELL: The library file is missing or specified functions can't be found.
[pshell /s "Get-Host | Select-Object Version"
PSHELL: The library file is missing or specified functions can't be found.
pshell /S "Get-Host | Select-Object Version"
PSHELL: The library file is missing or specified functions can't be found.
Don't do that. Ever. Correctly install appropriate runtime, that's all you need to do. But do not, never ever manually copy anything into SystemRoot. Just no.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.