Powershell call fails with "Scripting Integrator 2016 (PowerShell)" license error

May 20, 2017
22
0
I seem to have a little trouble getting powershell to work from within TCC 21. Powershell itself works:

D:\bin\btm> powershell get-help get-help

NAME
Get-Help

SYNOPSIS
Displays information about Windows PowerShell commands and concepts.

[… remainder of output elided …]

D:\bin\btm> ver /r

TCC 21.00.27 x64 Windows 10 [Version 10.0.15063]
TCC Build 27 Windows 10 Build 15063
Registered to FKL

Regrettably, the owners of IPworks somehow have their fingers in this pie, too:

D:\bin\btm> echo %@pshell[get-help get-help]
[Error message is displayed, see attached screen shot]

D:\bin\btm> pshell /s get-help get-help
[Error message is displayed, see attached screen shot; then:]
PSHELL: Could not find a valid license for Scripting Integrator 2016 (PowerShell) in this system. For more information, please visit www.nsoftware.com.

This happens after a number of attempts that just report the error "PSHELL: The library file is missing or specified functions can't be found."

Soon after the license error pops up, TCC becomes unstable and crashes.

Any help is appreciated.

Thanks,
Felix.
 

Attachments

  • snap_2017-05-20_15.29.09.png
    snap_2017-05-20_15.29.09.png
    28.2 KB · Views: 106
May 20, 2008
11,423
99
Syracuse, NY, USA
I get this message.
Code:
v:\> echo %@pshell[get-help get-help]
PSHELL: The library file is missing or specified functions can't be found.杮
 
May 20, 2017
22
0
This is a bug in the updated version of the third-party library. I'm rolling it back to the previous version pending a fix from the developers and will post a new TCMD build today.

Thank you for the speedy response and, of course, for the 23 years that I've been using 4DOS, 4NT and now TCC/TCMD!

Cheers,
Felix.
 
May 20, 2008
11,423
99
Syracuse, NY, USA
With build 28, I now get this (which seems odd).
Code:
v:\> echo %@pshell[get-help get-help]
TCC: (Sys) The process cannot access the file because it is being used by another process.
 "V:\]"
 
May 20, 2008
11,423
99
Syracuse, NY, USA
I don't know exactly what is happening, but the command in my previous post causes a file named "]" to be created in the CWD.
Code:
v:\> d ]*

v:\> echo %@pshell[get-help get-help]
TCC: (Sys) The process cannot access the file because it is being used by another process.
 "V:\]"

v:\> d ]*
2017-05-24  01:00               0  ]
 
May 20, 2008
11,423
99
Syracuse, NY, USA
WAD; there's nothing wrong with @PSHELL.

The problem is your ECHO - which is expanding all of the embedded < and > characters in the "get-help" output.
Roger! Got it. I just copied the command from the original post in this thread.
 
Similar threads
Thread starter Title Forum Replies Date
EDerH Powershell call from script Support 24
CWBillow TCC and TCMD in Powershell Support 6
Joe Caverly PowerShell=No Support 1
A Problem with functions @int @decimal and identifying Powershell as a shell. Support 12
Joe Caverly PowerShell Core Support 1
CWBillow PowerShell tab as Admin Support 2
CWBillow TCMD PowerShell Tab elevated Support 6
CWBillow Take Command tab as PowerShell Support 3
vefatica Powershell ... insert vs overstrike Support 2
CWBillow Powershell tab in TCMD? Support 2
Joe Caverly Fixed Displaying Profiles from TCC vs. PowerShell Support 2
Joe Caverly How to use Powershell Profile with PSHELL Support 14
CWBillow PowerShell Tabs in TCMD Support 11
I v16 Spawning a PowerShell tab Support 3
vefatica "which" in PowerShell invokes TCC? Support 3
B Powershell scripts not opening in notepad-TC main suspect Support 2
electrotype Powershell in Take Command - Customizing colors? Support 4
C Attaching PowerShell changes its colors and makes it hard to read Support 15
jdanielp Cannot step into and/or call another .bat file when debugging .bat file Support 2
S Debugger Bat file call history Support 9
M Call History popup-window? Support 0
nickles Call a complex function Support 13
rconn News Take Command v19 Call for Features Support 0
cgunhouse Problem with CALL and Directory Aliases in V17 Support 9
Vasilich How to? debugging files that use CALL command - possible?? Support 3
noahcoad Option to always CALL? Support 4
M @ExecStr vs. Call Support 4
O CALL SYSTEM from Fortran Support 4
rconn Last call for v12 feature requests Support 59
rconn Call for v11 feature requests Support 35
p.f.moore Running another batch file without CALL Support 7
samintz COPY fails to copy from \\wsl$ Support 20
M Goto fails when a text endtext block precedes the code Support 5
vefatica SETP usually fails with a 32 bit process Support 4
S INPUT fails if the entered text contains pair of square brackets Support 6
B Request Manual Key fails Support 3
L TCC V22 installer fails signature validation Support 0
A Fixed v25 regression: Parameter expansion fails in piped commands Support 2
vefatica START /PGM "name with spaces.URL" fails Support 2
I zip /M fails to delete file after adding to zip file Support 2
D skip= in FOR /F fails Support 9
Joe Caverly Using a Directory Alias with @iniwrite fails Support 14
A WAD Output redirection to IF block fails with "unbalanced brackets" Support 7
E My echo full file name to the clipboard fails now. Support 2
A Fixed (CMD compat) START /D fails to recognize the switch option. Support 3
B MKLINK requires admin - fails silently. Support 1
D Fixed Take Command 21.0.29 fails – MSVCP140.dll missed Support 6
fishman@panix.com Version 21.23 fails to install Support 4
D unzip fails to find valid license Support 3
StarliteLemming Fileread fails on Unicode file Support 10

Similar threads