Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
None
-
Windows 2019
Description
While executing prunsrv.exe from an earlier version of Windows, (like 2016), the below command was working. But upon introducing the same statement for Windows 2019, it's not starting the service.
I inspected the registry to check the path in which the process was created. It seems to add a random special character before the path, which is why it's not able to start.
Observed Path:
C:\<SOME_PATH>/prunsrv.exe ^E//RS//<SOME_PROCESS>
Here near //RS, ^E is prepended and it's random special character is generated for every execution.
Expected Path:
C:\<SOME_PATH>/prunsrv.exe //RS//<SOME_PROCESS>
This is the line which is responsible to initiate the process which is triggered from .bat file:
"%SOMEPATH%/bin/prunsrv.exe" //IS//%SERVICE_NAME%
I need some help on how to remove this special character before the process is started.