Jump to content


  • 0
duberry_wotsit

Script to identify roaming profile location and remove

Question

I am looking to automate a prcoess as follows..

 

Input AD username

Retrieve network location of AD User Roaming Profile

Retrieve network location of home directory

Copy certain items from roaming profile to home directory

Delete network roaming profile

 

This is purely so helpdesk staff can delete a profile using a tool rather than having to browse to a server and delete manually...

 

I am guessing I can perform this via VBS but am looking for some pointers, I don't have any vbs experience but a starting point would be nice..!

 

Thanks

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

You've got a good start. First break everything down into psuedo code so you know what chunks you need to learn. And you might have better luck asking in a scripting forum than here. Also, if you're looking into making a little tool, you might look at .HTA files. These allow you to combine VBScript, JavaScript, and HTML. So you can make pretty little wrappers around all your code (so your tool could look like a normal Windows wizard).

 

And don't forget to use your favorite search engine. If I plug in "VBScript" "Active Directory" "Roaming Profile" I get quite few hits with sample code that could be tested...

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.