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...
Target Audience in SharePoint Online (News Web Part & Event Web Part) SharePoint has target audience feature to hide and show the information for the authorized audience. That is the way to manage the critical information only for required group of people that is called Audience. In SharePoint Online, few out of box web parts which are following below supports audience targeting. News Web part Events Web part Highlighted Content Web part Quick links Web part At Site Page library Navigation links Viva Connection Dashboard In this blog, Only News Web Part and Event Web Part will be discussed. New Web part – Whenever any author is creating news post. It creates in Site Page library as a new page. So enable audience targeting is a two-step process that are given below. Enable audience targeting at Page Library in which your news pages are created. Enable audience targeting at the news web part level. We will discuss one by one each pro...