Cleanup in AD deleted devices via Powershell in ConfigMgr 2012 SP1

April 26, 2013 § Leave a comment

This script checks every device that is available in the All Systems c

Verified on the following platforms / OS

Windows Server 2012 =Yes

Windows Server 2008 R2 = Yes

Windows Server 2008 = Yes

Windows Server 2003 =No

Windows 8 = Yes

Windows 7 = Yes

Windows Vista = No

Windows XP = Yes

Windows 2000  = No

ollection if it is still available in Active Directory and it will clean up devices that comply to the certain rules. (read more for the rules)

RemoveDeletedDevicesFromConfigMgr2012SP1_v0_2.ps1

Current version: v0.2, release date 04/25/2013

The script checks every device that is available in the All Systems collection if it is still available in Active Directory and it will delete devices that comply to the following rules:

  • The device is available in ConfigMgr but not in Active Directory
  • The device is not a member of a Workgroup
  • The device is not a mobile device
  • The device is not manually imported for Operating System Deployment

Before you are able to use the script you need to configure some variables, you can find these just beneath the comments in the header of the script;

  • $sitecode = “<sitecode>:”
  • $sitecode = “PS1:”
  • $installdrive = “<ConfigMgr Admin Console installation>
  • $installdrive = “C:
  • $loglocation = “<loglocation>
  • $loglocation = “D:\Logfiles\
  • $localdomain = “<domainname>
  • $localdomain = “ConfigMgrLab
  • $maxdevices = <maximum number of devices in your ConfigMgr environment>
  • $maxdevices = 2000

Prerequisites to use this script are:

  • Powershell 3.0 (x86)
  • System Center 2012 Configuration Manager 2012 SP1
  • Active Directory Module for Windows PowerShell

The script RemoveDeletedDevicesFromConfigMgr2012SP1.ps1 uses the cmdlet Get-CMDevices to retrieve the information about the devices from Configuration Manager. After checking if the device is available in Active Directory, part of a workgroup, part of an other domain or mobile device the Remove-CMDevices cmdlet will be used to remove the device from Configuration Manager. Together with the log function of fellow Configuration Manager MVP Kaido Järvemets (http://www.cm12sdk.net) this script will log also if a devices is deleted or why a device is preserved. The script will check the device in Configuration Manager and report back which device does not have an account in the Active Directory you configured.

New in v0.2:

  • Ability to set the Maximum Query Result Size of ConfigMgr 2012 SP1, by default this is 1000 items

  • Fixed little bug while searching in AD for objects give back a number higher than 1. (more AD objects with the same name)

THANKS TO the Master –>Peter Daalmans

Do some Spring Cleaning to your SCCM All Systems Collection from AD.

PowerShell – One Key to the Automation of the Data Center

 

Isvet Laclaustra

MMS–Las Vegas 2013 (Isvet Laclaustra)

April 10, 2013 § Leave a comment

image

System Center 2012 Configuration Manager !

This week we will have the opportunity to interact with one of the best teams in the MS Organization… ROCK ON!

Microsoft System Center 2012 Configuration Manager Overview (Isvet Laclaustra) Webcast

August 9, 2012 § Leave a comment

image

image

WEBCAST – En vivo

“Un resumen de las nuevas capacidades de configuration Manager 2012.”

Cuando: miércoles, 15 de agosto de 2012
Hora: 4:00 PM – 5:00 Zona (GMT -4:00) Puerto Rico – (GMT-05:00) Bogotá
Duración: 1 hora

image

Registration Link:
https://msevents.microsoft.com/CUI/EventDetail.aspx?EventID=1032523013&Culture=es-AR&community=0

Microsoft System Center 2012 Configuration Manager Overview

“Microsoft System Center 2012 Configuration Manager can help you maintain corporate compliance and control while empowering employees to use the devices and applications they need to be productive.
 
Configuration Manager provides key management capabilities around application delivery, desktop virtualization, device management, and security that make it possible to enable productivity amidst device proliferation – while also reducing costs.
 
Discover Configuration Manager
 
Application Delivery
 
In the 2012 release, Configuration Manager takes a new “user-centric” approach to application delivery. You can establish policies and relationship rules that allow Configuration Manager to evaluate user identity, application dependencies, device type, and network connection in order to deliver the optimum application experience to users from whatever device or devices they happen to be using.
 
Desktop Virtualization
 
Configuration Manager is key component of Microsoft Desktop Virtualization solutions. It provides asset, usage, and desired configuration management for personal and virtual desktops on a single infrastructure. It also integrates with Microsoft Application Virtualization (App-V) to deploy and manage virtual and physical applications, allowing you to easily scale application deployment throughout the enterprise as fully streamed virtual applications, locally delivered packages, or both.
 
Device Management
 
Configuration Manager provides baseline management for all Exchange Active Synch (EAS) aware devices, helping your organization inventory, remote wipe, or enforce PIN codes from the same unified management infrastructure that you are using for your physical and virtual client management.
 
Security
 
Configuration Manager serves as the management infrastructure for System Center 2012 Endpoint Protection. By aligning the client compliance and remediation capabilities of Configuration Manager with the antimalware and vulnerability protection features of Endpoint Protection, you can manage and protect your entire client infrastructure in a single solution. This consolidation can help you lower infrastructure costs and improve insight into the health and safety of your entire client environment.”

More information:

https://www.microsoft.com/en-us/server-cloud/system-center/configuration-manager-2012-overview.aspx

Deploy Faster – Windows Server 2012 with MAP 7.0 Beta (Isvet Laclaustra)

May 30, 2012 § Leave a comment

Microsoft Assessment and Planning (MAP) Toolkit 7.0 Beta is ready for download. All you need for boost &  quick start.

Check out this updated version of this tool for Windows Server 2012, assess the readiness of your environment for Windows Server 2012.

image

Download the tool @ Connect:
https://connect.microsoft.com/site297

Deploy with confidence!

 

Isvet – MVP

Ready to Download SCCM 2012 Beta 2 (Isvet Laclaustra)

April 6, 2011 § Leave a comment

image

System Center Configuration Manager 2012 Beta 2, is now open to all !

SCCM 2012 helps you embrace this consumerization trend – without giving up the control needed to protect corporate assets. With System Center Configuration Manager 2012 Beta 2 user experiences can be delivered and managed based on corporate identity, network connectivity, and device type – enabling you to meet the demand for consistent, anywhere access to corporate services. It provides you with a unified infrastructure for mobile, physical and virtual environments helps you manage everything in the same place and using the same processes you already have established. That same infrastructure also extends to include critical endpoint security and service management technologies you need to protect and support your workers. At the same time, simplified administrative tools and improved compliance enforcement mechanisms help to make IT more efficient and effective.

Link:

http://technet.microsoft.com/en-us/evalcenter/ff657840.aspx?wt.mc_id=TEC_31_1_6

Be sure to participate in the May 2011 events in you area. Details later this week.

Isvet – MVP

Where Am I?

You are currently browsing the SCCM 2012 category at Isvet_JR.