RunWait(@ComSpec & ' /C netsh wlan add profile filename="\\share\folder\name.xml" user=all', '', @SW_HIDE) but it says that profiles are corrupted. When I'm trying to type it manually in CMD it works fine.