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
2
votes
1 answer

How to set the owner of a file to SYSTEM?

Code-wise, this is pretty straightforward: var fs = IO.File.GetAccessControl(path); fs.SetOwner(new NTAccount("NT AUTHORITY\\SYSTEM")); IO.File.SetAccessControl(path, fs); This throws an exception that says "The security identifier is not allowed…
Roman Starkov
  • 59,298
  • 38
  • 251
  • 324
2
votes
2 answers

C# Winform: Automatically Login to a report server using Webbrowser control

I want to access an asp.net report server using a windows forms application (specifically the Web Browser Control). I am already able to load the page (via button click), however, the web browser still prompts me to enter the username and password…
wowomg
  • 33
  • 5
2
votes
2 answers

How to secure IIS Web Server

We have a web application which consists of an IIS web server which is on the internet, and a database server, which IIS accesses over a VPN link. The problem we have is that we need to store the connectstring somewhere (which obviously can't be in…
Hughgo
  • 1,319
  • 5
  • 17
  • 26
2
votes
2 answers

How to avoid principal propagation from worker-thread to GUI-thread

We have a Windows Application with a worker-thread who needs to update GUI. We uses BeginInvoke to do it asynchronously. Our problem, demonstrated in the example below, is that the Principal is propagated to GUI-thread wich we want to avoid, couse…
Tylland
  • 97
  • 5
2
votes
2 answers

IIS account environment

IIS 7.0+ uses a concept of so-called virtual accounts to identify application pools (IIS AppPool\apppoolname). Do those accounts have profiles and can be local environment variables set for them? How?
UserControl
  • 14,766
  • 20
  • 100
  • 187
2
votes
1 answer

Windows detect certificate as Root Certificate Authority

Question: How to get Windows to detect a Certificate as appropriate for installation in the "Trusted Root Certificate Authorities"? Background: I am building an internal site and would like the users to be able to download the server's root…
ChaimKut
  • 2,759
  • 3
  • 38
  • 64
2
votes
2 answers

RegSetValueEx returns "Access is denied", even though regedit allows the same user to edit this value

Our VB6 legacy application calls RegSetValueEx to set a registry value. This registry value can be easily set using regedit. However, when our application tries to set it, RegSetValueEx returns 5 - Access Is Denied. We use the same code to write to…
user884248
  • 2,134
  • 3
  • 32
  • 57
2
votes
0 answers

Accessing Windows Security through Visual Basic

I've created a code that copies the folder contents from PC1(pc for user) to PC2(pc for server). I used Active Directory to create accounts for the access of PC2's server I have the ff code to transfer from PC1 to PC2: Public Class Form1 Private…
Jericho Aganon
  • 137
  • 1
  • 2
  • 9
2
votes
0 answers

ASP.NET/SQL Server Application: Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'

I have a legacy app that I'm doing some maintenance on. It is built with Visual Studio 2008, ASP.NET Web Forms, SQL Server and .NET 3.5. The application uses Forms Authentication backed by the ActiveDirectoryMembershipProvider. The computers live in…
John Mills
  • 10,020
  • 12
  • 74
  • 121
2
votes
0 answers

Property changes log for Windows Server service

How can I define who/what made changes on Windows Service property? Are there any log files for such activties? Problem's birth: - Environment: - OS: Windows Server 2008R2(Front end) - App: Sharepoint Foundation 2010. Problem: service "Net…
2
votes
1 answer

Return-Oriented Programming: Why literal number used in ROP chain?

Following an article introducing ROP on Windows, I found that the author put some literal numbers in the ROP chain. The code snippet generating the shellcode: rop += struct.pack('
yegle
  • 5,795
  • 6
  • 39
  • 61
2
votes
1 answer

Admin elevation from program that runs over network

Small parts of my application require admin rights (activation of the software needs to go to HKLM). For this, I draw shield icons on the buttons whose action require admin rights and when clicking, I restart the application with an appropriate…
divB
  • 896
  • 1
  • 11
  • 28
2
votes
1 answer

Windows File security, removing an access rule

I have the following code, that should remove the access of users from a certain folder. Unfortunately it doesn't (the access rule remains in place). No exception is thrown. AuthorizationRuleCollection arc = ds.GetAccessRules(true, true,…
C. Ross
  • 31,137
  • 42
  • 147
  • 238
2
votes
0 answers

Virtual Directory in Tomcat Wont Work

Help! I am trying to get a virtual directory in Tomcat 6.0 to work. This had been working for years in connecting a virtual directory to a share on two separate servers on two separate org domains than my own. Just recently, and at different…
dthree
  • 19,847
  • 14
  • 77
  • 106
1
vote
0 answers

How do I grant privileges to a user/role in Windows 7?

How do I grant specific privileges (not permissions) to a specific user? I'm confused because it seems there are "permissions" and "privileges" and I need to be able to grant the SE_SYSTEMTIME_NAME privilege so that a piece of software I wrote can…
GregH
  • 12,278
  • 23
  • 73
  • 109