ASPit - Totally ASP

Go Back PHPit Forums > General PHP > Just Starting
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Thread Tools Search this Thread Display Modes
Old 09-13-2006, 10:05 AM #1
Junior Member

Join Date: Sep 2006
Posts: 1
Default Failed to create com object

I'm trying to add a new user. But i'm getting fatal error.
This is my program....
Adduser() ;
function Adduser()
print("creating user \n");
$obj = new COM("WinNT://.");
try {
$user = $obj->create("user", "test");
$user->Description = "New User" ;
} catch( exception $e ) {
print("error ........ \n");
$user = new COM ( "WinNT://./test");

Below are the error message that I got from this program .

Fatal error: Uncaught exception 'com_exception' with message 'Failed to create COM object `WinNT://./test': The group name could not be found.
Stack trace:
#0 C:\Program Files\php\adduser.php(14): com->com('WinNT://.
#1 C:\Program Files\php\adduser.php(2): Adduser()
#2 {main}
thrown in C:\Program Files\php\adduser.php on line 14

Can you solve my probelm........?
Thanks in advance..
sharath is offline Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

All times are GMT. The time now is 02:51 PM.

Powered by vBulletin Version 3.6.0
Copyright 2000 - 2006, Jelsoft Enterprises Ltd.