PowerShell

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

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 = "10.3.3.15" $Username = "[email protected]" $PAssword = "P@ssw0rd01" Connect-VIServer -Server $VC …

PS Core | Disconnect VI Session 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 …

Perform Automate Telnet Commands with PowerShell 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 1.1.0.1 PSRemotingProtocolVersion 2.1 Download and install Microsoft .NET Framework 4.5.2 Download and install PowerShell 5.1 …

Install PowerShell 5.1 & Core on Windows 7 Read More »

PowerShell Script to Join AD Domain

PowerShell Script to Join AD Domain Verify DNS Server is configured correctly #Verify DNS Server $DNSServer= "192.168.1.200" 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 …

PowerShell Script to Join AD Domain Read More »

Scroll to Top