Azure Resource Manager (ARM) template is a JavaScript Object Notation (JSON) file that defines the infrastructure and configuration for the resources in Azure. There are several ways to find the template for the resources. I usually go to the following places: Microsoft Docs Azure Template References Azure { Read More }
How to restrict Account Operators to see the password in LAPS
The “Local Administrator Password Solution” (LAPS) is a free solution provided by Microsoft to manage local account passwords of domain-joined computers. Passwords are stored in Active Directory (AD) and protected by ACL, so only eligible users can read it or request its reset. You can read How to deploy the { Read More }
How to join a VM to a domain by PowerShell in Azure
I have a script to automate the server provisioning with VMWare on-premises. It`s tied to a WPF form and used Invoke-VMScript (VMWare PowerCLI) to handle the domain join function. You can check the post How to change IP and join a VM into domain by PowerCLI in VMware. I don't see many people used { Read More }
How to push an existing repository from VS Code to Azure DevOps by PowerShell
I have been using Git for a while. In the beginning, I copied the codes to the Azure DevOps via browser then cloned them to computers. Never have problems. Recently, I was preparing a presentation about version control to the team. I want to show the team how to push a local repo to the Azure DevOps. I { Read More }
Use PowerShell to get firewall rules from remote computer Get-FirewallRules
When I am troubleshooting the firewall issues, I would like to see what firewall rules are applied on the server. The normal way is via Windows Firewall with Advanced Security GUI. However, it requires RDP to the server and clicks several places to bring up the following firewall table. I found the { Read More }
How to install Visual Studio Code and configure with Azure Repos for PowerShell scripts
Before I learned about VS Code, I wrote PowerShell scripts in ISE and put them into Dropbox, so I can work on it at different computers. However, Dropbox could not track the changes for the scripts. After I learned VSCode, it became my primary code editor. With Azure Repos (DevOps) extension, I am able to { Read More }
Trading Calculator for risk management and reward risk ratio by PowerShell
Even though I know that risk management is the most important thing in trading, I don't always follow the rule. Lack of discipline leads to blow up my hard working profit in only two days. After the painful days, I commit myself to obey the 2% risk management (the maximum 2% risk per trade of my total { Read More }
How to change IP and join a VM into domain by PowerCLI in VMware
There are several ways that you can change IP and join a VM into a domain in VMware. In automatic VM provisioning, customization specifications can add the VM into domain after VM has been created. However, the customization wouldn't work if the DNS and network environment are complicated or not { Read More }
Schedule SCOM Maintenance Mode by PowerShell GUI Tool
Open SCOM (System Center Operations Manager) console to start a Maintenance Mode could be slow when you are in a large environment. So, I made my own SCOM console for the Maintenance Mode. In this SCOM Maintenance Mode GUI tool, you can search for Windows servers. The input supports wildcard search. It will { Read More }
How to search users across active directory domains in PowerShell (Global Search)
In a big organization, there could be several domains. When users are moved across the domains, I need a script to identify what users are from other domains. In my test environment, I set up an Active Directory infrastructure according to the following diagram from TechNet. I have 3 domain { Read More }