Vbs : delete all files with the same extension in a folder
The next two lines of code allow you to delete all files with a particular extension in a folder. Set obj = CreateObject("Scripting.FileSystemObject") …
The next two lines of code allow you to delete all files with a particular extension in a folder. Set obj = CreateObject("Scripting.FileSystemObject") …
The script allows you to delete all network printers on a workstation / server. ' ' RDR REMOVE NETWORK PRINTER ' ' ' Dim strComputer strComputer = "." Set objWMIService = …
The following script migrates from print server A to server B with the following actions: Map printers to the new server Removal of the workstation printers that are …
The following script installs the FOG agent on fixed workstations at startup. The script must be placed in a group policy (GPO), which executes the script when the …
The following VBS script displays an alert to users at login that the password is soon to expire. The script ' Days before to alert user QtDiasAviso = 7 RedirectRdWeb = …
When setting up an Active Directory, one of the things you want to set up automatically is the mapping of printers to users. Prerequisite: Have a server with the Print …
Context : Temporary profile error on logon For multiple and often unknown reasons, users are connected to their session on a temporary profile. The user does not find his …
The function below is used to check if a user is part of an AD group. The function returns True or False. ' ***************************************************** 'This …
Learn how to automatically map a network drive using a GPO or a script under Active Directory. Complete tutorial with group filtering and best practices.