Power Shell is a scripting language which has amazing capabilities to automate the administrative tasks without any intervenes. By using it, log files can be created and deleted after some duration like after 7 days, 30 days etc. This is a common task that is performed by window administrators. Let me take an example like Application logs files are created in production environment. Day by Day Size of the log folder is increased due to log files those are created on daily bases. In directly, log folder is utilizing the server space. This will affect the server performance. To clean the log folder dynamically on daily bases, Power shell script can help. Below we will write the script to perform same task by understanding with below mention topics. How can create a log file with dynamic name by using PowerShell? How can delete log files after 7 days by using Power Shell? How can create a log file with dynamic name by using PowerShell? Main problem is log files name must be un...