Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ A short script to find all content types added to all of your lists in a given s


Very useful if you receive an error message:
<img src="../Find content types added to your lists (recursive)/Error (2).PNG" width="850">
<img src="../Find content types added to your lists (recursive)/Error.PNG" width="850">



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ New SharePoint Online Powershell cmdlet Get-SPOListItemCount which allows you to

The cmdlet is using the following parameters:

[string]$Username
```[string]$Username```
The string specifies admin of the site

[string]$Url
```[string]$Url```
Specifies the url of a site where you have the list

[string]$AdminPassword,
```[string]$AdminPassword```
Admin's password

[string]$ListTitle
```PowerShell[string]$ListTitle```
Specifies the title of a list


Expand All @@ -29,8 +29,7 @@ Specifies the title of a list

The following libraries (SharePoint Online SDK) are required. If those libraries are in different location on your computer, please edit the .psm1 file!

```powershell
PowerShell
```PowerShell
# Paths to SDK. Please verify location on your computer.
Add-Type -Path "c:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.dll"
Add-Type -Path "c:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.Runtime.dll"
Expand Down
38 changes: 21 additions & 17 deletions Licensing/Check User Licenses using plan type/description.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ https://gallery.technet.microsoft.com/Check-user-licenses-using-461b317c



How to use?
### How to use?

1. Make sure you have installed Azure AD module available here: https://msdn.microsoft.com/en-us/library/azure/jj151815(v=azure.98).aspx

Expand All @@ -24,21 +24,21 @@ How to use?



PowerShell
```PowerShell
$PlanToCheck="Exchange"
$CSVPath="" #E:\technet\UsersWithDisabledEXO.csv Enter only if you want to export to csv
$ChecksWhetherThePlanIs="Disabled" #Disabled, Success or PendingActivation
```


<#Plans to choose from. Please enter only one value above
ProjectWorkManagement
Sway
SCO
YammerEnterprise
RMSOnline
MicrosoftOffice
MicrosoftCommunicationsOnline
Exchange
Plans to choose from. Please enter only one value above
* ProjectWorkManagement
* Sway
* SCO
* YammerEnterprise
* RMSOnline
* MicrosoftOffice
* MicrosoftCommunicationsOnline
* Exchange



Expand All @@ -48,18 +48,18 @@ In $CSVPath leave as it is if you don't want a csv report, or if you do, enter p



PowerShell
```PowerShell
$CSVPath="E:\technet\UsersWithDisabledEXO.csv"

```


$ChecksWhetherThePlanIs if set to "Disable" (as it is) will check for all disabled plans. If you want to check successfully provisioned or pending activation, enter "Success" or "PendingActivation". Important! Disabled are only the services where you assigned the license but not all services are active (e.g. E3 is assigned, but Exchange Online is unmarked). See example below:
```$ChecksWhetherThePlanIs ``` if set to "Disable" (as it is) will check for all disabled plans. If you want to check successfully provisioned or pending activation, enter "Success" or "PendingActivation". Important! Disabled are only the services where you assigned the license but not all services are active (e.g. E3 is assigned, but Exchange Online is unmarked). See example below:



Here the license is disabled:


<img src="../Check User Licenses using plan type/Capture14.png" width="850">



Expand All @@ -68,11 +68,15 @@ Here the license is disabled:
Here it is NOT:



<img src="../Check User Licenses using plan type/Capture15.png" width="850">






4. Save the script and drag&drop it to Powershell. It will ask you for credentials and display a list of users on the screen.


<br/><br/>
<b>Enjoy and please share feedback!</b>
21 changes: 13 additions & 8 deletions Licensing/Check user licenses using Service Name/description.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ EXCHANGE_S_ENTERPRISE



How to use?
### How to use?

1. Make sure you have installed Azure AD module available here: https://msdn.microsoft.com/en-us/library/azure/jj151815(v=azure.98).aspx

2. Download the script and open it (in Notepad, ISE, whatever you prefer).

3. In the first lines you see:

PowerShell
```PowerShell
<# Possible serviceNames:
PROJECTWORKMANAGEMENT
SWAY
Expand All @@ -71,15 +71,15 @@ If you think a service name is missing from the list above, you can use the foll
$PlanToCheck="Exchange_S_ENTERPRISE"
$CSVPath="" #Enter only if you want to export to csv, e.g. E:\technet\UsersWithDisabledEXO.csv
$ChecksWhetherThePlanIs="Disabled" #Disabled, Success or PendingActivation

```
In $PlanToCheck="Enter the name of the plan you want to check"

In $CSVPath leave it as it is if you don't want a csv report, or if you do want a report, enter the path in inverted commas like in the example below:

PowerShell
```PowerShell
$CSVPath="E:\technet\UsersWithDisabledEXO.csv"

$ChecksWhetherThePlanIs if set to "Disable" (as it is) will check for all disabled plans. If you want to check successfully provisioned or pending activation, enter "Success" or "PendingActivation".
```
``` $ChecksWhetherThePlanIs ``` if set to "Disable" (as it is) will check for all disabled plans. If you want to check successfully provisioned or pending activation, enter "Success" or "PendingActivation".

Important! Disabled are only the services where you assigned the license but not all services are active (e.g. E3 is assigned, but Exchange Online is unmarked). See example below:

Expand All @@ -88,7 +88,7 @@ Important! Disabled are only the services where you assigned the license but no
Here the license is disabled:



<img src="../Check User Licenses using Service Name/Capture14.png" width="850">



Expand All @@ -97,10 +97,15 @@ Here it is NOT:




<img src="../Check User Licenses using Service Name/Capture15.png" width="850">





4. Save the script and drag&drop it to Powershell. It will ask you for credentials and display a list of users on the screen.



<br/><br/>
<b>Enjoy and please share feedback!</b>
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ $EnableFolderCreation=$false



Results
### Results





Related scripts
### Related scripts
Set direction of the reading order for a single list

Set-SPOList properties (module)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,64 +1,62 @@
Powershell module which enables or disables Checkout Requirement for all lists in a given site collection.

It corresponds to the following GUI option:





After import you can use Set-Checkout cmdlet with the following parameters:

[string]$Username
The string specifies admin of a given site collection where you want to enforce Checkout Requirement or disable the enforcement

[string]$Url
Specifies the url of a site where you want to enable or disable Checkout Requirement for all lists

[bool]$IncludeSubsites=$false,
Specifies whether the cmdlet should also change the Checkout Requirement in the subsites

[string]$AdminPassword,
Admin' password

[bool]$ForceCheckout=$true
Specifies whether the documents should be checked out ($true) or disables the Checkout Requirement ($false).



Example:

PS C:\Windows\system32> Import-Module d:\Powershell\CheckOutModule2.psm1

PS C:\Windows\system32> Set-Checkout -Username trial@trialtrial123.onmicrosoft.com -Url https://trialtrial123.sharepoint.com/sites/teamsitewithlibraries -IncludeSubsites $true -AdminPassword Password -ForceCheckout $true





It uses the following prerequisites. If those libraries are in different location on your computer, please edit the .psm1 file!



PowerShell
Add-Type -Path "c:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.dll"
Add-Type -Path "c:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.Runtime.dll"



Results:
















Powershell module which enables or disables Checkout Requirement for all lists in a given site collection.

It corresponds to the following GUI option:





After import you can use Set-Checkout cmdlet with the following parameters:

[string]$Username
The string specifies admin of a given site collection where you want to enforce Checkout Requirement or disable the enforcement

[string]$Url
Specifies the url of a site where you want to enable or disable Checkout Requirement for all lists

[bool]$IncludeSubsites=$false,
Specifies whether the cmdlet should also change the Checkout Requirement in the subsites

[string]$AdminPassword,
Admin' password

[bool]$ForceCheckout=$true
Specifies whether the documents should be checked out ($true) or disables the Checkout Requirement ($false).



Example:

PS C:\Windows\system32> Import-Module d:\Powershell\CheckOutModule2.psm1

PS C:\Windows\system32> Set-Checkout -Username trial@trialtrial123.onmicrosoft.com -Url https://trialtrial123.sharepoint.com/sites/teamsitewithlibraries -IncludeSubsites $true -AdminPassword Password -ForceCheckout $true





It uses the following prerequisites. If those libraries are in different location on your computer, please edit the .psm1 file!



```PowerShell
Add-Type -Path "c:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.dll"
Add-Type -Path "c:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.Runtime.dll"
```


Results:












<br/><br/>
<b>Enjoy and please share feedback!</b>
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,14 @@ The script will not run without editing. Remember to enter the correct data:
Add-Type -Path "c:\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.SharePoint.Client\v4.0_16.0.0.0__71e9bce111e9429c\Microsoft.SharePoint.Client.dll"
Add-Type -Path "c:\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.SharePoint.Client.Runtime\v4.0_16.0.0.0__71e9bce111e9429c\Microsoft.SharePoint.Client.Runtime.dll"

$pasworde = Read-Host -Prompt "Password " -AsSecureString
$pasword = Read-Host -Prompt "Password " -AsSecureString
$uss="2190@tenant.onmicrosoft.com"
$listTitle="ext3"
$listID="1979CC10-3E5D-4D99-9BE6-8BE6229E4E13"
$newColumnName="Extension"

Connect-SPOCSOM -Username $uss -AdminPassword $pasworde -Url "https://tenant.sharepoint.com/sites/powie3"
Connect-SPOCSOM -Username $uss -AdminPassword $pasword -Url "https://tenant.sharepoint.com/sites/powie3"
```

<br/><br/>
<b>Enjoy and please share feedback!</b>
Loading