assuming you are on windows create a file called close.vbs - or whatever name you want
and copy and paste the text below into it
Quote:
ServerName = "192.168.1.21"
Username = "admin" ' Current Username
Passwd = "nas" ' Current Password
XIT = "E" ' Used to "EXIT" from NAS. (upper-case E)
YES = "y" ' Used to confirm an option. (lower-case Y)
SHUT = "8" ' Used to SHUTDOWN NAS. (number eight)
DELAY = 500 ' Minimum 500ms recommended; 1000 works well.
' --------------------------------------------------------------------
' SECTION B: Start a Shell
' --------------------------------------------------------------------
Set WshShell = WScript.CreateObject("WScript.Shell")
' --------------------------------------------------------------------
' SECTION C: Start the TELNET
' --------------------------------------------------------------------
WshShell.Run "telnet " + ServerName
' --------------------------------------------------------------------
' SECTION D: Login. ("Sleep" pauses are needed delays.)
' --------------------------------------------------------------------
WScript.Sleep DELAY
WshShell.SendKeys Username + vbLf
WScript.Sleep DELAY
WshShell.SendKeys Passwd + vbLf
WScript.Sleep DELAY
WshShell.SendKeys SHUT + vbLf
WScript.Sleep DELAY
WshShell.SendKeys YES + vbLf
WScript.Sleep DELAY
WScript.quit
alter the server name to whatever you have set it to and run it - you need to have Telnet client switched on in programs for it to work
if you want to run the config menu from the server - run this - again altering the ip address and saving it as a .vbs file
Quote:
ServerName = "192.168.1.21"
Username = "admin" ' Current Username
Passwd = "nas" ' Current Password
XIT = "E" ' Used to "EXIT" from NAS. (upper-case E)
YES = "y" ' Used to confirm an option. (lower-case Y)
SHUT = "8" ' Used to SHUTDOWN NAS. (number eight)
DELAY = 500 ' Minimum 500ms recommended; 1000 works well.
' --------------------------------------------------------------------
' SECTION B: Start a Shell
' --------------------------------------------------------------------
WScript.Timeout = 1
Set WshShell = WScript.CreateObject("WScript.Shell")
' --------------------------------------------------------------------
' SECTION C: Start the TELNET
' --------------------------------------------------------------------
WshShell.Run "telnet " + ServerName
' --------------------------------------------------------------------
' SECTION D: Login. ("Sleep" pauses are needed delays.)
' --------------------------------------------------------------------
WScript.Sleep DELAY
WshShell.SendKeys Username + vbLf
WScript.Sleep DELAY
WshShell.SendKeys Passwd + vbLf
WScript.Quit
i should give credit to the author - i believe it was georg - they may not be exactly as he wrote them, i believe someone else modified them and i have played with them [a little] but my input was negligible