20 Ağustos 2010 Cuma

SQL uzerinden windows user sifresi deyisme

bunun ucun xp_cmdshell enable olmalidir.
enable elemek ucun :

SQL query analyzer-a asagidaki kodu yazib calisdirin. xp_cmdshell active olacaq


USE master
GO
--Step 2: Enable the advanced options of the SQL Server
EXEC master.dbo.sp_configure ‘show advanced options’, 1

RECONFIGURE
--Step 3: Enable xp_cmdshell
EXEC master.dbo.sp_configure ‘xp_cmdshell’, 1

RECONFIGURE
---------------------------------
xp_cmdshell active olduqdan sonra asagidaki qalin herflerle yazilan kodu calisdirin
 [Username] : hansi istifadecinin sifresini deyismek isteyirsiniz ?
[Password]: yeni sifre.
XP_CMDSHELL 'net user [Username] [Password]' 
calisdirin. 
Nihad Aliyev-e derin minnetdarliq ;)

Hiç yorum yok:

Yorum Gönder