pnp / script-samples Goto Github PK
View Code? Open in Web Editor NEWA sample gallery of scripts to manage all things Microsoft 365.
Home Page: https://pnp.github.io/script-samples/
License: MIT License
A sample gallery of scripts to manage all things Microsoft 365.
Home Page: https://pnp.github.io/script-samples/
License: MIT License
Add CLI for Microsoft 365 equivalent -
https://pnp.github.io/script-samples/spo-generate-demo-events/README.html?tabs=pnpps
Export all List and Libraries with Item count and permission type (Inherited or unique) in CSV
Write Guidance for Sample JSON File
Add CLI for Microsoft 365 equivalent ๐จโ๐ป -
https://pnp.github.io/script-samples/spo-get-lists-libraries-item-count-permissions/README.html?tabs=pnpps
Cli for Microsoft 365 - Align titles in the metadata and filters/titles
Build a set of document libraries from PowerShell script but not using the provisioning engine
To improve lifespan on images, reduce the amount of UI shown.
Add CLI for Microsoft 365 Equivalent to https://pnp.github.io/script-samples/get-all-site-collections-subwebs/README.html?tabs=pnpps
Improve filters to cater for 3 types of platform for the CLI.
The filters are currently inadequate and needs further development and inclusion of a feature that defaults the tab based on the filters e.g. if bash filtered, when loading the sample that tab is defaulted.
Additional filters/metadata are needed for bash and PowerShell. Again Iโll add GH issue.
Script using pnp to export all list items from sharepoint online to csv file + attachments
@pkbullock , could you assign me this one also? i have good starter.
Looking to install a SharePoint theme into the tenant
Sample of the script with site design which can create various types of site columns (text, choice, date, taxonomy and etc.),
add list
add created columns to list
create and change the default view.
@pkbullock , could you assign me to this one if you feel this would be useful in sample galery.
Feedback: another thing that just popped into my mind that we should consider, is what if we have the same script done with multiple tools and on multiple platforms, eg. PnP PowerShell, CLI PowerShell, CLI Bash
how would we make it clear on the overview page?
Add hyperlinks to the main repos for learning more with the code blocks - Hyperlinks to the Main REPOs
Simplify and break out contributor guidance - reduce the noise and break into tasks with links to seperate pages
Sample for bulk undelete from Recycle Bin in those situations for dealing with restoration of a large batch of files from a user
This script will be useful for reset permission to parent inheritance from Unique permission.
Scenario:
In document library, more than 400 folders and each folder has number of files. Now, Some file has unique permission which needs to be inherited from parent folder. In this case, Script will be worked to reset permission in all files which have unique permission in all folders.
When the pages load the gallery pages double animate. Worse so on iOS devices but seen on PC as well.
In mobile view the footer overlaps bottom on the page.
In the documentation, emphasize the link to the repository or add if missing
Perform a hash check or file size between a migrated file in two tenants
Idea for script to populate the events list of items from a CSV file, for demo environments.
Script should have a start date and CSV have a in days plus time for future event simulation.
They are just in the way, remove them.
Keep references to the no preview on the cards
Add PnP PowerShell equivalent to https://pnp.github.io/script-samples/teams-list-teams-owners-and-members/README.html?tabs=cli-m365-ps script
Add a sample that demonstrates using CAML and querying list items
put the template-script-submission at the top by naming it _template-script-submission
Update article - Replace an owner in a Microsoft 365 Group or Microsoft Team | https://pnp.github.io/script-samples/aad-replace-owner-with-a-different-one/README.html?tabs=cli-m365-ps
Add PnP Power Shell Equivalent
hi ๐
I was looking through the sample gallery looking for potential PnP PowerShell scripts which might be also done using PnP M365 CLI ๐ค. I quickly pointed out those scripts which I could try rewrite using PnP CLI:
I was wondering if it is ok for me to try to take them one by one ๐ค?
Also how would you like for me to proceed? should I create issues for each sample and proceed PR by PR (preferable)?
Do you want me to first create an one issue add a PR for it and then create another issue for the next script or should I add the full list of issue straight away, which will give possibility that maybe someone else will contribute as well ๐?
๐ Please let me know what do you think.
Add a PnP PowerShell equivalent to https://pnp.github.io/script-samples/spo-setup-example-site/README.html?tabs=cli-m365-ps
Explore the option of integrating the Azure Shell into the site allowing readers to try out the script in their environment.
Feedback: Shall we also show the logo of the language (PowerShell, Bash, JavaScript) to help folks quickly identify what they need? This is self-explanatory for PowerShell, but not so for CLI which works in any shell.
Use the sample presented at Scottish summit to generate an excel report and upload to SharePoint document library
On the gallery display cards, display all the script variants for a sample
Inspiration from Todd Klindt
$web = Get-PnPWeb -Includes PrimaryColor
$themes = Get-PnPTenantTheme
$themes |Where {$_.Palette.themePrimary -eq $web.PrimaryColor }
Name Palette
Blue Yonder Theme {[themeLight, #c7cfe0], [themeTertiary, #97a4c0], [black, #000000], [neutralSecondary, #605e5c]โฆ}
PS /home/paul> $web = Get-PnPWeb -Includes PrimaryColor
PS /home/paul> $web.PrimaryColor
#607196
PS /home/paul>
Please make sure that we can submit Azure CLI samples as well. ๐๐๐
Build Spaces Pages sample in the best appropriate tool
Add a CLI for Microsoft 365 equivalent script to https://pnp.github.io/script-samples/create-comm-sites-specific-locale/README.html?tabs=pnpps
Bit like this, but better: https://pnp.github.io/script-samples/matrix.html
Should cater for the tool, product views.
Needs a new presentation style the above takes up too much real estate and isnt mobile friendly
clickable cmdlets in the scripts to refer back to the documentation in the original repos
Add CLI for Microsoft 365 equivalent ๐จโ๐ป -
https://pnp.github.io/script-samples/spo-detect-theme/README.html?tabs=pnpps
Sample for bulk library generation - using the provisioning engine
Script for in bulk creating a set of teams for test environments
Add CLI for Microsoft 365 equivalent ๐จโ๐ป -
https://pnp.github.io/script-samples/spo-cleanup-site-column-usage/README.html?tabs=pnp-ps
Add a copy it button for each of the script tabs to allow easier grabbing of the code
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.