Releases: pnp/powershell
Releases · pnp/powershell
Release 1.10.0
Added
- Added additional properties to the users returned by
Get-PnPMicrosoft365GroupMember
such asuserType
#1474 - Added
Update-PnPTeamsUser
cmdlet to change the role of a user in an existing Teams team #1499 - Added
Get\New\Remove\Set-PnPMicrosoft365GroupSettings
cmdlets to interact with Microsoft 365 Group settings. - Added
Get-PnPMicrosoft365GroupSettingTemplates
cmdlet to retrieve system wide Microsoft 365 Group setting templates. - Added
Add\Remove\Invoke\Get-PnPListDesign
cmdlets to add a list design, remove a list design and apply the list design. - Added
DisablePersonalListCreation
parameter toSet-PnPTenant
cmdlet to provide ability to disable personal lists creation #1545 - Added
DisabledModernListTemplateIds
andEnableModernListTemplateIds
parameters toSet-PnPTenant
cmdlet to provide ability to disable or enable modern lists with specific Ids #1545 - Added
DisablePersonalListCreation
andDisabledModernListTemplateIds
values to be displayed when usingGet-PnPTenant
cmdlet #1545 - Added
Add\Remove\Set-PnPAdaptiveScopeProperty
cmdlets to add/update/remove a property bag value while dealing with the noscript toggling in one cmdlet #1556 - Added support to add multiple owners and members in
New-PnPTeamsTeam
cmdlet #1241 - Added the ability to set the title of a new modern page in SharePoint Online using
Add-PnPPage
to be different from its filename by using-Title
- Added optional
-UseBeta
parameter toGet-PnPAzureADUser
to force it to use the Microsoft Graph beta endpoint. This can be necessary when i.e. using-Select "PreferredDataLocation"
to query for users with a specific multi geo location as this property is only available through the beta endpoint. #1559 - Added
-Content
option toAdd-PnPFile
which allows creating a new file on SharePoint Online and directly providing its textual content, i.e. to upload a log file of the execution #1559 - Added
Get-PnPTeamsPrimaryChannel
to get the primary Teams channel, general, of a Team #1572 - Added
IgnoreDefaultProperties
parameter toGet-PnPAzureADUser
to allow for the default properties not to be retrieved but instead just the ones you specify usingSelect
#1575 - Added
Publish\Unpublish-PnPContentType
to allow for content types to be published or unpublished on hub sites #1597 - Added
Get-PnPContentTypePublishingStatus
to get te current publication state of a content type in the content type hub site #1597 - Added ability to pipe the output of
Get-PnPTenantDeletedSite
to eitherRestore-PnPTenantDeletedSite
orRemove-PnPTenantDeletedSite
#1596 - Added
Rename-PnPTenantSite
to rename a SharePoint Online site URL #1606 - Added optional
-Wait
option toSync-PnPSharePointUserProfilesFromAzureActiveDirectory
to allow for the script to wait until the user profile sync has completed - Added optional
-Verbose
option toSync-PnPSharePointUserProfilesFromAzureActiveDirectory
to allow for seeing the progress of the synchronization process - Added
Copy-PnPTeamsTeam
which allows an existing Teams team to be copied into a new Team #1624 - Added
Set-PnPMessageCenterAnnouncementAsRead
which allows setting one or more message center announcements as read for the current user #1151 - Added
Set-PnPMessageCenterAnnouncementAsUnread
which allows setting one or more message center announcements as unread for the current user #1151 - Added
Set-PnPMessageCenterAnnouncementAsArchived
which allows setting one or more message center announcements as archived for the current user #1151 - Added
Set-PnPMessageCenterAnnouncementAsNotArchived
which allows setting one or more message center announcements as not archived for the current user #1151 - Added
Set-PnPMessageCenterAnnouncementAsFavorite
which allows setting one or more message center announcements as favorite for the current user #1151 - Added
Set-PnPMessageCenterAnnouncementAsNotFavorite
which allows setting one or more message center announcements as not favorite for the current user #1151 - Added
-AsMemoryStream
option toGet-PnPFile
to allow for downloading of a file from SharePoint Online in memory for further processing #1638 - Added
-Stream
option toRead-PnPSiteTemplate
to allow for processing on a PnP Provisioning Template coming from memory #1638 - Added
New-PnPAzureADUserTemporaryAccessPass
which allows creation of a Temporary Access Pass for a specific user in Azure Active Directory - Added
-Force
option toSet-PnPTenant
to allow skipping the confirmation question for certain other parameters likeSignInAccelerationDomain,EnableGuestSignInAcceleration,BccExternalSharingInvitations,OrphanedPersonalSitesRetentionPeriod,OneDriveForGuestsEnabled,AllowDownloadingNonWebViewableFiles
. - Added
Get-PnPCompatibleHubContentTypes
which allows the list of content types present in the content type hub site that can be added to the root web or a list on a target site to be returned #1678
Changed
- Improved
Add-PnPTeamsUser
cmdlet. The cmdlet executes faster and we can now add users in batches of 200. #1548 - The
Move\Remove\Rename-PnPFolder
cmdlets now support pipebinds. - Changed
Add-PnPDataRowsToSiteTemplate
, it will return a warning if user(s) are not found during list item extraction. Earlier it used to throw error and stop extraction of list items. - Changed the return type of
Sync-PnPSharePointUserProfilesFromAzureActiveDirectory
to return our own entity instead of the one returned by CSOM #1559 - Changed running
Sync-PnPSharePointUserProfilesFromAzureActiveDirectory
with-WhatIf
to also provide a return entity providing the path to where the JSON file has been uploaded to #1559 - Disabling telemetry collection now requires either setting the environment variable or creating the telemetry file (documentation) #1504
- Changed
Get-PnPAzureADUser
to now return all the users in Azure Active Directory by default, instead of only the first 999, unless you specified-EndIndex:$null
#1565 - Changed
Get-PnPTenantDeletedSite -Identity
no longer returning an unknown exception when no site collection with the provided Url exists in the tenant recycle bin but instead returning no output to align with other cmdlets #1596 - Changed
Connect-PnPOnline -UseWebLogin
to no longer suppress errors which should allow for certificate logins to be used #1706 - The cmdlet
New-PnPTeamsTeam
no longer supports adding members or owners through their e-mail addresses, if they differ from their UPNs. The User Principal Names must be used instead #1241
Fixed
- Fixed
Set-PnPSite
not working withDisableCompanyWideSharingLinks
parameter. - Fixed
Get-PnPListPermissions
returning wrong information in case of broken inheritance. - Fixed
Submit-PnPSearchQuery -Query "somequery"
yielding an error when no results #1520 - Fixed
Set-PnPTenantSite
not setting SharingCapability property correctly. - Fixed
Get-PnPMicrosoft365Group
retrieving non-Unified groups when parameters are not specified. - Fixed
Get-PnPRecycleBinListItem
not retrieving second stage items if onlyRowLimit
is specified. - Fixed
Add-PnPDataRowsToSiteTemplate
issue with PnP templates when it contained multilingual references. - Fixed
Copy-PnPItemProxy
is not recognized as the name of a cmdlet, function, script file, or operable program error with the cmdlet. - Fixed
Add-PnPMicrosoft365GroupMember
,Remove-PnPMicrosoft365GroupMember
,Add-PnPTeamsUser
andRemove-PnPTeamsUser
not being able to handle guest accounts containing # characters #1523 - Fixed not being able to pipe
Get-PnPHubSite
toGet-PnPHubSiteChild
to retrieve all site collections which are associated to any hub site #1571 - Fixed
Add-PnPFileToSiteTemplate
when used alongsideGet-PnPFile
where the FileStream tried to overwrite an already open filestream when a file was located in the same directory as the template file itself. - Fixed
Get-PnPMessageCenterAnnouncement
returning an error #1607 - Fixed
New-PnPTeamsTeam
issue when adding Owners and Members. - Fixed running an admin cmdlet not always returning to the same cont...
Release 1.9.0
Added
- Added
Get-PnPTenantInstance
which will return one or more tenant instances, depending if you have a multi-geo or single-geo (default) tenant. - Added optional
-ScheduledPublishDate
parameter toAdd-PnPPage
andSet-PnPPage
to allow for scheduling a page to be published - Added
-RemoveScheduledPublish
toSet-PnPPage
to allow for a page publish schedule to be removed - Added support for off peak SharePoint Syntex content classification and extraction for lists and folders via new
-OffPeak
and-Folder
parameters forRequest-PnPSyntexClassifyAndExtract
- Added
Get\Set-PnPPlannerConfiguration
to allow working with the Microsoft Planner tenant configuration - Added
Get\Set-PnPPlannerUserPolicy
to allow setting Microsoft Planner user policies for specific users - Added
Get\Add\Remove-PnPPlannerRoster
which allows a Microsoft Planner Roster to be created, retrieved or removed - Added
Get\Add\Remove-PnPPlannerRosterMember
to be able to read, add and remove members from a Microsft Planner Roster - Added
Get-PnPPlannerRosterPlan
to be able to retrieve the Microsoft Planner plans inside a Microsoft Planner Roster or the ones belonging to a specific user - Added support for off peak SharePoint Syntex content classification and extraction for lists and folders via new
-OffPeak
and-Folder
parameters forRequest-PnPSyntexClassifyAndExtract
- Added
Invoke-PnPSiteScript
which allows for a Site Script to be executed on a site without needing to have it registered in a site design or site script first - Added
Copy-PnPList
which allows for a copy of a SharePoint list to be made in the same site or to another site. Copying along list item data is not yet possible but will follow in a later release. - Added
Get\Set-PnPWebHeader
to work with the Change the look > Header options of a site - Added
Enable-PnPPageScheduling
andDisable-PnPPageScheduling
to enable or disable page publishing scheduling on modern pages - Added ability to add multiple users to a Teams team in the
Add-PnPTeamsUser
cmdlet - Added
-Credentials $cred
or-CurrentCredentials
to be allowed to be used in combination withConnect-PnPOnline -SPOManagementshell
- Added
-InformationBarriersMode
in theSet-PnPTenantSite
cmdlet which allows fine tuning of the information barriers mode per site collection - Added
-InformationBarriersSuspension
in theSet-PnPTenant
cmdlet which allows information barriers to be enabled or disabled in a tenant - Added
-Recycle
parameter toRemove-PnPPage
to delete the page and send it to the recycle bin. This prevents permanently deleting the page and you can also restore it. - Added
-DemoteNewsArticle
parameter to theSet-PnPPage
cmdlet to demote an existing news post to a regular page. - Added
-Translate
and-TranslationLanguageCodes
parameters toSet-PnPPage
andAdd-PnPPage
. This enables multilingual page creation in sites. - Added
DisableSpacesActivation
state to be returned withGet-PnPTenant
- Added
-AllowFilesWithKeepLabelToBeDeletedSPO
and-AllowFilesWithKeepLabelToBeDeletedODB
options toSet-PnPTenant
which allows configuration of files on SharePoint Online and OneDrive for Business being blocked by a retention policy to be possible to be deleted anyway and then moved to the preservation hold library. The default for SharePoint Online for this will change as announced in Message Center announcement MC264360. This will allow reverting it. The current values can be retrieved usingGet-PnPTenant
. - Added
DisableAddToOneDrive
state to be returned withGet-PnPTenant
cmdlet. - Added
-DisableAddToOneDrive
toSet-PnPTenant
cmdlet to enable/disable users from adding shortcuts to OneDrive. - Added optional
-Site
parameter toAdd-PnPContentTypesFromContenTypeHub
which allows a specific site to be specified to add the content type hub content types to - Added
Set-PnPBuiltInSiteTemplateSettings
andGet-PnPBuiltInSiteTemplateSettings
to allow making the built in SharePoint Online site templates visible or hidden and getting their current settings - Added support for Channel sites (ID 69) to
Add-PnPSiteDesign
,Set-PnPSiteDesign
andAdd-PnPSiteDesignFromWeb
- Added optional
-IsDefault
option toGet-PnPPowerPlatformEnvironment
which allows just the default or non default environments to be returned. If not provided, all environments will be returned as was the case before this addition. - Added
ResourceBehaviorOptions
option inNew-PnPTeamsTeam
cmdlet to setResourceBehaviorOptions
while provisioning a Team - Added alias on
Copy-PnPFile
forCopy-PnPFolder
. It could already be used to copy a folder, but to make this more clear, and as we already had aCopy/Move-PnPFolder
as well, the same cmdlet is now also available under its alternative cmdlet name. - Added
IsFluidEnabled
state to be returned withGet-PnPTenant
cmdlet. - Added
-IsFluidEnabled
toSet-PnPTenant
cmdlet to enable/disable users from using Fluid components. - Added
Add\Get\Remove-PnPListItemComment
cmdlets to deal with list item comments. Using these cmdlets, you will now be able to add, retrieve and delete list item comments. #1462 - Added
-ResourceTypeName
and-ResourceUrl
parameters toGet-PnPAccessToken
to fetch access token of specified resource. #1451
Changed
- Improved
Get-PnPFile
cmdlet to handle large file downloads - Updated
Sync-PnPSharePointUserProfilesFromAzureActiveDirectory
to also allow results fromGet-PnPAzureADUser -Delta
to be provided through-Users
. - A clearer error message will now be returned when using
Add-PnPListItem -List
and specifying an invalid list name. - Response of
Add-PnPContentTypesFromContenTypeHub
is now returned in the root of the response as well as under Value as it was previously for backwards compatibility. - Improved synopsis documentation for
Update-PnPUserType
cmdlet. - Improved documentation of
Add-PnPField
, reflects the missing-AddToAllContentTypes
parameter. - Improved documentation of
Get-PnPTaxonomyItem
with addition of new example and removing obsolete parameters. - Improved documentation of
Get-PnPTerm
, fixed typos. - Improved
Add-PnPHubToHubAssociation
. It will now throw error if both, source and destination, sites are not Hub sites, currently it fails silently without any information to the user. #1390
Fixed
- Fixed
Get-PnPGroupMember -User
not properly returning the specified user - Fixed group member retrieval through
Get-PnPAzureADGroupOwner
andGet-PnPAzureAdGroupMember
throwing an exception when a security group has been placed in the Azure Active Directory group being queried - Fixed an issue where
Set-PnPPage
would not be able to find a page if you would start the-Identity
with a forward slash - Fixed an issue where
Set-PnPPage
would not return its parent Folder - Fixed
Set-PnPListItem
not working when usingLabel
andValues
parameters together - Fixed documentation for
Get-PnPFlow
andEnable-PnPFlow
cmdlets - Fixed issue with
Add-PnPListFoldersToProvisioningTemplate
not working when having nested folder structure - Fixed documentation for
Get-PnPFlow
andEnable-PnPFlow
cmdlets - Fixed
Sync-PnPSharePointUserProfilesFromAzureActiveDirectory
not being able to deal with multi value properties on the Azure Active Directory side, such asBusinessPhones
- Fixed
Add-PnPListItem
issue with setting MultiChoice columns when using-Batch
parameter - Fixed issue with
Remove-PnPListItem
when trying to use it withBatch
parameter - Fixed
Add-PnPDataRowsToSiteTemplate
not exporting TaxonomyFieldValues properly - Fixed
Add/Set-PnPListItem
issue with managed metadata / taxonomy field value failing in a batched request. - Fixed
Set-PnPListItem
issue with settingModified
date value properly when using-Batch
parameter. - Fixed
Get-PnPTeamsTeam -Identity
throwing an exception if the name of the team would contain special characters - Fixed
Get-PnPTerm
throwing an exception when used in combination with-Includes
#1384 - Fixed
Get-PnPDiagnostics
throwing an unable to cast exception under some circumstances #1380 - Fixed
Get-PnPTeamsTab
issue with missing TeamsApp object values. It will now populate TeamsApp object with Id, DisplayName, ExternalId and DistributionMethod properties if available. #1459
Removed
- Removed
Add-PnPClientSidePage
as that was marked deprecated. UseAdd-PnPPage
instead. - Removed
Get-PnPSubWebs
as that was marked deprecated a year ago. UseGet-PnPSubWeb
instead. #1394
Contributors
- Koen Zomers [koenzomers]
- Bert Jansen [jansenbe]
- Gautam Sheth [gautamdsheth]
- [reusto]
- Asad Refai [asadrefai]
- Daniel Huber [daniel0611]
- Bart-Jan Dekker [bjdekker]
- Giacomo Pozzoni [jackpoz]
- Chris Kent [thechriskent]
- Filip Bosmans [FilipBosmans]
- [zylantha]
- Justin [pagejustin]
- Collin Argo [SCollinA]
- Leon Armston [LeonArmston]
- Lars Höög [h00g]
- [kachihro]
- [Andy-Dawson]
- David Aeschlimann [TashunkoWitko]
- [outorted]
- [dkardokas]
- Asad Refai [asadrefai]
Release 1.8.0
Added
- Added flexibility to mix and pipe
Add\Get\Remove-PnPListItem
withGet-PnPList
- Added ability to remove all list items from a list using
Remove-PnPListItem -List <listname>
and not providing a list item identifier. - Added
Get-PnPMessageCenterAnnouncent
,Get-PnPServiceCurrentHealth
andGet-PnPServiceHealthIssue
cmdlets which pull their data out of the Microsoft Graph API and are replacing the formerGet-PnPOffice365CurrentServiceStatus
,Get-PnPOffice365HistoricalServiceStatus
andGet-PnPoffice365ServiceMessage
cmdlets which pull their data from the Office Health and Communications API which is to be deprecated on December 17, 2021. If you're using any of these last three cmdlets, please rewrite your functionality to start using one of the first three cmdlets before this date. - Added option which allows new SharePoint 2013 Workflow creation to be disabled tenant wide by using
Set-PnPTenant -StopNew2013Workflows
and requesting its current setting usingGet-PnPTenant | Select StopNew2013Workflows
- Added lots of extra information getting returned when using
Get-PnPFlow
. - Added option which allows the Explorer View for Microsoft Edge to be enabled tenant wide by using
Set-PnPTenant -ViewInFileExplorerEnabled
and requesting its current setting usingGet-PnPTenant | Select ViewInFileExplorerEnabled
. It can be that this feature is not enabled on your tenant yet, in which case it will return an error. Try it again later in that case. - Added lots of extra information getting returned when using
Get-PnPPowerPlatformEnvironment
- Added the option to use
-Verbose
withExport-PnPFlow
so it wil show details on why an export failed when it is not possible to export the flow. - Added option to add/list/remove event receivers from the site scope using
Add-PnPEventReceiver -Scope <Site/Web>
,Get-PnPEventReceiver -Scope <All/Site/Web>
andRemove-PnPEventReceiver -Scope <All/Site/Web>
- Added
-Url
parameter toNew-PnPUPABulkImportJob
which allows providing a URL to an existing SharePoint User Profile import mapping instruction file stored on SharePoint Online - Added
Add-PnPSiteDesignFromWeb
which combinesGet-PnPSiteScriptFromWeb
,Add-PnPSiteScript
andAdd-PnPSiteDesign
into one cmdlet to allow for a specific site to directly be added as a site design to allow other sites to be configured similarly - Added
Update-PnPSiteDesignFromWeb
which combinesGet-PnPSiteScriptFromWeb
andSet-PnPSiteScript
into one cmdlet to allow for a specific site design to directly be updated based on an existing site which can function as a template - Added
Sync-PnPSharePointUserProfilesFromAzureActiveDirectory
cmdlet which allows direct synchronization of user profile properties of choice between user profiles in Azure Active Directory and their SharePoint Online User Profile Service user profile equivallents
Changed
- Renamed
Get-PnPFlowEnvironment
toGet-PnPPowerAutomateEnvironment
- Changed
Get-PnPSiteScriptFromWeb
to get a site script of the currently connected to site if-Url
is omitted. - Improved
Find-PnPFile
error message Get-PnPFileVersion
cmdlet documentation improved with additional example.Add-PnPNavigationNode
cmdlet documentation improved with additional example feature which shows how to add a navigation node as a label.- Changed
Get-PnPSiteDesign
andInvoke-PnPSiteDesign
to when providing a name through-Identity
to be able to work with all site designs having that same name instead of just the first one - Changed
Set-PnPListItemPermission
to support piping in a roledefinition for-AddRole
and-RemoveRole
- Changed that
Get-PnPSiteScript -Identity
now also works with the site script name instead of just the site script Id
Fixed
- Fixed
Get-PnPChangeLog -Nightly
not returning anything - Fixed issue with
Get-PnPUser -Identity x
ignoring additional requested attributes using-Includes
- Fixed issue with
Set-PnPDefaultColumnValues -List "Documents" -Folder "Földer" -Field "Text" -Value "123"
not working when having a folder name with special characters in it. - Fixed
Get-PnPException
throwing an exception and not showing the last exception if the last cmdlet throwing an exception used-ErrorAction Stop
- Fixed
Get-PnPException -All
throwing an exception. - Fixed an issue with
Set-PnPSite -Identity <url> -Owner <upn>
not working if the URL would be a OneDrive for Business site. - Fixed an issue with
Get-PnPSiteScriptFromWeb
requiring an Include parameter next to providing lists and fixed specifying lists through List\ListName not working. - Fixed issue with 'Remove-PnPSiteDesign -Identity` not accepting a site design name, only a GUID.
- Fixed unable to piping the output of
Get-PnPRoleDefinition
to i.e. filter by RoleTypeKind. - Fixed an issue with several PnP PowerShell cmdlets such as
Get-PnPTeamsUser
where not all results would be returned - Fixed issue with
Remove-PnPSiteDesign -Identity
not accepting a site design name, only a GUID. - Fixed issue with
Get-PnPUPABulkImportStatus
where it did not allow you to pipe its output to i.e. get the most recent one usingSelect -Latest 1
or the ones that failed using? State -ne "Succeeded"
Removed
- Removed
ConvertTo-PnPClientSidePage
cmdlet as it has been replaced byConvertTo-PnPPage
this option is not enabled yet on your tenant in which case trying to set it results in toSet-PnPTenant: The requested operation is part of an experimental feature that is not supported in the current environment.
. In that case try again later. - Removed
Add-PnPUserToGroup
as it has been replaced byAdd-PnPGroupMember
- Removed
Get-PnPGroupMembers
cmdlet alias and related warning. The cmdletGet-PnPGroupMember
(singular) is available. - Removed
Remove-PnPUserFromGroup
cmdlet alias and related warning. The cmdletRemove-PnPGroupMember
is available. - Removed
Initialize-PnPPowerShellAuthentication
cmdlet alias and related warning. The cmdletRegister-PnPAzureADApp
is the replacement.
Release 1.7.0.
Changed
- Updated CSOM release
- Fixes issue with Get-PnPTenantSite
Release 1.6.0
Changed
- Get-PnPPage now can load pages living in a folder by specifying "folder/page.aspx"
- Added
-DisableBackToClassic
option to Set-PnPTenant
Contributors
- [thomassmart]
- Bert Jansen [jansenbe]
Release 1.5.0
Added
- Added
Request-PnPSyntexClassifyAndExtract
cmdlet to request classification and extraction of a file or all files in a list - Added
Get-PnPSyntexModel
cmdlet to list the defined SharePoint Syntex models in a SharePoint Syntex content center site - Added
Publish-PnPSyntexModel
cmdlet to publish a SharePoint Syntex model to a library - Added
Unpublish-PnPSyntexModel
cmdlet to unpublish a SharePoint Syntex model from a library - Added
Get-PnPSyntexModelPublication
cmdlet to list the libraries to which a SharePoint Syntex model was published
Contributors
- Bert Jansen [jansenbe]
- Koen Zomers [koenzomers]
- Gautam Sheth [gautamdsheth]
- Veronique Lengelle [veronicageek]
Release 1.4.0
Added
- Added
-IncludeOwners
toGet-PnPMicrosoft365Group
. - Added
-AssignedTo
toAdd-PnPPlannerTask
andSet-PnPPlannerTask
allowing you to assign users to a task. - Added
Get-PnPAzureADApp
,Get-PnPAzureADAppPermission
andRemove-PnPAzureADApp
to manage Azure AD apps. - Added All Graph permissions and all SharePoint permissions for selection to
Register-PnPAzureADApp
. - Added
-Template
parameter to New-PnPTeamsTeam to create teams with EDU templates (your tenant needs an EDU license) - Added fixes for authentication to GCC, GCC High and GCC DoD environments using certificate or interactive login.
- Added
Grant-PnPAzureADAppSitePermission
,Get-PnPAzureADAppSitePermission
,Set-PnPAzureADAppSitePermission
andRevoke-PnPAzureADAppSitePermission
- Added
-SkipHiddenWebParts
parameter to theConvertTo-PnPPage
cmdlet that allows to skip hidden webparts during page transformation
Changed
- Improved batching speed when creating or updating multiple items that set similar values for taxonomy fields.
- Changed
Register-PnPAzureADApp
registration to by default turn on the ability to authenticate with credentials for a newly created Azure App registration (allowPublicClient: true
). - Refactored
Register-PnPAzureADApp
. Marked-Scopes
as obsolete and introduced-GraphApplicationPermissions
,-GraphDelegatePermissions
,-SharePointApplicationPermissions
and-SharePointDelegatePermissions
. Added additional permission scopes. - Re-enabled Console Logging with Set-PnPTraceLog -On
- Fixed warning showing to use -Interactive instead of -UseWebLogin to show correct url.
- Documentation updates
Release 1.3.0
Added
- Added
-HideTitleInHeader
parameter toSet-PnPWeb
to hide or show the title in the header. Use-HideTitleInHeader
to hide it and-HideTitleInHeader:$false
to show it. - Added
-ShowContentUrl
parameter toRegister-PnPManagementShellAccess
retrieve the url to consent to the PnP Management Shell application by an administrator. - Added
-IsFavoriteByDefault
parameter on Set-PnPTeamsChannel and Add-PnPTeamsChannel - Added
-GroupIdDefined
boolean parameter to Get-PnPTenantSite to allow filtering on sites which belong to a Microsoft 365 Group - Added
-Interactive
login option toConnect-PnPOnline
which is similar to-UseWebLogin
but without the limitations of the latter. The-UseWebLogin
is using cookie based authentication towards SharePoint and cannot access Graph tokens. Using-Interactive
we use Azure AD Authentication and as a result we are able to acquire Graph tokens.
Changed
- Fixed certificate clean up issue on Windows platform when using
Connect-PnPOnline
with a certificate. - Fixed issues with
Register-PnPAzureADApp
when using the various auth options (-DeviceLogin / -Interactive) - Renamed the
-PnPManagementShell
option to-DeviceLogin
onConnect-PnPOnline
.-PnPManagementShell
is still available as an alias. - Added
-ClientId
option to-DeviceLogin
allowing device code authentication with custom app registrations. - Changed
-Url
parameter on Get-PnPTenantSite and Set-PnPTenantSite to-Identity
. Made-Url
available as an alias. - Updated
Set-PnPTenantSite
to support same parameters asSet-SPOSite
- Updated
Get-PnPTenantSite
to return same properties asGet-SPOSite
- Fixed issue where
-Interactive
onConnect-PnPOnline
would prompt for credentials when connecting to new site within same tenant. Added -ForceLogin parameter to force - Get-PnPUser and any other cmdlet that takes a UserPipeBind parameter as input now allows users to be specified by name besides loginname or id.
- Fixed issue where retrieving a single site with Get-PnPTenantSite vs retrieving all sites showed different properties.
- Invoke-PnPSPRestMethod now returns usable objects
- Updated
Set-PnPListItem
to have anUpdateType
parameter. ObsoletedSystemUpdate
. Also updated the backend logic so can now also specifyUpdateOverwriteVersion
to update the editor, author, modified and created fields. Register-PnPAzureADApp
now outputs the base64 encoded version of the certificate which can be used withConnect-PnPOnline -ClientId -CertificateBase64Encoded
- Fixed issue with moving and copying files to subfolder, Issue #165.
- fixed issue where Get-PnPTenantSite was not returning all properties correct, Issue #151
- Added
-Interactive
login option to Register-PnPManagementApp which allows for an interactive authentication flow not using device login for environments that require Multi-Factor Authentication. - Updated all Microsoft365Group cmdlets to only load the SiteUrl of the underlying Microsoft 365 Group where required. This means that
Get-PnPMicrosoft365Group -Identity
will not by default load the site url. Specify-IncludeSiteUrl
to include it.
Installation
Install-Module -Name PnP.PowerShell