60 questions
277
votes
19
answers
408k
views
How can I auto-elevate my batch file, so that it requests from UAC administrator rights if required?
I want my batch file to only run elevated. If not elevated, provide an option for the user to relaunch batch as elevated.
I'm writing a batch file to set a system variable, copy two files to a Program ...
22
votes
6
answers
14k
views
How can I find the Windows product name in Windows 11?
Windows 11, released yesterday, reports itself as Windows 10.0 just about everywhere - RtlGetVersion says 10.0, and if you ask VerifyVersionInfo if you are 11.0 or greater, it says no.
There seems to ...
170
votes
12
answers
471k
views
Generate new ssh keys in Windows 10 / 11 [closed]
I am having a really hard time getting my SSH keys up and running after installing Windows 10. Normal method is create it and throw it in the user's account under .ssh. But this folder does not ...
20
votes
4
answers
12k
views
What's the supportedOS GUID for Windows 11?
There are documented values for Windows Vista to 10. The first Insider build of Windows 11 was just released, and the documentation wasn't updated yet, but perhaps it can be found somewhere in the ...
1
vote
2
answers
21k
views
Zip from command line with Windows 11 [closed]
What is the cmd tool for zipping files with the new Windows 11 feature ? (The one used by default by explorer).
I tried zip, 7zip, compress...
Thank you
13
votes
3
answers
5k
views
Glitches in Chrome Browser in Android Emulator [Windows 11 Visual Studio 2022]
When I open chrome on emulator & browse any website, I get this:
Specifications:
OS : Windows 11 Pro
Processor : Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz 2.00 GHz
GPU : AMD Radeon RX 550
...
6
votes
1
answer
2k
views
Why did Ctrl+Space (Autocomplete) suddenly stop working in Android Studio, Intellij, and other JetBrains IDEs?
I noticed that Ctrl + Space had stopped giving me autocomplete suggestions.
I had to delete the preceding code and start typing again to get any autocomplete suggestions. At first I thought it was ...
2
votes
1
answer
5k
views
DirectX 12 application is crashing in Windows 11
I'm quite a ways into a DirectX 12 desktop x64 application built upon several of the DirectX Tool Kit examples, but now also supports custom shaders for directional and omnidirectional shadows, ...
1
vote
1
answer
2k
views
WinUI 3 on Windows 11 - Unable to find package Microsoft.Windows.SDK.BuildTools
Setup:
OS Windows 11
Visual Studio 2022 community version 17.4.5
Workload installed: .Net Desktop development, Universal Windows Platform development.
Installation details:
.Net desktop development ...
14
votes
2
answers
13k
views
gethostbyname says No such service is known. The service cannot be found in the specified name space
This simple piece of code in Windows results in an annoying debug message printed by gethostbyname.
#include <stdio.h>
#include <winsock.h>
int main()
{
WSADATA wsaData;
WSAStartup(...
13
votes
3
answers
22k
views
How to show GUI apps from docker desktop container on windows 11 [closed]
From this article, it states that windows 11 natively supports running of X11 and wayland applications on wsl.
I tried to do the same through a docker container, setting the environment variable ...
10
votes
2
answers
11k
views
How to refer to HKEY_CLASSES_ROOT in PowerShell?
New-Item -Path "HKCR:\Directory\Background\shell\customname" -Force
I've been doing the same thing for HKCU and KHLM but when I try HKCR I get errors in PowerShell. how am I supposed to do ...
7
votes
1
answer
3k
views
Is there any possible way to run Android apps on Windows Subsystem for Android by Android Studio?
It would be great if we can debug Android apps on Windows Subsystem for Android.
5
votes
2
answers
2k
views
Can Inno Setup detect Windows11 on ARM64 hardware which can emulate x64?
Windows 11 supports emulating x64 hardware whilst actually running on an ARM64 platform. An example of this would be running Windows inside a virtual machine on a Mac.
Previously my Inno installer was ...
5
votes
3
answers
9k
views
In PowerShell, how can I create a scheduled task that runs only 1 time at startup and then deletes itself?
This is what I've gathered so far. I need a scheduled task that runs only 1 time, at the next startup (whenever that is) and after it runs it should delete itself.
Register-ScheduledTask -TaskName &...
4
votes
1
answer
5k
views
WSL throws (6) Could not resolve host: raw.githubusercontent.com when trying to install NVM and cant ping google.com
When trying to install nvm with wsl 2 on windows 11, it throws:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash
% Total % Received % Xferd Average Speed Time ...
4
votes
1
answer
2k
views
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):
...
3
votes
1
answer
3k
views
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:
...
2
votes
1
answer
1k
views
Developed a Windows keyboard layout DLL but not loaded, no error message
I developed a "keyboard layout DLL" for Windows but I cannot have it loaded and got no error message. I wonder how to troubleshoot this.
There is some sample code for keyboard layouts in ...
2
votes
1
answer
11k
views
Changing Screen Resolution and Scaling in one Batch file, and Launch a .exe file as well [closed]
I wanna set the screen resolution of screen 1 to a predetermined value of 1872 x 1248 then set scaling to 100% then launch a .exe file from a folder, and once the exe is closed revert the screen ...
2
votes
4
answers
2k
views
How to extract metadata from .heic image files on Windows 11 with Python?
I'm running Python 3.10 on Windows 11. I need to extract metadata from .heic image files. Here is what I tried:
1. ExifRead
I tried with ExifRead (see https://pypi.org/project/ExifRead/) but that ...
1
vote
1
answer
1k
views
Problem when converting Python with Ultralytics to EXE file
I have developed Python program using YOLOV8 algorithm to detect human entry and it works perfectly in pycharm. when i convert it to exe file using pyinstaller im getting following error. Can anyone ...
1
vote
1
answer
656
views
Multi-value editor for path environment variable not showing in Windows 11
For some reason the multi-value editor for my Path environmental variable has stopped showing. So instead of seeing this editor:
Multi-value
I am now seeing the the single line editor which is rather ...
1
vote
2
answers
329
views
Which windows API returns the taskbar icon size?
Windows 8 and above changed the (default-DPI) size of "big" taskbar icons (introduced in Windows 7) from 32×32 to 24×24. However, GetSystemMetrics(SM_CXICON) and GetSystemMetrics(SM_CXSMICON)...
1
vote
0
answers
550
views
How to detect Xbox controller key press events in Windows 11 in Winjs UWP app?
I am not able to navigate in my UWP WinJS app using a gamepad controller in Windows 11. It is working fine in Windows 10 though.
I also found out that I am no longer getting keydown event when ...