Hi guys,
In my organization we have an old CRM system that I have to open a directory for every user with running files.
Is it possible to create a script that will do it for me?
my dream is to open a new user in AD in specific OU and that user will get a logon script that will copy one directory(for example "\\192.168.128.32\Tsclients\ashkelon\ashdal1\medical " to " \\192.168.128.32\Tsclients\ashkelon\%username%\medical " and change value in " \\192.168.128.32\Tsclients\ashkelon\%username%\medical\medical.ini " file from " name=ashdal1 " to " name=%username "

0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Answers

1
It is possible to create a script to do this.
Rather than a logon script, it may be better to have a script that specifically sets up users for this app as a one time run thing.

Powershell can:
  • Add users to AD groups
  • Copy Files/folders
  • Edit ini Files
No one here is going to write it for you, but if you have a go at writing one yourself and run into problems then people will be more than happy to help you with your code.

There are many examples of the individual taks you require to perform, you will need to combine them into a script - probably with a user input box to specify that username that needs to be worked with and then test, test, test.

Don't forget error trapping - if you enter an incorrect username, then the script shoud stop and not action the other functions etc.

Hope that helps,
Dunnpy
Answered 03/15/2016 by: dunnpy
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity