/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


Automazation + Change value inside ini file

03/15/2016 585 views
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


All 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

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ