- Aug
- 1,855
- 65
Code:
_x64: 1
_admin: 1
_elevated: 1
TCC 27.00.18 x64 Windows 10 [Version 10.0.19042.746]
In v26, I was able to, from a PowerShell session, enter the TCC PowerShell session, thus;
Code:
PS E:\utils> Enter-PSHostProcess -Name tcc
[Process:13108]: PS E:\Documents> get-runspace
Id Name ComputerName Type State Availability
-- ---- ------------ ---- ----- ------------
1 Runspace1 localhost Local Opened Available
2 RemoteHost localhost Local Opened Busy
In v27, I get an error when I do this;
Code:
PS E:\utils> Enter-PSHostProcess -Name tcc
Enter-PSHostProcess : Cannot enter process tcc because it has not loaded the Windows PowerShell engine.
At line:1 char:1
+ Enter-PSHostProcess -Name tcc
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (Microsoft.Power...tProcessCommand:EnterPSHostProcessCommand)
[Enter-PSHostProcess], PSInvalidOperationException
+ FullyQualifiedErrorId : EnterPSHostProcessNoPowerShell,Microsoft.PowerShell.Commands.EnterPSHostProcess
Command
I know that PowerShell has been loaded in v27, as I can do;
Code:
e:\utils>pshell /s "date"
January 25, 2021 9:13:25 AM
What has changed between v26 and v27?
NOTE: The reason I do this is so I can debug the scripts/commands that I run in the TCC PowerShell session.
Joe