Here’s a handy way to use the cmdlet test-netconnection: Need to check a continuous connection to an end-point? Use the while loop: for the -InformationLevel, you can leave it out, or just use either detailed or quiet
Tag: PowerShell
Using Powershell to Pull API Information
Up until recently, I was familiar with the idea of client pulling down information from a database. A database requires updates, patching, and maintenance. Usually, I’d be the one doing all that care and feeding, additional to taking proper care
Read More
Azure – resetting a password for a Domain Controller VM
I came across a situation the other day. In my Azure Tenant, I have a VM, a domain controller that hosts, well… my domain. I only use it for testing, most recently I was doing some SSPR testing. I only
Read More
Azure – Import users into cloud via CSV file
There’s a few different methods to import users into your Azure tenant. In the Azure Active Directory Portal https://aad.portal.azure.com -> Users -> Bulk Operations -> Bulk create Or you can use a little powershell This will focus on the powershell
Read More
PowerShell – Adding Proxy Addresses by CSV
This is going to be a little different. As per usual, we need to follow our regular set of steps when dealing with a large amount of data that needs validation. 2. Edit the CSV with the proxy email addresses
Read More
PowerShell – Changing Departments for Multiple AD Users
Hostile takeover? All employees of a department being reassigned? We won’t go into ‘how to disable way lots of employees because your upper management said ‘because we told you”. So, we’ll go into changing departments for the entire company. There’s
Read More
PowerShell – Change passwords on multiple AD accounts
If you’re like me, you built a new AD for testing. And if you’re also like me, you imported a whole bunch of users into your AD. Some of those users likely had passwords that didn’t quite meet the domain
Read More
PowerShell – Move AD users via CSV file
This is part of my ‘Finding all Disabled users in AD’ from an earlier post. The backstory is, I used some powershell to import about 1100 dummy users into a newly created AD. Out of 1100 users, 300+ became disabled
Read More
PowerShell – Finding all Disabled users in AD
Need to find all the disabled users in your AD? it’s odd that the built in AD Tools do not have this option. PowerShell to the rescue! All these commands are documented in the Microsoft Get-ADUser cmdlet. I’ve added some
Read More
PowerShell – Importing AD users from CSV
What are the situations you’ll need lots of Dummy AD data? When you want to run some awesomely crafted PowerShell AD scripts, that’s where. I was in a situation a few months ago where I needed replicate a VERY large
Read More