Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
0 answers
24 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 ...
Mr.Key7's user avatar
  • 823
0 votes
0 answers
23 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 ...
freddie_ventura's user avatar
0 votes
1 answer
161 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/...
Foad's user avatar
  • 662
0 votes
0 answers
50 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 ...
ProprietaryCloudGaming's user avatar
2 votes
0 answers
144 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 ...
rcp's user avatar
  • 21
0 votes
1 answer
280 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 ...
LuckyCoder3607's user avatar
0 votes
1 answer
454 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 "...
Foad's user avatar
  • 662
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 "...
Patrick Keane's user avatar
0 votes
0 answers
77 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 ...
Mr.J 01's user avatar
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 ...
Halil Nebioğlu's user avatar
0 votes
1 answer
112 views

Random letters showing in Powershell script error making it so hard to find where the error stems from

I keep receiving random letters Powershell script error. I made a changing mouse scheme script based on system OS theme. I keep receiving random letters as shown in the image below when running the ...
fatFeather's user avatar
0 votes
0 answers
634 views

Windows does not respect theme switch done by registry

I am using Windows 11 22H2 build 22621.1265. I use these scripts to change the system/application theme accordingly: New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\...
fatFeather's user avatar
1 vote
1 answer
960 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 ...
user3330840's user avatar
2 votes
1 answer
813 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 ...
YorSubs's user avatar
  • 939
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 ...
0xC0000022L's user avatar
  • 7,203
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 ...
cooktheprogrammer's user avatar
0 votes
0 answers
274 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: ...
bananakid's user avatar
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. ...
user avatar
0 votes
0 answers
206 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....
Sentry's user avatar
  • 202
3 votes
0 answers
8k 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 ...
YorSubs's user avatar
  • 939
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 ...
YorSubs's user avatar
  • 939
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 (...
YorSubs's user avatar
  • 939
5 votes
1 answer
884 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 ...
CraftyB's user avatar
  • 1,913
0 votes
2 answers
572 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" (...
Kyle D's user avatar
  • 3
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 ...
Marek's user avatar
  • 11
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 ...
VidathD's user avatar
  • 129
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 ...
lejiso3880's user avatar
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 ...
Christian's user avatar
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 ...
YakovL's user avatar
  • 849
0 votes
1 answer
236 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 ...
EllipticalInitial's user avatar
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. ...
daaqis's user avatar
  • 1
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....
Kevin Holtkamp's user avatar
2 votes
2 answers
2k views

Using PowerShell to add an entry to "PendingFileRenameOperations" without disrupting previous entries

In my case, I wanted to use the Registry value at SYSTEM\CurrentControlSet\Control\Session Manager!PendingFileRenameOperations to delete a file on reboot. I am using PowerShell. It would be relatively ...
seagull's user avatar
  • 5,594
0 votes
2 answers
536 views

How do Get Office 2019 Registry DisplayName with "For /f delims" Command line

I want to get Office 2019's DisplayName "Microsoft Office Professional Plus 2019 - en-us" and echo it. I found the cmd command using the powercell command. Powershell /command "Get-...
jkSON's user avatar
  • 35
0 votes
1 answer
154 views

Outlook migration of email accounts

I need to migrate the configurations of email account (Exchange and Office365) from an Outlook client to another one. I cannot (and I wont) retrieve any information about credentials and server ...
Dario Corrada's user avatar
3 votes
0 answers
994 views

No compatibility tab in exe properties

The compatibility tab is missing in some programs. For example: nslookup.exe , powershell.exe . If I make a copy of this file nearby, then there will be a compatibility tab in it. This means that ...
Danny's user avatar
  • 131
1 vote
1 answer
103 views

Can't escape this complex command correctly so it will run properly from the registry

I am creating a new right click context menu entry for all files. It's located here: HKEY_CLASSES_ROOT\*\shell\FileUtilities\shell\a_addtofolder It basically just adds selected files to a new folder. ...
fmotion1's user avatar
  • 127
2 votes
1 answer
2k views

Enable Windows Defender Tamper Protection using PowerShell or C#

I understand completely that it's not possible to disable tamper protection programmatically, as this would defeat the point. Though, seeing as it's possible with an InTune or Endpoint license, then ...
Arbiter's user avatar
  • 183
0 votes
1 answer
3k views

How to get the bitness of Microsoft Office from the registry?

How is it possible to get the value of the registry storing data on the bitness of the Microsoft office, to be precise, the Outlook. I found the location of the bitness in the registry and tried to ...
MPP's user avatar
  • 1
1 vote
0 answers
549 views

Startup script can't read registry

I am trying to run a (PoSh) script as SYSTEM (i.e. at startup, via SCCM or otherwise) that needs to read some protected registry keys, and it can't see them. A normal user doesn't have permission to ...
Teknowledgist's user avatar
1 vote
1 answer
2k views

Export SSL & TLS Registry Keys to CSV

I'm currently looking to find out all SSL and TLS Registry value information on the system. I need help writing a script for powershell to look at a list of hosts that are on a csv/txt file then ...
chandu's user avatar
  • 53
2 votes
1 answer
4k views

MS Edge to disallow "Apps" option from the Settings menu

I'm trying to figure out a way to disable the Apps option from the Microsoft Edge Settings and more (Alt+F4) drop down menu as can be done with Collections and Share options where it shows Managed by ...
Vomit IT - Chunky Mess Style's user avatar
4 votes
1 answer
15k views

PowerShell script to change DWORD values in registry

Can someone help me create a PowerShell script that will work with Windows 10 Enterprise that changes the DWORD value of ConnectionType to 1, and the DWORD value of DeferFlags to 4 in the user ...
Jaci Friesen's user avatar
2 votes
2 answers
4k views

Windows 10 - PowerShell registry drives are not working properly

I am using Windows 10 20H2, I have successfully recreated this problem multiple times without failure, on PowerShell Desktop 5.1.19041.610 and PowerShell Core 7.1.1. The problem: Test-Path only works ...
Ξένη Γήινος's user avatar
3 votes
1 answer
2k views

How can I query a computer for the "Last Checked" information of Windows Update?

The Windows Update page in Settings contains a Last Checked timestamp, and I am trying to determine if it is possible to somehow query a machine for this information (by way of Command Prompt, ...
Tyler N's user avatar
  • 983
6 votes
4 answers
7k views

How to convert .reg files to PowerShell set-itemproperty commands automatically?

I am a tinkerer who does many registry hacks and I hate having to click many .reg files one by one; how do I convert .reg files to PowerShell Set-ItemProperty commands automatically? I found a site ...
Ξένη Γήινος's user avatar
1 vote
0 answers
435 views

Add file mime type in HKEY_CLASSES_ROOT with script

I have a few Win8 VMs that don't include .xlsx in HKEY_CLASSES_ROOT, so it's not recognized by the OS, and to add it manually for each VM would be inconvenient. Is it possible to add such type via a ...
Bat Man's user avatar
  • 111
2 votes
1 answer
5k views

How to sort registry entries by last write time/last modified time in PowerShell

I am learning PowerShell, I use PSCore7.1 on Windows 10 20H2, currently I can do this: Get-ChildItem -Path "C:\" -Directory -Recurse -Depth 5 | Where-Object{$_.LastWriteTime.ToString("...
Ξένη Γήινος's user avatar
1 vote
1 answer
2k views

REG EXPORT not working in powershell ISE

I am trying to write a simple command to create a .reg file and export the key infos in it, but it just doesn't seem to accept the REG EXPORT command, even if I run it as admin New-Item -Path "C:\...
Samuel Fyckes's user avatar
3 votes
2 answers
19k views

Change name of webcam from windows registry programmatically

I want to change the name of a selected web camera in windows 10 so that the given name will be shown to other applications (zoom/meet) instead of the default webcam name. I have seen that I can ...
Rahat Zaman's user avatar