All Questions
Tagged with powershell windows-registry
111
questions
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 ...
0
votes
2
answers
543
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-...
0
votes
1
answer
157
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 ...
3
votes
0
answers
1k
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 ...
1
vote
1
answer
104
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. ...
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 ...
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 ...
1
vote
0
answers
555
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 ...
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 ...
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 ...
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 ...
2
votes
2
answers
5k
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 ...
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, ...
6
votes
4
answers
7k
views
How to automatically convert .reg files to PowerShell Set-ItemProperty commands?
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 ...
1
vote
0
answers
442
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 ...
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("...
1
vote
1
answer
3k
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:\...
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 ...
1
vote
0
answers
789
views
How to update Computer\HKEY_CLASSES_ROOT\CLID\{ID} Value
does anyone know how to change/ update Computer\HKEY_CLASSES_ROOT\CLID{ID} value>? I use the following PowerShell binding to Group Policy for updating certain registry key in HKCR when user login ...
1
vote
1
answer
621
views
Unexpected newlines on output Powershell write to file
OK, so admit I'm a newb in PS, and crafting a script by cobbling together a command or two taken from various places.
I am reading the registry to get a list of installed fonts on a user's machine. (...
0
votes
1
answer
530
views
How do I remove the PowerShell "open here" context menu?
I removed PowerShell 7 preview and installed PowerShell 7.0.2. Now I have a broken context menu entry for the PowerShell 7 preview. Where in the registry can I remove this?
0
votes
1
answer
3k
views
how to run powershell script so that it affects all users on a device
i need to be able to log in as an administrator and run a powershell script so that it affects all users registry keys.
i have a powershell script that fixes the TWINUI issue. It resets the ...
2
votes
1
answer
5k
views
In Powershell, How to set execution policy for another non-admin user (as admin)?
the command Set-ExecutionPolicy has a parameter -Scope which only has 5 categories:
MachinePolicy
UserPolicy
Process
CurrentUser
LocalMachine
It appears to have no ...
2
votes
1
answer
3k
views
Modifying Explorer View settings from Powershell
Recently Windows changed the way Explorer sorts content by default in the Downloads folder. By default files are grouped by date downloaded, rather than displayed like any normal file other folders.
...
0
votes
2
answers
1k
views
Adding DWORD values in Regedit without knowing the keys' location
I recently added a few additions to my registry to disable Nagle's algorithm and so I want to create a reg edit file with these additions so my friends can use without having to go into it themselves.
...
0
votes
1
answer
2k
views
Make an Image Full Screen
I have a bunch of TVs that are used for digital signage powered by intel nucs running windows 10. I am currently using a Visual Basic Script that works okay but was wondering if there is a better way ...
0
votes
1
answer
44
views
Shortcut to activate/deactivate Outlook new mail notifications
As I'm syncing calendars from/to O365/GSuite, I use a tool called gSyncit which works perfectly fine and lets run Outlook in background mode to do the sync. Normally I want Outlook new mail ...
0
votes
1
answer
638
views
Powershell: operation has been cancelled, after each shutdown/reboot
since the first time i tried to work with powershell, i faced this problem:
this error
i followed some steps to fix it, and it guided me to doing this:
deleting this directory DisallowRun from the ...
1
vote
1
answer
4k
views
Automatic input of user credentials for 802.1X authentication on Windows 10 via registry
I want to automate the configuration settings which are needed in our 802.1X environment. For this I need to pass user credentials.
Therefore I want to build a small GUI which expects the user ...
0
votes
2
answers
7k
views
How to "Open CMD Here as Administrator" in right-click menu, with no elevation prompt. Without changing UAC rules
I'm going to preface this with that I am relatively new to registry tweaking, but please bear with me.
Today I was messing with my Windows 10 (home, version 1803) and after some googling I did 2 ...