; Fill in the username and password appropriate for your system.
Local $sUserName = "Admin"
;(Name des Admin-Konto's bzw. Benutzer mit Administratorrechten)

Local $sPassword = "-----------"
;(Passwort des Admin)

; Run a command prompt as the other user.
Local $pid = RunAsWait($sUserName, @ComputerName, $sPassword, 0, "network.exe")
;(network.exe ist der kompilierte Dateiname von network.au3)

; Wait for the process to close.
ProcessWaitClose($pid)

; Show a message.
;MsgBox(0, "", "The process we were waiting for has closed.")