MongoDB won’t start as a windows service, but will start at the command line

Hi Team
Facing the similar issue which is reported here - MongoDB won’t start as a windows service, but will start at the command line

Reopening this as we need to know the cause and cure for this. This is even happening with MongoDB version 6. Please review and get the bottom of this.

Thanks
Sairam

This is happening only in some setups. Please let us know if you need any information for this.