veruch es so:
[autoit]Local $pcname[1] = ["PCname"]
For $a = 0 to ubound($pcname) - 1
Local $commandName = "psservice \\" & $pcname[$a] & " setconfig Remote-Registrierung auto"
ConsoleWrite($commandName & @crlf) ;diese Zeilen sind nur zur Kontrolle
Run($commandName, "", @SW_HIDE)
next
mfg autoBert