Winscripter
  WSH
  Forums
  Downloads
  Books
  Links
  Amazon





© winscripter.com
1998-2004







ADSI Scripts

Script: Create IIS Website and DNS record
Posted by Daren on Friday, December 24, 2004 (PST)
Script: Dan Casier sent me this script that will create a website and appropriate DNS record. The script is intended for Windows 2000 Server with local DNS and necessary DNS mof installed.

(Read More...   25 comments)

Unlock a user account
Posted by Daren on Sunday, June 13, 2004 (PST)
Example of how to unlock a computer account using ADSI. Accounts can be local or domain accounts. Checks the IsAccountLocked property of the IADsUser object (true = Locked).

(Read More...   3 comments)

Script: Move Active Directory Objects
Posted by Daren on Wednesday, May 12, 2004 (PST)
Script moves a user and a computer object from one OU to another. Using LDAP path it binds to destination OU and Executes the MoveHere method of ADSI Container object.

(Read More...   1 comments)

List user accounts on a computer or domain
Posted by Daren on Friday, January 16, 2004 (PST)
Example prints out the account name and full name of each account on a computer or domain.

(Read More...   1 comments)

Get the last login time of a user
Posted by Daren on Friday, January 16, 2004 (PST)
Read the LastLogin property of a user account.

(Read More...   0 comments)

Set the full name property of a user
Posted by superman on Friday, January 16, 2004 (PST)
Simple example of how to set a property of a user account.

(Read More...   0 comments)

Get the full name of a user
Posted by superman on Friday, January 16, 2004 (PST)
Simple function to demonstrate how to retrieve a property from a user account.

(Read More...   0 comments)

List ADSI Providers Installed
Posted by superman on Friday, January 16, 2004 (PST)
Provides a list of providers available.

(Read More...   0 comments)

List Shares on a Server
Posted by superman on Friday, January 16, 2004 (PST)
List shares of a server in a domain.

(Read More...   0 comments)

List all objects in a domain
Posted by superman on Friday, January 16, 2004 (PST)
listem all

(Read More...   0 comments)

[1]2>>
Page 1 of 2



WSH and ADSI Administrative Scripting

New Articles
  • List installed COM objects and associated ProgIDs
    Script: Lists all COM Objects and their associated ProgIDs (If available). Win32_ClassicCOMClassSetting

  • Script: File Rotator
    Script: Rotate files where the most current file has the lowest number in the archive. When files exceed the retention period, they are deleted. Typically used for log files, backups, etc..

  • Script: Create IIS Website and DNS record
    Script: Dan Casier sent me this script that will create a website and appropriate DNS record. The script is intended for Windows 2000 Server with local DNS and necessary DNS mof installed.


  • Winscripter   |  WSH   |  Forums   |  Downloads   |  Books   |  Links   |  Amazon