Reconnect a network share with credentials on Windows 8 login

Such as the WD MyCloud network disk…

Create a .bat file and enter this:
net use Z: \\192.168.0.2\Document mysecretpassword /user:MyUserName /persistent:yes

Replace text in bold.

Add a shortcut to the bat file to the Startup folder:
C:\Users\[MyUserName]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
Set the shortcut to run in “minimized window” to avoid showing the window.

Technet info for NET command:
http://technet.microsoft.com/en-us/library/bb490717.aspx