#powershell
13 posts · all posts
-
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…
-
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…
-
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












