Hey gents,
I'm looking for a script to map a network drive.
It'll be mapping Z: to \\hostname\share where hostname can be any one of 20 PCs, so I'd like users to be able to run the script and it'll prompt for a hostname or IP address.
It should also use a defined local admin account to map the drive.
So it'll probably be along the lines of:
net use Z:\\hostname\share /USER:LocalAdmin
where the hostname is enterable by the user, ideally into a little pop up box.
Is this do-able? Or might anyone know of an existing script that'll do this?
I need it pretty quick for a project rollout, else i'd go learn VB and do it meself.
Thanks!
I'm looking for a script to map a network drive.
It'll be mapping Z: to \\hostname\share where hostname can be any one of 20 PCs, so I'd like users to be able to run the script and it'll prompt for a hostname or IP address.
It should also use a defined local admin account to map the drive.
So it'll probably be along the lines of:
net use Z:\\hostname\share /USER:LocalAdmin
where the hostname is enterable by the user, ideally into a little pop up box.
Is this do-able? Or might anyone know of an existing script that'll do this?
I need it pretty quick for a project rollout, else i'd go learn VB and do it meself.
Thanks!