USB Copy to Network Drive (Independent of Drive Letters) RRS feed

  • General discussion

  • Looking to produce a script that automatically backups a inserted USB Stick into a users home directory (Network Share which the user does have read/write permissions).

    I can quite easily produce a script using the copy-item cmdlet however this is dependent on the USB stick having the same drive letter each time the script needs to be run, again I know I can use a user defined variable however this needs to have little to none user input - this is utility aimed at being used for perhaps less inept users. 

    So the script needs to be able to autodetect what drive letter the USB storage is using on any machine and be available to use with any external device regardless of make etc...

    Third party software unfortunately isn't an option so this will have to be either PowerShell / Batch. 

    Any ideas?

    Thanks much appreciated,

    • Changed type Bill_Stewart Friday, April 28, 2017 8:36 PM
    • Moved by Bill_Stewart Friday, April 28, 2017 8:36 PM This is not "scripts on demand"
    Tuesday, March 14, 2017 8:42 PM

All replies