Category Archives: PowerShell

Use RoboCopy in ‘Run PowerShell Script’ SCCM Task Sequence Steps

I like to use PowerShell for all my scripting these days (all VB and batch files have now been rewritten in PoSh) and I also like to use RoboCopy for any file copies that I need to do such as … Continue reading

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

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 , | 2 Comments

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 | 2 Comments

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