Category: Windows Server

How to convert string to Base64 and vice versa using Powershell

Working with Consul without UI is the correct way to go, which also help you with the productivity!!! (True?, hahaha~~)   Anyway, I’m not allowed to have a UI for it, come down to have read the correct value and make sure it’s the one we want it to be in there, I need to…


TERRAFORM WITH AZURE

Start playing Terraform … Get it downloaded & saved it to a local folder: C:\bin Put this path into local $PATH var by running:

Restart a command line, type in “terraform”:

Once you can see above, “Terraform” is correctly installed.   Due to I only have Azure account, so I’ll start playing with…


DELETING CONTENTS OF A FOLDER CONTAINING FILES WITH OPEN FILE HANDLES USING POWERSHELL

Terminate notepad process Terminate any relevant process that may using that file Terminate any process that is loading that file…   Happy scripting. 🙂


PowerShell: Simple retry logic

 


Forgot Windows Local Admin Password, Let’s get a new one instead of resetting!

I don’t know how to Crack the local admin password, but I know how to become one. 🙂 Following tools is all you need: Ability to Insert CD (ISO) to the VM (Server) Ability to boot VM (Server) from CD Windows Installation CD (ISO), 2012R2, 2012, Win7, 2008R2, 2008, etc… all good   Steps: Shutdown…