I have a vbs code that maps network printers. Is it possible to adapt the code (in vbs and not in powershell)
with the following points please:
-1 The script must check 2 AD groups:
--one for user = UsrGroup
--one for computers = CompGroup
- 2 verifying if the printers are already mapped
If user A is member of group "UsrGroup" and the computer where the user is logged on is also member of "Compgroup". The vbs script will map all the network printers that are defined in the code of vbs file.
If the 2 conditions are not done, then it will not map any network printers. Also if the script finds that the same printers are mapped it has to do nothing.
Thanks in advance
Dim multiPrinter, UNCpath1, UNCpath2
UNCpath1 = "\\Server1\printer1"
UNCpath2 = "\\Server2\printer2"
Set multiPrinter = CreateObject("WScript.Network")
WScript.Echo "Your printer is mapped from : " & UNCpath1 _
& "and from : " & UNCpath2
' End of example VBScript