PowerShell: Disable MFA For All O365 Users
KB ID 0001655 Problem If you have something boring/repetitive to do then Powershell is your friend! I needed to do this for a client that’s replacing their Office365/Azure AD MFA (Multi Factor Authentication) with Duo. Solution Connect to your Microsoft Services Online, i.e. Office365/Azure, using your administrative credentials with the following command; Connect-MsolService Then (Note: I’ve got more than 1000 users so I...
PowerShell: Add All Members of an OU to a Security Group
KB ID 0001589 Problem I’ve written in the past about ‘Bulk Adding Users from CSV files, into Groups’. But what if you want to add ALL users in a particular OU into a security group? Solution The syntax is; Get-ADUser -SearchBase ‘OU=Source-OU,OU=PNL,DC=pnl,DC=com’ -Filter * | ForEach-Object {Add-ADGroupMember -Identity ‘SG-Test-Group’ -Members $_ } Here I’ve got 20 users that need adding to a group, in this...
Windows ‘Where’s the Startup Folder?’
Windows 8 Shell Commands for ‘Special Folders’ KB ID 0000709 Problem With Windows 7 (and earlier versions) you could simply find the startup folder from the start menu, now you don’t have one, (and its NOT on the Windows Key+X replacement menu either). Solution The simple answer to the question is, Your user Startup folder is located at; %appdata%MicrosoftWindowsStart MenuProgramsStartup The All users Startup folder...
Exchange – Display/Export Users Mailbox Folder Sizes
KB ID 0000860 Problem A client asked this morning if there was a way he could see each users mailbox size, this is pretty simple to do see here. But he wanted to see each individual folder, and see a breakdown on the sizes of these folders. Solution Display Folder Sizes For an Individual User From the Exchange Management Shell, execute the following command; Get-MailboxFolderStatistics pete | Select...