PowerShell

Home/PowerShell

This category contains all posts and information, scripts, cmdlets related to PowerShell for SCCM and other Microsoft Products

PowerShell: Map Network drive as different user

This is a simple PowerShell script that will make it easy to map a network drive as a different user. Before running the script below in PowerShell you need to change the following: If needed change -Name "Z" to another drive letter Replace \\REMOTESERVER\SHARE with the share path you want mapped Replace DOMAINNAME with your domain name [...]

PowerShell: Export drivers from Windows

This is a very simple PowerShell script, but I found it very handy. I normally use this export/backup method when i need to make sure drivers are the same after reinstallation, or when i need to backup OEM machine before testing and staging them. Hopefully this is something you will find useful to.  If you [...]

PowerShell: Find Bitlocker Recovery keys in AD

This is a simple PowerShell script, that will help you find Bitlocker recovery keys from AD. The PowerShell script below is build to find bitlocker recovery keys from mutiple machine in a list. Simply create a txt file with one PC name on each line and save it. Change the path(Line 2) in the script [...]

PowerShell: Get all distribution packages with distribution Error

If you have an SCCM environment with many distribution points or/and many packages, it can sometimes be difficult to get the total overview of the distribution status directly from the manager console.  In my company, it's very important to have all software available for all distribution points or office locations. From time to time we see [...]

PowerShell: How to digitally sign PowerShell scripts

If your environment has high PowerShell security, so only digitally signed scripts can run on the systems? The easy way is to digitally sign your PowerShell scripts, so they are allowed to execute on the systems. This guide does not include instructions, on how to create a certificate or how to distribute them to client computers.  So [...]

PowerShell: Run PowerShell script on mutiple remote servers

The script below allows you to run PowerShell script on multiple remote servers at once. INFO: You can customize the script by changing the orange text. The first orange text line can be changed if your text file of servers is placed somewhere else. Replace the second orange text line with the PowerShell Script you [...]

PowerShell: Delete Mutiple SCCM Devices from SCCM

PowerShell is, without doubt, the future of administration in SCCM. Because it's faster and easier to do complicated things or add multiple items into SCCM with PowerShell instead of using the GUI. I'm trying to use PowerShell as much as possible, but it's hard to remember all command's, then you don't use them every day, so [...]

Powershell: Add List Of Devices To Collection

This is a very simple PowerShell Script, that will make your daily Operations in SCCM so much easier! This PowerShell script will add a list of computer/devices into a collection. Remember that there are many ways of doing it! But I think this is the easiest way to add bulk devices to a collection. If [...]

By | 2018-06-12T08:56:41+00:00 September 12th, 2017|Categories: PowerShell, SCCM|Tags: , , , , |0 Comments