Automating with Graph API
Last week we discussed sending emails with Graph API. You can read about it here. Today we will be taking that script and making it so it can be automated. On the backend, you will need to create an Azure App. You can read about how to do that here. The following code only works in Powershell 7 and above. Automating with Graph API works best in...
Enable/Disable/Reset MFA with Powershell
How does one enable, disable, and reset a user's MFA in Office 365? I was surprised by how much is required for enabling MFA. Enable MFA The first thing we do is Get the User from the Get-MsolUser. $user = Get-MsolUser -UserPrincipalName $UPN Next, we create a Strong...
Group Policy Troubleshooting – Delegation
A while back, a client called and told me he made a few new group policies, and they were not working as expected. He stated some policies applied to the wrong users, while another didn't apply at all to any users. He stated he set the security group correctly. When I...
Test Microsoft Service Connections
This past week I have had multiple terminals up with different clients on different terminals connected to different Microsoft services. I quickly realized that I needed to know if I was already connected or not to each Microsoft service. I knew that Get-PPSession was...