Browsing: PowerShell

IntroductionWith the release of Configuration Manager 1710, Microsoft now supports co-management, so Windows 10 clients can be managed by both SCCM and Intune at the same time. There are a few pre-requirements that need to be completed if you want to use co-management, and the most important one is that you need have your MDM authority in Intune set to Intune.The following are general prerequisites for you to enable co-management: Configuration Manager version 1710 or later Azure AD EMS or Intune license for all users Azure AD automatic enrollment enabled Intune subscription (MDM authority in Intune set to Intune)See all…

IntroductionWith the 1702 release of Configuration Manager, Microsoft released (pre-release) the Data Warehouse service point that can be used to report on long-term historical data. And with the 1706 release, this feature is no longer a pre-release feature.Setting up the Data Warehouse feature is pretty much straight forward, but depending on your environment you might see some challenges.Prerequisites and Installation guide can be found here: https://docs.microsoft.com/en-us/sccm/core/servers/manage/data-warehouseThe Remote SQL challengesLast week I was asked to setup a new Data Warehouse server for one of my customers. The Data Warehouse Database should be hosted on a new dedicated SQL Server 2016.Setup:SERVER1 (Primary…

Over the years, I’ve created multiple labs, so that I can test different scenarios. One of my first “cloud only” Azure AD labs was created back in 2012. Two weeks ago, I wanted to use this lab to test a new Conditional Access scenario that one of my customers needed.Long time ago, I also created an “All Users” group, that was based on direct membership, so I thought it was a good idea to replace that group with a new and “shiny” dynamic group based on the “UserType” attribute.So, I created the following group, and started to redeploy all my…

Introduction For most organizations, Office 365 (mailboxes) can contain both high business impact and personally identifiable information, so it’s important that we track who logs on to the mailboxes in the organization and what actions are taken. By default, mailbox auditing in Office 365 isn’t turned on, so this guide will help you to setup and verify mailbox auditing in Office 365. This guide will walk you through the following steps: Step 1: Connect to Exchange Online Step 2: Get the current state of audit logging Step 3: Enable mailbox audit logging Step 4: Set the age limit for mailbox…

Today I got a call from a System Center Configuration Manager (SCCM/ConfigMgr) customer that wanted to automate the creation of device collections for each SCCM client version, that was in their environment. I guess summer time means “time to cleanup/fix all the broken clients” :-)A couple of years ago I create another similar script for CU updates: https://gallery.technet.microsoft.com/SCCM-Creating-Collections-f334c7f0 but this time I wanted to make the script simpler, fully automated and only create the collections that was needed by the customer.This script will pull a list of all the client versions from the SCCM site server, and create a collection…

Today I got a call from a customer that was working on a Office 365 Project. As part of the Project they wanted to change the Exchange Email Address Policies to filter on the Company Name for each user. Only problem was that some of the users had a blank or misspelled Company name…Luckily, someone invented PowerShell so we started by pulling a list of all Company Names by running this command:Get-ADUser -Filter * -Properties Company | Group Company | Select Name,CountThe result was as expected… Too many company names. Misspelled Company Names and users with no company name specified…

Thanks to everyone who attended my sessions earlier today @ MS TechTalks in Helsinki. Here are the links that we used during the presentation. Recordings should be available on Microsoft Channel 9 (I don’t know when). Managing Updates in the Enterprise PowerShell Script: Add-CMUsersPrimaryDevicesToCollection.ps1:k https://github.com/NickolajA/PowerShell/blob/master/ConfigMgr/Users/Add-CMUsersPrimaryDevicesToCollection.ps1 Changes to Software Updates on Down Level Operating Systems for ConfigMgr Admins: https://blogs.technet.microsoft.com/configmgrdogs/2016/10/11/changes-to-software-updates-on-down-level-operating-systems-for-configmgr-admins/ Configuration Manager and Simplified Windows Servicing on Down Level Operating Systems: https://blogs.technet.microsoft.com/enterprisemobility/2016/10/07/configuration-manager-and-simplified-windows-servicing-on-down-level-operating-systems/ Windows 10 and UEFI Inventory Secure Boot State and UEFI with ConfigMgr: https://miketerrill.net/2015/10/11/inventory-secure-boot-state-and-uefi-with-configmgr/ Power BI SCCM Templates: https://powerbi.microsoft.com/en-us/blog/sccm-solution-template/ Switch from Bios to UEFI seamless using Configuration Manager TS in 6…

When you install the latest cumulative update for System Center 2012 Configuration Manager (SCCM), it automatically creates 4 new packages for client, server and console updates. If you forget to clean up after each update, you’ll end up a situation like this: Unfortunately the SCCM user interface does not support multiselect and delete, so if you want to delete all these packages, you need to walk through the delete wizard for each package. That is both extremely boring but also takes a lot of time. So I wrote this little PowerShell script that will delete all post SCCM 2012 CU4…

Introduction Installing this update is very similar to previous versions but a few things have changed since I did the last post on CU updates. In this blog post, I’ll walk you through the upgrade process step-by-step in a standalone primary scenario. The full list of fixes and a link to request the hotfix is available here: http://support.microsoft.com/kb/3026739/ As always, you should start by checking the health of the system, verify the backup, etc. At a minimum, you should check the following: Install any missing updates (security, critical and important). Verify you don’t have a pending restart. Verify that you…

When upgrading the System Center Configuration Manager (SCCM) client to a new version, most customers would prefer to create new collections for this task. As a cosultant I create alot of these “ad-hoc” collections every time I visit a customer, so I’ve created a small libary of PowerShell scripts that will help me create these collections really fast when I need them. Here is a simple PowerShell script that will create 2 kinds of collections that will help you for this specific task. #CLI – Client Version; That will have all clients with a specific client version. #CU – Cumulative…

1 2