[ANN] win32-etc 0.2.0


(Daniel Berger) #1

Hi all,

I’m pleased to announce the release of win32-etc 0.2.0

What’s new?

···

===========
This release adds the “Admin” submodule, which includes administrative
methods to add and delete users and groups. It also provides a method
for changing passwords.

Synopsis

require "win32/etc"
include Win32
include Etc

Etc::Admin.add_user(
:user_name => “some_user”,
:password => “abc123def”,
:home_dir => “C:\foo_user”,
:description => “random text”,
:host => “\some_machine”,
:flags => Admin::ACCOUNTDISABLE
}

Etc::Admin.change_password(“abc123def”,“hello”,“some_user”)
Etc::Admin.delete_user(user,host)

Etc::Admin.add_group(
:group_name => “foo”,
:description => “Test Group”,
:local? => true,
:users => %w/matz guido larry/
)

Where is it?

It can be found on the RAA or on the project home page at
http://rubyforge.org/projects/win32utils/

Enjoy!

The Win32 Utils Team