Hi there.
There are several ways of doing this.
Simple but less secure is to register your application with the host that is running under "Local System" user context. That is almost like an administrator access. The downside is that if your application is hacked and taken over, the attacker has complete control over the host machine. This option is not suitable for Internet-facing applications.
A better but more complex way of doing this is to use a
ServicedComponent and place the logic that needs higher privileges in the ServicedComponent. ServicedComponent is hosted in a separate process and therefore can run under higher-privileged user account. This solution is more webserver-independent, as it will work well for UWS and IIS.
You may also consider writing data to App_Data folder to which UWS grants access to "Network Service" user - a default context for UWS applications.
Best regards,
UltiDev Team.
Please donate at
http://www.ultidev.com/products/Donate.aspx to help us improve our products.