?
Solved

Check reg key value

Posted on 2013-01-08
3
Medium Priority
?
496 Views
Last Modified: 2013-01-27
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
Comment
Question by:neil4933
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 14

Accepted Solution

by:
binaryevo earned 2000 total points
ID: 38756659
0
 
LVL 11

Expert Comment

by:netballi
ID: 38756661
The following example should help

http://poshcode.org/615
0
 
LVL 40

Expert Comment

by:Subsun
ID: 38756851
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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Utilizing an array to gracefully append to a list of EmailAddresses
There are times when we need to generate a report on the inbox rules, where users have set up forwarding externally in their mailbox. In this article, I will be sharing a script I wrote to generate the report in CSV format.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question