Comparing ConfigMgr Date Formats in PowerShell

If you have worked with ConfigMgr much, you know that uses WMI to stores tons of information.  WMI uses the CIM_DATETIME format, which looks like this: yyyymmddHHMMSS.mmmmmmsUUU.  In order to work with this in PowerShell, you need to convert it into something that the Get-Date cmdlet can understand.  Here are two ways that you can accomplish this: Using […]

Read More»

How to quickly create Collections using New-CMDeviceCollection

It is probably not everyday that you need to create a bunch of collections in ConfigMgr, however, you might find yourself setting up a new infrastructure, lab environment or just doing some load and performance testing that justifies the need for some automation. Using the technique I demonstrated in my previous post Fun with PowerShell […]

Read More»

Upcoming PowerShell event starring Jeffrey Hicks

PowerShell 3.0 continues to build on the solid foundation of PowerShell 2.0. Today, IT Pros have a set of even more powerful tools to add to their admin toolbox. If you’re wondering about all the fuss surrounding PowerShell 3.0, PowerShell MVP and author Jeffery Hicks will enlighten you. In this session, he will share with you his favorite PowerShell 3.0...

Read More»

How to get the new PowerShell cmdlets for CM2012 SP1 CU1 without installing CU1

Per KB article 2817245, Microsoft suggests only installing CU1 for ConfigMgr 2012 if your installation is experiencing any of the issues fixed by CU1.  However, there are quite a few new PowerShell cmdlets included with CU1 that you will probably want to get your hands on if you opt not to install CU1. The new PowerShell cmdlets are actually included...

Read More»

New PowerShell Cmdlets included in CU1 for ConfigMgr 2012 SP1

Per KB Article 2817245, the following new PowerShell cmdlets are included as part of the CU1 update for ConfigMgr 2012 SP1:   Add-CMDistributionPoint Import-CMAntiMalwarePolicy Import-CMDriver New-CMAppVVirtualEnvironment New-CMMigrationJob New-CMPackage New-CMSoftwareUpdateAutoDeploymentRule New-CMTaskSequence New-CMTaskSequenceInstallUpdateAction New-CMTaskSequenceMedia New-CMUserDataAndProfileConfigurationItem Remove-CMTaskSequenceInstallUpdateAction Set-CMTaskSequenceGroup New-CMTaskSequenceGroup Remove-CMTaskSequenceGroup Set-CMApplicationCatalogWebsitePoint Set-CMAppVVirtualEnvironment Set-CMClientPushInstallation Set-CMClientSetting Set-CMDistributionPoint Set-CMDriver Set-CMEndpointProtectionPoint Set-CMEnrollmentPoint Set-CMEnrollmentProxyPoint Set-CMHierarchySetting Set-CMManagementPointComponent Set-CMOperatingSystemImageUpdateSchedule Set-CMOutOfBandManagementComponent Set-CMReportingServicePoint Set-CMSite Set-CMSoftwareUpdateAutoDeploymentRule Set-CMSoftwareUpdatePointComponent Set-CMStateMigrationPoint Set-CMStatusSummarizer Set-CMSystemHealthValidatorPointComponent Set-CMTaskSequence Set-CMTaskSequenceInstallUpdateAction Set-CMUserDataAndProfileConfigurationItem...

Read More»

Windows PowerShell Cookbook now shipping, save only $1 on the Kindle version

The Kindle version of the Windows PowerShell Cookbook: The Complete Guide to Scripting Microsoft’s Command Shell released in December 2012, and now the print version is shipping after it’s January 17, 2013 release. Here’s another example of poor pricing, though.  I know many people who are not buying books any longer, unless they are available in eBook or Kindle format. ...

Read More»

PowerShell 3.0 Language Reference

Looking for a good, comprehensive guide for PowerShell 3.0?  Microsoft has released a 334 page document outlining the entire language specification for version 3.0.  The doc goes over just about everything.  There’s no sugar-coating here, the doc is straight and to the point.  You can utilize this document to search and locate specific functions, methods, and native commands. Download it:...

Read More»

Idera's PowerShell Plus is free

From the site: Free tool to learn and master PowerShell fast Learn PowerShell fast with the interactive learning center Execute PowerShell quickly and accurately with a Windows UI console Access, organize and share pre-loaded scripts from the QuickClick library Code & Debug PowerShell 10X faster with the advanced script editor Click the “Download Now” button, give Idera your email address,...

Read More»

Windows PowerShell Community Group

The myITforum Community Groups are getting to be as popular as our legendary email discussions lists and forums, and that’s a great thing.  Community Groups give visitors ways to join the community and then participate with like-minded individuals in the areas that interest them most. We already have a general Scripting Community Group (batch, VBscript, PowerShell, etc.), one dedicated KiXtart, even one dedicated to...

Read More»

Automating ConfigMgr Query Creation with Powershell

I’m currently working on implementing a fairly large System Center Configuration Manager (ConfigMgr or SCCM depending on who you ask and the time of day) hierarchy. The hierarchy spans multiple domains on the workstation side of the house and we are targeting and tracking client deployment on a per domain basis. With 11 domains and 4 queries per domain on...

Read More»

Using VBScript to tell the remote computer to run Chkdsk on next boot

Here’s a quick VBScript to cause a remote computer to run Chkdsk the next time it is booted.  Just change the highlighted pieces to reflect your specific needs. For other Chkdsk options available to you, check out the Chkdsk method of the Win32_LogicalDisk class. strComputer = “FullComputerName“ strDomain = “DOMAIN“ Wscript.StdOut.Write “Please enter your user name:” strUser = Wscript.StdIn.ReadLine Set...

Read More»
12