So let’s say you are doing a migration from the local exchange server to Office 365 and you forgot to update the UPN field in Active Directory to match the domain of the email address. If this happens, you need to update the username within Office 365. Fortunately, I can show you how to do this using PowerShell.
If you are running an Office 365 migration for a larger number of users and you would rather not sift through hundreds of user accounts to update their UserPrincipalName Attribute in order to have their username be accurate in Office 365 then have I got the script for you! This script will update UPN for everyone within a specific OU, or all in the directory using PowerShell.
Often time system administrators are asked to make company-wide changes. These can be very hard to do unless you run a PowerShell script. Many scripts that you write or find online are unable to run with a generic error message saying you need to enable execution of PowerShell scripts. This article shows very briefly how to fix this.
PowerShell command needed to enable execution of PowerShell scripts
Enter the following commands within PowerShell run as administrator:
You need to have administrative rights to the computer/server you are using in order for this command to run successfully.
Now that you have run this command, you can take advantage of some of the following scripts:
Ever wonder how to beat the speed limitation on the network interface card (NIC)? Or better yet, provide a redundant connection to your server? I set out to research how to make this happen. Through my research, I found out about network teaming on Windows Server 2012 R2, and how it can provide both speed and redundancy for a server infrastructure. This article shows you briefly how to configure network teaming on Windows Server. The server is a Dell PowerEdge server with a quad port NIC. I’m going to connect all four ports into a Link Aggregated Connection Protocol (LACP) mode.
I was trying to create a partition in the vFlash memory of the iDRAC controller for this Dell PowerEdge server that I was building. I needed to create it using the Server 2012r2 ISO image file. Well, the Dell tech had me run a firmware update. Turns out when I tried to update, the update got stuck. This article will show who to clear a stuck iDRAC job queue.
I was struggling the other day with activating Windows Server 2012 R2. It kept saying the key was invalid, I know it was correct. I ended up calling Microsoft and this is what they had me do.
Sometimes you want to install programs for all users to be able to use on a Remote Desktop Session Host environment. If you are installing a program that is not installed using an MSI file, you need to run the following command before installing:
This fix applies if you are running a “quick” install of Remote Desktop Services on a single server. It will fail most of the time, unless you perform the following workaround.
At one point in time, I found myself needing to move data from one server to a new server. Often times this happens when replacing a server. So the server had about a terabyte of data on it. Pretty small, considering. But there were hundreds of thousands of files and folders.
I could just copy this data using Windows Explorer, but that isn’t as fun! I set out to build a script to copy this data and I used Windows built in utility called Robocopy.
This utility is epic. There are so many things you can do with it. I’m going to highlight just a few for you.
There are a number of things that can cause your computer to become slow. Fortunately, there is a fix for your slow computer with a simple tool. Now sometimes, there are things that slow a computer down that one tool cannot fix.
However, this tool is a great start, CCleaner offers the following features:
- Browser Clean-up
- Registry Cleaning
- Startup Optimization
- Programs Clean-up