Dealer Network Home
Dealer Network Home    DNet-KM.com    DNet-KM.com  Hop To Forum Categories  Making The Connection    BATCH FILE FOR SMB SCANNING
Go
New
Find
Notify
Tools
Reply
  
BATCH FILE FOR SMB SCANNING
 Login/Join 
Imaging god
Picture of Scotty
Posted
I recently had to deploy SMB scanning to about 20 workstations and decided to write a batch file to make my life easier.

In an ongoing effort to make all of your lives easier as well, I decided to post it here.

A little bit about what it does:

1. Creates a user 'Scanner' with a password of 'Kyocera99'
2. Creates a folder on all user's desktop and shares it.
3. Grants Full Access to the Folder
4. Creates File Sharing Exception in XP Firewall

This message has been edited. Last edited by: Scotty,


Relax? When?!
 
Posts: 1131 | Registered: November 15, 2005Reply With QuoteReport This Post
Imaging god
Picture of Scotty
Posted Hide Post
rem * SET UP A USER ACCOUNT FOR THE SCANNER TO USE *
rem * THE USERNAME HERE IS 'Scanner' and the Password is 'Kyocera99' *
rem * THE SCAN PATH IS "C:\Documents and Settings\All Users\Desktop\Scans\" *
rem * CHANGE THEM TO WHATEVER YOU WANT *
rem
net user Scanner Kyocera99 /ADD /EXPIRES:NEVER /COMMENT:"Kyocera Copier User Account for Scanning"
rem
rem * SET UP A FOLDER TO SCAN TO *
rem
md "%AllUsersProfile%\Desktop\Scans"
rem
rem * SHARE THE FOLDER - IF IT'S A SERVER GRANT FULL ACCESS TO USER *
rem
net share Scans="%AllUsersProfile%\Desktop\Scans" /grant:Scanner,FULL
rem
net share Scans="%AllUsersProfile%\Desktop\Scans"
rem
rem * AN ERROR HERE IS NORMAL *
rem
rem * MAKE SURE WINDOWS FIREWALL HAS AN EXCEPTION FOR FILE AND PRINTER SHARING *
rem
netsh firewall set service type=FILEANDPRINT mode=ENABLE
rem
rem * FINISHED *
pause

This message has been edited. Last edited by: Scotty,


Relax? When?!
 
Posts: 1131 | Registered: November 15, 2005Reply With QuoteReport This Post
Senior Member
Posted Hide Post
dude, you're awesome Smile
 
Posts: 202 | Registered: November 08, 2005Reply With QuoteReport This Post
Full Member
Picture of mc
Posted Hide Post
thank you so much. i can't wait to try it.
 
Posts: 22 | Location: Kansas | Registered: September 09, 2007Reply With QuoteReport This Post



Imaging god
Picture of Scotty
Posted Hide Post
Another tip for using this - slip it into the login script for their users (if they use one) a couple of days before you go out and all the workstations will be ready to go - just add them into the address book.


Relax? When?!
 
Posts: 1131 | Registered: November 15, 2005Reply With QuoteReport This Post
  Powered by Social Strata  
 

Dealer Network Home    DNet-KM.com    DNet-KM.com  Hop To Forum Categories  Making The Connection    BATCH FILE FOR SMB SCANNING

© 2002-2012 Dealer Network
home | about | rules | donation | message board | contact