Techno Chat|Tech Blog!! Chat with style.. :P

20May/141

Set File System Auditing via PowerShell

Posted by Saugata Datta

For last few days, I was trying to figure out how to set file system auditing via command line. I was looking for this as I had to apply some specific audit policy on multiple file servers. From GUI, we could do this, but it will take hours of manual activity.

As requirement, I had to set Success Audit policy on Delete subfolders and files, delete and change permission.

There are multiple tools available, but none of them have ability to apply specific policy, so I decided to try PowerShell, and finally able to apply those audit policy successfully.

1,655 views
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...Loading...
13Feb/142

AWS EBS Snapshots Automation (Disaster Recovery) from Windows PowerShell

Posted by Saugata Datta

ebs

It is always a good idea to reduce hardware dependencies by moving your data to the cloud. Cloud is much more flexible than traditional hardware infrastructure including VMWare. But you still have to consider the ability of recovering data as and when required. This always helps you to keep your business running with minimal interruption. In AWS, there are several possibilities for implementing an effective backup strategy. EBS snapshots are so simple & cost effective. You can take snapshot easily from AWS Web console, but there is no option to configure scheduled backup to automate.

Being as a Windows Administrator, Initially I used AWS Tools for Windows PowerShell (AWS SDK for .NET) to manage snapshot using PowerShell cmdlets. There are some script available to automate the snapshot process, but most of them are available for Linux environment or way too complex for me to understand. Then I decided to write one script for myself, which should fulfil following requirement.

  • Take snapshot for all volumes.
  • Can be scheduled as per defined backup strategy.
  • All snapshots must follow proper naming convention with time stamp in its description.
  • Keep the logs¬†after finishing backup.
  • Remove old snapshots as per defined retention period.
  • Trigger one email after every successful execution of the script for taking & removing snapshot.


Finally I managed to write two separate script, one for taking snapshots and another for removing old snapshots. Also able to rotate this script to take backup as Daily, Weekly by duplicating the script and creating multiple scheduled tasks.

NOTE : I am not a pro on PowerShell, but I tried my best to write this script, and it works without any issue. As always, you can use this script at your own risk.

1,992 views
1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
Loading...Loading...
25Dec/130

First official Windows 8.1 tablet in India lunched by Acer

Posted by Saugata Datta

122513_0221_Firstoffici1.jpg
Acer announced the Iconia W4, successor of the Iconia W3 back in October. Today, the company launched the tablet in India. The Iconia W4 has a 8-inch (800 x 1280 pixels) multi-touch IPS display, powered by a 1.8 GHz quad-core Intel Atom Bay Trail T processor with integrated Intel HD Graphics and runs on the latest Windows 8.1. It comes pre-loaded with Microsoft Office Home and Student 2013 and packs a 18.6 Wh 4960 mAh 3.75 V 2-cell Battery Pack Lithium -Ion battery that offers battery life of up to 10 hours for web browsing and up to 8 hours for video playback.

872 views
1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
Loading...Loading...