Tag Archives: Windows Tutorial

Windows operating systems are particularly common on personal computers and servers.

Mark Block and Area in Windows Terminal

In addition to the ability to mark a character, a word and lines, windows terminal also provides to mark a block.

A marking mode that can be particularly useful for tabular work. It is allowed to mark and edit information that is directly adjacent to each other, without including the entire lines in the marking and editing.

Mark block and area in Windows Terminal.

The Alt key is used for the block marking. Position the mouse pointer at the beginning or end of the block, press the Alt key together with the left mouse button and drag the marker to the other end of the block. The selected block is automatically copied to the clipboard.

About Windows Terminal (wt)

Windows Terminal is a multi-tabbed terminal emulator developed by Microsoft for Windows 10 and later. As a replacement for Windows Console. It can run any command-line app in a separate tab. It is preconfigured to run Command Prompt, PowerShell, WSL, SSH, and Azure Cloud Shell Connector. Windows Terminal comes with its own rendering back-end. Version 1.11 on Windows 11, command-line apps can run using this newer back-end instead of the old Windows Console.

Since Windows 11 22H2 and Windows Terminal 1.15, Windows Terminal replaces Windows Console as the default.

Terminal is a command-line front-end. It can run multiple command-line apps, including text-based shells in a multi-tabbed window. They has out-of-the-box support for Command Prompt, PowerShell, and Bash on Windows Subsystem for Linux (WSL). It can natively connect to Azure Cloud Shell.

Visual Basic Script Windows Logon with Message-Box

Visual Basic Script Message-Box Pop-up Window

Server administrators have the ability to send message to users to inform them when they log on to the workplace.

VBScript Message-Box (MsgBox) Logon

The Visual Basic Script Message-Box (MsgBox) function is excellent for this purpose. Insert the following 3 lines into an editor (Notepad) and save them as i.e. “logon.bat”.

echo msgbox("Good morning staff. we serve coffee or tea in the lounge bar. Thank you and a nice day!"),vbInformation ,"Message"> %temp%\msg.vbs
%temp%\msg.vbs
erase %temp%\msg.vbs

This VB-Script creates a pop-up window with information through the MsgBox function. The msg.vbs file is saved under %temp% and erase them after execution.

The user can close the opened window by clicking OK.

User Logon script (dsa.msc)

In the AD user administration (dsa.msc) for the corresponding users, enter the file name in the Profile tab at Logon script (logon.bat).

For Windows domain, save the file to \\server\netlogon.

  The netlogon share is located on the server at %systemroot%\SYSVOL\sysvol\[domain]\scripts. If a logon script is already in use, the code lines can be inserted into this script.

Microsoft Visual Basic Scripting Edition

VBScript (“Microsoft Visual Basic Scripting Edition”) is an Active Scripting language developed by Microsoft that is modeled on Visual Basic. It allows Microsoft Windows system administrators to generate powerful tools for managing computers without error handling and with subroutines and other advanced programming constructs. It can give the user complete control over many aspects of their computing environment.

VBScript uses the Component Object Model to access elements of the environment within which it is running. For example, the FileSystemObject (FSO) is used to create, read, update and delete files. VBScript has been installed by default in every desktop release of Microsoft Windows since Windows 98. In Windows Server since Windows NT 4.0 Option Pack; and optionally with Windows CE (depending on the device it is installed on).

A VBScript script must be executed within a host environment, of which there are several provided with Microsoft Windows, including: Windows Script Host (WSH), Internet Explorer (IE), and Internet Information Services (IIS). Additionally, the VBScript hosting environment is embeddable in other programs, through technologies such as the Microsoft Script Control (msscript.ocx).