techsedge
asked on
Error using adsutil.vbs
Please see the solution of ID # 24343439
I am needing to do this again on a different machine. This time Windows 7.
I get errors using the command line "cscript c:\inetpub\adminscripts\ad sutil.vbs SET FTPSVC/1/ROOT/Path c:\inetpub\ftproot"
I get this error:
The path requested could not be found.
ErrNumber: -2147024893 (0x80070003)
Error Trying To Get the Object: FTPSVC/1/ROOT
I am needing to do this again on a different machine. This time Windows 7.
I get errors using the command line "cscript c:\inetpub\adminscripts\ad
I get this error:
The path requested could not be found.
ErrNumber: -2147024893 (0x80070003)
Error Trying To Get the Object: FTPSVC/1/ROOT
As in the other question, the service you should be looking for is called "MSFTPSVC".
ASKER
I tried both ways -
Also, I saw reference that Windows 7 uses "FTPSVC". This is incorrect?
Thanks
Also, I saw reference that Windows 7 uses "FTPSVC". This is incorrect?
Thanks
That is incorrect. See below for an example captured from my own cmd session. What happens when you try "MSFTPSVC" in your command?
C:\inetpub\AdminScripts>cscript adsutil.vbs
Microsoft (R) Windows Script Host Version 5.7
Copyright (C) Microsoft Corporation. All rights reserved.
Usage:
ADSUTIL.VBS <cmd> [<path> [<value>]]
Description:
IIS administration utility that enables the configuration of metabase properties.
Supported Commands:
GET, SET, ENUM, DELETE, CREATE, COPY,
APPCREATEINPROC, APPCREATEOUTPROC, APPCREATEPOOLPROC, APPDELETE, APPUNLOAD, APPGETSTATUS
Samples:
adsutil.vbs GET W3SVC/1/ServerBindings
adsutil.vbs SET W3SVC/1/ServerBindings ":81:"
adsutil.vbs CREATE W3SVC/1/Root/MyVdir "IIsWebVirtualDir"
adsutil.vbs START_SERVER W3SVC/1
adsutil.vbs ENUM /P W3SVC
For Extended Help type:
adsutil.vbs HELP
C:\inetpub\AdminScripts>cscript adsutil.vbs enum /p
Microsoft (R) Windows Script Host Version 5.7
Copyright (C) Microsoft Corporation. All rights reserved.
[/W3SVC]
[/MIMEMAP]
[/IISADMIN]
[/logging]
[/MSFTPSVC]
C:\inetpub\AdminScripts>cscript adsutil.vbs enum /p msftpsvc
Microsoft (R) Windows Script Host Version 5.7
Copyright (C) Microsoft Corporation. All rights reserved.
[/msftpsvc/1]
C:\inetpub\AdminScripts>cscript adsutil.vbs enum /p msftpsvc/1
Microsoft (R) Windows Script Host Version 5.7
Copyright (C) Microsoft Corporation. All rights reserved.
[/msftpsvc/1/ROOT]
C:\inetpub\AdminScripts>cscript adsutil.vbs enum /p msftpsvc/1/root
Microsoft (R) Windows Script Host Version 5.7
Copyright (C) Microsoft Corporation. All rights reserved.
C:\inetpub\AdminScripts>cscript adsutil.vbs enum msftpsvc/1/root
Microsoft (R) Windows Script Host Version 5.7
Copyright (C) Microsoft Corporation. All rights reserved.
KeyType : (STRING) "IIsFtpVirtualDir"
Path : (STRING) "C:\inetpub\ftproot"
AccessFlags : (INTEGER) 1
AccessExecute : (BOOLEAN) False
AccessSource : (BOOLEAN) False
AccessRead : (BOOLEAN) True
AccessWrite : (BOOLEAN) False
AccessScript : (BOOLEAN) False
AccessNoRemoteExecute : (BOOLEAN) False
AccessNoRemoteRead : (BOOLEAN) False
AccessNoRemoteWrite : (BOOLEAN) False
AccessNoRemoteScript : (BOOLEAN) False
AccessNoPhysicalDir : (BOOLEAN) False
Win32Error : (INTEGER) 0
C:\inetpub\AdminScripts>cscript adsutil.vbs get msftpsvc/1/root/Path
Microsoft (R) Windows Script Host Version 5.7
Copyright (C) Microsoft Corporation. All rights reserved.
Path : (STRING) "C:\inetpub\ftproot"
ASKER
Hello, thanks for replying.
I get the exact same message either way.
I get the exact same message either way.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Here is all I get.
[/W3SVC]
[/MIMEMAP]
[/IISADMIN]
[/logging]
Thanks.
[/W3SVC]
[/MIMEMAP]
[/IISADMIN]
[/logging]
Thanks.
ASKER
OK - I figured out the path I needed to my FTP foder.
W3SVC/2/ROOT/
and all works fine. Thanks for pointing me in the right direction.
W3SVC/2/ROOT/
and all works fine. Thanks for pointing me in the right direction.
ASKER
Guidance provided - Figured it out myself.