PowerShell – System.Collections.ArrayList – Add versus AddRange

Background Recently, I converted a small Powershell code from using Array to ArrayList. Upon the conversion, the Out-Gridview no longer displayed the actual contents of the collection, but the collection's metadata.   Image Here is a sample of what is displayed:- Image -01 Textual -01 Columns Length LongLength Rank IsReadOnly IsFixedSized IsSynchronized Count   Sample … Continue reading PowerShell – System.Collections.ArrayList – Add versus AddRange

PowerShell:- File System – FileInfo

Background Determining whether a file is empty could involve a few application logic-specific steps or more generic API calls. Here is a sample code in Powershell.   Script Outline Command Line Arguments file Sanitize Variables file If the file is not specified, raise an exception Exception Type:- System.ArgumentNullException If the specified file does not exist, … Continue reading PowerShell:- File System – FileInfo

PowerShell:- File System – Create new file

Background I need to generate data files on a scheduled basis. The file's name should reflect the current time.   Script Outline Command Line Arguments folder filenamePrefix filenameSuffix fileExt fileTemplate Sanitize Variables folder If the folder is not specified, use the current folder Use Get-Location command Sanitize folder Make sure that it is not a … Continue reading PowerShell:- File System – Create new file

Dawson Jarrell, The Remnant Radio – Bible Book of Jeremiah

Videos Prophetic The Remnant Radio Testing the Prophets – Testing the Prophecies Given in 2020 Segments Testing the Prophets – Testing the Prophecies Given in 2020 - Dawson Jarrell Date Published:- 2021-July-1st Date Added:- 2021-July-1st Link Full Testing the Prophets – Testing the Prophecies Given in 2020 Channel:- The Remnant Radio Date Streamed Live:- 2020-December-31st … Continue reading Dawson Jarrell, The Remnant Radio – Bible Book of Jeremiah

Windows – Start Administrator Command Shell Window

Background I find myself in a MS Windows Command Shell Window and will like to launch a new command shell window. Because of what I need to do within the new command shell window, I need it to be an Administrator Command Shell.   Here are some ways to bring that about Outline Powershell Start … Continue reading Windows – Start Administrator Command Shell Window

PowerShell – Network Command – “Test-NetConnection”

Background Continuing with preparing for our planned Network work. Lineage PowerShell – Network Command – "Get-NetAdapter" Link Test-NetConnection Outline The Test-NetCommand provides basic network connection testing over the TCP Protocol. Exercises Exercise - Basic Outline Basic network connectivity test TCP Network Port Test Network Port Number specified as numeric "Common TCP" Port Port Test Diagnostic … Continue reading PowerShell – Network Command – “Test-NetConnection”

PowerShell – Network Command – “Get-NetAdapter”

Background Have a few days of network diagnostic work ahead. And, so let us prepare and go through our requirements worksheet. Get-NetAdapter Outline The Get-NetAdapter command lists the network adapter on our machine. Syntax Sample Output Output-Image Output-Text Explanation I am on a laptop using a wireless connection The key points for me are My … Continue reading PowerShell – Network Command – “Get-NetAdapter”