| |||||
| Dernière réponse | |
|---|---|
| Sujet : limitlogin | |
| chailloug | et logoff :
LIMIT_LOGIN_SHARE = "\\testdc\log" '// '// Set the event server for log viewer '// EventServer = "" On Error Resume Next '// '// Create the SOAP client object '// set soapclient = CreateObject("MSSOAP.SoapClient30" ) if err <> 0 then Wscript.echo "SOAP object creation failed. Have you run the LimitLogin client setup? Here are the details: " + err.description Wscript.quit end if '// '// Create the TS object '// Set wshWTS = CreateObject("WTSApiAx.TSServer" ) if err <> 0 then Wscript.echo "TS object creation failed. Have you run the LimitLogin client setup? Here are the details: " + err.description Wscript.quit end if '// '// Create the WSH Shell object '// Set WshShell = WScript.CreateObject("WScript.Shell" ) Set WshSysEnv = WshShell.Environment("PROCESS" ) if err <> 0 then Wscript.echo "WSH Shell Object creation failed. Here are the details: " + err.description Wscript.quit end if Set objNet = WScript.CreateObject("WScript.Network" ) if err <> 0 then Wscript.echo "Network object creation failed" + err.description Wscript.quit end if '// '// init the SOAP xlient object with the WSDL info '// Call soapclient.mssoapinit(LIMIT_LOGIN_SHARE & "\LimitLogin.wsdl", "LimitLogin", "" ) if err <> 0 then Wscript.echo "SOAP initialization failed. Here are the details: " + err.description Wscript.quit end if |
| Vue Rapide de la discussion |
|---|