PowerShell: Skype for Business Call Recording On or Off

I found this a little tricky to lay my fingers on at first so thought it best that I document it here.

Have you ever been asked to "Get me all the users who have call recording turned on" from a Skype for Business tenant?

If you are asked that question. Here are the PowerShell commands you will require.

Skype for Business Call Recording Turned On

Get-CsOnlineUser | Where {$_.ConferencingPolicy -eq "BposSALLModality"} | Select-object DisplayName, ConferencingPolicy

Skype for Business Call Recording Turned Off

Get-CsOnlineUser | Where {$_.ConferencingPolicy -eq "BposSALLModalityNoRec"} | Select-object DisplayName, ConferencingPolicy

Clearly this is almost a true false scenario so a script outputting to 2 different excel sheets may just be what you need.

Read More

New Emails between 10am & 11am move to Subfolder

Using Microsoft Outlook. If you have a need to receive an email, then to file it in a sub-folder based on 2 time parameters this method should do the trick.

Below I will demonstrate using the Flow trigger When a new email arrives then passing a condition that will return true if DateTimeReceived parameter is within the time constraint.

In Lehman's terms, if the email arrives between 10am & 11am it will be moved to the sub-folder. If not, it remains in the inbox.

Read More

So you just want Flow running in business hours, 8am to 5pm

Here is a little helper I use when creating flows that I only want running during business hours only.

 

Let's say we generate an hourly email that goes to shared mailbox. There are times when this email is pointless after 6pm or before 8am (per say). There are times when there is no need to have this email outwith Monday to Friday so here is an easy way to handle that.

Read More

Register an App in the Azure Active Directory Oauth v1.0

There are several uses for Apps in Azure Active Directory but in the most, you are opening yourself a gateway to harness the power of an API.

Below I will walk you through the required steps in order to create an app called O365ServiceAPI. Once we have this app created you will then be able to make API calls to the Office 365 Management APIs.

Once this has been created, you will have 2 bits of information, your  Application ID or ClientID and your key, or SecretID.

In addition to the ClientID & SecretID you will require your Directory ID or TenantID and here is how to go about getting that.

Go to Azure Active Directory Admin Console at http://portal.azure.com and log in as a Global Administrator.

Click Azure Active Directory, and under Manage click Properties.

Look for Directory ID and copy it to your clipboard.

Open a new .txt file (or similar) and keep a record of this value which will refer to now as TenantID.

Read More

Welcome to AlanPs1.io

This blog documents some of what I do every day. If you are a Sys Admin, an IT Pro or a DevOps Professional you might just find it useful. The content you will find should suit the beginner, intermediate users as well as advanced users. Each post has some nuggets of joy. I hope you find some content that is useful.

The content is mostly relating to Office 365, PowerShell and Power Platform such as Flow & PowerApps. I will be sharing tech tips and tutorials mostly linked to Office 365 administration and showing you ways to automate business processes using Flow, PowerApps and PowerShell. My focus lies mainly with Office 365 and I use the necessary tools to work with data from the various Office 365 APIs and Microsoft Graph etc. You will see me use PowerShell and the Power Platform to harness data and hopefully do something useful with it. Then, as time goes on I should be able to introduce more Azure related content as my discovery of all things Azure progresses.