System Center 2012 Configuration Manager SP1 Cumulative Update 1 PowerShell Parameter Sets Excel Sheet

I just updated the SP1 RTM version of Configuration Manager 2012 SP1 RTM PowerShell Parameter Sets Excel sheet and with SP1 CU1 we have 511 CMDLETS and 1675 parametersets :)   You can download the Excel Sheet from here Happy Scripting Kaido    

SCOM 2012 R2 – Advanced Operations Manager Training

The new instructor led training (Now in R2) are ready and scheduled. I have scheduled training in both US, Norway, Sweden and Denmark. So please contact me or one of the training centers about this training. If you have questions to the content or want more information – please send me an email. kra@coretech.dk And exactly as on the Mastering training – you will get a training book with more than 25 real life Labs. And samples of every Rule and Monitor in SCOM 2012 R2.   Training Schedule: SCOM Advanced Denmark: Coretech: 30. April – 2. may 2013 SCOM [...]

By | 2013-03-22T09:38:47+00:00 March 22nd, 2013|Operations Manager (SCOM)|1 Comment

SCO 2012: PS Function for parsing the result of the “Run Exchange Management Shell Cmdlet” Activity

  If you are using the Exchange Admin Integration Pack. You might have tried to use the run exchange shell cmdlet" activity and disocvered that the result is kind special in formatting.   Your result will look similar to this: [PSComputerName: ex2010.cloud.local] [RunspaceId: f30b4063-2b50-4609-9f84-91a480ac4bea] [Database: Mailbox Database 1872261918] [UseDatabaseRetentionDefaults: True] [RetainDeletedItemsUntilBackup: False] to help you , i have created a function for powershell that does it job: [crayon-5a18346a36134187593095/]   use the function as shown here: [crayon-5a18346a3613e260031543/]   The function created a key/pair collection containing all parts of the result, you then use the standard dot or [] syntax to get [...]

By | 2013-03-21T15:57:19+00:00 March 21st, 2013|Automation|5 Comments

PowerShell – How to do WMIClass CreateInstance but WITH credentials

Today I was building a script to create system resources in SCCM 2012 and part of the task was to add these resources to a set of collections. The script will use from the SCCM server when finally implemented but for now I was using my laptop for editing and debugging. When I came to the point where I had to create the actual membership rules for the collections I ran into a hurdle that puzzled me. The WMI object I had to create was the SMS_CollectionRuleDirect, which often is done using this simple PowerShell snippet: $ruleClass = [WMICLASS]"\\$($server)\root\sms\site_$($sitecode):SMS_CollectionRuleDirect".CreateInstance() And [...]

PowerShell to the rescue – Clean up direct collection memberships

We where talking to a customer about how to avoid waiting for Active Directory group synchronization to occur and place a device in the correct collections faster than “until the next synchronization”. The main problem with this setup was caused by the fact that they used a group-in-group membership to identify collection memberships and apparently SCCM 2012 don’t include indirect changes to group membership as delta changes (I have not tested this in details yet). So we came up with the idea to just create a direct membership to place the device in the collections instantly to make sure that [...]

By | 2013-03-12T12:31:15+00:00 March 12th, 2013|Configuration Manager (SCCM), Powershell|3 Comments

Running Tasks with PowerShell and $ID$

Whenever you want to run a Task against an Alert, its so easy to use the $ID$ variable: Create the powershell script c:\scripts\UpdAlert.ps1 with at least the following lines: Param($ID) Import-module OperationsManager GET-SCOMAlert –id “$ID” | SET-SCOMAlert –TicketID ‘100’ –ResolutionState 249 And create the following Task: Stay on one of your Alerts and Run the tasks Refresh (F5) before you check the Alert You could extend the script with other parameters like Logging Computer and User etc. Check the Powershell help with the command: Get-Help Setp-SCOMAlert – Detailed to see more parameters. See you a MMS Kåre

By | 2013-03-09T11:10:22+00:00 March 9th, 2013|Operations Manager (SCOM)|0 Comments