Questions tagged [windows-security]

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

References:
Help protect my device with Windows Security

Related tag:
windows-defender
controlled-folder-access

176 questions
203
votes
9 answers

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 ASP.Net MVC Web API (self-hosted), and so can be communicated with over http using JSON. The web application is configured to do…
adrianbanks
  • 81,306
  • 22
  • 176
  • 206
36
votes
8 answers

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 button Windows security will appear there we can give credentials. In that time if I give some other credential it is taking…
22
votes
3 answers

Get a list of members of a WinNT group

There are a couple of questions similar to this on stack overflow but not quite the same. I want to open, or create, a local group on a win xp computer and add members to it, domain, local and well known accounts. I also want to check whether a…
Kepboy
  • 3,733
  • 2
  • 30
  • 43
21
votes
1 answer

What's the difference between a Primary Token and an Impersonation Token

Some Windows APIs return a primary token and some return an impersonation token. Some APIs require a primary token while others require an impersonation token. For example, LogonUser usually returns a primary token, except when using…
conio
  • 3,681
  • 1
  • 20
  • 34
18
votes
2 answers

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 property sheet or something similar.
Ilya
  • 5,533
  • 2
  • 29
  • 57
14
votes
3 answers

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 registry key of W2K8 R2 (as documented by…
JPBlanc
  • 70,406
  • 17
  • 130
  • 175
11
votes
2 answers

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 needs to temporarily put a machine into a restricted, kiosk-like state. One of the things I need to control is access to USB drives…
Seth Petry-Johnson
  • 11,845
  • 7
  • 49
  • 69
11
votes
2 answers

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 service is currently self hosted in an exe. The exception message is "Either a required impersonation level was not provided, or the…
Martin Clarke
  • 5,636
  • 7
  • 38
  • 58
9
votes
0 answers

Windows Firewall has blocked some features of IntelliJ IDEA

I installed IntelliJ IDEA 2016.3 Community Edition and I created a simple Java class containing a main method that just prints a message. When I run that "program", the following window appears: Windows Firewall has blocked some features of this…
9
votes
1 answer

Windows Executable File Authentication

Searching around the windows authentication methods and protocols, i decided to understand the exact difference between Negotiate, Kerberos, and NTLM used in a simple executable file before liking it with IIS and Web Authentication. I reached to…
7
votes
1 answer

How do I correctly call LsaLogonUser for an interactive logon?

I'm trying to use LsaLogonUser to create an interactive logon session, but it always returns STATUS_INVALID_INFO_CLASS (0xc0000003). From what I have found in searching online, the memory layout of the KERB_INTERACTIVE_LOGON structure is tricky, but…
Charlie
  • 44,214
  • 4
  • 43
  • 69
7
votes
0 answers

Code signing EV certificate only helps with SmartScreen, does nothing for Windows Defender

Our organization recently obtained an EV code signing certificate. It did give us instant SmartScreen trust, but 2 things still happen: A minor annoyance was Chrome that issued a warning file.exe is not commonly downloaded and may be dangerous to…
7
votes
2 answers

Intermittent 401-Unauthorized response from SSRS

(using C#, Web API, SQL Server2012 w/report server, authentication is NTLM) I am getting an intermittent error when attempting to download a report (as an excel document) from SSRS. I build out the correct URL to render the report like:…
Cos Callis
  • 5,051
  • 3
  • 30
  • 57
6
votes
0 answers

Unlock Windows 10 Programmatically

I'm building an app to auto unlock/lock a workstation based on proximity to a mobile app. The solution would be similar to the Microsoft app described here, so I'm pretty sure it's possible. What API can I use to programmatically unlock a Windows…
davidgyoung
  • 63,876
  • 14
  • 121
  • 204
5
votes
2 answers

Windows Security dialog in Microsoft Edge

I am using the latest version of Microsoft Edge (Version 81.0.416.68 (Official Build) (64-bit)). When I'm trying to login a specific site, not for all sites, it's popping up the "Windows Security" dialog followed "Sign in to access this site" asking…
Mofaggol Hoshen
  • 686
  • 1
  • 7
  • 20
1
2 3
11 12