Advertisements
Advertisements

Category: Windows Server 2016 PowerShell

In one of my previous posts we installed PowerShell 7 on Windows 10. In my lab I installed PowerShell 7 on my Exchange 2016 Server. While there is no support for Exchange yet, Active Directory cmdlets work. To install the preview you can run the command below from an elevated PowerShell Window: iex “& { […]

Advertisements
Advertisements
Read more

Recently we had a request to update a whole stack of servers registry keys. With PowerShell this is easy to do. In the first step you need to set the location of where you want to work. In this case it was HKLM:\SOFTWARE\Location – Location being where you want to update the key. The command […]

Read more

In any operating system, you may want to uninstall or remove a device like a network card for example that may be causing issues. Launching Device Manager does not show the device and as an example you cannot rename you network card because it says the device already exists. You can run the command below […]

Read more

With PowerShell you can pretty much do anything. In this article we disabled Netbios using a registry key, however you can do the same using WMI and PowerShell as well as removing the tick box for Lmhosts on a Network Card. To do this, you can run the following set of commands: $NICS = Get-WmiObject […]

Read more

Here is a quick tip on firstly how to check which domain controller the FSMO roles are situated on and secondly, moving the FSMO roles with one command. To determine which server/s are holding the the FSMO roles, you can run the command below: netdom query fsmo This will output the following: Schema Master Domain […]

Read more

On one of my client’s server running Windows Server 2012 R2, when you launched PowerShell it would immediately crash with the error: and this would create windows events non-stop on the server as follows: At first you think you have the famous PowerShell Virus (Poweliks) but after downloading the Symantec tool and running it, all […]

Read more

Recently we had a customer that wanted to turn off Netbios on all servers for all interfaces. StackOverflow had a nice script that did this with ease, here is the script: https://stackoverflow.com/questions/34387413/command-line-disable-netbios Happy scripting.

Read more

If you are running Exchange, you are aware that you need to exclude certain folders, processes etc. from scanning for Exchange to run optimally. Now if you have System Center Configuration Manager (SCCM) in your environment, adding exclusions is easy and you can paste many lines in to the list. However with no SCCM and […]

Read more

Ever had that windows service that will not stop and just stays in a stopping state and you cannot reboot the server. And then when you launch task manager you just cannot see it? Well, you are not alone. Let’s say you have the windows update service that is just in a stopping state and […]

Read more

Have you as an IT admin ever wanted to check the replication status of all your Active Directory Servers in 1 go instead of logging onto each one to check the status? With a simple command from PowerShell, you can do so and you can see at a glance if any of the domain controllers […]

Read more