Git Product home page Git Product logo

pnp / script-samples Goto Github PK

View Code? Open in Web Editor NEW
192.0 19.0 125.0 76.09 MB

A sample gallery of scripts to manage all things Microsoft 365.

Home Page: https://pnp.github.io/script-samples/

License: MIT License

PowerShell 26.53% JavaScript 28.41% CSS 24.47% Dockerfile 0.86% Shell 0.09% HTML 19.64%
pnp microsoft azure sharepoint azure-active-directory microsoft-graph-sdk teams powershell hacktoberfest microsoftgraph

script-samples's People

Contributors

aaclage avatar adam-it avatar ahamedfazil avatar amanp17 avatar anoopt avatar chandaniprajapati avatar ganesh-sanap avatar jasonwbaxter avatar jimmyhang avatar jitenparmar avatar joshua-probst avatar kasperbolarsen avatar leonarmston avatar lewisdoesdev avatar luisefreese avatar mathijsverbeeck avatar milanholemans avatar nanddeepn avatar nbrattoli avatar petkir avatar pkbullock avatar pmatthews05 avatar reshmee011 avatar russgove avatar scoutmanpt avatar siddharth-vaghasia avatar sympmarc avatar tanddant avatar tecchan1107 avatar valerasnarbutas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

script-samples's Issues

Filter improvements - show sample filter relates to in By Tool page

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.

CLI script sample version

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.

What if we have the same script done with multiple tools

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?

Clickable cmdlets

clickable cmdlets in the scripts to refer back to the documentation in the original repos

Demo Events for Intranet Events List

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.

Add quick identification of type of script

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.

Copy it feature

Add a copy it button for each of the script tabs to allow easier grabbing of the code

Azure CLI is a thing!

Please make sure that we can submit Azure CLI samples as well. ๐Ÿš€๐Ÿš€๐Ÿš€

Script sample with site design

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.

Reset permission from Unique permission for SharePoint files.

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.

Double bounce issue

When the pages load the gallery pages double animate. Worse so on iOS devices but seen on PC as well.

Detect theme installed on site

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>

Azure Shell Integration

Explore the option of integrating the Azure Shell into the site allowing readers to try out the script in their environment.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.