This is basic sys admin 101 stuff, but it made me so happy I had to post. And who doesn’t like a little PS 101? Case in point, needed to stop and disable several services. I could open services.msc, click on each one, stop, and then disable. Or I could use Powershell. First, we need […]
Read More →Category: Tech
Change network adapter priority in Windows 10
Turns out Windows 10 is missing the old network adapter priority under advanced settings. Remember this? Noticed my wireless adapter had priority while I was uploading some VHD’s to Azure. When I checked the priority I saw I was missing something. No Adapaters and Bindings tab. After a quick search online I discovered they removed […]
Read More →Blocked 3 Asian Pacific subnets
Tired of logs full of connection attempts from hosts in these subnets. All from Asian Pacific IPs. So I just blocked 3 /8’s. That’s over 16 million IP’s per subnet. I wish there was a process for revoking IP’s from abusive users. If you want to block them here are the subnets I blocked and […]
Read More →Powershell script to add a local administrator user to Windows server
A simple script to create and add a local administrator to a Windows VM.
Read More →The blog has been updated
Now featuring https. For years I’ve been wanting to enable https but WordPress fought me tooth and nail on it (thanks SEO friendly rewriting). Well, I finally figured it out. ?Simply changing the URL in settings was not working, neither was the wp-config by itself. Here is what I ended up adding to wp-config.php. I […]
Read More →Powershell script to add administrator to Windows server
A simple script to create and add an administrator to a Windows server. Not setup to work remotely. Script asks for the username. Then creates the user, creates a password, adds the user to the administrators group and writes the username, password, server name, and IP address to the powershell window. I RDP into a […]
Read More →Powershell script to automate Windows Updates using PSWindowsUpdate
PSWindowsUpdate is a module that automates windows updates using PowerShell. I work with a lot of desperate environments that aren’t connectedand not all machines are on a domain. The ones that are use different domains that are not trusted. That means WSUS isn’t an option. There are some third party options that could work like […]
Read More →Copy blobs between storage accounts using AzCopy
The easy way is using AzCopy. There are also methods to do this asynchronously in powershell but I like the path of least resistance. Install Microsoft Azure Storage Tools from here.?http://aka.ms/downloadazcopy Get the URL for both storage account containers that contain the blob. Get the name of the blob Get the access keys for both […]
Read More →Enable Microsoft AntiMalware UI in Azure virtual machine
Simple powershell to enable the Microsoft Antimalware UI in an Azure virtual machine. This is the antimalware extension you can install on deployment, or through security center. Seeing this when trying to open System Center Endpoint Protection on an Azure virtual machine? By default the UI is disabled on an Azure VM. To enable you […]
Read More →Bulk add DNS records to domains using GoDaddy DNS
As part of a migration into Azure I need to add the?awverify cname record to a LOT of domains. GoDaddy actually made this easy with the bulk command in their portal UI. Login to GoDaddy and find one of the domains you need to add the records to. Search for the domain and then click […]
Read More →