Discussion:
iis command line 詢問
(时间太久无法回复)
james
2006-03-27 10:25:01 UTC
Permalink
請問各位.有沒有指令或是script可以啟用上層目錄的設定呢
另外我也想知道是否有指令可設定excute permimte的權限呢.
因為我查了很久..都沒有這兩個相關的設定..
本人只想用指令去解決..因為會常用到不希望一直依賴windows介面
感謝各位了
Bernard Cheah [MVP]
2006-03-28 03:31:25 UTC
Permalink
Try adsutil.vbs
This is the utility scripts that come with IIS which can help configure most
of the IIS property.
--
Regards,
Bernard Cheah
http://www.iis-resources.com/
http://www.iiswebcastseries.com/
http://msmvps.com/blogs/bernard/
œÐ°ÝŠUŠì.Š³šSŠ³«ü¥O©Î¬Oscript¥i¥H±Ò¥Î€WŒh¥Ø¿ýªº³]©w©O
¥t¥~§Ú€]·QªŸ¹D¬O§_Š³«ü¥O¥i³]©wexcute permimteªºÅv­­©O.
Š]¬°§Ú¬d€F«Ü€[..³£šSŠ³³ošâ­Ó¬ÛÃöªº³]©w..
·PÁŠUŠì€F
james
2006-03-28 03:59:02 UTC
Permalink
hello
i just find adsutil.vbs .but i can't got executepermite .
i think the key word in the sample.but i can't input value ..

sample:
W3SVC/1/ROOT/aaa/AccessFlags AccessExecute | AccessRead | AccessScript

how to write input data.please..?

"Bernard Cheah [MVP]" 來函:
Post by Bernard Cheah [MVP]
Try adsutil.vbs
This is the utility scripts that come with IIS which can help configure most
of the IIS property.
--
Regards,
Bernard Cheah
http://www.iis-resources.com/
http://www.iiswebcastseries.com/
http://msmvps.com/blogs/bernard/
Post by james
請問各位.有沒有指令或是script可以啟用上層目錄的設定呢
另外我也想知道是否有指令可設定excute permimte的權限呢.
因為我查了很久..都沒有這兩個相關的設定..
本人只想用指令去解決..因為會常用到不希望一直依賴windows介面
感謝各位了
Bernard Cheah [MVP]
2006-03-28 06:05:36 UTC
Permalink
you like excute permission ?

well you need to add up all the value
AccessExecute (4) | AccessRead (1) | AccessScript (512)

so it would be
C:\Inetpub\AdminScripts>adsutil.vbs set w3svc/1/root/aa/accessflags 517
accessflags : (INTEGER) 517
--
Regards,
Bernard Cheah
http://www.iis-resources.com/
http://www.iiswebcastseries.com/
http://msmvps.com/blogs/bernard/
Post by james
hello
i just find adsutil.vbs .but i can't got executepermite .
i think the key word in the sample.but i can't input value ..
W3SVC/1/ROOT/aaa/AccessFlags AccessExecute | AccessRead | AccessScript
how to write input data.please..?
"Bernard Cheah [MVP]" 䟆凜ïŒ?
Post by Bernard Cheah [MVP]
Try adsutil.vbs
This is the utility scripts that come with IIS which can help configure most
of the IIS property.
--
Regards,
Bernard Cheah
http://www.iis-resources.com/
http://www.iiswebcastseries.com/
http://msmvps.com/blogs/bernard/
請å??„ä?.?‰æ??‰æ?什æ??¯script?¯ä»¥?Ÿç”šäžŠå±€?®é??„蚭定呢
?Šå??‘ä??³çŸ¥?“是?Šæ??‡ä»€?¯èš­å®šexcute permimte?„æ??å‘¢.
? ç‚º?‘查了å?ä¹?.?œæ??‰é€™å…©?‹ç›ž?œç?èš­å?..
?¬äºº?ªæƒ³?šæ?什去è§?±º..? ç‚º?ƒåžž?šåˆ°äžå??›ä??Žä?賎windows介面
?Ÿè??„ä?äº?
james
2006-03-28 06:26:02 UTC
Permalink
hello..^^ 我已經解決了..
原來是因為AccessFlags 吃的值不是字串而是BINARY
因此我必須設定成
W3SVC/1/ROOT/aaa/AccessFlags 517

而不是下面的值..
W3SVC/1/ROOT/aaa/AccessFlags AccessExecute | AccessRead | AccessScript
"james" 來函:
Post by james
hello
i just find adsutil.vbs .but i can't got executepermite .
i think the key word in the sample.but i can't input value ..
W3SVC/1/ROOT/aaa/AccessFlags AccessExecute | AccessRead | AccessScript
how to write input data.please..?
"Bernard Cheah [MVP]" 來函:
Post by Bernard Cheah [MVP]
Try adsutil.vbs
This is the utility scripts that come with IIS which can help configure most
of the IIS property.
--
Regards,
Bernard Cheah
http://www.iis-resources.com/
http://www.iiswebcastseries.com/
http://msmvps.com/blogs/bernard/
Post by james
請問各位.有沒有指令或是script可以啟用上層目錄的設定呢
另外我也想知道是否有指令可設定excute permimte的權限呢.
因為我查了很久..都沒有這兩個相關的設定..
本人只想用指令去解決..因為會常用到不希望一直依賴windows介面
感謝各位了
继续阅读narkive:
Loading...