Skip to content

Commit 8573ea1

Browse files
committed
Added PS sample
1 parent 7fd2af1 commit 8573ea1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/transform/modernize-userinterface-site-pages.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ using (var cc = am.GetSharePointOnlineAuthenticatedContextTenant(siteUrl, userNa
6464
}
6565
```
6666

67+
## Quick start to page transformation using PowerShell
68+
69+
The page transformation engine can also be used from PowerShell. This allows it to be integrated in a site modernization script that besides page transformation also does other things like installing solution, connecting the site to an Office 365 group and applying tenant branding. Below script shows how to call the transformation engine using PowerShell:
70+
71+
[!code-powershell[transformpages](../../PnP-Tools/Solutions/SharePoint.Modernization/Scripts/PageTransformation/TransformPageSample.ps1 "Transform pages to modern pages using PowerShell")]
72+
6773
## See also
6874

6975
- [Modernize your classic SharePoint sites](modernize-classic-sites.md)

0 commit comments

Comments
 (0)