How to Remove Built-in Teams from Microsoft Windows 11
Windows 11 seems to come with a built-in instance of Microsoft Teams. If you are using Office 365 then you end with two versions. Use the following to check you have the default instance of Teams:
Get-AppxPackage -Name teams If you have the default Teams installed you will get something like:
To uninstall this package you can use Remove-AppxPackage, just pipe the output from the previous command:
Get-AppxPackage -Name MicrosoftTeams | Remove-AppxPackage -ErrorAction stop If successful then running the original command should have no output:
Find Processor Architecture in Windows
I was trying to install some software remotely today and was it wasn’t going well. All the others had worked fine, after some investigation I found:
It has been a while since I have seen error code 1633. From distant memory 1633 is a 32 bit OS and a 64 bit installer? For the life of me I could not remember how to check that. After going through my random txt files I found:
How to Install Graphics Tools in Windows 10 and 11
The Windows Graphics Tools are used for Direct3D application development. To install you need to open an elevated command prompt, then use the following to check if it is currently installed:
dism /online /Get-Capabilities This will output the currently available options/packages and see if they are currently installed (state):
To install the windows graphics tools use the following to download and install:
dism /online /add-capability /capabilityname:Tools.Graphics.DirectX~~~~0.0.1.0 Which if successful should look like:
Listing Live DNS Requests
Sometimes you want to see exactly what a computer or application is trying to communicate with. Obviously you can take full a network packet capture and filter the results and correlate the behavior with the DNS traffic, but sometimes it is easier to watch these results live as they happen. One quick way to do this is use Wireshark, however not the full client but the command line version tshark. Tshark allows you to filter on specific facets of DNS giving you a cleaner output especially when you are only interested in domains that an application is talking to.
Creating a Storage Space in Windows 10 with Powershell
I’m not sure if this is due to system in question being in the insider fast ring (Build 19041 version 10.0.19041), however when trying to create a storage space via the GUI I got the following error:
Can’t prepare drives Close all applications that are accessing the drive and then try again. The parameter is incorrect. (0x00000057) You have to make sure the disks are clear of partitions otherwise they will not even appear in the create storage pool wizard.
Searching for a DHCP Lease by MAC Address in Active Directory Forest
In a previous post (3 years 4 months 2 days ago) I wrote about searching DHCP leases directly on a DHCP server which was rather limiting especially if you are in larger network. These days I use the following script from a management desktop running RSAT which automatically lists authorised DHCP servers in the forest and searches though all scopes:
$AllDhcpServers = Get-DhcpServerInDC $result = @( @($AllDhcpServers).foreach({ @(Get-DhcpServerv4Scope -ComputerName $.DnsName | Get-DhcpServerv4Lease -ComputerName $.
Installing RSAT on Windows 10
As of the Windows 10 October 2018 update, installing the Remote Server Administration Tools (RSAT) has changed:
Starting with Windows 10 October 2018 Update, RSAT is included as a set of “Features on Demand” in Windows 10 itself. See “Install Instructions”
So rather than a separate download RSAT has joined features on demand. This is an improvement in my opinion as the install is closer tied to the OS. Previously you would have to wait for the tools to be updated for newer versions of windows and that did not seem to happen very quickly.
Searching for a DHCP Lease by MAC Address
Update
Note, if you are looking to search for DHCP information across all or multiple DHCP servers in the forest then this is a quicker method. The below is still valid if you are searching a single server.
Sometimes in a large infrastructure it can be hard to find new devices added to the network. Being able to search on MAC address across all DHCP scopes comes in handy. With powershell and Windows DHCP server this is easy to do.
Reporting the Machine Hardware Model Number from Windows
You can pull this information from wmi. This method is useful when you are on the other side of the world to the machine you are working on. All you need is a local or remote shell via psexec or powershell, and type the following:
wmic csproduct get name Here are some sample results:
Name HP Z420 Workstation Name PRIMERGY BX924 S4 Name ProLiant DL380 G7
Quick Method to List Disks in Windows
There are numerous ways to do this. However using the WMI from a command prompt does the job:
wmic diskdrive list brief It is quick and easy to remember, having the benefit that it can be run remotely using a remote shell like Powershell or psexec. Sample output:
C:\windows\system32>wmic diskdrive list brief Caption DeviceID Model Partitions Size LITEONIT LMT-128M3M \.\PHYSICALDRIVE0 LITEONIT LMT-128M3M 2 128034708480 Even though it is easy to remember, I’m putting it here as I’ll forget.