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
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.
Download the tool @ Connect:
https://connect.microsoft.com/site297
Deploy with confidence!
Isvet – MVP
Windows 8 Server in Hyper V R2 | PowerShell @ Glance!
October 12, 2011 § Leave a comment
Windows 8 Server (Developer Preview) works like a beauty in Hyper V R2. New remote Role Based deployment and administration clearly denotes the direction Microsoft continues to the server platform “Better and More Capable”.
The easy to install and configure Windows Server 8 invites you to deploy via Hyper V R2 servers with roles like:
ADDS
DNS
DHCP
IIS
PowerShell 3 surely continues to deliver more remote management features. With the most recent version of Windows PowerShell you can take servers to extreme performance via Hyper V making true PARALLEL deployment of roles and features. Also you can managege / monitor via the NEW Server Manager all services, logs, and alerts of individual and multiple deployed servers thanks to TILE based Server Manager in Windows Server 8.
If you want to see more related to Windows 8 Server & PowerShell come to Microsoft tomorrow and be part of a “First Look” to what Windows Server 8 promises.
More information at http://prdot.net & http://itcspr.org
Isvet MVP
Windows 7 with MDT 2010 EASY… (Isvet Laclaustra) Step by Step Workshop FREE!
August 4, 2011 § Leave a comment
Migrate to Windows 7 with MDT 2010 EASY! “LTO & ZTO”
When: Scheduled for August 9, 2011
Where: Huertas Junior College
# 41 Bunker St. Caguas PR, 00726
Time: 5:00 pm to 10:00 pm
Join us for a Technical demonstration of “How to” use MDT 2010 and other Microsoft FREE Tools to migrate Windows XP systems to Windows 7 and include applications, documents and more. During this step by step conference you will be able to execute the DEMOS “side by side” with us if you bring your laptop (mobile lab).
Be ready to have fun while on the job… MIGRATING existing users PCs.
See you there and be ready for PowerShell.
More details @ http://itcspr.org
Isvet MVP
Tips PRO en Systems Center Virtual Machine Manager 2008 R2 (Isvet Laclaustra)
April 25, 2011 § Leave a comment
PPT is available @:
Tips PRO en Systems Center Virtual Machine Manager 2008 R2. Entenderá cómo el poder reaccionar a una infraestructura de servidor de cambio es importante para lograr una racionalización o dinámica infraestructura de TI. Esto se convierte en una necesidad con la virtualización y la naturaleza dinámica de las cargas de trabajo, que comparten una infraestructura. Con Microsoft System Center Server Management Suite Datacenter, se logrará con nuestro nuestro rendimiento y optimización de recursos Tips (PRO) entender y reaccionar a la naturaleza dinámica de las cargas de trabajo. En este Webcast, veremos en detalle la arquitectura de Tips (PRO), algunos consejos que explican la configuración, instalación y el contenido de un PRO Tips, que pueda reequilibrar la carga de trabajo de una infraestructura virtualizada y permita a los clientes lograr ahorros en un entorno más dinámico.
Detalles del Evento:
Cuando: viernes, 29 de abril de 2011 11:00 a.m.
Hora: (GMT-04:00) Puerto Rico
Duración:60 Minutos
Link registro:
What’s New in Virtual Machine Manager 2008 R2 SP1
http://www.microsoft.com/systemcenter/en/us/virtual-machine-manager/vmm-whats-new-r2.aspx
Download Virtual Machine Manager 2008 R2 SP1
Community References
http://social.technet.microsoft.com/Forums/en-US/category/virtualmachinemanager
Isvet – MVP
PowerShell–VMM–Provisioning (Isvet Laclaustra)
April 20, 2011 § Leave a comment
Yes, provisioning FAST vms with POWERSHELL Hyper V hosts.
Sample Script to provision domain machines located in LUNs including IDE HDs for OS:
PS C:\> Get-VMMServer -ComputerName “VMMServer1.YourDomain.com”
PS C:\> $JobGroupID = [Guid]::NewGuid().ToString()
PS C:\> $Template = Get-Template | where {$_.Name -eq MyTemplate”}
PS C:\> $VMHost = Get-VMHost | where {$_.Name -eq “VMHost.YourDomain.com”}
PS C:\> Move-VirtualHardDisk -IDE -BUS 0 -LUN 0 -Path “L:\OS.VHD” -JobGroup $JobGroupID
PS C:\> New-VM -Name “VM06” -Path “L:\” -Template $Template -VMHost $VMHost -JobGroup -$JobGroupID –UseLocalVirtualHardDisks
Modify the domain, locations as required. BE sure to have the script copied to a notepad and set to a .ps1 for easy calling.
With System Center Virtual Machine Manager 2008 R2 – PRO PACKs
Isvet – MVP
MDOP 2010 Training AGPM & DART in One Day (Isvet Laclaustra)
February 17, 2011 § Leave a comment
AGPM – Change Management for GPOs
DART – Support the OS and provide Remediation’s – Solutions for Desktops
The MDOP family of products includes the AGPM & DART among other tools. AGPM is a great tool for optimizing GPOs, it can be set on a Non-DC Host and can be managed from an Administrators workstation via the AGPM console. The tool is a server –client model software made available by Microsoft via the Software Assurance package. DART is a support package ready to help with the day to day issues like; data recovery, diagnose faults, manage acco8unt passwords plus many others.
Join us on this 1Day session covering the AGPM & DART tools made available in MDOP 2010.
We start at 9:00 am and finish at 5:00 pm.
Isvet Laclaustra – MVP
MDT 2010–Define-Capture-Automate-Deploy-Windows7 in One Day (Isvet Laclaustra)
February 14, 2011 § Leave a comment
DEPLOYMENT… simple and easy via MDT 2010 for Client PCs & Servers!
MDT 2010 thanks to the Spring Board Series makes every deployment a beauty. Providing the capabilities to make a Customized OS Installation Media in which you can add Dlls, Applications (both Microsoft and Non-Microsoft), and Package Updates all in one step during deployment. This can be accomplished from the very basic to most the complex deployment strategy.
During this BOOT CAMP [1day Event] you will install and configure MDT 2010 :
Capture Source – Windows 7
Define – Windows 7
Generalize – Ready For Mass Deployment
Automate – Perform & Integrate [In Lite Touch & Zero Touch]
Make your USB flash the SOLUTION EXTENDER! [USB BOOT MEDIA]
BY INVITATION ONLY – INFO @ http://itcspr.org
See you tomorrow, remember it starts at 8:30 am and ends at 6:00 pm.
Isvet – MVP
PSHELL > Faster, Capable, Simple PowerShell (Isvet Laclaustra)
December 6, 2010 § Leave a comment
PowerShell V2.0 certainly keeps the “SUPER” in the Super Easy in Windows Server 2008 R2 Core installations. Yes anyone who need to have a fast server for a specific Role or Feature in both virtualized & physical environments can SURELY appreciate the 2008 R2 Core. By removing almost all the GUI from the OS you can improve security and speed up the system. Any who uses OPEN SOURCE Distributions, really appreciated the SHELL speed, so in Windows the PShell has provided the same love for IT Managers / System Managers who want fast servers always keeping the resource consumption LEAN and 2008 R2 CORE installations surely deliver that.
Yet all the lovers of the GUI in Windows can still perform “at speed” on CORE installations by using the UPDATED version of CoreConfigurator 2.0 which has been updated for the Windows Server 2008 R2 editions. SIMPLE AND FAST the CoreConfigurator 2.0 delivers the love for the IT Admin who desires the GUI for:
Adding Roles, Features and configuring the BASICS of a Server at the RACK, either Virtualized or Physical.
Take a look:
http://coreconfig.codeplex.com/
IF you want to support CORE configurations for Windows Server 2008 x86 use the core CoreConfigurator 1.1…
http://coreconfig.codeplex.com/releases/view/18912
Related post:
PowerShell – Administration for Windows Server 2008
April 17, 2008 § Leave a comment
Today was our second day in Redmond = Microsoft Campus and to be trustful the PowerShell tool is now better than ever. PowerShell is an AUTOMATION scripting language which sets the BASE for the administration tasks of Windows 2008 Server. Routine task and time demanding tasks / jobs can be automated using Comandlets and event .NET as objects can now be called from a Comand Line Shell.
PowerShell can surely be the future tool for Administering some of the most challenging tasks of an everyday IT Administrator.
More details later…
Isvet