VBS equ. runas avec password
Merci pour ta réponse,
j'ai trouvé en me creusant la tete :
Il faut néamoins telechager psexec...
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
on error resume next
Set WshShell = CreateObject("wscript.Shell")
strcmd = "cmd /k "
user = " -u " & chr (34) & "MonUser" & chr (34)
mdp = " -p " & chr (34) & "MonPassword" & chr (34)
soft = " " & chr (34) & "C:\toto.EXE" & chr (34)
strCmdLine = strcmd & "psexec" & user & mdp & soft
'wscript.echo strcmdline
'WshShell.Run strCmdLine, 9, False
WshShell.Run strCmdLine, 0, true |
Voila une base....
Merci
___________________________________
PS bbil: comprend dans le sens contenir...