joshua-d-miller / macOSLAPS

Swift binary that will change a local administrator password to a random generated password. Similar behavior to LAPS for Windows
MIT License
384 stars 58 forks source link

RemovePassChars question #41

Closed Liampowe closed 4 years ago

Liampowe commented 4 years ago

defaults write /Library/Preferences/edu.psu.macoslaps RemovePassChars -string []!~_“|<>,\/{}^' Is what I have set to not use those symbols. The problem is I think the ' is causing problems with the script.

I get this error.Line 4: unexpected EOF while looking for matching `''

Thanks for any help.

Edwinterb commented 4 years ago

have you tried: defaults write /Library/Preferences/edu.psu.macoslaps RemovePassChars -string "[]!~_“|<>,/{}^'"

Liampowe commented 4 years ago

Thought I did. But looks like I double double quoted it using Atom. Thanks for the info.