Category Archives: 7951

How-To: List Live Maps group information using Powershell

 

With every view that is build using Live Maps an OpsMgr group is created containing all the objects that are on the Live Maps view. You can use these groups for different purposes, for example target the group for security, reporting, service level tracking or for setting maintenance mode.

In this article it will give a few code examples to extract information about Live Maps groups using Powershell.

How-To: List Live Maps group information using Powershell

The Deployment Guys : Creating a SID Mapping File with Windows PowerShell

 

Before I became a “Deployment Guy”, I used to be an “Active Directory Guy” and worked on quite a few Active Directory deployments and migrations.  When users, groups, and computers are migrated to a new domain, the resources (files, shares, user profiles, etc.) need to have the permissions on them changed so that the migrated accounts can access them as before.  If users/groups are migrated before the resources, they can be migrated with SID History (the SID of the old accounts are placed in the sIDHistory attribute of the new account) to allow access to resources before the “security translation” of permissions is completed.

The Deployment Guys : Creating a SID Mapping File with Windows PowerShell

Download details: DPM 2010 PowerShell Script – Hyper-V Auto-Protection

 

In any virtualized environment, adding new VMs is a frequent operation. While backup administrators can protect an entire Hyper-V host using the DPM Management Console, the protection group had to be modified manually to include the new virtual machines that have come up on the Hyper-V host. These scripts are expected to work with DPM 2010 Beta. By using them, you should be able to quickly put together a script that can enable the auto protection of your hyper-v hosts. Note: These scripts work on an existing protection group and do not create a fresh protection group. The attached scripts automate the task of adding any new virtual machines recognized in the Hyper-V hosts protected by the DPM server into existing protection groups. There are different scripts for Hyper-V clusters (AddNewClusteredVM.ps1) and standalone Hyper-V hosts (AddNewStandAloneVM.ps1). You would still use the script for standalone servers to automatically protect the non-clustered virtual machines of any Hyper-V host that is part of a cluster.

Download details: DPM 2010 PowerShell Script – Hyper-V Auto-Protection

Free Windows PowerShell ebook

 

With the recent release of Windows PowerShell v.2 and the immanent publication of our well regarded Windows PowerShell v.2 TFM book by Don Jones and Jeff Hicks, SAPIEN is releasing our Windows PowerShell v.1 TFM eBook as a FREE download to the public. Even though this eBook is for version 1 of PowerShell, the book still contains loads of valuable information about PowerShell’s core workings and cmdlets. Download the eBook today at http://www.primaltools.com/downloads/communitytools/. Just look for the entry entitled “Powershell TFM V1 eBook”.

SAPIEN Technologies » Blog Archive » Free Windows PowerShell ebook

The Manageability Guys : More On SCCM and Powershell

 

I thought I would add to our previous post on Powershell. Powershell can make SCCM admin far easier for repetitive tasks.  To make life really easy we can start creating our own “cmdlets”. Anyone can write their own cmdlets for Powershell but it’s heavy duty coding so we’re going to fake it by adding functions into a profile. Profiles are loaded when powershell starts so the functions created are available at the powershell console. By giving the functions sensible names then using them with powershell makes it seem as if we’ve created our own cmdlets.

The Manageability Guys : More On SCCM and Powershell

The Operations Manager Support Team Blog : Putting a Group of Computers into Maintenance Mode via Powershell

 

Have you ever found yourself in need of putting a group of systems into Maintenance Mode in System Center Operations Manager 2007 R2?  If so you can use the script below.  Note that in SCOM 2007 R2 there is no need to put the health service and health service watcher into Maintenance Mode separately, we just need to put the computer itself into Maintenance Mode and it will take care of other components automatically.

The Operations Manager Support Team Blog : Putting a Group of Computers into Maintenance Mode via Powershell