Automazation + Change value inside ini file
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
Answers (1)
Please log in to answer
Posted by:
dunnpy
8 years ago
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:
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
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
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