Category: PowerShell
-
A PowerShell Gotcha
I was bulk-creating users for a test environment today, and in doing so, I borrowed a script from an article online, which set the password for all users to ‘Pa$$word’ I usually use a variation on the same for test environments, but I opted to leave this one as it was. The script worked. A…
-
Deleting User Profiles
“How do I delete old users from a Windows 10 computer? I log in as an administrator, navigate to c:\Users\, and delete their tree.” NO! In fact, HELL NO! There are several reasons why you might want to delete a user profile from a computer. ranging from termination of employment to reallocation of systems to……
-
Default Gateway Corrections
The default gateway setting in Windows (and every other networked operating system) is a simple setting that tells your network interface card (NIC) where to send traffic when sending it outside of your domain segment. More often than not, it will be the .1 address of a network segment (e.g.: 10.0.0.1), but that is not…
-
SCOM Prerequisites: A Web of Confusion
Microsoft’s System Center Operations Manager (SCOM) has several prerequisites that must be installed for each component, and frankly, some of those can be cumbersome to get around. Of course, it is nice for the SCOM installation console to let us know that Report Viewer (a free download from Microsoft, link provided in the notifications window)…
-
SCOM Management Packs: Removing Foreign Languages
When you go to add Management Packs (MPs) to System Center Operations Manager, there is that temptation to be lazy and just add everything. This will clog your environment with a lot of things you do not need… including MPs in languages that you likely do not speak, read, or care about (within the context…
-
Operations Manager: How to List What Management Packs Are Installed?
A client asked me recently how to determine what Management Packs he had installed in his System Center Operations Manager (SCOM) infrastructure. I told him to open his Management Console and navigate to Administration – Installed Management Packs. It was a short conversation. Easy peasy, right? Here’s a list, go with G-d. Twenty minutes later, my phone…
-
SCOM License – Upgrade?
The installation of System Center Operations Manager (SCOM) 2016 does not ask you anywhere to enter a license key. Then when you run the Operations Console, you are shown a required task to Upgrade to full version. When you click on the link, it opens a website that is less than helpful. In fact, when you…
-
Active Directory Recycle Bin
A few years ago, Microsoft introduced the Active Directory Recycle Bin to Windows Server. Wonderful! It is not enabled out of the box, but it is reasonably simple to enable… except, it is not. Firstly, you can do it in the GUI… Open the Active Directory Administrative Center, navigate to local (local), and then in the…
-
DCPromo No More… PowerShell!
I needed to build a new domain controller for a friend’s company recently. It is something that I have done so many times over the past two decades that some things are just instinctive… like typing dcpromo to create a domain controller. Right… I had forgotten about that. dcpromo has been deprecated. You could go…
-
Renaming Files en Mass…
I take a lot of pictures… not only with my phone, but also with my Nikon DSLR camera. It is one of my hobbies… I am not very good at it, but I enjoy it nonetheless. Keeping track of hundreds or thousands of pictures is easy, as long as you copy them into the appropriate…
-
Scheduling Server Restarts
If you manage servers you have likely come to a point where you finished doing work and got a prompt ‘Your server needs to reboot. Reboot now?’ Well you can’t reboot now… not during business hours. I guess you’ll have to come back tonight… or this weekend, right? Wrong. Scheduling a reboot is actually pretty…
-
Resize Live Virtual Hard Drives
I have used Hyper-V for as long as there has been Hyper-V. Today I use it much less than I once did, but it is still handy for running VMs on my laptop. I run a particular VM called ‘Sandbox’ in which I do all sorts of things that I would not want to…
-
Remotely Enable RDP
Like most IT Managers I manage myriad servers, most of which are both remote and virtual. So when I configure them initially I make sure that I can manage them remotely… including in most cases the ability to connect via RDP (Remote Desktop). But what happens if you have a server that you need to…
-
Wireless Networks: Know your strengths!
It is not uncommon for me to hear people complain that their wireless network is not stable, is not working properly, disconnects, is slow, and just isn’t good enough. Unfortunately, unless you are a networking specialist, wireless connectivity is essentially a binary state: It works… or it doesn’t work. There are three things I ask…