Showing results for PowerShell - PowerShell Community

Sep 20, 2022
2
4

PowerShell Registry Monitor

Francisco Nabas
Francisco Nabas

How to set up a simple registry key monitor with PowerShell

PowerShellregistryCOM
Jul 11, 2022
2
8

Cheat Sheet – Console Experience

Fred
Fred

How to have more control of preferences in functions and the role of modules on inheritance.

PowerShellPreference VariablesConvenience
Apr 1, 2022
0
1

On Preferences and Scopes

James O'Neill
James O'Neill

Progress in PowerShell: a tale of Verbosity and other preferences with lessons in Scopes and Proxies thrown in It started, as these things often do, with someone complaining. In PowerShell Version 7.2 the output of and look like this: In all the earlier versions they look like the version below, which is more helpful when you're trying to deb...

PowerShellPreference VariablesVerbose
Sep 30, 2021
6
1

Understanding Get-ACL and AD Drive Output

Faris Malaeb
Faris Malaeb

Understanding Active Directory ACL using PowerShell can be a bit tricky. There are no out-of-the-box cmdlets with ActiveDirectory PowerShell module to help in settings the permission quickly. While there are no cmdlets, you can nevertheless manage AD permissions using the AD PowerShell drive. In this post, I will try to simplify Active Directory A...

PowerShellActive DirectoryACL
Sep 21, 2021
2
1

How to Make Use Of PowerShell Profile Files

@DoctorDNS
@DoctorDNS

Q: I would like to personalize the way that PowerShell works. I have heard that I can use a thing called a profile to do this, but when I try to find information about profiles, I come up blank. There is no cmdlet, so I do not see how to create such a thing. Can you help me, please? A: Profiles are a powerful part of PowerShell and allow you to c...

PowerShellprofile
Aug 10, 2021
0
0

How can I be notified any time a service goes down?

Faris Malaeb
Faris Malaeb

Q: How can I be notified any time a service goes down? A: The short quick answer to utilizing WMI and PowerShell 7. You use PowerShell to create temporary event monitoring using WMI. Then WMI monitors any service changes and generates an alert once it detects a change. Basic Requirement To achieve this, you need Windows PowerShell 5.1 and above...

PowerShellWMIEvents
Jul 30, 2021
3
2

How to Update or Add a Registry Key Value with PowerShell

@DoctorDNS
@DoctorDNS

Q: I am having a problem trying to update the registry. I am using the New-ItemProperty cmdlet, but it fails if the registry key does not exist. I added the –Force parameter, but it still does not create the registry key. The error message says that it cannot find the path because it does not exist. Is there something I am not doing? I include my s...

PowerShellregistryprovider