Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

powershell script to verify server settings

Posted on 2013-06-19
3
Medium Priority
?
245 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:Meir Rivkin
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 71

Accepted Solution

by:
Qlemo earned 2000 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

In the absence of a fully-fledged GPO Management product like AGPM, the script in this article will provide you with a simple way to watch the domain (or a select OU) for GPOs changes and automatically take backups when policies are added, removed o…
Transferring FSMO roles is done when an admin wants to split roles between certain Domain Controllers or the Domain Controller holding the Roles has been forcefully demoted using dcpromo / forceremoval
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …

971 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