windows

Multiple chained Credential Providers for Windows logon

瘦欲@ 提交于 2021-02-08 10:33:50
问题 I would like to implement the following authentication scenario on Windows: User provides username and password If username and password authentication succeeds, they are asked one additional question, such as translate a word in a different language or a math question. This sounds like a MFA/2FA scenario. I am not sure of the "right way" implement it: Do I implement a separate credential provider for the challenge question and chain it to the password credential provider? If so, how do I

Is there a Microsoft (built-in) ETW Provider for tracing ETW lifecycle events?

烂漫一生 提交于 2021-02-08 10:24:43
问题 I can't seem to find an ETW provider for tracing ETW lifecycle events, such as: when is a trace event session created (name, options) when is a trace event session disposed when is a provider enabled for a trace event session (provider name, guid, options) when is a provider disabled for a trace event session (provider name, guid, options) This is self-tracing - using ETW to trace itself. I can't just make such an ETW provider, it has to have been made already by Microsoft, as the events must

New Thread.Sleep behaviour under Windows 10 October Update 20H2

大憨熊 提交于 2021-02-08 10:22:58
问题 So I have thrown together a quick repro to highlight the issue while helping myself to understand what on earth was going on in my main app, after receiving many user reports of sudden slow behaviour out of nowhere after more than a year without issue. An active user of my application pointed out that the problem only came about after a recent Windows update, it led me to verify that it was indeed caused by the October Update 20H2. using System; using System.Diagnostics; using System

Can't change the permissions of files/folders on a volume with Docker windows

半世苍凉 提交于 2021-02-08 10:22:42
问题 I tried to change the permissions of files/folders on a volume with Docker windows. But the permissions are not changed, unexpectedly. Environment: Host: Windows 10 Pro Docker version 17.09.0-ce, build afdb6d4 Step to reproduce: Build a image with the Dockerfile below. Run a container with a volume. Change the permissions of files/folders. Dockerfile: FROM microsoft/windowsservercore CMD [ "powershell" ] Outputs: D:\data\docker\sample>docker build -t sample . Sending build context to Docker

New Thread.Sleep behaviour under Windows 10 October Update 20H2

点点圈 提交于 2021-02-08 10:19:19
问题 So I have thrown together a quick repro to highlight the issue while helping myself to understand what on earth was going on in my main app, after receiving many user reports of sudden slow behaviour out of nowhere after more than a year without issue. An active user of my application pointed out that the problem only came about after a recent Windows update, it led me to verify that it was indeed caused by the October Update 20H2. using System; using System.Diagnostics; using System

Activate IIS site logging field [PowerShell]

↘锁芯ラ 提交于 2021-02-08 09:53:53
问题 Is there a way to activate logging fields on a specific website in IIS, preferably through PowerShell? I want to activate the 'Client IP Address' logging field without needing to RDP to the machine and setting it manually. I am running Windows Server 2012 with IIS 8.5 回答1: You can also set the flags by using the following methodology whereby you use the total value of the flags required to by set as per the list below. The values are set by 2 to the power of the flag number. Total up all the

Activate IIS site logging field [PowerShell]

隐身守侯 提交于 2021-02-08 09:53:38
问题 Is there a way to activate logging fields on a specific website in IIS, preferably through PowerShell? I want to activate the 'Client IP Address' logging field without needing to RDP to the machine and setting it manually. I am running Windows Server 2012 with IIS 8.5 回答1: You can also set the flags by using the following methodology whereby you use the total value of the flags required to by set as per the list below. The values are set by 2 to the power of the flag number. Total up all the

How to run Octave code without the Octave IDE (similarly to Python)? [duplicate]

佐手、 提交于 2021-02-08 09:50:29
问题 This question already has answers here : Octave: How to prevent plot window from closing itself? (2 answers) Closed 2 days ago . Context: When I use Python + matplotlib, I can compose the code in any text editor (like Sublime Text), do CTRL + B , and then the text output appears in the "Build results" panel of the text editor, and, optionally, graph/plots are rendered in a new GUI window. Under the hood, the text editor calls python myscript.py when we do "Build", and that's it. It's simple

Inno Setup window preview in taskbar

妖精的绣舞 提交于 2021-02-08 09:48:13
问题 All of the programs and opened files have a preview when you hover the mouse on their icons inside the taskbar. But for Inno Setup made installers it seems there is no preview. Any fix or trick to solve this issue? Though some game installers with custom design (which use Inno Setup) have a preview in the taskbar. For example: http://fs2.filegir.com/cuttlas/setup.exe 回答1: I believe it's because the taskbar button is linked to an invisible internal window of Inno Setup and not to the visible

Execute PS from bat for Intune Win32

痴心易碎 提交于 2021-02-08 09:36:12
问题 I am so confused and actually also not so familiar with PS and bat after my troubles with them. I want to set the Lockscreen in Windows 10 with Intune through an IntuneWin file (WIN32 application). I have a folder with the image, which I want to set, a copy.bat which should copy the image in the directory and also execute the PS file for setting the login image and a del.bat for deleting the image. copy.bat md %AllUsersProfile%\sz copy /Y Wallpaper.jpg %AllUsersProfile%\sz powershell