7,386 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
65
views
Per user installation: get software version per user
I have a Visual Studio setup project together with a C# bootstrapper. The app usually was installed system-wide and requires admin permissions to be started. The new version uninstalls the old version ...
0
votes
1
answer
96
views
Cargo ignores custom, HTTP registry
I have a .cargo/config.toml file that configures a custom, HTTP git-based registry (hosted on Bitbucket) to replace crates.io:
[source]
[source.artifactory]
registry = "http://bitbucket/scm/<...
0
votes
0
answers
74
views
Windows Shell thumbnail extension: how to set ThumbnailCutoff
I implemented an IThumbnailProvider to create custom thumbnails in the Windows File Explorer for my application. That works as expected.
Windows switches from custom thumbnails to the default file ...
2
votes
1
answer
172
views
How to extract data from DWORD in Windows Registry
I'm a bit out of my depth here but wondering if anyone can guide me as I want to improve with PS ... I'm writing some code to identify which monitor was last modified, long story short I need to ...
1
vote
1
answer
96
views
win32com.client Dispatch can't find Crystal Reports
I'm making a React app with a Python/Flask back end. The user enters some information, this is sent to a python script that enters it into a crystal report, the report is generated & saved as a ...
2
votes
1
answer
143
views
Change drive in multiple shares inside windows registry
I need to change the drive of the shares inside the registry in the branch:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Shares
The word is a REG_MULTI_SZ, and I need to modify ...
3
votes
1
answer
87
views
How do I add a new item to the context menu for .url file types?
When adding a custom option to the context menu for different types of icons, this code works fine:
with reg.CreateKey(reg.HKEY_CURRENT_USER, base_path) as main_key:
reg.SetValueEx(main_key, '...
1
vote
1
answer
261
views
PowerShell script to disable RDP session timeout for specific user not working - registry changes not taking effect
I have a Windows Server running in Azure where users connect via RDP. I've configured automatic logoff for disconnected sessions after 30 minutes using Group Policy:
User Configuration - ...
3
votes
1
answer
114
views
Use Powershell to list mapped drives via the info found in HKCU
Typically, I'd just use something like this to get the info I need:
Get-PSDrive -PSProvider FileSystem | Where-Object {$_.DisplayRoot -match "^\\\\"} | Select-Object -Property Root,...
0
votes
0
answers
42
views
WiX skip uninstall registry set to 1 and during upgrade uninstall all unnecessary stuff
I have a problem during my WiX upgrade - after normal installation of my program for example in version 1.0 I am installing all necessary stuff like RabbitMQ, Erlang and so on but if I want to upgrade ...
0
votes
2
answers
147
views
Powershell script for removing GPO printers from the registry
I am working on a script to search and delete registry keys related to GPO deployed printers and have run into a few issues.
First a couple of notes:
I am running the scripts remotely via N-Central/N-...
2
votes
1
answer
113
views
Use PowerShell to iterate Windows Registry for a Network Profile Name and Optionally Delete it
After using Nord VPN (over a year's time) and noticing that it created nearly 700 variations of Network Profiles, I wanted to purge them from my Windows system.
An EXAMPLE of Registry Keys to target ...
0
votes
1
answer
95
views
How to determine which key in Windows registry has been changed
RegNotifyChangeKeyValue() function may detect that some kind of registry change has occurred.
How to determine which key has been changed? (without comparing states of all registry before and after ...
1
vote
2
answers
96
views
Notepad++ start every edited file from specific line
I have a really lot of files where I have to modify them manually.
Pattern for modify is: always start's from line ~450 where I have to add some random data.
For now I have to press "CTRL + G&...
0
votes
1
answer
124
views
WinAPI - How to remove a key/value pair from Windows registry?
I have a key/value pair SampleMalware -> abcdef:
My best attempt to delete both the SampleMalware key and its value abcdef is:
#include <Windows.h>
#include <string>
static const std::...