Jump to content

Mapping drives from non domain pcs via scripts


Recommended Posts

Posted
I'm guessing \ is an escape character.

 

yeah its something like that - just need to write a script to edit the file and where it finds \\ replace with \.

 

Although having thought about this i might see what my boss thinks to converting the csv file into a php page. Users can then type in their username it tells them what their homepath directory is and they then put this into a field in the autoit script and maps the drive.

 

I know its a bit much user imput but what do you guys think?

Guest TheLibrarian
Posted

These PC's are domain PC's, so they can pull a file from a server when they boot.

 

Create the file using a scheduled DSQuery on the server to create the file that contains all of the home directory information for everyone.

 

PC's pull the file (use use xcopy or robocopy so that it doesn't pull if the file is the same), filter the file based on the username entered by the user, map the network drive.

Posted
These PC's are domain PC's, so they can pull a file from a server when they boot.

 

Create the file using a scheduled DSQuery on the server to create the file that contains all of the home directory information for everyone.

 

PC's pull the file (use use xcopy or robocopy so that it doesn't pull if the file is the same), filter the file based on the username entered by the user, map the network drive.

 

They are not domain pc's.

 

I now have it setup so that the export is pulled from ad using the CSVDE command above. They are then processed using a VBS script to replace double backslahes with a single. so for when it was \\\\ it appears becomes \\.

 

This is then xcopied over to the webserver. then a cron job imports into a mysql database using a php script. Users search their username it it gives them their home directory location. Once they have run the search the autoit program is launched from the page. and they enter the home path given and also their user name and password - it then maps the drive.

 

If anybody would like a copy of the scripts let me know.

  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...