All Questions
Tagged with powershell windows-registry
111
questions
1
vote
0
answers
373
views
Why is Powershell able to change registry values regardless of registry permissions?
Using Windows 8.1 Enterprise. Through Regedit I removed permissions from Administrators and even System for the key HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings.
I was under the ...
0
votes
1
answer
2k
views
Find out when is the last time a Google Chrome opened/used by the user?
I was wondering if there is a way to find out when is the last time user opened or used their Google Chrome browser remotely (i.e. via PowerShell or registry key.)
I know that
HKEY_LOCAL_MACHINE\...
4
votes
1
answer
18k
views
Setting registry permissions with Powershell
I have a registry key that I need to take ownership of and then set a permission set on. I'm able to take ownership, but when setting the permission, it only applies to the very top level of the ...
0
votes
2
answers
236
views
New to scripting and need help running powershell script to deploy software. (powershell blocked execution) [closed]
The following script was written for me. My problem is that when our remote deployment system executes the script, Powershell on the local machine will not run the script. It has no problem running ....
6
votes
4
answers
26k
views
Set UAC Level with PowerShell
I'm looking for a way to set the UAC Level with Powershell/Command prompt. I'm aware the 'EnableLUA' value in the registry, but this won't set the level. It's just true or false.
Is there a way to ...
1
vote
1
answer
3k
views
Internet Explorer: Set homepage for all users without GPO
I'm looking for a way to set the homepage of Internet Explorer (and possibly other browsers) for all Users through command line/Powershell, or any other method that doesn't use the domain policies (...
1
vote
1
answer
5k
views
Remote Registry with alternate credentials from the command line
Sometimes, when I'm teleworking from my personal laptop, I run into problems with my SmartCard reader while trying to connect to systems that are configured to enforce SmartCard usage. The usual ...
2
votes
1
answer
276
views
Use PowerShell to interpret registry values
Consider the following key, as an example
HKEY_CLASSES_ROOT\txtfile\shell\open\command
and its (Default) value
%SystemRoot%\system32\NOTEPAD.EXE %1
This value determines what will happen when you ...
2
votes
1
answer
5k
views
Checklist to configure programs to (not) run at startup in windows 8
I'm asking specifically for Asus Splendid, I'd like to run it whenever I want so that it does not start every time I start windows. I know it's a program that is started because the screen looks ...
2
votes
2
answers
2k
views
Read x64 registry branch from 7-zip SFX Installer via PowerShell
I want my 7-zip self-extracting archive to run a PowerShell script after it extracts files. To do that, I use method described here: http://www.sphaero.org/blog:2011:...
8
votes
3
answers
14k
views
Adding Powershell command to right click menu both on and in a folder
There are some solution online but most of them just add the command when you right click on the folder. I've find a solution (which work both) for Run As Administrator here. But it works just for ...
1
vote
1
answer
4k
views
one-click script o backup and restore individual registry keys
I have an application that stores some settings in registry. For whatever reason, it loses some stuff on occasion. I don't really have time to figure out what the problem is (it's not even guaranteed ...
3
votes
1
answer
640
views
Editing and Viewing Registry Keys from Powershell
I am working on learning Powershell and have been trying to write a script that will automatically map my drives to specific network drives. That's easy enough, but I also want certain names ...
1
vote
2
answers
3k
views
Opening PowerShell at the current working directory from the registry
This question is prompted by a problem I faced while writing this answer. I am invoking PowerShell like this from the registry:
C:\Windows\System32\WindowsPowerShell\v1.0\PowerShell.exe -NoExit -...
0
votes
0
answers
1k
views
Setting up microsoft intune, need to lock down computer
So, I have an initiative to set up Microsoft Intune on a number (~450) remote computers. Those computers are currently running deep freeze to reduce the damage that people can do to them by ...
0
votes
2
answers
1k
views
Parsing ImagePath paths from parameters
I have a powershell script that iterates through all the services listed under HKLM:\Systemn\ControlSet001\services\ looking for the ImagePath to see if it has any spaces but no quotes.
e.g.
C:\this ...
21
votes
1
answer
32k
views
Autorun for PowerShell
I have created some aliases (doskey), saved them to a file and added AutoRun value (pointing that file) for cmd.exe at:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor
I would like to do the ...
1
vote
1
answer
6k
views
Search and replace registry entry value using powershell
I'm trying to update a set of registry keys, a set of properties need to be updated with a new value based on the old value.
I tried using the following:
Get-ItemProperty -Path HKCU:\Software\xxxxx\...
4
votes
4
answers
18k
views
launch powershell script from registry
I have a powershell script that I want to run on my PC every time I log on. I've added it as a REG_SZ in my current user "run" key, but it never executes.
I've altered the execution policy to "...
2
votes
2
answers
3k
views
running PowerShell's Invoke-Item with a switch
I'm trying to make a PowerShell script to launch programs after I boot up my machine. I'm taking things out of the registry's "run" area and putting them in the script in the order that I want and ...
1
vote
1
answer
5k
views
Change Proxy with PowerShell
I would like to enable/disable the Internet proxy settings with a powershell script.
cd HKCU:\"Software\Microsoft\Windows\CurrentVersion\Internet Settings"
$a = Read-Host "Enable proxy? (y/n)"
if ($...