PowerShell

08
Sep

CM Tech Preview 1708 – Make Scripts work for you!

Posted by | · · | PowerShell · SCCM | No Comments on CM Tech Preview 1708 – Make Scripts work for you!

Greetings everyone, If you haven’t heard by now, the newest branch of SCCM 1706 brought the concept of managing PowerShell scripts within the Administrators console that can be executed against Devices or Device Collections.  This a an awesome feature that has tons of possibilities.  You may have quickly noticed that you cannot pass parameters to […]

Read More
08
Aug

The Value of Managed Services

Posted by | · · | Microsoft Intune · PowerShell · SCCM · Windows 10 | No Comments on The Value of Managed Services

Today we are going to tell you a little story and see if it rings true for your organization.  This is a story of a fictitious company named Contoso.  Although Contoso is the popular make believe company Microsoft has been so kind to share with us over the years, the parallels to your organization might be […]

Read More
27
Jun

Patch or Petya: There Are Only Two Choices When It Comes to Security

Posted by | · · · · | PowerShell · SCCM · Windows 10 | No Comments on Patch or Petya: There Are Only Two Choices When It Comes to Security

Well, here we go again.   Another massive ransomware attack is spreading around the globe as we speak, just a month after the WannaCry ransomware attack. Initial reports of businesses being impacted by the Petya malware came from Russia and Ukraine, but within hours the attack had gone global.   As John Carlin, chairman of [...]

Read More
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