Windows NPS with PEAP-MSCHAPv2 Authentication

Components in this lab PEAP (Protected Extensible Authentication Protocol) Overview Configuration of Microsoft CA Server Configuration of Debian 10 ISC DHCP Server Configuration of NPS with PEAP-MSCHAPv2 Configuration of FortiGate 60E Configuration of Cisco WLC 2504 Connecting from Windows 10 Machine

Delete file that locked by Windows Process

Steps to delete file that locked by Windows Process Open Task Manager – Performance – Open Resource Manager Go to CPU – Associated Handles and search for the file which locked by Windows Process Right click on the process which locked the file to end / kill it, and you should be able to delete … Read more

PS Core | Disconnect VI Session

Steps to Disconnect VI Session with PowerCLI on PowerShell Core Login to vCenter with valid Username & Password #PowerCLI – PowerShell Core on Windows 10 #First Time Only Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$false Set-PowerCLIConfiguration -ParticipateInCeip $true #Import VMware Module Import-Module VMware.VimAutomation.Core #Connect to vCenter $VC = “” $Username = “[email protected]” $PAssword = “[email protected]” Connect-VIServer -Server $VC … Read more

Perform Automate Telnet Commands with PowerShell

Steps on how to perform automate telnet commands with PowerShell WASP (Windows Automation Snapin for PowerShell) Install Chocolatey Package Manager by following my previous post Install the WASP Module #Install wasp choco install wasp -y #Copy the following modules to Windows PowerShell Module Path copy-item C:\ProgramData\chocolatey\lib\wasp -Recurse -Destination C:\Windows\system32\WindowsPowerShell\v1.0\Modules copy-item C:\ProgramData\chocolatey\lib\autoload -Recurse -Destination C:\Windows\system32\WindowsPowerShell\v1.0\Modules copy-item … Read more

Install PowerShell 5.1 & Core on Windows 7

Refer to the steps below on how to install PowerShell 5.1 & Core on Windows 7 Verify the PowerShell version installed PS C:\Users\administrator> $PSVersionTable Name Value —- —– CLRVersion 2.0.50727.8800 BuildVersion 6.1.7601.17514 PSVersion 2.0 WSManStackVersion 2.0 PSCompatibleVersions {1.0, 2.0} SerializationVersion PSRemotingProtocolVersion 2.1 Download and install Microsoft .NET Framework 4.5.2 Download and install PowerShell 5.1 … Read more

PowerShell to Provision User Account in AD

Refer to the steps on how to use powershell to provision user account in AD for lab testing purpose #Create a New OU $OU = “UAT” New-ADOrganizationalUnit -Name $OU #Parameter for New Users $Path = Get-ADOrganizationalUnit -Filter {Name -eq $OU} $User = “UAT” $UPN = “” $LastName = “TEST” $Password = “[email protected]!@#$” #To create 10 … Read more

PowerShell Script to Join AD Domain

PowerShell Script to Join AD Domain Verify DNS Server is configured correctly #Verify DNS Server $DNSServer= “” if ((Get-DnsClientServerAddress -InterfaceAlias “Ethernet0” -AddressFamily IPv4).ServerAddresses -eq $DNSServer) { Write-Host -ForegroundColor Green “DNS Server is” $DNSServer } else { Set-DnsClientServerAddress -InterfaceAlias “Ethernet0” -ServerAddresses $DNSServer } Prepare an AES Key file to encrypt the Password for Domain Administrator and … Read more

Send Email via Port 587 with Openssl

Please refer to the steps below to send Email via Port 587 with openssl Telnet cannot be used as once you issues STARTTLS, the session will be encrypted and you will not be able to enter any commands Port 587 – Securing SMTP communications using Transport Layer Security (TLS). STARTTLS Prepare your username & password … Read more

PowerShell-Bulk Add & Remove Email Addresses

I come across a requirement from my client to change their existing Email Address to new Email Address for 200 users, and I had prepare the following PowerShell to update the ProxyAddresses in Active Directory to refresh this changes Get all users’ SamAccountName &¬†DistinguishedName from the OU where all users created Defined the Old & … Read more