Hi all, I'm new to scripting and I was wondering if anyone can help me out.
We have a number of Windows that are running out of space and I would like to move the users home folder which are shard as (username$) don't ask me why before my time. I have done this with a long batch file and I think using a VB script would be the smart way to go.
Task
1. Using the dos command (net share username$ /del) stop all the current user shares by import a userslist.txt file (which will contain a list of all the users).
2. Robocopy the user folder to new location (will do this manually).
3. Using the command (net share username$=d:\users\username) to recreate the shares by also utilizing the userslist.txt file.
Thank you very much in advanced for you help with this
We have a number of Windows that are running out of space and I would like to move the users home folder which are shard as (username$) don't ask me why before my time. I have done this with a long batch file and I think using a VB script would be the smart way to go.
Task
1. Using the dos command (net share username$ /del) stop all the current user shares by import a userslist.txt file (which will contain a list of all the users).
2. Robocopy the user folder to new location (will do this manually).
3. Using the command (net share username$=d:\users\username) to recreate the shares by also utilizing the userslist.txt file.
Thank you very much in advanced for you help with this