PowerShell

26
Jan

Use PowerShell to find unmanaged computers

Posted by | · · · | PowerShell · SCCM | No Comments on Use PowerShell to find unmanaged computers

Greetings fellow IT geeks.  Today’s post is centered around PowerShell and a recent request we had from a client. The Issue So like many companies out there, there can be many computers in your SCCM database and Active Directory that are one or more of the following: Stale AD Object Non standard computer name (likely meaning […]

Read More
04
Jan

Finding Duplicate UPN’s 2 Domains – Powershell

Posted by | No Tags | PowerShell | No Comments on Finding Duplicate UPN’s 2 Domains – Powershell

Hello All I was recently working on a project to migrate users from legacy domain to a primary domain. One of the many challenges is finding conflicting UPN between the two domains. UPN  (User-Principal-Name) is an Internet-style login name for a user based on the Internet standard RFC 822. The UPN is shorter than the distinguished name and […]

Read More
28
Dec

Blog The Case of NIC Teaming VS Sysprep

Posted by | | Hyper-V · PowerShell | No Comments on Blog The Case of NIC Teaming VS Sysprep

Hello again all and I hope everyone had a great set of Holidays!  Today I’ll be blogging about an incident I ran across with sysprep on a bare metal host.  We were attempting to deploy out a new 4 Node Hyper-V 2012 cluster.  Our long term goal was to eventually take advantage of Bare Metal […]

Read More
07
Dec

PowerShell Training: Switch Parameter Validation

Posted by | · · | PowerShell | No Comments on PowerShell Training: Switch Parameter Validation

Summary There are many ways to validate the presence of a [switch] parameter within a PowerShell script or function, but some are definitely better. This post provides a PowerShell function that demonstrates the results of various validation methods and specifies which methods should be used. Introduction PowerShell provides a number of options for both accepting […]

Read More
02
Dec

Why Can’t we all just get along? AKA Task Sequences vs PowerShell (32/64 bit)

Posted by | · · · | PowerShell · SCCM | No Comments on Why Can’t we all just get along? AKA Task Sequences vs PowerShell (32/64 bit)

Once Upon A Time…. I was recently in a situation where I needed both 32-bit and 64-bit PowerShell scripts to be able to read/write Task Sequence Variables. After trying various methods I was able to get the 32-bit scripts to read and write Task Sequence Variables successfully.   All Was Well Until… The scenario was […]

Read More
26
Oct

PowerShell Training: Sorting Version Numbers

Posted by | · · · | PowerShell | 1 Comment on PowerShell Training: Sorting Version Numbers

Summary Sorting version numbers as strings can fail to order them correctly, but the [Version] type accelerator can be used to sort them correctly. Introduction Here at Model Technology Solutions, we spend a lot of our time writing PowerShell and we have a number of processes for managing that code. As part of one of […]

Read More
24
Oct

Reporting on SCCM Application Deployment Progress with Powershell

Posted by | · · · · | PowerShell · SCCM · Uncategorized | No Comments on Reporting on SCCM Application Deployment Progress with Powershell

This month, I’m going to show you a new approach to getting deployment status out of SCCM. Most of you are familiar with using SCCM Reports, or the SCCM console to get deployment status when asked.  Usually, when asked, I turn to SQL.  However, I was looking at all the cmdlets that come with SCCM […]

Read More
17
Oct

Admins Toolbox – PowerShell Execution Time

Posted by | No Tags | PowerShell | No Comments on Admins Toolbox – PowerShell Execution Time

Hello again have you ever wondered how long it took to execute a powershell script or command? With a few lines of code we can retrieve that information from your history. We can pull from history the last executed command and set it as a variable. $command = Get-History -Count 1  Using builtin property’s EndExecutionTime and StartExecutionTime we […]

Read More
14
Sep

Dynamically Scheduled Runbooks in Azure Automation

Posted by | No Tags | Azure · PowerShell | No Comments on Dynamically Scheduled Runbooks in Azure Automation

Hello again, Automation fans.   Today we’re going to be talking about Dynamic Schedules and Runbooks in Azure Automation, using AzureRM. This is an often requested topic, since the Azure Automation portal only offers the capability to schedule runbooks to run every hour, and does not allow for slices within the hour or for runbooks […]

Read More
08
Jul

Detection Methods, Configuration Items, and more – Oh My!

Posted by | · · · · · · · | PowerShell · SCCM · Uncategorized | No Comments on Detection Methods, Configuration Items, and more – Oh My!

Setting the Scene With the release of SCCM 2012, Microsoft brought many improvements to the SCCM product. One of them was the introduction of the Application Model. The Application Model allows software to be deployed in a much more intelligent manner than the older Package model. However, despite all the benefits of the Application Model, […]

Read More