Did some testing and encountered a "credentials not correct" error. But this time the script actually created the log file and I could verify the script was doing something. After some more investigation I found out that my password contained a "$" which had to be escaped. I dont know if its wanted or necessary but I added a little hint that "$" characters have to be escaped.
Background: Had issues joining our AD and reached out to free-support
While investigating the problem I came across this StackOverflow post
Did some testing and encountered a "credentials not correct" error. But this time the script actually created the log file and I could verify the script was doing something. After some more investigation I found out that my password contained a "$" which had to be escaped. I dont know if its wanted or necessary but I added a little hint that "$" characters have to be escaped.