Questions tagged [windows-11]

Microsoft Windows version 11 is an operating system for computers. Use for questions about software development on or for the OS. General support questions are OFF-TOPIC and may be asked on https://superuser.com

742 questions
3
votes
1 answer

After a sleep on Windows 11, Docker Desktop containers disappear

I am using Docker Desktop on Windows 11 to start and stop containers. When I close Docker Desktop and the computer goes to sleep, whenever I come back and relaunch Docker Desktop, the containers are gone. If I then restart the computer, they…
Eva M
  • 625
  • 6
  • 11
3
votes
1 answer

SetForegroundWindow: relationship between the ForegroundLockTimeout registry value and the SPI_GETFOREGROUNDLOCKTIMEOUT WinAPI parameter

Context: This question is about how to control, through configuration, whether programmatic cross-process window activation (making a window the foreground window with the input focus) is allowed, via the SetForegroundWindow WinAPI function. It…
mklement0
  • 382,024
  • 64
  • 607
  • 775
3
votes
1 answer

How to connect to MongoDB from WSL2

I started a MongoDB server mongod.exe on my local Win11 machine and want to connect to it with pymongo from within WSL2 (from a Jupyter Notebook started in WSL2; ip address taken from ifconfig below): import pymongo as pm import datetime as dt host…
alex
  • 10,900
  • 15
  • 70
  • 100
3
votes
1 answer

PowerShell asks "How do you want to open this file" when executing command

After upgrading from to Windows 11 the Select-String cmdlet stopped working and everytime I use it, it tries to "open an unknown file" as in image bellow: I found it out when I tried to run one of my ps scripts from batch file - in Win 10 it worked…
FFko
  • 77
  • 7
3
votes
0 answers

How to fix JIT debugger "Visual studio is not registered to be notified when an unhandled exception occurs in a native application"

Windows 11 This message is displayed when vsjitdebugger.exe is executed "Visual studio is not registered to be notified when an unhandled exception occurs in a native application" One way for me to produce that message is in a command line window.…
3
votes
1 answer

Accept part of the autocompletion

I have recently got myself a new Windows 11 laptop, and started exploring powershell. Never used it before on Windows, but I'm a frequest user of zsh in Mac so not completely new. I upgraded Powershell to 7.2.1, but noticed that the auto-suggestion…
yarnabrina
  • 1,561
  • 1
  • 10
  • 30
3
votes
0 answers

Visual Studio 2022 Android Emulator Crashes on Startup

I have a problem. Every time I try to debug an application with the default Android Emulator of VS 2022, it doesn't start, but crashes on startup crash image. Instead if I launch it manually the emulator starts but the phone displays a black screen.…
3
votes
1 answer

Error calling get-wmiobject for Win32_powerplan

I'm trying to return the Win32_PowerPlan in PowerShell 7 on Windows 11 with the following code: get-wmiobject -namespace "root\cimv2\power" -class Win32_powerplan However, I get the output: get-wmiobject : At line:1 char:1 + get-wmiobject…
KyleMit
  • 30,350
  • 66
  • 462
  • 664
3
votes
1 answer

WinUI 3 UWP - Dialog

I am develop a new app for Windows 11 in WinUI3 UWP, and I want show a dialog to provide a safe action like in this example of Microsoft Docs: https://learn.microsoft.com/en-us/windows/apps/design/controls/dialogs-and-flyouts/dialogs private async…
Luís
  • 157
  • 2
  • 10
3
votes
1 answer

Can Visual Studio 6.0 C++ run in Windows 11?

I just install Windows 11 and found out the VS6.0 app I still have to support will not build. VS C++ 6.0 won't even launch. It was working fine in Windows 10. Has anyone figured out how to run VS6 in Windows 11?
Matt
  • 169
  • 2
  • 6
3
votes
1 answer

Not possible to find any installed .NET Core SDKs on Windows 11 (visual Studio code)

I very recently upgraded to Windows 11, I am not sure if this is the source of the issue though. My proccess: Installed .NET 5.0 SDK (v5.0.402) - Windows x64 Installer Opened Visual Studio Code (Version 1.61.2) Downloaded Extension (C# for Visual…
TimA
  • 31
  • 5
3
votes
0 answers

How to retain rounded button corners on windows 11 devices but change button border color | C# WinForms .NET5

So I have been making a winforms project, the problem is that Windows 11 has rounded button corners which only appear on the Flatstyle: Standard setting. I have both a light mode and a dark mode in my application. The problem is that the button…
SimpleCoder
  • 474
  • 4
  • 18
3
votes
1 answer

Is .NET framework 4.8 preinstalled on Windows 11

My Google skills are failing me today. I'm trying to find out if .NET framework 4.8 will be preinstalled on Windows 11. Short of downloading the beta, I was looking for a feature list for Windows 11 that would answer the question.
Josh
  • 8,219
  • 13
  • 76
  • 123
2
votes
1 answer

POWERSHELL - WINDOWS REGISTRY - failing to have path with "*" like 'hkcr:\*\shell'

I am trying to make a powershell script that adds some registry keys. But (I think) I am failing on the * folder under HKCR being recognized as a wildcard The goal of the powershell is to provide me with an "Open with Notepad++" option in the right…
2
votes
0 answers

How do i open a .pdf file with Drawboard PDF (MS Store APP) via command prompt?

I am developing a Python script which starts a PDF in diffrent programms depending on the file name. But if i want to open the PDF with the Microsoft App Drawboard PDF, the standard Powershell & Python commands only start the software and don't…
tcprod
  • 21
  • 3