Powershell
23 posts · all posts
-
SCCM Script – Uninstall McAfee
Here is a short but effective script to be run out of SCCM to completely uninstall McAfee from a device. Obviously EPO will do the same thing but usually you have to wait for th…
-
Backup and restore DHCP with Powershell
This is a helpful script for migrating from one DHCP server to another. With this, you can backup and restore DHCP with powershell. Run this script from a Domain controller or a…
-
Add local ESXi users
For the most part you can use vCenter and powercli to get almost anything you need done for your virtual environment. However, sometimes you might run into a monitoring or manag…
-
Run Powershell commands on many systems
One of the best things about powershell is the ability to run commands on many systems at once or in a loop. There are a few ways to do this and I’ll go over a few of my favorit…
-
Read text from a PDF with Powershell
The other day I helped a co worker with a script he was working on. He needed to read text from a PDF with Powershell. I had done this in the past with autoit but that wasn’t go…
-
Use DeskDock and Wireless ADB to control your phone from your PC wirelessly
Today I want to show you how to use DeskDock to control your phone from your desktop….WIRELESSLY. I have been using DeskDock for a while now and I love it. I don’t love that I h…
-
Create Azure vnet, subnet and Network security group with application policies with powershell
In a previous post I showed you how to create a resource group. The next thing I want to show you is how to create a vnet, subnet and a network security group with application s…
-
Use Powershell profiles
Powershell profiles are like startup programs for powershell. You can have it load in creds, set variables, login to a system, set formatting, and much more. I use a few simple …
-
Create an Azure Resource Group with Powershell
Resource groups are a fundamental component of Azure. Your VMs, Networks, Storage account(s), etc. all live in resource groups. Before we run the command we need to figure out W…
-
Powershell Infogetter
This script will help you gather info on devices in an OU. This script will lookup the devices in the OU you define and then for each it will; Test-NetworkConnection to see if t…
-
Use Powershell to find and delete email from Exchange
Sometimes you need to delete an email from exchange and you usually need to do it in a hurry so Powershell is the fastest way to do this. First you need to have a connection to …
-
Use Powershell to output a list of users’ group membership to csv
Here is a quick and easy script for getting a list users group membership. Before we begin, if you need to know how to connect to Active Directory using powershell see this post…
-
SCCM Script – Disable Windows Firewall
This is a simple script to disable windows firewall for all profiles (Private, Domain, Public). This is useful for a bunch of different reasons that I wont get into but here is …
-
SCCM Script – Disable Weak TLS and SSL
This SCCM script will make sure TLS 1.2 is enabled and disables TLS 1.0, TLS 1.1, SSL 2.0 and SSL 3.0. To create approve and add SCCM Scripts see this post. It will create and s…
-
SCCM Script – Create and Run SCCM Script
This is more of a reference post for my other posts with ACTUAL SCCM scripts in it. This on will show you how to create and run a SCCM script.
-
SCCM Script – Visual C++ Redistributable updater
While windows update will update the VCRedist packages you have installed it will not remove the old versions. Here is a script that can be used from the SCCM scripts section. T…
-
SCCM Script – Force Windows update from SCCM or Microsoft
Sometimes I have a server or workstation that for whatever reason I need to update outside of its scheduled maintenance window. Instead of having to RDP in and update manually I…
-
Chocolatey is awesome
If you have not heard of chocolatey, you are in luck! I will introduce you. Chocolatey is a package management tool for Windows, its a lot like apt or yum if you have used linux…
-
Use Powershell to Create and Add members to Active Directory Groups from csv
This is a task that I feel like there are a ton of ways to do it, this is just mine. With this you create a csv file with two columns; the first is the username of the person yo…
-
Powershell Add Portgroups to VMWare Hosts
If you don’t have licensing for distributed switches in vCenter adding portgroups to a new host or a new cluster can be super time consuming in the UI BUT thankfully VMWare has …
-
Powershell Diagram vCenter
This is a script that I got from someone else but have modified pretty heavily. This will use Powershell to diagram vCenter. This will connect to vCenter, pull a list of cluster…
-
Powershell Install SCCM Client
There have been times where I have run into issues where the SCCM client doesn’t install on a new server or I am trying to finish a server setup quickly and I don’t want to wait…
-
Powershell Connection Examples
Powershell Connection examples






















