[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 502
  • Last Modified:

Check reg key value

Hi

We are running about 100 application servers on Windows 2008 Server. I need to check that they all have the following key:

HKLM\SYSTEM\CurrentControlSet\Services\BrokerApp\parameters\logon

With a value of "Cache" that is set to 1

Rather than logging onto each server manually, is there a way to run a Powershell to check this?
0
neil4933
Asked:
neil4933
1 Solution
 
netballiCommented:
The following example should help

http://poshcode.org/615
0
 
SubsunCommented:
You may try this script from Script Center..
http://gallery.technet.microsoft.com/scriptcenter/8b49a002-f051-4014-99d7-33fc4b80c35e


Or use Test-RegKey and Test-RegValue functions from PSRemoteRegistry Module..
http://code.msdn.microsoft.com/PSRemoteRegistry
0

Featured Post

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now