Solved

powershell script to verify server settings

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

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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Background Information Recently I have fixed file server permission issues for one of my client. The client has 1800 users and one Windows Server 2008 R2 domain joined file server with 12 TB of data, 250+ shared folders and the folder structure i…
A recent project that involved parsing Tableau Desktop and Server log files to extract reusable user queries for use in other systems. I chose to use PowerShell to gather the data, and SharePoint to present it...
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…

756 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