Jump to content

Checking the contents of text file


andytan91

Recommended Posts

Hi guys im not sure if this is the right section to post, but what i am doing right now is using windows cmd to output results of computer configurations to a text file for auditing purpose. I will like my raw data to check against the desired setting and output a fail notice if they are different/pass notice if they are exactly the same. However, i do not have any ideas how to do that hence i need some guidance on this. Thanks!

 

Example

Minimum password age (days):                          0

Maximum password age (days):                          42

Minimum password length:                              0

Length of password history maintained:                None

 

Desired Setting

Minimum password age (days):                          90

Maximum password age (days):                          90

Minimum password length:                              8

Length of password history maintained:                None

Link to comment
https://forums.phpfreaks.com/topic/208014-checking-the-contents-of-text-file/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.