Yes, if you have CFREGISTRY enabled you can do a lot!
This code works for all versions of CF server (I've tested 4.5,5.0)
To get the password:
<cfset password_key = "4p0L@r1$">
<cfregistry
action="get"
branch="HKEY_LOCAL_MACHINE\SOFTWARE\Allaire\ColdFusion\CurrentVersion\Server
"
entry="AdminPassword"
variable="AdminPassword">
<cfoutput>#cfusion_decrypt(AdminPassword, password_key)#</cfoutput>
--------------------------------------------------
To set the password:
<cfset password_key = "4p0L@r1$">
<cfset password = cfusion_encrypt("YOUR_NEW_PASSWORD_GOES_HERE",
password_key)>
<cfregistry
action="set"
branch="HKEY_LOCAL_MACHINE\SOFTWARE\Allaire\ColdFusion\CurrentVersion\Server
"
entry="AdminPassword"
value="#password#">
<cfoutput>#password#<br>(encrypted password was added to
registry)</cfoutput>
Just replace "YOUR_NEW_PASSWORD_GOES_HERE" with your new password.
Joseph DeVore
VeloxWeb Technologies
-----Original Message-----
From: Mark Smeets [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 19, 2001 5:38 PM
To: CF-Talk
Subject: setting cf admin password - 2 questions
Hi all,
I'm wondering how can you set the cf administrator password using a regular
cf page? I can get the password no problem. I just want to set my own but
not via the administrator.
Also, getting the password for Cf4, has that changed in cf5 or can you use
the same code?
<br><br><br>Mark Smeets/stranger0/ICQ #1062196
My new email: [EMAIL PROTECTED]
"Mr. West, not every situation requires your patented approach of shoot
first, shoot later, shoot some more and then when everybody's dead try to
ask a question or two" - Wild Wild West
A Stranger's Domain
http://24.113.34.178/stranger
Official Splitting Adam Homepage
http://www.splittingadam.com/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists