Category Archives: PowerShell

Check TPM Status from the Command Line (Enabled | Activated | Owned)

Quick and simple way to see if the TPM on a computer is Enabled, Activated and Owned – all of which are required before using them for BitLocker: As long as they all return as “True” you’re good to go. … Continue reading

Posted in BitLocker, PowerShell, Uncategorized | Tagged , | Leave a comment

Confirm Service Account Credentials The Easy Way with PowerShell (e.g. SCCM Network Access Account)

Sometimes you will have an AD Service Account configured and you might not be sure what the password is – a good example of this that sometimes catches me out is the SCCM Network Access Account. To safely test the … Continue reading

Posted in PowerShell, SCCM Current Branch, Tips, Uncategorized, Windows | Leave a comment

MBAM Client Deployment PowerShell Error 0x803d0006 – SCCM OSD in Disconnected/Offline Environments

Whilst deploying MBAM as part of a Windows 10 OSD Task Sequence in SCCM CB the “MbamClientDeployment.ps1” task was failing I was getting the error message shown below in the client “smsts.log” file: I logged into one of the failed … Continue reading

Posted in MBAM, OSD, PowerShell, SCCM Current Branch | Leave a comment

Run PowerShell Scripts as Windows Scheduled Tasks

It can be useful to have a PowerShell script which runs as a Windows Scheduled task to perform otherwise manual tasks. Being a lazy bugger I like to automate as many boring, shitty tasks as I can so PowerShell and … Continue reading

Posted in PowerShell | Leave a comment

How To Deploy & Run PowerShell Scripts via SCCM CB

A customer recently had a requirement to deploy a PowerShell script to configure a setting for App-V 5.0. Normally I’d do this with a Batch file called “Configure.cmd” containing the code displayed below. This works for the majority of tasks: … Continue reading

Posted in Batch File, PowerShell, SCCM Current Branch | 1 Comment

Reset Computer Domain Password/Trust Relationship With PowerShell

Ever had a machine that loses it’s trust relationship with the domain and you’ve had to move to a WORKGROUP then rejoin the domain? With PowerShell you can avoid that time consuming process by using the command below: / JC

Posted in PowerShell | Tagged | Leave a comment

Testing Connectivity Over Any TCP Port

1. PowerShell Test-NetConnection Since Windows 8.1/Server 2012 R2 you can now test/ping TCP connections over any port using PowerShell and the Test-NetConnection cmdlet. The syntax for the command is as below. This tests if RDP (port 3389) is available/open on … Continue reading

Posted in PowerShell, Tools, Windows | Tagged , , | 3 Comments