By 14 Gennaio 2011 0 Comments

Elencare tutte le Path dei Siti Web su IIS

Per elencare tutte le PATH è necessario prima disporre di tutte le ID dei vari siti web. Dopodichè è possibile creare un BATCH per richiamare il comando adsutil.vbs in un modo come questo:

cscript adsutil.vbs get w3svc/11291/ROOT/Path
cscript adsutil.vbs get w3svc/11293/ROOT/Path
cscript adsutil.vbs get w3svc/11306/ROOT/Path
cscript adsutil.vbs get w3svc/11307/ROOT/Path

A questo punto si può creare un BATCH che posizioni il suo contenuto in un file di testo e avremo come risultato un file TXT con tutte le Path


About the Author:

shared on wplocker.com