Skip to main content

Posts

Showing posts from 2023

Create file with dynamic name by using PowerShell

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)

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...

Difference between SharePoint Online PowerShell and PnP PowerShell

  Difference between SharePoint Online PowerShell (SPO) and PnP PowerShell (SPO vs PnP) Basically,  during interview these topics like Difference between SPO and PnP, Connect with SharePoint by PowerShell Command are very common to be discussed. We will start from the Difference between SPO and PnP. At the end, we will also discuss 'How can connect to SharePoint online by using the SPO and PnP commands?' Question-1 Difference between SPO and PnP?   PnP PowerShell-   It is managed by Patterns and Practices team.   It can be used for SharePoint Server as well as SharePoint Online. it means that is a  cross platform library.   It works in context of the current user. It mean that no need to have tenant level /SharePoint administrator right to manage.     It works at level of site collection.   It has wide range of commands at Site, List and Item level. SharePoint Online (SPO) PowerShell-   It is managed by Microsoft ...