I am currently working on some scenarios that automate a lot of things and have a fairly average size. I began to follow some things to make my scripts universal and portable, for example:
- administrator login for script planning
- use of absolute paths
- use of configuration files
- use write-host when developing and switching to logging during deployment (debugging)
I would be very interested to know if there are any standard methods and recommendations for scripts that aim to make the life of script developers simple. I am working on perl and powershell, so more generalized tips would be welcome and appreciated.
Thanks for any help in advance. steeluser
source share