registry

c# Registry System.Byte[] to string

让人想犯罪 __ 提交于 2020-08-25 08:02:51
问题 I am currently writing a program that will read part of the windows system registry however some of the values of these keys are of type System.Byte[] when i try and decode these values I can produce a string that has some readable characters that makes but mostly the string is jiberish. I have tried several encoding types but none seem to produce the correct results. I am just wondering if there is anything that is known to fix this. this is the code i have public void getMRU() { String mru

Add a key to HKEY_CURRENT_USER for all users

孤街浪徒 提交于 2020-08-22 08:39:45
问题 I have an installer which install a key on the HKEY_CURRENT_USER. When I run the installer, it only add it on the user that is installing. Is there a way to add the key to all user at once ? Thanks 回答1: You'd have to go through all the different users under HKEY_USERS , which requires elevated rights. And doesn't capture any users that have not yet been created. That's just the wrong approach. The way to do it is to add the default values to a corresponding key under HKLM at install time.

Add a key to HKEY_CURRENT_USER for all users

拟墨画扇 提交于 2020-08-22 08:38:33
问题 I have an installer which install a key on the HKEY_CURRENT_USER. When I run the installer, it only add it on the user that is installing. Is there a way to add the key to all user at once ? Thanks 回答1: You'd have to go through all the different users under HKEY_USERS , which requires elevated rights. And doesn't capture any users that have not yet been created. That's just the wrong approach. The way to do it is to add the default values to a corresponding key under HKLM at install time.

Add a key to HKEY_CURRENT_USER for all users

☆樱花仙子☆ 提交于 2020-08-22 08:38:20
问题 I have an installer which install a key on the HKEY_CURRENT_USER. When I run the installer, it only add it on the user that is installing. Is there a way to add the key to all user at once ? Thanks 回答1: You'd have to go through all the different users under HKEY_USERS , which requires elevated rights. And doesn't capture any users that have not yet been created. That's just the wrong approach. The way to do it is to add the default values to a corresponding key under HKLM at install time.

How can i see all users who have logged in to my computer (and when recently?) Via cmd command and by registry

折月煮酒 提交于 2020-08-10 19:34:15
问题 I would love to get help on how can I see all users who have logged in to my computer (and when recently?) Via cmd command and by registry. 回答1: If you are on a supported Windows system, PowerShell is available. Using it to see logged in users on another computer will require that PowerShell Remoting be competently configred. === Get-LoggedOnUsers.ps1 [CmdletBinding()] param ( [Parameter(Mandatory=$false,ValueFromPipeline=$True)] [string[]]$ComputerName = [System.Net.Dns]::GetHostName() )

Delete a Entire Reg Directory using Perl

旧时模样 提交于 2020-08-09 08:14:31
问题 I would like to Delete the Registry in Windows Machine using a perl command. How can I do that . I tried few command from Internet it is getting executed but not deleted Please provide help !! The below code executes , but doesn't delete the Reg Key use warnings; use strict; use Win32::TieRegistry( Delimiter=>"/", ArrayValues=>0 ); my $myway= delete $Registry->{"HKEY_LOCAL_MACHINE/SOFTWARE/Keypath"}; print "Done"; 回答1: First you need the right permission to delete a registry key (try run the

Delete a Entire Reg Directory using Perl

自古美人都是妖i 提交于 2020-08-09 08:14:08
问题 I would like to Delete the Registry in Windows Machine using a perl command. How can I do that . I tried few command from Internet it is getting executed but not deleted Please provide help !! The below code executes , but doesn't delete the Reg Key use warnings; use strict; use Win32::TieRegistry( Delimiter=>"/", ArrayValues=>0 ); my $myway= delete $Registry->{"HKEY_LOCAL_MACHINE/SOFTWARE/Keypath"}; print "Done"; 回答1: First you need the right permission to delete a registry key (try run the

Not able to access some keys in registry using Win32::TieRegistry

不打扰是莪最后的温柔 提交于 2020-08-08 05:42:28
问题 I am on Windows 10 using Strawberry Perl version 5.30 and trying to print out the values of the Registry key HKEY_CLASSES_ROOT/Directory/Background/shell/WSL using the Perl module Win32::TieRegistry. Here is a screen shot from the Registry Editor app in Windows 10: I am using this Perl script to print the value: use feature qw(say); use warnings; use strict; use Data::Dumper qw(Dumper); use Win32::TieRegistry( Delimiter=>"/", ArrayValues=>0 ); { dump_keys("HKEY_CLASSES_ROOT/Directory

Name program in the Open With… context menu

孤街醉人 提交于 2020-08-06 11:12:21
问题 How can I customize the name of the program visible in the Open With... context menu in Windows XP and 7? For example: I have 3 versions of a product named XYZ installed on Windows; .x files are associated to xyz.exe (COM registration). All versions of the product have the same .exe name. Now in the Open With... context menu, it shows XYZ program 3 times (3 versions are installed) but with the same name. How do I make it show the version as well? I.e. XYZ V1.0 , XYZ V2.0 , etc. 回答1: Save the