I would like to start a series of blog posts sharing PowerShell scripts to speed up our solution operations. Today, I am going to share a script file that can select a network adapter, changes its DNS address, then join the server to the domain you s…
Windows 10 & change DNS https://www.windowscentral.com/how-change-your-pcs-dns-settings-windows-10 Google Public DNS addresses: 8.8.8.8 and 8.8.4.4 OpenDNS addresses: 208.67.222.222 and 208.67.220.220 $ wmic nic get NetConnectionID $ netsh $ interfac…
Backgroup: I have an AWS Managed Active Directory(domain.com). I created a DHCP options set  to my domain.com and DNS IP address. Finally I applied it to the VPC. By default all of your EC2 instance in this VPC cannot resolve region-name.compute.inte…
用我发明的powershell填坑法,加windows的dns服务器.从调整dns服务器解析ip时间段的角度,解决网站负载均衡问题. ------------------------win2012r2中,用powershell管理dns服务器的,命令列表-------------------------------- 共计100条指令,即100招,下面演示如何用其中4招秒杀bind的. PS C:\Users\admin> get-command * -module DnsServer Comm…
Hello everyone, this is the third post of the series. .   Background =============== In my solution, I have 15 Windows hosts. I need to configure them from the OS installation to configure fail over cluster and then create and run VMs on them. Withou…
Hello everyone, this is the second post of the series. .   Background =============== In my environment, I have 15 Windows hosts. I need to configure them from the OS installation to configure fail over cluster and then create and run VMs on them. Wi…
使用Get-User命令去寻找group membership of a domain user $((Get-ADUser Wendy -Properties *).MemberOf -split (“,”) | Select-String -SimpleMatch “CN=”) -replace “CN=”,”” 扩展1️:获取在群组Wendy和群组Gaga中的所有用户 Get-ADUser -Filter * -SearchScope Subtree -SearchBase "dc=xx,…
Set up the Workbook In this example, there are two tables -- Raw Materials and Packaging -- and each table is on a separate worksheet. The Raw Materials table is on the sheet named Materials, and the Packaging table is on the sheet named Packaging. T…
Below is the example to convert the ps script into userdata for terraform to create instance and auto join domain.  But to make it work, we need to create a new DHCP options set for related VPC and have the domain-name= domain.com and domain-name-ser…
error: more than one device and emulator 如果出现上面那种情况 请关闭  ide 输入下面的  再次重新启动 模拟器 如果实际上只有一个设备或模拟器,并且查到有offline的状态:那就说明是ADB本身的BUG所导致的,就需要用如下的方法处理下了:C:\Users\gaojs>adb kill-serverC:\Users\gaojs>taskkill /f /im adb.exe第一条命令是杀ADB的服务,第二条命令是杀ADB的进程!如果第一条没有用,…