PowerShell Inventory Operating Systems in Active Directory
Nov13

PowerShell Inventory Operating Systems in Active Directory

PowerShell Inventory KB ID 0001838 Problem I needed to get a list of operating systems  ‘in-use’ in my active directory this week. bear in mind this will pull information from all enables computer accounts in AD, so if you are ‘not good’ at tidying out old machines and servers you might get a lot of garbage in your output! Solution: PowerShell Inventory Use the following PowerShell. Get-ADComputer -Filter...

Read More
VMware:  PowerCLI Errors
Jun12

VMware: PowerCLI Errors

PowerCLI Errors KB ID 0001830 Problem I was doing some work recently and tried to connect to my vCenter server and was greeted with this. PS C:\Users\administrator.PNL> connect-viserver vc-70.pnl.com connect-viserver : Object reference not set to an instance of an object. At line:1 char:1 + connect-viserver vc-70.pnl.com + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Connect-VIServer], NullReferenceException +...

Read More
PowerCLI: Get Snapshot Information
Jun06

PowerCLI: Get Snapshot Information

Get Snapshot Information KB ID 0001829 Problem The question was asked on Experts Exchange today. Are there any scripts or reports that would give me information on VMware VM’s with snapshots? was pretty sure this was a straight forward one, so I jumped on the test network. Solution: Get Snapshot Information Connect to your vCenter and use the following commands. Connect-viserver vCenter-Name THEN AUTHENTICATE Get-VM |...

Read More
Windows: Copy User Membership to Another User
May30

Windows: Copy User Membership to Another User

Copy User Membership KB ID 0001828 Problem If you have a lot of user groups and simply want to copy/clone one users group membership to another user, then with PowerShell that’s quite simple to do. Solution: Copy User Membership Here I have two users ALane who is a member of a few groups and APatel who is simply a member of domain admins. Although we can see above what groups ALane is a member off let’s prove that will...

Read More
Install Windows Terminal on Windows Server 2022
May22

Install Windows Terminal on Windows Server 2022

Windows Terminal KB ID 0001827 Problem I’ve been aware of Windows Terminal for a while, I’ve just never felt the need to set it up. Most of my work for the website involves me taking screenshots on Windows Server OS. So, when I decided to take a look at it I had to jump through a few hoops to get it to work, in the words of Juan Sánchez Villalobos Ramírez, Chief metallurgist to King Charles V of Spain, “I would save you that...

Read More
Windows: Migrate DHCP HA
May11

Windows: Migrate DHCP HA

Migrate DHCP HA KB ID 0001826 Problem I got an email last week. “Hi thanks for your video. I have two win 2012 DC DHCP on a failover/load balance config and want to migrate to new Win 2022 VMs. What’s the exact procedure? If it’s a single VM it’s easy but I’m not sure about if it’s on a failover setup.” Well migrating the domain controller element I’ve covered before. Migrate From Server...

Read More