Archive: how to know IIS AnonymousUser?


how to know IIS AnonymousUser?
Dear all,

how to know the IIS AnonymousUser?

i try many ways but i failed.

is there any hint or any thing may help?!

I want to set this folder permissions full control

I found this macro but i dont know how to use it:

!macro "GetIISAnonymousUser" User
nsExec::ExecToStack /TIMEOUT=20000 '"$SYSDIR\cscript.exe" //NoLogo "$TEMP\adsutil.vbs" GET W3SVC/AnonymousUserName'
Pop $1
Pop $1
Push $1
Call GetInQuotes
Pop ${User}
!macroend


finaly:

Section "Permissions"

System::Call kernel32::GetComputerName(t.r0,*i${NSIS_MAX_STRLEN})
StrCpy $0 IUSR_$0
DetailPrint $0

AccessControl::GrantOnFile "$INSTDIR/yourFileName" $0 "FullAccess"
pop $0
DetailPrint "-IISAnonymousUser - $0 - DONE"


SectionEnd