Discussion:
Windows Installation (C:) Drive access denied from TSP in Windows 7 onwards
(too old to reply)
Ravi Kansangara
2014-08-29 06:00:42 UTC
Permalink
Hi,

I have developed TSP for 32-bit & 64-bit OS.

I have provided 2 types logging mechanism for TSP logs.
================================
1. Log to Syslog Server
2. Log to text file
================================

Here "Log to Syslog Server" is working fine.

But there is little problem while option is selected as "Log to text file".
Whenever log file is to be saved in windows installation drive (C:), my TSP can't create log file in C: drive. It shows error that access denied to this drive.

-----------------------------------------------------------------------------
NOTES:
1. Above thing is working in Microsoft Windows XP 2K. This problem is in
Windows 7 Onwards.
2. Above thing is working when file is to be created in other than C: drive.
-----------------------------------------------------------------------------

I know that this issue is due to TAPI Service is running under "Network Service" that has not aces to System Drives & Some Registries.

How can i get permissions to specific file/folder in C: drive from my TSP ?

I wish there may be any solution.

Thanks,
Ravi Kansangara
Andreas Marschall [exMVP TAPI]
2014-09-04 11:07:38 UTC
Permalink
Post by Ravi Kansangara
Whenever log file is to be saved in windows installation drive (C:), my TSP can't create log file in C: drive. It shows error that access denied to this drive.
I know that this issue is due to TAPI Service is running under "Network Service" that has not aces to System Drives & Some Registries.
How can i get permissions to specific file/folder in C: drive from my TSP ?
I wish there may be any solution.
Ravi,

a solution would be changing the account for TAPISRV to LOCALSYSTEM (that's the setting on XP and earlier).
--
Best Regards
Andreas Marschall
Microsoft MVP for TAPI / Windows SDK
TAPI / TSP Developer and Tester
My TAPI and TSPI FAQ:
http://www.I-B-A-M.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm
My Toto® Tools (a collection of free, mostly TAPI related tools):
http://www.i-b-a-m.de/Andreas_Marschall's_Toto_Tools.htm
TAPI development around the world (Frappr! map):
http://www.frappr.com/TAPIaroundTheWorld
* Please post all messages and replies to the newsgroup so all may
* benefit from the discussion. Private mail is usually not replied to.
* This posting is provided "AS IS" with no warranties, and confers no rights.
Ravi Kansangara
2014-09-10 09:12:19 UTC
Permalink
Hi Andreas,

Thank you for reply.

I know the manual process of changing TAPISRV account to Local System.

Is there any automize way (Windows API) that can run the TAPISRV under local account?
Andreas Marschall [exMVP TAPI]
2014-09-10 15:37:46 UTC
Permalink
Post by Ravi Kansangara
Hi Andreas,
Thank you for reply.
Ravi, you are welcome.
Post by Ravi Kansangara
I know the manual process of changing TAPISRV account to Local System.
Is there any automize way (Windows API) that can run the TAPISRV under local account?
You may want to take a look at the service functions from Win32.
Especially ChangeServiceConfig() and its parameter lpServiceStartName.
--
Best Regards
Andreas Marschall
Microsoft MVP for TAPI / Windows SDK
TAPI / TSP Developer and Tester
My TAPI and TSPI FAQ:
http://www.I-B-A-M.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm
My Toto® Tools (a collection of free, mostly TAPI related tools):
http://www.i-b-a-m.de/Andreas_Marschall's_Toto_Tools.htm
TAPI development around the world (Frappr! map):
http://www.frappr.com/TAPIaroundTheWorld
* Please post all messages and replies to the newsgroup so all may
* benefit from the discussion. Private mail is usually not replied to.
* This posting is provided "AS IS" with no warranties, and confers no rights.
Ravi Kansangara
2014-09-15 05:03:53 UTC
Permalink
Hi Andreas,

Thank you for help.
I will look up the APIs in detail & implement.

But is there any other solution except running the TAPISRV.EXE under Local Account ?

Thanks,
Ravi Kansangara

Loading...