Search Results for

    Show / Hide Table of Contents

    Get-PnPPageLikedByInformation

    SYNOPSIS

    Returns liked-by Information of a modern page

    SYNTAX

    Get-PnPPageLikedByInformation -Identity <PagePipeBind> [-Connection <PnPConnection>]
    

    DESCRIPTION

    This command retrieves the LikedBy Information of a modern page.

    EXAMPLES

    EXAMPLE 1

    Get-PnPPageLikedByInformation -Identity "MyPage.aspx"
    

    Gets the LikedBy Information of page named 'MyPage.aspx' in the current SharePoint site

    EXAMPLE 2

    Get-PnPPageLikedByInformation "MyPage"
    

    Gets the LikedBy Information of page named 'MyPage.aspx' in the current SharePoint site

    EXAMPLE 3

    Get-PnPPageLikedByInformation -Identity "MyPage.aspx" -Web (Get-PnPWeb -Identity "Subsite1")
    

    Gets the LikedBy Information of page named 'MyPage.aspx' from the subsite named 'Subsite1'

    Sample Output

    Name         : User 1
    Mail         :
    Id           : 14
    LoginName    : i:0#.f|membership|user1@contoso.onmicrosoft.com
    CreationDate : 2024-02-16 14:49:55
    
    Name         : User 2
    Mail         : user2@contoso.onmicrosoft.com
    Id           : 6
    LoginName    : i:0#.f|membership|user2@contoso.onmicrosoft.com
    CreationDate : 2024-02-22 19:47:24
    

    PARAMETERS

    -Connection

    Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.

    Type: PnPConnection
    Parameter Sets: (All)
    
    Required: False
    Position: Named
    Default value: None
    Accept pipeline input: False
    Accept wildcard characters: False
    

    -Identity

    The name of the page

    Type: PagePipeBind
    Parameter Sets: (All)
    
    Required: True
    Position: 0
    Default value: None
    Accept pipeline input: True (ByValue)
    Accept wildcard characters: False
    

    RELATED LINKS

    Microsoft 365 Patterns and Practices

    Back to top Generated by DocFX spacer