Revocar sesiones activas en Office 365 y Azure AD

¿Sabías que la sesión de un usuario de Office 365 puede permanecer activa hasta cuatro horas incluso tras haber bloqueado o eliminado su cuenta? En el siguiente vídeo de cinco minutos y medio, disponible desde Channel 9, os explicamos tres métodos para revocar la sesión activa de un usuario desde el AdminCenter de Office 365…


One-Liner: Query the AD Schema for User Object Attributes

I’ve lost count of just how many blog posts have their origin in a customer question. Here’s another:   “How do you use PowerShell to get a list of what attributes *could* be populated on an AD user object?”   A magnificent question!   The customer was unsure as to why some properties would appear…


Teams tidbits – Creating team sites programmatically

Hello All, I love automation so I thought this might interest you. First of all the Product group is currently working on the PowerShell to configure and manage teams as you can see from this Road map entry (Currently in Development) but if your feeling impatient and you need to get something started there are…


PoSh: Working with Internal NuGet Repositories

  One thing that seems to interest even the most advance PowerShell user is the concept of having an Internal Repository of scripts for their team to share and have version control over.  I will say for a Sys Admin this has been a very challenging experience in figuring out what to use and I…


PS without BS: Creating Random Test Users in Active Directory

This was an interesting ask, and kind of showcases a couple of different techniques. The ask was to create 20 random users in Active Directory for test purposes. So, I grabbed a list of (debateably) a list of the most common male and female first names and the most common surnames. I then randomize these…


PowerShell – Get-Credential and certificates

Matthew Bongiovi  had a discussion on Get-Credential and how it works. So useful, that I thought I’d cut/paste it here so that you and I can refer to it in future! See below:   The Get-Credential cmdlet generates the prompt using the CredUIPromptForCredentials function. The documentation for that function says: “In the case of credentials…


PowerShell in the Azure Portal… Almost!

  A little while back I noticed a new (but familiar) icon in the Azure portal (see below, not above)…   I was gutted to see the following for PowerShell… coming soon!   Good things come to those who wait, but if you can’t wait you can sign up to a Private Preview by following…


Monitoring tools and the path of least resistance

At a client recently, an example arose of a well-designed technical solution falling partially short of achieving its desired outcome due to an unanticipated people factor.  Adjusting the technical approach to account for this factor will hopefully resolve the issue – time will tell! Here is an example inspired by this client.  Wishing to move…


Azure AD Reporting API, Download foreach user – sign-in status as CSV

#Draft, will be updating this with more text and images.   The following script will locate all users, then for each user it will dump out Azure AD reporting sign-in status in C:tempreporting[thismonth[thisday]] Example from lab, ehzure.com, I only have two users active, I’ll execute some user login activity at later time to provide a…