HI. Every.ON
iis 관리하시는 분들에게 필요할것 같은 script 입니다.
원래있는 script의 활용도 어렵더군요.
아래는 FTP Root folder 재설정과, W3SVC Virtual Directory 만들기 example 입니다...
C:\Inetpub\AdminScripts>adsutil.ex.vbs enum msftpsvc/1/ROOT
KeyType : (STRING) "IIsFtpVirtualDir"
Path : (STRING) "c:\inetpub\ftproot"
AccessFlags : (INTEGER) 3
AccessExecute : (BOOLEAN) False
AccessSource : (BOOLEAN) False
AccessRead : (BOOLEAN) True
AccessWrite : (BOOLEAN) True
AccessScript : (BOOLEAN) False
AccessNoRemoteExecute : (BOOLEAN) False
AccessNoRemoteRead : (BOOLEAN) False
AccessNoRemoteWrite : (BOOLEAN) False
AccessNoRemoteScript : (BOOLEAN) False
AccessNoPhysicalDir : (BOOLEAN) False
Win32Error : (INTEGER) 0
[/msftpsvc/1/ROOT/c]
[/msftpsvc/1/ROOT/d]
C:\Inetpub\AdminScripts>adsutil.ex.vbs GET msftpsvc/1/ROOT/Path
Path : (STRING) "c:\inetpub\ftproot"
C:\Inetpub\AdminScripts>adsutil.ex.vbs SET msftpsvc/1/ROOT/Path "d:\ftproot"
Path : (STRING) "d:\ftproot"
C:\Inetpub\AdminScripts>adsutil.ex.vbs GET msftpsvc/1/ROOT/Path
Path : (STRING) "d:\ftproot"
C:\Inetpub\AdminScripts>
C:\Inetpub\AdminScripts>adsutil.ex.vbs ENUM /w3svc/1556213322
KeyType : (STRING) "IIsWebServer"
ServerState : (INTEGER) 2
ServerComment : (STRING) "www.imodel.or.kr"
ServerAutoStart : (BOOLEAN) True
ServerBindings : (LIST) (2 Items)
":80:www.imodel.or.kr"
":80:imodel.ildongmom.com"
AuthFlags : (INTEGER) 0
AuthBasic : (BOOLEAN) False
AuthAnonymous : (BOOLEAN) False
AuthNTLM : (BOOLEAN) False
AuthMD5 : (BOOLEAN) False
AuthPassport : (BOOLEAN) False
LogPluginClsid : (STRING) "{FF160663-DE82-11CF-BC0A-00AA006111
0}"
Win32Error : (INTEGER) 0
[/w3svc/1556213322/filters]
[/w3svc/1556213322/root]
C:\Inetpub\AdminScripts>adsutil.ex.vbs ENUM /w3svc/1556213322/root
KeyType : (STRING) "IIsWebVirtualDir"
AppRoot : (STRING) "/LM/W3SVC/1556213322/Root"
AppFriendlyName : (STRING) "기본 응용 프로그램"
AppIsolated : (INTEGER) 2
Path : (STRING) "D:\Dev\wks.2\Saybebe.ASP\IModel\Web
oot"
AccessFlags : (INTEGER) 513
AccessExecute : (BOOLEAN) False
AccessSource : (BOOLEAN) False
AccessRead : (BOOLEAN) True
AccessWrite : (BOOLEAN) False
AccessScript : (BOOLEAN) True
AccessNoRemoteExecute : (BOOLEAN) False
AccessNoRemoteRead : (BOOLEAN) False
AccessNoRemoteWrite : (BOOLEAN) False
AccessNoRemoteScript : (BOOLEAN) False
AccessNoPhysicalDir : (BOOLEAN) False
DirBrowseFlags : (INTEGER) 1073741886
EnableDirBrowsing : (BOOLEAN) False
DirBrowseShowDate : (BOOLEAN) True
DirBrowseShowTime : (BOOLEAN) True
DirBrowseShowSize : (BOOLEAN) True
DirBrowseShowExtension : (BOOLEAN) True
DirBrowseShowLongDate : (BOOLEAN) True
EnableDefaultDoc : (BOOLEAN) True
AuthFlags : (INTEGER) 5
AuthBasic : (BOOLEAN) False
AuthAnonymous : (BOOLEAN) True
AuthNTLM : (BOOLEAN) True
AuthMD5 : (BOOLEAN) False
AuthPassport : (BOOLEAN) False
C:\Inetpub\AdminScripts>
C:\Inetpub\AdminScripts>adsutil.ex.vbs CREATE w3svc/235957027/root/vdir01 "IIsWe
bVirtualDir"
ObjectTypeName : IIsWebVirtualDir
IIsObjectRelativePath : vdir01
created "w3svc/235957027/root/vdir01"
C:\Inetpub\AdminScripts>adsutil.ex.vbs SET w3svc/235957027/root/vdir01/path "d:\
temp\vdir01"
path : (STRING) "d:\temp\vdir01"
C:\Inetpub\AdminScripts>
C:\Inetpub\AdminScripts>
관련script : adsutil.ex.vbs
iis 관리하시는 분들에게 필요할것 같은 script 입니다.
원래있는 script의 활용도 어렵더군요.
아래는 FTP Root folder 재설정과, W3SVC Virtual Directory 만들기 example 입니다...
C:\Inetpub\AdminScripts>adsutil.ex.vbs enum msftpsvc/1/ROOT
KeyType : (STRING) "IIsFtpVirtualDir"
Path : (STRING) "c:\inetpub\ftproot"
AccessFlags : (INTEGER) 3
AccessExecute : (BOOLEAN) False
AccessSource : (BOOLEAN) False
AccessRead : (BOOLEAN) True
AccessWrite : (BOOLEAN) True
AccessScript : (BOOLEAN) False
AccessNoRemoteExecute : (BOOLEAN) False
AccessNoRemoteRead : (BOOLEAN) False
AccessNoRemoteWrite : (BOOLEAN) False
AccessNoRemoteScript : (BOOLEAN) False
AccessNoPhysicalDir : (BOOLEAN) False
Win32Error : (INTEGER) 0
[/msftpsvc/1/ROOT/c]
[/msftpsvc/1/ROOT/d]
C:\Inetpub\AdminScripts>adsutil.ex.vbs GET msftpsvc/1/ROOT/Path
Path : (STRING) "c:\inetpub\ftproot"
C:\Inetpub\AdminScripts>adsutil.ex.vbs SET msftpsvc/1/ROOT/Path "d:\ftproot"
Path : (STRING) "d:\ftproot"
C:\Inetpub\AdminScripts>adsutil.ex.vbs GET msftpsvc/1/ROOT/Path
Path : (STRING) "d:\ftproot"
C:\Inetpub\AdminScripts>
C:\Inetpub\AdminScripts>adsutil.ex.vbs ENUM /w3svc/1556213322
KeyType : (STRING) "IIsWebServer"
ServerState : (INTEGER) 2
ServerComment : (STRING) "www.imodel.or.kr"
ServerAutoStart : (BOOLEAN) True
ServerBindings : (LIST) (2 Items)
":80:www.imodel.or.kr"
":80:imodel.ildongmom.com"
AuthFlags : (INTEGER) 0
AuthBasic : (BOOLEAN) False
AuthAnonymous : (BOOLEAN) False
AuthNTLM : (BOOLEAN) False
AuthMD5 : (BOOLEAN) False
AuthPassport : (BOOLEAN) False
LogPluginClsid : (STRING) "{FF160663-DE82-11CF-BC0A-00AA006111
0}"
Win32Error : (INTEGER) 0
[/w3svc/1556213322/filters]
[/w3svc/1556213322/root]
C:\Inetpub\AdminScripts>adsutil.ex.vbs ENUM /w3svc/1556213322/root
KeyType : (STRING) "IIsWebVirtualDir"
AppRoot : (STRING) "/LM/W3SVC/1556213322/Root"
AppFriendlyName : (STRING) "기본 응용 프로그램"
AppIsolated : (INTEGER) 2
Path : (STRING) "D:\Dev\wks.2\Saybebe.ASP\IModel\Web
oot"
AccessFlags : (INTEGER) 513
AccessExecute : (BOOLEAN) False
AccessSource : (BOOLEAN) False
AccessRead : (BOOLEAN) True
AccessWrite : (BOOLEAN) False
AccessScript : (BOOLEAN) True
AccessNoRemoteExecute : (BOOLEAN) False
AccessNoRemoteRead : (BOOLEAN) False
AccessNoRemoteWrite : (BOOLEAN) False
AccessNoRemoteScript : (BOOLEAN) False
AccessNoPhysicalDir : (BOOLEAN) False
DirBrowseFlags : (INTEGER) 1073741886
EnableDirBrowsing : (BOOLEAN) False
DirBrowseShowDate : (BOOLEAN) True
DirBrowseShowTime : (BOOLEAN) True
DirBrowseShowSize : (BOOLEAN) True
DirBrowseShowExtension : (BOOLEAN) True
DirBrowseShowLongDate : (BOOLEAN) True
EnableDefaultDoc : (BOOLEAN) True
AuthFlags : (INTEGER) 5
AuthBasic : (BOOLEAN) False
AuthAnonymous : (BOOLEAN) True
AuthNTLM : (BOOLEAN) True
AuthMD5 : (BOOLEAN) False
AuthPassport : (BOOLEAN) False
C:\Inetpub\AdminScripts>
C:\Inetpub\AdminScripts>adsutil.ex.vbs CREATE w3svc/235957027/root/vdir01 "IIsWe
bVirtualDir"
ObjectTypeName : IIsWebVirtualDir
IIsObjectRelativePath : vdir01
created "w3svc/235957027/root/vdir01"
C:\Inetpub\AdminScripts>adsutil.ex.vbs SET w3svc/235957027/root/vdir01/path "d:\
temp\vdir01"
path : (STRING) "d:\temp\vdir01"
C:\Inetpub\AdminScripts>
C:\Inetpub\AdminScripts>
관련script : adsutil.ex.vbs