Solved

powershell script to verify server settings

Posted on 2013-06-19
3
240 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
[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 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 70

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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

This article explains how to install and use the NTBackup utility that comes with Windows Server.
Windows 10 came with  a lot of built in applications, Some organisations leave them there, some will control them using GPO's. This Article is useful for those who do not want to have any applications in their image (example:me).
This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
Suggested Courses

627 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