All Questions
Tagged with powershell windows-registry
111
questions
0
votes
0
answers
26
views
Explore Regedit.exe to the specified address from the CommandLine [duplicate]
Generally, when we want to navigate to one of the registry addresses, we open regedit.exe then copy-paste the address into address bar, then press enter.
For example Computer\HKEY_CURRENT_USER\Console
...
0
votes
0
answers
24
views
Starting a program from the CLI with some File Properties Options activated
Start a program from the CLI with some File Properties Options activated
I want to start from the CLI automatically a graphical application with a File properties flag setted.
High DPI scalling ...
0
votes
1
answer
168
views
How to Remove Preferred Languages from Microsoft Edge using PowerShell
I am trying to manage the preferred languages in my Microsoft Edge browser on Windows using PowerShell. Specifically, I want to remove certain languages that appear in the "edge://settings/...
0
votes
0
answers
53
views
How can I block these Edge and Chrome settings?
https://imgur.com/a/fVPo4DV
It says: "Your Privacy is important for Microsoft Edge... bla bla bla... " I can either click on Accept or Deny All. This always pops up when Edge is opened for ...
2
votes
0
answers
159
views
How to add custom option in the right click menu (Windows 11)
I want to add an option in the Context Menu when right clicking on any file (Windows 11).
I already changed the menu appearance so it looks like Windows 10's menu, and I already added an option in ...
0
votes
1
answer
307
views
Windows Registry Shows Windows 10 Pro Despite Running Windows 11 Pro
My laptop is running on Windows 11 Pro, and the system settings indeed confirm that it's running Windows 11 Pro. However, when I use PowerShell to query the registry for the Windows version powershell ...
0
votes
1
answer
485
views
How Can I Change File Explorer's Default View to "Details" and Group by Type Using CMD/Batch or PowerShell?
I'm looking to customize the default settings of File Explorer on my Windows 10 system. Specifically, I want to set the default view mode to "Details" and have files always grouped by "...
2
votes
2
answers
4k
views
Change ownership of Registry Key using script
I'm attempting to programmatically change the owner of a registry key but I can't get it to work using a few different methods in CMD or PowerShell. Is this even possible?
The key is owned by "...
0
votes
0
answers
78
views
Issues communicating PoKeys57CNC and Mach4 running on Windows 11 Home PC in Custom Shel Kiosk Mode
Some background Information
I am using a Windows 11 Home PC to control a plasma cutting machine. The windows 11 machine uses Mach4 as the interface for controlling the plasma cutter and a PoKeys57CNC ...
0
votes
2
answers
1k
views
Next desktop background by cmd, Powershell or batch?
I have set slideshow as my Windows 10 background. I can right click on the desktop and select Next desktop background to change it to the next image. Is there any way to do this via cmd or powershell ...
1
vote
1
answer
991
views
How to manually add a program to the list of windows optional features so that it can be turned on or off?
The C:\Windows\System32\OptionalFeatures.exe program allows to Turn windows features on or off by checking or clearing the checkboxes from the shown list.
For educational/learning purposes, how can a ...
2
votes
1
answer
822
views
PowerShell, properly association .jar files with java.exe or javaw.exe
Using the answer from this question Copy Java installation to another system I can manually install Java (without running the installer) and port it to other systems. This works well.
However, I still ...
1
vote
1
answer
1k
views
'Get-Service' fails to list *all* services due to one causing an issue
As a "normal" UAC-elevated user (i.e. member of the BUILTIN\Administrators alias, but not .\Administrator), how can I list all services using Get-Service and sidestep the issue described ...
0
votes
0
answers
2k
views
How do I set the owner of a registry key using powershell?
I'm trying to modify the permissions of a registry key, however before I can do that I need to change the owner of that key.
Is it possible to do that using a powershell script? I've seen that you can ...
0
votes
0
answers
277
views
Assign registry key last write/modified time recursively using PowerShell
One can view Windows Registry key's LastWriteTime by exporting key as TXT using Registry Editor:
Key Name: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Audio
Class Name: ...
6
votes
1
answer
5k
views
How to enable light mode/dark mode in Windows 11 programatically?
I'm trying to schedule the light mode/dark mode in Windows personalization settings using Task scheduler, so that Windows theme colors will change based on time of day, which is also better for eyes.
...
0
votes
0
answers
210
views
Registry contains thousands of non-ASCII entries
Something created thousands of weird entries in my registry (Windows 10) in HKEY_CURRENT_USER. Virtually all of them consist of 4 characters and have no sub-keys and there are more than 20.000 of them....
5
votes
0
answers
9k
views
PowerShell / Registry: Remove the "Activate Windows" watermark for Windows Sandbox
The "Activate Windows" watermark is used by Microsoft to track unlicensed copies of Windows; this is important for them and I have no issue with that. However, for Windows Sandbox, we are ...
2
votes
0
answers
4k
views
PowerShell / Registry, change to Best Performance, and activate the change
The following is listed on various sites to switch to Best Performance mode (under This Computer Properties > Advanced system settings > Performance). On running this nothing happens. I can see ...
2
votes
1
answer
3k
views
PowerShell, how to disable Xbox Game Bar?
I really need to disable the Xbox Game Bar with PowerShell. There are many articles on how to delete/uninstall the Xbox Game Bar but that does not work for me as I need this inside Windows Sandbox (...
5
votes
1
answer
887
views
Disable Outlook "Top Results" / "show most relevant search results on top" via PowerShell / Registry / Group Policy
I am unable to find a way to disable the Microsoft Outlook search option "show most relevant search results on top" via a systematic / automated approach so that I can deploy this to all of ...
0
votes
2
answers
576
views
How can I set the value for each default key in different subdirectories of regedit?
Here is a screenshot what I'm working with:
screenshot of regedit directory
I wanna run a script that will set every default key in each subdirectory named mplayerc64.*\shell to "enqueue" (...
1
vote
2
answers
2k
views
RunOnce key which starts elevated .ps1 file
so for few days I'm working on the automation script in powershell which starts elevated -> changes pc name -> creates the RunOnce reg file with this line as Value (program changes it ...
3
votes
1
answer
4k
views
Forcing lock screen image not working
I want to force the same lock screen image on every user. I selected the image I want with group policy Local Computer Policy > Computer Configuration > Administrative Templates > Control ...
0
votes
0
answers
1k
views
How to automate Windows 10 configuration into script properly?
I am trying to automate configuration for Windows 10 system.
For a better understanding of my aim: recently I have written down all the commands while setting up Arch Linux into a script and now I can ...
1
vote
1
answer
2k
views
Open up a registry from a remote client
I want to make a Script, that ask me for my input (Client) and opens up the registry editor with the client already connected, so I dont have to click manually add network...
Is there a way, in Batch ...
1
vote
1
answer
2k
views
How to get a registry value to a variable using Powershell? (implementing programmatical way to toggle dark mode in Windows 10)
I'm implementing dark mode switcher for Windows 10. I've found that one can enable dark mode via
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name ...
0
votes
1
answer
238
views
PowerShell Script Has Wrong Icon and Context Menu Items
I have a .ps1 script on one of my computers and it looks like this:
When I right click and bring up the context menu, it has an "edit" entry.
However, when I copy the same PowerShell script ...
0
votes
0
answers
4k
views
Google Chrome Removal and Installation
I am working on a script to uninstall Google Chrome and Reinstall it via Intune (Microsoft Endpoint Manager). Recently, we've had so many problems getting Chrome updated as it keeps producing errors.
...
1
vote
1
answer
2k
views
Importing .reg file returns success-message but does not import values
I have made a simple reg file:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Control Panel\Desktop]
"JPEGImportQuality"=DWORD:0x64
When I open PowerShell and use reg import test....