kindly help me to solve the following problem.
I am trying to change computer Date via C# Windows Service. The following command this command is working in C# windows application if i run it as RUN AS Administrator. but the service is not changing system date by the following command. my pc is on domain and i run this service as domain service account. also i add service@domain account to system administrator group.
string strCmdText = "/c DATE ";
System.Diagnostics.Process.Start("CMD.exe", strCmdText);
how could i run cmd as run As Administrator in C# Service which is already run as domain user.
i tried all the solutions which is provided here but still the problem is remain.