Rob van der Woude's Scripting Pages
Powered by GeSHi

Source code for login_connect_network_drives_based_on_group_membership.bat

(view source code of login_connect_network_drives_based_on_group_membership.bat as plain text)

  1. NET GROUP Marketing /DOMAIN | FINDSTR /R /I /B /C:"%UserName%$" >NUL
  2. IF NOT ERRORLEVEL 1 (
  3. 	NET USE G: \\Server\Marketing /PERSISTENT:No
  4. )

page last modified: 2022-10-20