Creating a session in windows to auth to remote machines



Hi,
I'm trying to auth to remote machines so I can plunder WMI to get
logs and settings and the like. My script works for most of my
machines because they're all in the same domain and I run the script
as somebody who has enough access to get at this stuff but for
machines off the domain I'm stuck.

Now I'm primarily a sys/network admin and not a programmer. As a
sys admin if I had this problem while trying to pull eventlogs
manually with eventvwr I would simply map a drive to the remote
machine. That would allow me to enter a username/password and then
once I was authed I'd have a session and I'd be able to piggyback on
that session to pull logs.

I'm looking to do exactly that from inside my script. I could
probably import os and call the net use command to map a drive and get
a session that way but that feels really sloppy to me. I want to be
able to explicitly close this session when I'm done with it too.

So I figure there's a com object I could call to open this
session for me but I can't figure out what it is. Any help would be
appreciated!

Thanks
.



Relevant Pages

  • Re: How do I find out who is connected via Remote Desktop to an XPP machine?
    ... Although users leaving the session open and idle when ... I have tried running a script in the run key of the registry of the ... RD machines registry. ... LAN PC to "get" this client PC name remotely from the registry of the RD ...
    (microsoft.public.windowsxp.work_remotely)
  • Re: Very Annoying Permissions
    ... session, not a user session. ... Running the script under a local computer session ... To find out when a user logs on and logs off, ... the value of file names in the log folder. ...
    (microsoft.public.windows.file_system)
  • Re: Creating a session in windows to auth to remote machines
    ... logs and settings and the like. ... machines because they're all in the same domain and I run the script ... that session to pull logs. ...
    (comp.lang.python)
  • Re: Creating a session in windows to auth to remote machines
    ... I'm trying to auth to remote machines so I can plunder WMI to get ... logs and settings and the like. ... My script works for most of my ...
    (comp.lang.python)
  • Runonce script on many machines
    ... logs on. ... I know how to do this by loading the default hive and adding ... the path to script in the run once key. ... The issue is i need to to do this to about 100 machines. ...
    (microsoft.public.windowsxp.setup_deployment)