Solved

powershell script to verify server settings

Posted on 2013-06-19
3
233 Views
Last Modified: 2013-09-05
Looking to create a powershell script to verify settings on a server. Ideally I would like to write a function that queries a value on a server and then compare it with a value defined in another file.  Is this a good approach to constructing a script to check settings and if so, is it possible to take the results of one query and compare it to a value specified in another file?
0
Comment
Question by:LN41
3 Comments
 
LVL 42

Expert Comment

by:sedgwick
ID: 39261625
what kind of settings?
0
 
LVL 1

Author Comment

by:LN41
ID: 39264630
The settings vary - two good examples are verifying that registry settings are correct and file permissions on a few directories.
0
 
LVL 68

Accepted Solution

by:
Qlemo earned 500 total points
ID: 39344348
In general that is feasible. Whether the source is WMI or file or whatever, the data is contained in objects, and specific attributes can be compared to each other.

However, having to automate checking for data of different sources can get complicated. There are many pitfalls, and advice has to depend on whether you want to perform a mass check (several servers), periodically, whether performance is an issue, how the result should be presented, and so on.
0

Featured Post

Shouldn't all users have the same email signature?

You wouldn't let your users design their own business cards, would you? So, why do you let them design their own email signatures? Think of the damage they could be doing to your brand reputation! Choose the easy way to manage set up and add email signatures for all users.

Join & Write a Comment

You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

743 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now