• 4

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191


File: /home/prodcxja/public_html/questions/application/views/question.php
Line: 191
Function: _error_handler

File: /home/prodcxja/public_html/questions/application/controllers/Questions.php
Line: 433
Function: view

File: /home/prodcxja/public_html/questions/index.php
Line: 315
Function: require_once

After setting up a Windows Server with a vTPM (see in Google Cloud VM and accesing to it through Remote Desktop Services (RDS), when trying to initialize the TPM virtual smart card with a command like the following:

Tpmvscmgr.exe create /name "TestVirtualSC" /pin prompt /adminkey default /generate

The following error is produced:

Creating TPM Smart Card...
TPM Virtual Smart Card management cannot be used within a Terminal Services session.
    (0x800704d3) The request was aborted.

So, is there any way to initialize the TPM virtual smart card through a remote RDS session?, or alternatively, is there any other way to initialize it in a Google Cloud VM running Windows Server?.

You can use the Emergency Management Services (EMS) console which once connected, will present you with a Command Prompt.

  1. From your terminal or in Cloud Shell, enable connections to the serial ports on your VM:
gcloud compute instances add-metadata vm-name --metadata=serial-port-enable=1

Replacing vm-name with the name of the VM on which to enable the serial ports.

  1. Connect to the EMS console on serial port 2 of your VM:
gcloud compute connect-to-serial-port vm-name --port 2

Replacing vm-name with the name of the VM with the serial port to connect to.

  1. Verify that you see output similar to the following:
Computer is booting, SAC started and initialized.

Use the "ch -?" command for information about using channels.
Use the "?" command for general help.

EVENT: The CMD command is now available.
  1. Create a new command prompt session by using the cmd command. and verify output similar to the following:
The Command Prompt session was successfully launched.
EVENT:   A new channel has been created.  Use "ch -?" for channel help.
Channel: Cmd0001
  1. Connect to the new command prompt session by using the ch -si 1 command and verify output similar to the following:
Name:                  Cmd0001
Description:           Command
Type:                  VT-UTF8
Channel GUID:          28de7392-5413-11ea-bb03-c9656a2ed613
Application Type GUID: 63d02271-8aa4-11d5-bccf-00b0d014a2d0

Press <esc><tab> for next channel.
Press <esc><tab>0 to return to the SAC channel.
Use any other key to view this channel.
  1. Press Enter to connect to the session.

  2. Sign in to the session by entering your login credentials for this VM, after which the EMS console opens in the C:\Windows\system32 directory. Type help for a list of available commands in the EMS console.


  • 1
Reply Report

Warm tip !!!

This article is reproduced from Stack Exchange / Stack Overflow, please click

Trending Tags