How to display the Command prompt during Logon with a batch file

0

I have a logon script which runs the 'sc config winrm type= own' command. This command changes the registry value at this location: HKLM\SYSTEM\CurrentControlSet\services\WinRM

From this Type = 0x00000020 (32)

To This Type = 0x00000010 (16)

How do i get the changed Registry entry to display in the command prompt at logon for couple of seconds or until user closes the command prompt?

for example: I want the output to show:

ValueName: Type
ValueType: REG_DWORD
ValueValue:0x10
command-line
asked on Super User Jun 29, 2016 by user2284685 • edited Jun 29, 2016 by Hennes

1 Answer

0

Run your batch file using classic star-up option from start menu and use the timeout,sleep and/or pause batch commands to display the prompt as you see fit.

example: timeout /t 2 used at the end of the script will display the content 2 seconds then the prompt will auto-exit.

answered on Super User Jun 29, 2016 by Overmind

User contributions licensed under CC BY-SA 3.0