ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> python-win32
python-win32
[python-win32] Get DN of Computer (OU Located)
by Jose Noto other posts by this author
Nov 5 2009 4:07AM messages near this date
[python-win32] Setting NTFS Permissions on Tree | Re: [python-win32] Get DN of Computer (OU Located)
Good morning,

I'm trying to create a script where I need to know in witch OU / DN the 
computer is located from just knowing its hostname and I can not figure 
it out or find anything about it on the net. Does anyone know how to do it?

On VBScript would be something like this:

Set objSysInfo = CreateObject("ADSystemInfo")
strComputer = objSysInfo.ComputerName

However, I do not find anything similar to it to use with python.

Many thanks,

Jose
-- 
D I S C L A I M E R
This email and any files transmitted with it are confidential and intended
solely for the individual to whom they are addressed. Any views or opinions
presented are those of the author and do not necessarily represent those of
Springfield School unless stated otherwise.  If you have received this e-mail in
error please delete the e-mail and contact Springfield School, Central Road,
Drayton, PO6 1QY Tel:023 92379119

The information contained in this e-mail may be subject to public disclosure
under the Freedom of Information Act 2000. Unless the Information is legally
exempt from disclosure, the confidentiality of this e-mail and your reply cannot
be guaranteed.
_______________________________________________
python-win32 mailing list
python-win32@[...].org
http://mail.python.org/mailman/listinfo/python-win32
Thread:
Jose Noto
Tim Golden

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved