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
3
votes
3 answers

How to run a process as current user privilege from an admin process

When a setup program(built by like Inno Setup) does launch a process, the process always be run as administrator privilege. -because setup program had been run as admin. I want to run the child process as current user's privilege. Is there a good…
Benjamin
  • 10,085
  • 19
  • 80
  • 130
3
votes
1 answer

Virtual Service Account without Network Access, like NT AUTHORITY\LocalService

Background: I'm writing a service and want to give it as few privileges as necessary. Virtual Accounts (sometimes "Virtual Service Accounts") are sparsely documented feature new to Windows 7/2008R2 that are automatically managed accounts for…
Fowl
  • 4,940
  • 2
  • 26
  • 43
3
votes
2 answers

How do I programmatically Unblock (IE feature) a file?

I like this feature, but in the current build of Windows, clicking the 'Unblock' button and clicking 'Apply' does absolutely nothing. This can cause issues - some files won't run properly. That being said, I've not been able to find a workaround…
RǢF
  • 806
  • 5
  • 17
3
votes
0 answers

Maven on Windows 7 without admin rights - mvn.bat not trusted to download from web

I work as a software engineer in a company that cannot give me local administrator rights on my Windows 7 workstation. To avoid the month-plus SLA and hassle of teaching a tech support person how to install software that I need to do my job, I find…
maple_shaft
  • 10,435
  • 6
  • 46
  • 74
3
votes
3 answers

Do spawned threads automatically run as the identity of the user?

ie static void Main(string[] args) { var thread = new Thread(WhoAmI); thread.Start(); } static void WhoAmI() { //can i access network resources as the user who ran Main? }
Noel Kennedy
  • 12,128
  • 3
  • 40
  • 57
3
votes
2 answers

Using GetTokenInformation in Visual Basic 6 to determine whether a user is an admin

I am using GetTokenInformation as a part of the code that determines if the current thread is running as an Administrator. Anyway, I have a structure for TOKEN INFORMATION that looks like this: Private Type TOKEN_GROUPS GroupCount As Long …
Ian
  • 5,625
  • 11
  • 57
  • 93
3
votes
2 answers

Service {ServiceName} was not found on computer '.'

I have a Windows service that runs on my local PC. My operating system is windows 7. I want to Start my service via C# code without going through "Computer Management > Services". When I run the code below it gives me the following…
Thilo
  • 89
  • 2
  • 7
2
votes
2 answers

BAD IMPERSONATION in IIS Express with Basic Auth for all static requests

We are attempting to use Basic Authentication in a project, which generally works fine in our integration and QA environment or even running locally with IIS 7.5. But running locally in IIS Express we get some very strange issues -- any static…
Wyatt Barnett
  • 15,573
  • 3
  • 34
  • 53
2
votes
1 answer

What are different types of windows token and how they differ?

Recently I have been dealing with windows LogonUser API. The LogonUser api returns different token depending on the dwLogonType passed to the API. The document mentions: • The function returns an impersonation token, not a primary token. You …
Anand Patel
  • 6,031
  • 11
  • 48
  • 67
2
votes
1 answer

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 HANDLE hToken = NULL; // user = username with no domain specification // domain = targetmachine when targetting computer outside…
villintehaspam
  • 8,540
  • 6
  • 45
  • 76
2
votes
1 answer

prevent hook dll loading

Is there a way to way set process security permissions or some other way to disable Windows from loading global window hook dlls? I don't want to disable SetWindowsHookEx, I just want to disable the hook dll from loading in my process.
Bevan Collins
  • 1,531
  • 16
  • 25
2
votes
0 answers

Starting a GUI Application from a service with c++

I am working on a C++ software that runs as a Windows service. Basically this software provides different server services based on internal and external data. Now there is a customer request that sometimes another program with a graphical user…
2
votes
1 answer

Remove credentials created with Web Authentication API

Does anyone know where the security credentials from Windows Hello are located and how to delete them? I am implementing authentication with Web Authentication API and while working on the code I created hundreds of credentials, which I would like…
Sasxa
  • 40,334
  • 16
  • 88
  • 102
2
votes
1 answer

Grant PROCESS_DUP_HANDLE to a service

Background I have 2 windows services (running on WinServer2016) communicating over shared memory. The mapping is propagated with DuplicateHandle windows API from one service to the other (there are reasons why this is the preferred method). While…
Gyorgy Szekely
  • 2,654
  • 3
  • 23
  • 32
2
votes
0 answers

WCF RIA Services, The remote server returned an error: Not Found

This error occurs usually after some idle time when there was no server interaction. If I repeat the call, the server responds correctly and necessary data is returned. What might be the problem? Additional details: web.config has the following…
1 2
3
11 12