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

Identify local account vs domain account using SID

How can we know if an SID(Windows Event security identifier) belongs to a domain account or local account?
Krishna
  • 1
  • 1
0
votes
3 answers

Update Windows security remotely using powershell scheduled task

I am trying to Install windows security patches on a remote machine using powershell remoting. This is the function i am using to Update windows <# .SYNOPSIS This functiion will automatically install all avaialable windows updates on a device and…
0
votes
1 answer

Programmatic created folder with ACL not accessible

I had a lot of pain programmatic creating a folder with ACL and owner.. Taks: Create a folder only accessible by one user (not even Administrator). (current) Solution: Run as Admin: // path is the directory, "target" the parent directory String path…
Ralph Erdt
  • 537
  • 4
  • 16
0
votes
0 answers

Windows Security dialog looses focus and becomes unclickable in WPF app

Some users of our application need to be able to connect using a proxy. The first time that the app makes a request requiring proxy authentication, the request fails with the 407 error code, as expected, and Windows pops a dialog like the…
Zachary Burns
  • 453
  • 2
  • 9
0
votes
2 answers

How to pass Windows credential in a PowerShell script?

I am writing a PS script to open a URL automatically in a Chrome browser. I created a credential object and pass it to Start-Process as below. $username = Read-Host 'What is your username?' $password = Read-Host 'What is your password?'…
0
votes
1 answer

prompt user to login to protected directory in python

I have a script that searches through a protected directory and opens file explorer to a selected location. The problem is that it only works after the user has already logged into the directory. Example of what sort of thing the code is doing…
0
votes
1 answer

Insert Sharepoint Credentials using Powershell

When trying to open or sometimes close, via powershell, a word document in a sharepoint directory hosted in my company's network, the windows security box popup. How can I authenticate this ? Here is part of my script: $docpath =…
0
votes
1 answer

Does SetThreadToken() keep the impersonation token alive?

While the main thread impersonates a client, my code creates a thread and assigns it the impersonation token using SetThreadToken. Then the main thread closes the token. Specifically, the main thread does this: Get a primary token using…
j6t
  • 9,150
  • 1
  • 15
  • 35
0
votes
1 answer

How to do these permission granting commands in Windows Explorer?

In this tutorial, I found the following commands. ICACLS "%SystemDrive%\Windows\System32\inetsrv\config" /Grant "Network Service":R /T ICACLS "%SystemDrive%\Windows\System32\inetsrv\config\administration.config" /Grant "Network Service":R ICACLS…
Second Person Shooter
  • 14,188
  • 21
  • 90
  • 165
0
votes
0 answers

SignalR Context.User.Identity.Name is null in console client/server

I've went through almost all the posts regarding this issue 2 times to make sure I didn't miss something. I still don't get this to work though. I have a Console SignalR Hub using Microsoft.AspNet.SignalR.Core I have a console SignalR Client…
Jaques
  • 2,215
  • 1
  • 18
  • 35
0
votes
1 answer

SQL Server replication agents security

I was testing replication on different servers, and I found that the easiest way (for me) to do it is to run all the replication agents (SnapShot agent, Logreader agent , and Distribution agent) under the same Windows account. However, according to…
Muhannad
  • 467
  • 4
  • 28
0
votes
1 answer

How can I use a local computer account as the credentials for PSExec

I am working on some deployment PowerShell scripts that I plan to use with Bamboo for deployment. Within these PowerShell scripts, I want to run commands on a remote computer on our local network. I would like to use Invoke-Command and use the…
EiEiGuy
  • 1,447
  • 5
  • 18
  • 32
0
votes
2 answers

Unable to use cypher suite on client machine in TLS 1.2

I have 2 desktop machines (windows 7). One is my development machine and other is my test machine. I have made a desktop application. It is connecting server using web request. I am using TLS1.2 for connection and HTTPClient (C#) has been used on…
bulunga
  • 51
  • 1
  • 12
0
votes
2 answers

WinForm with WebBrowser control pops Windows Security for Authentication

I have created (using C#, VS2017, windows10 latest updates) a simple Windows Form application and included a webBrowser control redirecting to a page. I am having the Windows Security pop up asking for password and I want to disable it : I want…
Dimitris Sapikas
  • 622
  • 1
  • 6
  • 22
0
votes
1 answer

Excel RefreshAll using powershell script along with credentials

I need to refresh an excel using Powershell script (so that I can later schedule it in task scheduler). This refresh requires credentials to be entered. Does anyone know of a way to pass these credentials from the powershell script? The excel hangs…