Solved

powershell script to verify server settings

Posted on 2013-06-19
3
239 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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

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.
Previously, on our Nano Server Deployment series, we've created a new nano server image and deployed it on a physical server in part 2. Now we will go through configuration.
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 show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…

710 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