![]() |
#1 |
Junior Member
Join Date: Apr 2008
Posts: 17
|
![]()
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 |
![]() |
![]() |
![]() |
#2 |
Junior Member
Join Date: Apr 2008
Posts: 17
|
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 |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|