Category: PowerShell
-
Creating AD User Accounts Using PowerShell
Whenever someone tells me that my insistence that domain controllers should never have a GUI (Graphical User Interface) I introduce them to the Remote Server Administration Tools, and all is well. Yes, you can manage your Active Directory Domain Services (AD DS) from the comfort of your Windows 11 (or Windows 10) PC with the…
-
Disabling IPv6 with PowerShell
Let me preface this piece by saying that I usually do not disable IPv6. There are advantages to leaving it on (even if you think you are not using it) which I will not go into here. With that said, I was building a server for a lab environment recently, and IPv6 was interfering with…
-
The Secrets of The French…
The first class that I took on Microsoft Windows was with a very nice French-Canadian instructor whose name I think was Denis. He told an interesting story that I wish I had retained the details of. He told us that following The Great War (WW1), the government of France decided that codes and secrets and…
-
Importing PowerShell Modules When You Cannot Install PowerShell Modules.
**Note: This article is written around a single PowerShell module (ExchangeOnlineManagement). However, the steps will work for any PowerShell module. Have at it! –MDG PS C:\> Install-Module -Name ExchangeOnlineManagement PackageManagement\Install-Package : No match was found for the specified search criteria and module name ‘ExchangeOnlineManagement’. Try Get-PSRepository to see all available registered module repositories. At C:\program…
-
PowerShell From Afar
“Hey Mitch, I always hear you talk about running PowerShell against remote computers. How do I do that?” There are several different ways to do this, depending on what exactly you want to do. Preparation We cannot simply create a machine and start working on it remotely. We have to enable remote management by first…
-
Where’s my RSAT?
A close friend and former colleague recently gave me the nickname “Mr. No GUI.” Why? I am big believer in Windows Server Core. I do not believe there should be a GUI on a Windows Server unless it is being used as a desktop. That does not mean that we all have to become command…
-
RSAT Tools
**DISCLOSURE: While I am contracted to Microsoft Corporation, I am not an employee. The articles that I write are not meant to represent the company, nor are they meant to represent me as an employee or spokesman for the company. As has always been the case, all articles on this website represent me and nobody…
-
Changing Default Usernames and E-Mail in M365
**DISCLOSURE: While I am contracted to Microsoft Corporation, I am not an employee. The articles that I write are not meant to represent the company, nor are they meant to represent me as an employee or spokesman for the company. As has always been the case, all articles on this website represent me and nobody…
-
Domain Controller to the Core
**DISCLOSURE: While I am contracted to Microsoft Corporation, I am not an employee. The articles that I write are not meant to represent the company, nor are they meant to represent me as an employee or spokesman for the company. As has always been the case, all articles on this website represent me and nobody…
-
Creating a Lab Domain in PowerShell
I am spending a lot of time in Microsoft 365 these days. Because of my new contract, I found myself needing to build a lab environment from scratch. Yes, I am working in Azure AD, but for my role I realized it would be help to have an on-premise Active Directory Domain Services environment, in…
-
Office 365 Distribution List Question
Hey Mitch! Do you know if we can add a couple hundred users to a distribution list instead of adding them one by one? One of my help desk techs was asked to create several distribution lists with several hundred users, and they do not want to have to scroll through the user list to…
-
Change the Way You Change Text
I remember when I first discovered the mail merge feature… it amazed the twelve-year-old me that I could write a letter once, and then AppleWorks would address that letter to the several hundred people in my database. I was thrilled with it. Last week, I was working with a client who moved a server. No…
-
Which Patches?
It came up in conversation with a friend recently that he believed that a Windows Update (hotfix, patch, whatever you want to call it) broke something on his computer. What can I say? It happens… sometimes. No problem Fred, all you have to do is roll back the updates that were applied last week and…
-
PowerShell: A Colourful Experience
One of the topics I inject into every one of my classes (and frankly, most of my customer conversations) is how to do whatever we are doing in PowerShell. Scripting is one of the ways I make my life easier, and I recommend my students and customers use the knowledge I share to make their…
-
IPv6: Be gone!
Let me start this piece by stating that I am not advocating that we all ignore IPv6. There are many reasons to use it, and there is nothing wrong with it. Sure, it is more complicated than we may like… but then again, so was IPv4 when we were first introduced to it. But alas,…