Thanks for replying Dave,
mmmmmm... nope, still not working for me. In addition to your example, I've
also
tried running it from a cmd.exe shell - i.e.:
<cfexecute name="c:\winnt\system32\cmd.exe"
arguments="net user testme testme /add">
</cfexecute>
... still no dice. Is your CF service running as localsystem?
Curiously, if I attempt the following:
<cfexecute name="c:\winnt\system32\net.exe"
arguments="user" outputfile="foo.txt">
</cfexecute>
The output file enumerates the user list but also adds one of NT's widely
loved ambigous errors: "The operation completed with one or more errors."
Of course, it doesn't tell me what those errors are, nor are they logged
anywhere I could find.
If I turn on event log auditing, I can see the SYSTEM logon being granted
access rights to the security subsystem both to add a user and to enumerate
users. However, despite appearing to execute successfully, the user is not
added to the local account database.
On a tangent, can anyone reccomend an FTP server that would integrate well
with CF automation? The ultimate goal here is to automate the creation of
user accounts and access rights. Currently, I'm trying to add the user to
an NT domain (duh) and then I'm assigning server permissions at the file
level using xcacls.exe (this works just dandy using CFEXECUTE).
Thanks,
Ryan
Ryan Hill, MCSE
Director, Systems Integration
Market Matrix, Inc. - http://www.marketmatrix.com
-----Original Message-----
From: Dave Watts [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 11, 2000 8:37 PM
To: [EMAIL PROTECTED]
Cc: Ryan Hill
Subject: RE: CFEXECUTE Problems
> First time attempting to use this tag, so I would appreciate
> a little help here. I am attempting to use CFEXECUTE to execute
> a 'net user /add' command via CF and its silently failing to
> create the account I specify. The server service is running
> under the local system account.
You have to call net.exe; this worked for me:
<cfexecute name="c:\winnt\system32\net.exe"
arguments="user testme testme /add">
</cfexecute>
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.