Top "Windows-security" questions

Use with Windows Security, previously called Windows Defender Security Center.

How to get HttpClient to pass credentials along with the request?

I have a web application (hosted in IIS) that talks to a Windows service. The Windows service is using the …

c# asp.net-web-api impersonation windows-security
How to get user name using Windows authentication in asp.net?

I want to get user name using Windows authentication Actually I implemented "Sign in as different user",when click this …

c# asp.net authorization windows-authentication windows-security
Cannot connect to SQL Server from PowerShell with domain credentials

I have a problem where I cannot connect to a SQL Server using domain credentials. Using the SA credentials it …

sql-server powershell windows-security
Either a required impersonation level was not provided, or the provided impersonation level is invalid

I'm having some issues with a WCF service and Impersonation, I've distilled this to a simple method below. The WCF …

c# wcf impersonation windows-security
How to apply Windows group policy using .NET?

Is it possible to apply (and remove) Windows group policy settings using .NET? I am working on an application that …

c# .net windows-security
Remote OpenSCManager fails with access denied

I am attempting to control a service on a remote machine using the following code: // Error checking omitted for brevity …

windows service windows-security service-control-manager
Is there a tool to generate SDDL (Security Descriptor Definition Language) strings?

Is there a tool to generate SDDL (Security Descriptor Definition Language) strings? I'd like to create them through Windows' Security …

windows security acl windows-security
How to write in a registry key own by TrustedInstaller

In order to install a new property page into the Active Directory SnapIn, I need to write into the following …

c# windows-installer registry windows-server-2008-r2 windows-security
ASP.NET impersonation problem (part 2)

This is a follow on to a previous post about being unable to impersonate a currently logged in Windows user. …

asp.net asp.net-mvc-2 asp.net-mvc-3 impersonation windows-security
SQL Server Error 5123 When Attaching Database

I have two databases. Both are in the same folder. Both have, as far as I can tell, the exact …

sql-server windows-security