---
title: "How do you give a Windows service specific permissions?"  
description: "How do you give a Windows service specific permissions?"  
author: "Anonymous User"  
published: 2011-11-09  
updated: 2020-09-18  
canonical: https://www.mindstick.com/interview/1348/how-do-you-give-a-windows-service-specific-permissions  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# How do you give a Windows service specific permissions?

Windows service always runs under someone’s identity. Can be System or Administrator account, but if you want to restrict the behavior of a Windows service, the best bet is to create a new user account, assign and deny necessary privileges to that account, and then associate the Windows service with that new account.

## Answers

### Answer by Anonymous User

Windows service always runs under someone’s identity. Can be System or Administrator account, but if you want to restrict the behavior of a Windows service, the best bet is to create a new user account, assign and deny necessary privileges to that account, and then associate the Windows service with that new account.


---

Original Source: https://www.mindstick.com/interview/1348/how-do-you-give-a-windows-service-specific-permissions

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
