memnon Posted October 19, 2005 Share Posted October 19, 2005 Hello, is it possible to script Active Directory with autoit ? i want to active a gpo setting via script. any way to do this ? das beste Windows Support Forum: Windows 2000 Helpline und tschüss den WindowsfehlernProgrammieren: Autoit 3 - wer braucht noch VBS ?!Programmieren: Autoit 3 Forum? Link to comment Share on other sites More sharing options...
DaleHohm Posted October 19, 2005 Share Posted October 19, 2005 The beta has COM support that can be used to do this. There are actually more than one choice in doing this with COM -- I have used the ADSI interfaces with good results. You'll need to do some reading at MSDN and some searching in the forum here for examples, but you can do it. Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble Link to comment Share on other sites More sharing options...
memnon Posted October 19, 2005 Author Share Posted October 19, 2005 The beta has COM support that can be used to do this. There are actually more than one choice in doing this with COM -- I have used the ADSI interfaces with good results.You'll need to do some reading at MSDN and some searching in the forum here for examples, but you can do it.Dalei searched the forum already for gpo related topics, but found nothing, so i made this threadcould you give me a sample of how could be done this ? das beste Windows Support Forum: Windows 2000 Helpline und tschüss den WindowsfehlernProgrammieren: Autoit 3 - wer braucht noch VBS ?!Programmieren: Autoit 3 Forum? Link to comment Share on other sites More sharing options...
memnon Posted October 19, 2005 Author Share Posted October 19, 2005 with adsiedit.msc its only possible to query for something in ad if i am right, i found no way to CHANGE or SET a setting in gpos das beste Windows Support Forum: Windows 2000 Helpline und tschüss den WindowsfehlernProgrammieren: Autoit 3 - wer braucht noch VBS ?!Programmieren: Autoit 3 Forum? Link to comment Share on other sites More sharing options...
memnon Posted October 19, 2005 Author Share Posted October 19, 2005 i think i found the answer for myself http://www.microsoft.com/technet/prodtechn...81057ffcef.mspxNote Scripted control of individual settings inside a GPO is not provided.The scripts include examples written in VBScript and JScript. They all have the .wsf extension and are executed through Windows Script Host (WSH), which is included with Windows Server 2003 and other recent versions of Windows. All of the scripts should be executed from the command line. Executing a script with the /? switch displays the usage for that script. das beste Windows Support Forum: Windows 2000 Helpline und tschüss den WindowsfehlernProgrammieren: Autoit 3 - wer braucht noch VBS ?!Programmieren: Autoit 3 Forum? Link to comment Share on other sites More sharing options...
blademonkey Posted October 19, 2005 Share Posted October 19, 2005 Hello,is it possible to script Active Directory with autoit ?i want to active a gpo setting via script.any way to do this ?you can do this with Secedit.exe ---"Educate the Mind, Make Savage the Body" -Mao Tse Tung Link to comment Share on other sites More sharing options...
/dev/null Posted October 19, 2005 Share Posted October 19, 2005 i think i found the answer for myself http://www.microsoft.com/technet/prodtechn...81057ffcef.mspxScripted control of individual settings inside a GPO is not provided.Well, I'm not that sure. The article, whose link you posted, talks about the following scripts.Back up a GPO -> BackupGPO.wsfImport settings into a GPO -> ImportGPO.wsfRestore a GPO -> RestoreGPO.wsfI bet they use some kind of COM interface within those scripts. Unfortunately I cannot test it, as the GPMC needs WinXP od Win2k3. However you could download the GPMC and send or post the above scripts (or PM them to me). Let's look how they back up and restore a GPO. I guess we can change the setting before restoring or importing the GPO settings.GPMC download link: http://www.microsoft.com/downloads/details...&displaylang=enCheersKurt __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Link to comment Share on other sites More sharing options...
memnon Posted October 20, 2005 Author Share Posted October 20, 2005 (edited) i think you misunderstood.... read THAT line: Scripted control of individual settings inside a GPO is not provided. and thats exaclty what i wanted to do only thing would be to analyse a backuped gpo but i think that would be really to complex Edited October 20, 2005 by memnon das beste Windows Support Forum: Windows 2000 Helpline und tschüss den WindowsfehlernProgrammieren: Autoit 3 - wer braucht noch VBS ?!Programmieren: Autoit 3 Forum? Link to comment Share on other sites More sharing options...
memnon Posted November 3, 2005 Author Share Posted November 3, 2005 i push this thread up once again - perhaps someone got the idea, how it could be done although its not supported.... the only idea i have atm is sending keystrokes das beste Windows Support Forum: Windows 2000 Helpline und tschüss den WindowsfehlernProgrammieren: Autoit 3 - wer braucht noch VBS ?!Programmieren: Autoit 3 Forum? 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