7,388 questions
0
votes
2
answers
2k
views
How to programmatically (C#) create and add a default (HTML) signature in Outlook 2013?
Sorry for bothering you - but maybe somebody can help me here!?
We are creating an Outlook 2013 VSTO Add-In to manage Corporate Signatures centrally and publish them to every user as a default ...
0
votes
1
answer
15k
views
How to change proxy setting in Windows from script?
I've implemented a scraper that uses HTTPS protocol. To avoid captchas and HTTP 429 error I'm using proxies. That doesn't however guarantee no captchas, so sometimes I need to unblock a proxy entering ...
1
vote
2
answers
1k
views
get audio device GUID in Python
I am trying to get GUID of audio device. The GUID can be found in registry Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\MMDevices\Audio\Render\ the guid should look like {0.0....
10
votes
2
answers
13k
views
HKLM\Software\Microsoft\Windows NT\CurrentVersion: What's the difference between CurrentBuild and CurrentBuildNumber? [closed]
I'm writing code to reliably determine the Windows 10 build number by checking the registry, and I have a question about those two registry keys:
Both seem to contain the Windows 10 build number (...
16
votes
2
answers
30k
views
access to the registry key is denied When i want update the value
i want edit Registry key called "usbstor" value and this my code in update method
try
{
string path = baseRegistryKey + "\\" + SubKey;
Registry.SetValue(path, ...
1
vote
4
answers
9k
views
Remote registry change HKCU using only cmd and psexec
Hi everyone I am lost...
I have admin rights.
I want to modify registry key in HKEY_CURRENT_USER\Software.... on remote PC where another user is logged.
I don't want to use PowerShell because we ...
2
votes
3
answers
11k
views
Powershell script to report account lockout policy settings?
I have a few computers outside the network, not allowed to have the PS AD module installed.
All I want to do is use Powershell to report some of the account lockout settings, specifically the lockout ...
32
votes
7
answers
51k
views
Installing private package from Github Package registry using Yarn fails with not authorized
This question is related to these. But none of the solutions worked for me.
Yarn can't find private Github npm registry
Installing private package from Github Package registry fails with not found/...
5
votes
6
answers
9k
views
Creating a (ClickOnce) setup for VSTO Outlook Add-in
So I created an Outlook Add-in and used the click-once setup to deploy it.
The setup runs fine when the user is administrator, but otherwise: no go.
Running the setup with "run as..." and logging in ...
5
votes
1
answer
2k
views
Information about CurrentProcessor FeatureSet in the Windows Registry?
I'm using some basic processor detection in an installer, to determine which version of a software package should be available to the user.
Currently, I'm going through WMI to get some basic ...
3
votes
1
answer
149
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
2
answers
2k
views
C# WinApi - Getting RegistryKey Last Write Date
My goal is to get last write time of the certain register.
To get value of register im using:
RegistryKey mKey;
//...
mKey.GetValue("SomeRegName");
And thats fine since everything is set properly for ...
1
vote
1
answer
9k
views
Changing registry without admins rights windows 10
Changing registry without admins rights windows 10
What would be the best way add an entry XXX on windows registry with password
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\XXX
current ...
1
vote
1
answer
89
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 ...
1
vote
2
answers
9k
views
npm install failing with error "error Build failed with error code: 1"
i am running npm install command on my project but getting error
Build failed with error code: 1
Part of the log posted below.
0 verbose cli [
0 verbose cli 'C:\\Program Files\\nodejs\\node.exe',
...
65
votes
9
answers
58k
views
Associate File Extension with Application
I've written a program that edits a specific filetype , and I want to give the user the option to set my application as the default editor for this filetype (since I don't want an installer) on ...
8
votes
5
answers
15k
views
Python - checking if a user has administrator privileges
I'm writing a little program as a self-learning project in Python 3.x. My idea is for the program to allow two fields of text entry to the user, and then plug the user's input into the value of two ...
8
votes
1
answer
22k
views
Get PuTTY sessions from Windows folder
I have my hard drive from my old workstation, I did not export the PuTTY session from my old machine. I am in a situation that I am not able to boot from it, but I have it as a slave drive.
Is there ...
8
votes
5
answers
23k
views
How do I add a multiline REG_SZ string to the registry from the command line?
As part of a build setup on a windows machine I need to add a registry entry and I'd like to do it from a simple batch file.
The entry is for a third party app so the format is fixed.
The entry ...
2
votes
1
answer
279
views
Intune Win32 app to create HKLM registry entry not working
I am beating my head against a wall trying to get this to work.
I need to create a registry entry to hide a local user account from the Windows 11 welcome screen. We want to be able to see all AzureAD ...
3
votes
1
answer
85
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
205
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
99
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,...
3
votes
2
answers
24k
views
Disabling Startup programs
I am looking to disable a list of startup programs using PowerShell. I have gotten so far but then hit a wall. Currently I cannot get a second listing of startup programs to list nicely like my first.
...
4
votes
3
answers
17k
views
Using Javascript in HTA file to read/write from Windows registry
I'm currently attempting to write Javascript in order to read and write from the Windows registry in an HTA file. Here is the current code I am using to write:
writeInRegistry = function (sRegEntry, ...