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
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.
User contributions licensed under CC BY-SA 3.0