Skip to content

abcguzowski/Scripts

Repository files navigation

Scripts

Usefull scripts

GetAllTerms.ps1

This script allows to get all terms with their paths from Sharepoint Online/Sharepoint 2016/Sharepoint 2013 from particular Taxonomy Group or Term Set

Requirements

My script base on PnP-Powershell module. So basically requirements are the same as for mentioned module

Setting up credentials

Credentials need to be stored in Windows Credentials Manager. See this wiki page for more information on how to use the Windows Credential Manager to setup credentials that you can use in unattended scripts.

Support Sharepoint On-premise

For connection to Sharepoint On-prem just change the installed module in the script. See this paragraph in order to get proper module name.

Parameters

  • SharepointOnlineURL - URL to sharepoint online. Required.
  • UserNameInWCM - User name in Windows Credentials Management. Required.
  • TermGroupName - Term group name in term store of the tenant. Required.
  • TermSetName - Term set name in term group. Optional.

Example usage

  • (longer version, with TermSetName parameter)
    .\GetAllTerms.ps1
    -SharepointOnlineURL https://contoso.sharepoint.com
    -UserNameInWCM TestUser
    -TermGroupName "Contoso Taxonomy"
    -TermSetName "Document Types"
  • (shorter version, without TermSetName parameter)
    .\GetAllTerms.ps1
    https://contoso.sharepoint.com
    TestUser
    "Contoso Taxonomy"

GetWifiProfiles.ps1

Get all saved wifi profiles that are stored in your system. Name and password.

Example usage

./getWifiProfiles.ps1

InstallSoftwares.ps1

Script for installing software in a batch (main target: new windows OS). For installing it uses chocolatey packages repository. Script check user execution policy and install chocolatey if needed.

More info about chocolatey: https://chocolatey.org

Example usage

./installSoftwares.ps1

NoFacebookNewsfeed.tampermonkey.txt

Script to be used in TamperMonkey browser addon. It hides wall, notifications button (but leaves friends requests and messages), ads, friends availability (but leaves friends search). In the name of Productivity!

About

Usefull scripts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published