|
|
|||||||
See Win32Admin.DLL for some additional COM functionality. The script at the web site has a combination of documentation and example code. Let me know what additional functionality you would like added. As it stands now, I will be adding code every few days so that this DLL will provide unparalleled Win32 power for your KiXtart code. Some sample code... code:break ON [ 08. October 2002, 13:27: Message edited by: Howard Bullock ] |
||||||||
|
|
|||||||
Here is a list of functionality I am considering adding to Win32Admin.DLL after completing the basic stuff. User properties Terminal Server user property support NETLOGON support (secure channels, SAM replcation, etc) Read/Write CAB files Read/Write ZIP files Create & manage child processes DFS support (no place to test yet) Socket support (maybe) Mini HTTP Daemon ? Read/Write delimited files ACL reading/modification Has anyone looked at this yet? If so, what do you want to see in it? |
||||||||
|
|
|||||||
I looked at it, but I saw it too late in the day to try it out. What advantages does this have over ADSI methods? I'd like to see some Exchange functionality added. |
||||||||
|
|
|||||||
Oh yeah, and a BIGGIE would be remote execution of commands while passing user credentials to the remote client so the remote commands can access network resources. |
||||||||
|
|
|||||||
I believe that it will be faster for most functions. Functionality outside the realm of ADSI can be included. Functions can be a composite of lower level operations providing greater functionality in a single call. I am just exploring some new possibilites and potentially providing some benefit to fellow scripters. |
||||||||
|
|
|||||||
I like the socket but don't mind the html daemon.   |
||||||||
|
|
|||||||
My list: Terminal Server user property support Create & manage child processes Socket support (maybe) Mini HTTP Daemon ? ACL reading/modification and a mod: Read/Write binary files the last one might be tough to integrate into kixtart. -Shawn ps I like to see file handling like in the old unix stdio days ... you know ... things like binary read and writes and seeks and stuff. [ 08. October 2002, 14:43: Message edited by: Shawn ] |
||||||||
|
|
|||||||
But I think I already mentioned this to you Howard - the number one thing I think would be most usefull is a simplified version of the ADsSecurity snapin. Like a COMable XCACLS with an interface that makes sense (for a change). |
||||||||
|
|
|||||||
Speaking of ADsSecurity and the reg perms thing. I don't recall if anyone actually demonstrated how or if that can be done. On the socket support, more than HTTP is desirable. Stuff like FTP, TELNET, etc. |
||||||||
|
|
|||||||
With time and more than a little reading/testing, I think most of what has been mentioned so far is doable. FTP should be a no-brainer. I haven't played with telnet yet. Permissions are messy but possible. {edit} Remember that the DLL is somewhat large and will get larger as additional DLLs are bound inside to support things such as Perms, Sockets, etc. I just want to be clear that I was positioning this DLL as an Admin tool not a standard add-in for all clients. [ 08. October 2002, 15:13: Message edited by: Howard Bullock ] |
||||||||
|
|
|||||||
The FTP thingy would be kinda neat - there are some commercial/freeware versions out there - but a board supported version would be much cooler. In terms of ADsSecurity ... the bloody object model is way too complex and conviluted. Plus any script (I've seen) that use it - ends up sugar coating and wrapping all the functions anyways. It takes many dozens of lines just to setup perms on a share - its crazy ! [ 08. October 2002, 15:16: Message edited by: Shawn ] |
||||||||
|
|
|||||||
I don't believe I need to use ADsSecurity.DLL at all. |
||||||||
|
|
|||||||
Just added the ability to send SMTP email via KiXtart and Win32Admin.DLL. [ 09. October 2002, 03:43: Message edited by: Howard Bullock ] |
||||||||
|
|
|||||||
No attachments? I'll give it a try. |
||||||||
|
|
|||||||
Hmm. I can Blat, but I can't W32_Mail. {edit} My bad. It worked! [ 09. October 2002, 14:26: Message edited by: Chris S. ] |
||||||||
|
|
|||||||
I didn't see a need for attachments from an Administrative script, but after I get Les' FTP installed, I may revisit mail. [ 09. October 2002, 15:11: Message edited by: Howard Bullock ] |
||||||||
|
|
|||||||
Howard, I would like if you could split this util in two:
Another serverside task could be scheduled downloads of antivirus definitions using FTP. This is just a small wish, and if others don’t see the need for the split, or if the reuse of code is easyer using one bucket, just keep up eapanding the possibilityes Btw. The only part i have tried is the mail-part, and that works like a charm. -Erik |
||||||||
|
|
|||||||
well, for simplicitys sake some parts could be cut of to separate object... like having a toolkit inside one dll. |
||||||||
|
|
|||||||
At this point in time I am limited to one object. I can create multiple DLLs, but each one would be a minimum of ~500KB. I thought that one DLL/object with many methods would be easier to use/maintain as well as reduce disk space consumption and D/L time (1 vs many DLLs). Since this is a work in progress, I am open to all suggestions about making this better and easier to use. I wanted to use the Lonkero's different toolkits in one DLL, but am limited by the current compiler. As soon as I can figure out how to use different objects for COMM, ADMIN, ETC I will. Until then I was hoping on feedback on the interleaved array implementation for returning related but dissimilar data. I could return a VB "Scripting.Dictionary" object, but that adds a WSH requirement on the client as well as a performance hit. Still looking for functionality and the best way to delivery it. [ 11. October 2002, 00:11: Message edited by: Howard Bullock ] |
||||||||
|
|
|||||||
quess what is thing that could be added? shortcuts. |
||||||||
|
|
|||||||
FTP implementation where I return an object that references the FTP server connection is not going well. My tool that makes the DLL does not return the this object type via COM at this time. The problem can be coded around but it would be very ugly. Or I can simply provide FUNCTIONs that would login to the FTP server, take some specified action (get, put, etc), then logoff based on some defined set of parameters. This would work much like the SMTP EMAIL function in Win32Admin.DLL. comments...? [ 15. October 2002, 19:45: Message edited by: Howard Bullock ] |
||||||||
|
|
|||||||
well, I quess the poor support is better than no support... for now. |
||||||||
|
|
|||||||
Howard, The only need I've had for FTP is my NAV pattern checker/downloader. Topic: NAV Pattern FTP Script RFC It works though it's a bit convoluted. If it's not easy to include then don't sweat it. Have you seen this post from guy you sometimes get mistaken for (or visa versa)? Topic: [LIBRARY] Kix2001 Winsock object interface library v1.00a |
||||||||
|
|
|||||||
Added to Win32Admin.DLL:
[ 17. October 2002, 06:13: Message edited by: Howard Bullock ] |
||||||||
|
|
|||||||
Does anyone have any comments (good or bad) regarding the usablility of the functions in Win32Admin.DLL? The web page where the DLL can be downloaded has seen 140 page hits since this thread was started, but no one has commented here or by email regarding their use of the code. It is useful? Should I continue adding functionality? I know Shawn has a specific request. What about the rest of the community? Before I add more, I need to know if the current approach is usable. |
||||||||
|
|
|||||||
I'd like to see TS support too... |
||||||||
|
|
|||||||
can't use before I get the sockets actually, need something to connect two of these, a listener and answerer... you know, basic programmable connectivity. the socket library is no goodie as it needs socketwrench and it's no goodie. |
||||||||
|
|
|||||||
With Socket stuff, we could have the foundation for scripts to 'talk' to each other. That would allow for client and server scripts to handshake. The only way I know to do that now is with WaitFor.exe but it is limited in what messages may be passed. You end up having to pass info through text files. I was looking also at MSMQ but it is over my head. |
||||||||
|
|
|||||||
mmm... created some ircbot scripts with tcl and I can assure that connection does not need to be via files. if we have sockets we can use real connections. transferring simple files is slow and makes things slow. it also needs some supporting stuff, like ftp server which is pretty much for simple "telnet" connection. |
||||||||
|
|
|||||||
I am still working on providing this functionality, but wouldn't you consider this DLL a little heavy to push to all clients? Currently I use text files written to the local computer or registry entries to store messages and then write them to a network location when possible. A server side program monitors the directory and process the files as they are created. Back to the DLL. I now have a workaround to the issue of returning objects back to KiXtart, but I as yet do not fully comprehend what is occurring and do not want to include code I can not fully support. The next version of the compiler I am using has addressed this issue and will provide me and easier way of providing this functionality. I should be able to get a copy of the BETA compiler for building the DLL in a month or two. I will see if I can implement IO sockets then. [ 27. October 2002, 17:28: Message edited by: Howard Bullock ] |
||||||||
|
|
|||||||
heh. I'm not pushing it on any client. and this does not have to be the dll where it is. I can't use registry writes to communicate with your wksta there as you probably know and that is the reason. I need a way to connect with kix via tcp in www not in lan/wan. |
||||||||
|
|
|||||||
Oh, I see. You have big plans. You going too compete with MSN and AOL? |
||||||||
|
|
|||||||
I realize that you are focused on an admin DLL and not a client DLL. It's just that this is part of my dream list. Really, I think that Ruud should have this inter-script communication built-in. I think if we did a proof-of-concept that it might catch his eye. What about this MSMQ stuff. Have you had a look at whether it could be used? |
||||||||
|
|
|||||||
maybe currently I just am starting with gaming stuff (like hearts network gaming). also, I have huge interest in making some "telephone" connection stuff to do a interface with two pipes to talk some finnish to shawn without paying too much... but, I'm just looking at the gaming stuff currently. les, msmq? also, I checked on the mediaplayer object... do ye know if it is scriptable? |
||||||||
|
|
|||||||
quote: |
||||||||
|
|
|||||||
I installed MSMQ server on my test box but yet to find the require time to read, understand, and try something. I think that this type technology could be quite useful in the scripting world. |