Disabling NetBIOS over TCPIP

1. Manual Procedure Go to Control Panel Network and Sharing Center   . Click “Change adapter settings“ . Right-Click a Network Interface Card Properties . Select “Internet Protocol Version 4 (TCP/IPv4)” Properties . Click “Advanced…“ . Select “Disable NetBIOS over TCP/IP“ . . 2. Script Here is a script allowing to disable NetBIOS over TCP/IP … Read more

Files and Folders Security with VBS

The following script allows to modify the security of files or folders (including sub-folders and content). In the following example, the following actions are executed: Creation of an INF file in C:\Temp (Security.inf) This INF allows to grant read and write access rights to the folder C:\Program Files\Soft\Folder and the file C:\Windows\system32\File Execution of the INF … Read more

Wait for a Process to Finish with VBScript

Sometimes the .exe process exit directly after launched. In this case, it’s necessary to wait until the process .exe not be there anymore to validate that the command is executed correctly. Here is a possibility to wait for a process to finish before continuing using VBScript. In the following example, we wait the process notepad.exe … Read more

Create Local User with VBScript

This script allows to create a local user using VBScript.   In this example: Creation of a local user (login “dam” / Password “dampwd”) Selection of the option “User cannot change password” Selection of the option “Password never expire” Selection of the option “Account deactivated” To play with local users, we use the property ComputerName … Read more

Update XML with VBScript

This script allows to update data in a XML file. In this example, the following XML file is edited: “C:\Program Files (x86)\Editor\Application\MyFile.xml” The modification will affect the following node in the XML: “//parentnode/targetnode” The new value inside the node is: “Value to add in the node” To play with XML files, the object “Microsoft.XMLDOM” must be used. … Read more

Install Packages with VBScript

This script is a template of package launcher. It gathers many functions allowing to install a package using generic VBScript functions: Check if a package is installed (MSI) using the registry Uninstall a package if installed EXE silent uninstallation Single MSI installation MSI + MST installation EXE silent installation EXE + ISS response file silent … Read more

VBScript Usual Commands

Here is a memento of several useful commands in VBScript (common declarations, check files, folders and registry, create or delete files and folders, copy files and folders).   TechNet: https://technet.microsoft.com/en-us/library/ee198844.aspx W3Schools: http://www.w3schools.com/asp/vbscript_ref_functions.asp   Date/Time, Conversion, Format, Math, Array, String… This article will be updated progressively.   1. Common Declarations Set fso = CreateObject(“scripting.FileSystemObject”) Set WshShell … Read more

Managing Active Directory with VBS

The following scripts (VBS) allows play with Active Directory. It details a way to: Create an Organizational Unit Create a Group in an Organizational Unit Rename a Group List all Groups in an Organizational Unit Create a User in an Organization Unit and assign it to a Group List all members in a Group Delete … Read more