Showing posts with label VBScript. Show all posts
Showing posts with label VBScript. Show all posts

2009-06-17

ADSI Scriptomatic

ADSI Scriptomatic

What is the ADSI Scriptomatic?
The ADSI Scriptomatic -- as we keep trying to tell you -- is designed to help you write ADSI scripts; that is, scripts that can be used to manage Active Directory. As if that isn’t enough (and we learned the hard way that things are never enough), the ADSI Scriptomatic also teaches you an important point about ADSI scripting: like WMI, there are consistent patterns to ADSI scripts. For example, the ADSI Scriptomatic will help you write a script to delete a user account. It will also help you write scripts for deleting groups and organizational units. And if you take a close look at the scripts for deleting different objects, you’ll see something very interesting: theyre practical identical! What is this, some kind of a rip-off?

Well, it might be. But the reason the scripts look so similar is because ADSI uses a consistent approach for deleting objects, regardless of the type of object being deleted. What does that mean? Well, if you take the time to study the scripts created by the ADSI Scriptomatic (and if you read the ADSI chapter from the Windows 2000 Scripting Guide), you’ll understand how you can delete pretty much anything from Active Directory. For example, we wanted to keep the ADSI Scriptomatic relatively simple; as a result, weve limited the objects you can work with. The ADSI Scriptomatic will write a script that deletes a user account, but it won’t write a script that deletes a published printer. But, hey, so what? After you understand the pattern, you can write your own script for deleting published printers. (OK, OK, well consider creating the DeletePublishedPrintersOmatic. But don’t hold your breath.)

Find for details from here:
http://technet.microsoft.com/en-us/scriptcenter/dd939958.aspx

Download ADSI Scriptomatic
http://www.microsoft.com/downloads/details.aspx?FamilyID=39044e17-2490-487d-9a92-ce5dcd311228&DisplayLang=en

Take Advantage of Scriptomatic 2.0 to Maximize Your WMI Scripting Efforts

Scriptomatic 2.0 resources

Take Advantage of Scriptomatic 2.0 to Maximize Your WMI Scripting Efforts
http://windowsitpro.com/article/articleid/44360/take-advantage-of-scriptomatic-20-to-maximize-your-wmi-scripting-efforts.html

The simplest and most obvious use for Scriptomatic is reading and displaying a class's properties and their values. When Scriptomatic 2.0 loads, it defaults to the root\CIMV2 namespace, then loads the classes in that namespace. You select a WMI class, such as Win32_ComputerSystem, to generate a script.

After Scriptomatic 2.0 generates the code, you can immediately run the script or save it to a file so that you can use it to create more complex code. If you run the script, you can output the results as command output in the command-shell window, as a text file for viewing in Notepad or another editor, as an HTML or XML file for viewing in a browser such as Microsoft Internet Explorer (IE), or as a comma-separated value (CSV) file for viewing in Microsoft Excel or another spreadsheet program.

Scriptomatic 2.0 alone won't give you a complete picture, which is why you need several WMI-specific tools and references in your toolkit. Here's a list of essential WMI tools and documentation that you can use to expand on the information Scriptomatic 2.0 provides:

Using Contrast as an Effective Learning Tool

Scriptomatic 2.0 lets you select other WMI namespaces besides the common root\CIMV2 namespace. CIMV2 is the only namespace available in version 1.0. In version 2.0, you can gain insight on whether a namespace (i.e., provider) is available on other platforms. For example, the root\MicrosoftIISv2 provider is available on Windows 2003 computers running Microsoft IIS 6.0. In contrast, this namespace isn't available on computers running Windows XP and IIS 5.1 because the MicrosoftIISv2 provider is available only on IIS 6.0.

Download Scriptomatic 2.0:

http://www.microsoft.com/downloads/details.aspx?FamilyID=09dfc342-648b-4119-b7eb-783b0f7d1178&displaylang=en

VB Scripts generated by Scriptmatic, ready for use.

VB Scripts generated by Scriptmatic, ready for use.

http://www.thescriptlibrary.com/Default.asp?Action=Browse&Level=Category1&ScriptLanguage=VBScript&Category1=Scriptomatic

VBScript > aspnet(14)
VBScript > CCM\invagt(7)
VBScript > CCM\Policy\Machine(40)
VBScript > CIMV2(495)
VBScript > CIMV2\Applications\Exchange(5)
VBScript > CIMV2\Applications\MicrosoftIE(10)
VBScript > CIMV2\Dell(50)
VBScript > CIMV2\SMS(2)
VBScript > DEFAULT(2)
VBScript > directory\LDAP(3)
VBScript > IntelNCS(38)
VBScript > Microsoft\SqlServer\ComputerManagement(15)
VBScript > MicrosoftActiveDirectory(7)
VBScript > MicrosoftDNS(37)
VBScript > MicrosoftExchangeV2(3)
VBScript > MicrosoftIISv2(337)
VBScript > MicrosoftNLB(20)
VBScript > MOM(14)
VBScript > MSAPPS11(121)
VBScript > perfmon(1)
VBScript > Policy(2)
VBScript > RSOP(2)
VBScript > ServiceModel(80)
VBScript > subscription(1)
VBScript > WMI(378)