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 →Archive for December, 2016
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 →