PcExpert Posted December 25, 2008 Share Posted December 25, 2008 Hi all,I just setup an ISA server (2006 version), to disconnect a session, you need to do it by hand. I discovered that you can automate it by scripting some lines in the .VBS fomat. But since I dont have any experience with that programming language, I thought that AutoIT might be able to do it, I just dont know if and how I could do that.Could somebody please tell me if its possible and maybe give me an example?this is the webpage: http://msdn.microsoft.com/en-us/library/aa502230.aspxAnd I need to do something with the function 'DisconnectSession' (http://msdn.microsoft.com/en-us/library/aa502231.aspx)Thanks in advance! Link to comment Share on other sites More sharing options...
PsaltyDS Posted December 25, 2008 Share Posted December 25, 2008 Hi all, I just setup an ISA server (2006 version), to disconnect a session, you need to do it by hand. I discovered that you can automate it by scripting some lines in the .VBS fomat. But since I dont have any experience with that programming language, I thought that AutoIT might be able to do it, I just dont know if and how I could do that. Could somebody please tell me if its possible and maybe give me an example? this is the webpage: http://msdn.microsoft.com/en-us/library/aa502230.aspx And I need to do something with the function 'DisconnectSession' (http://msdn.microsoft.com/en-us/library/aa502231.aspx) Thanks in advance! I don't see any VBS (Visual Basic Scipt) there. It mentions VB, but that is not the same thing as VBS. Looks more like you need to use a DllCall() to Msfpccom.dll. The call looks really basic, though. No pointer-to-a-pointer-to-a-structure wierdness. Maybe: $sServer = "MyServer" $sSessID = "MySessionID" $avRET = DllCall("Msfpccom.dll", "int", "DisconnectSession", "str", $sServer, "str", $sSessID) $iErrSav = @error MsgBox(64, "Result", "Return = " & $avRET[0] & " @error = " & $iErrSav) Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now