Jump to content


This topic is now archived and is closed to further replies.


error ...com exception.....

Recommended Posts

I'm trying to add a new user. But i'm getting fatal error.
This is my program....

PHP Code:
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 .

exception 'com_exception' with message 'Source: Unknown
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..

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.