Tag Archives: Windows Tutorial

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

Windows Logon Script view VBS MsgBox Message

Visual Basic Script Message-Box Pop-up Window

VBS MsgBox Logon Message

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

The VBS 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

The Visual Basic 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.

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

AD User Manager Profile Logon script

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.

How to Command Prompt Open here

Open Command Prompt from selected folder

After opening the command prompt, you usually have to type the path to the folder with “cd” followed by the directory path. However, there is the possibility to open the command prompt in a certain folder, to do this you go to the desired directory in Windows Explorer, and then type “cmd” in the address bar and press the Enter key.

Open Windows Command Prompt from selected folder

The Command Prompt opens in the selected directory path.

If the command prompt is used more often, the PowerShell enabled as the default can be replaced. To do this, go to the settings, under Personalization – Taskbar, Replace Command Prompt with Windows PowerShell in the menu when I right-click the start button or press Windows key+X, here switch to Off.

Replace Command Prompt with Windows PowerShell in the menu when I right-click the start button or press Windows key+X.

This means that with Windows+X instead of the default of PowerShell, the command prompt now appears.

Open Command Prompt from selected folder on Windows 11

On Windows 11 it is more easy, in windows explorer press Shift+F10 the context menu opens with the command prompt, which opens in the selected directory.

Open Command Prompt from selected folder on Windows 11