My Developer blog

Welcome to my blog, I wanted a place that I could document and share all my development experiences and if it helps people on the way all the better. this is the beginning of the site but I have lots of ideas and will constantly add to it and hopefully blog about it on the way.

Before we start

1 - You will need to have an Office 365 subscription or trail account, you can get set up on an E3 account through this link and hitting the free trail, this will give you access to everything that you need to follow along…

2 - You can use PowerShell, PowerShell ISE or Windows Azure Active Directory model

3 - Whatever you use you may have to run start by using the following command and click on Yes\Yes to all

SET-ExecutionPolicy Unrestricted 

4 - Whatever you use you may have to run start by using the following command and click on Yes\Yes to all

Connecting to Office 365 - please read this post on how to connect to office 365 and it's services.

Note This list below is just a few of the many, many commands that are out there, the commands below are the main commands i have been learning for the exams... If you would like more follow this link

Connecting

$credential = Get-Credential
Import-Module Microsoft.Online.SharePoint.Powershell
Connect-SPOService -url https://YOURACCOUNT-admin.sharepoint.com -Credential $credential

Manage and Monitor

# Return application errors.

Get-SPOAppErrors

# Return all installed applications.

Get-SPOAppInfo

# Return SharePoint Online organization properties.

Get-SPOTenant

# Set properties on the SharePoint Online organisation.

Set-SPOTenant

# Retrieve SharePoint Online company logs.

Get-SPOTenantLogEntry

# Return the time when the SharePoint Online organization logs are collected.

Get-SPOTenantLogLastAvailableTimeInUtc

# Display all site templates that match the given identity..

Get-SPOWebTemplate

Manage connections to services

Connect a SharePoint Online global administrator to a SharePoint Online connection

Connect-SPOService

Disconnectfrom a SharePoint Online service.

Disconnect-SPOService

Administer site collections

# Returns all deleted site collections that are in the Recycle Bin.

Get-SPODeletedSite

# Removes a SharePoint Online deleted site collection from the Recycle Bin.

Remove-SPODeletedSite

Restores a SharePoint Online deleted site collection from the Recycle Bin.

Restore-SPODeletedSite

Returns one or more site collections.

Get-SPOSite

Creates a new SharePoint Online site collection for the current company.

New-SPOSite

Sends a SharePoint Online site collection to the Recycle Bin

Remove-SPOSite

Checks and repairs the specified site collection and its contents.

Repair-SPOSite

Sets or updates the values of one or more properties for a site collection.

Set-SPOSite

Tests a SharePoint Online site collection.

Test-SPOSite

Upgrade SharePoint Online

# Start the upgrade process on a site collection.

Upgrade-SPOSite

# Request to create a copy of an existing site collection for the purposes of validating the effects of upgrade without affecting the original site.

Request-SPOUpgradeEvaluationSite

Manage groups

# Get all the groups on the specified site collection.

Get-SPOSiteGroup

# Create a new group in a SharePoint Online site collection.

New-SPOSiteGroup

# Remove a SharePoint Online group from a site collection.

Remove-SPOSiteGroup

# Update the SharePoint Online owner and permission levels on a group inside a site collection.

Set-SPOSiteGroup

Administer users and groups

# Add an existing Office 365 user or an Office 365 security group to a SharePoint group.

Add-SPOUser

# Return the SharePoint Online user or security group accounts that match a given search criteria.

Get-SPOUser

# Remove a user or a security group from a site collection or a group.

Remove-SPOUser

# Configure properties on an existing user.

Set-SPOUser

# Provides IT administrators the ability to invalidate a particular users' O365 sessions across all their devices

Revoke-SPOUserSession

Enable OneDrive sync for domains that are on the safe recipients list

# Enable the feature for the tenancy and lets you to set the domain GUIDs in the Safe Recipients List.

Set-SPOTenantSyncClientRestriction

# Return the current configuration status.

Get-SPOTenantSyncClientRestriction

# Disable the feature for the tenancy.

Remove-SPOTenantSyncClientRestriction