Many types of servers exists which includes both publicly accessible servers and internal servers such as mail servers, web servers, application servers, build and test servers etc., that store many confidential and sensitive information. Providing security to such servers has become one of the core requirements in today's world as they are under risk of attack. The data stored on the server can range from organizational information such as confidential customer related documents, project details, corporation's software source code to private media information, personal data, national security related information, patients database, question papers of the competitive exams etc. If such sensitive data gets in to wrong hands, it can be misused. Thus the business and the reputation of the organization would beat stake. It can also pose threat to nations. The main reasons of security breach in servers is due to the use of portable storage devices such as pen drives, hard-disks, etc., which can be potential carriers of malware and Trojans. When infected by such virus, these portable storage devices can cause severe damage. Manually maintaining and securing servers would be very difficult and can also lead to huge administrative overhead. Hence the need for automated security mechanism to detect, prevent and protect the servers from the attackers. Security policies play an important role in preventing the compromise of network security which would affect the server security. This paper proposes a framework that would ease the work of an administrator. Itfocuses on designing an automated tool which would perform an audit of the servers and check if it is compliant to all the prescribed security policies. As there are multiple platforms upon which the servers run, the tool is designed to adapt to heterogeneous environment.