Forum » Operacijski sistemi » Remote windows reset from LInux
Remote windows reset from LInux
MUC ::
Rad bi resetiral windows mašino iz ene linux mašine na omrežju.
Torej, imel sem idejo, da naredim en acc na windowsih in omogočim telnet. Pol se s skripto logiram na windowse in poženem pač shutdown.
SAMO .. skripte se nočejo logirat v windowse, ker windowsi ne razumejo linuxovih ENTER ukazov, ko podaš npr username.
Ima kdo kakšno idejo, kako to rešit, oz kako nasploh resetirat windowse iz linuxa (preko skripte)
Hvala in Lp
Torej, imel sem idejo, da naredim en acc na windowsih in omogočim telnet. Pol se s skripto logiram na windowse in poženem pač shutdown.
SAMO .. skripte se nočejo logirat v windowse, ker windowsi ne razumejo linuxovih ENTER ukazov, ko podaš npr username.
Ima kdo kakšno idejo, kako to rešit, oz kako nasploh resetirat windowse iz linuxa (preko skripte)
Hvala in Lp
dr.J ::
Nekoč sem uporabljal Services For Unix (SFU). DLjaš jih lahko z M$ strani.
Se je dalo normalno telnetirati na Windows PC z Unix škatle.
Se je dalo normalno telnetirati na Windows PC z Unix škatle.
CCfly ::
Najbolje da kar remote desktop uporabiš. Če želiš delati s skriptami si pa Cygwin na Windows mašini namesti.
"My goodness, we forgot generics!" -- Danny Kalev
MUC ::
sej mam telnet na windowsih, samo nobena skripta za telnet ne deluje, ker ko vpiše username, ne pritisne še "ENTER", za vpis še password.
Mal sumim, da terminal na windowsih ni VT100?
Mal sumim, da terminal na windowsih ni VT100?
ABX ::
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/telnet_client_change_settings.mspx
Telnet Server for Windows provides ASCII terminal sessions to Telnet clients. Telnet Server supports two types of authentication and supports four types of terminals: ANSI, VT-100, VT-52, and VTNT.
SET TERM {ANSI|VT100|VT52|VTNT} sets the terminal type to the appropriate terminal type.
Use the VT100 terminal type if you are running normal command-line applications. Use the VTNT terminal type if you are running advanced command-line applications, such as edit.
.
Milsim da po default-u je ANSI.
Telnet Server for Windows provides ASCII terminal sessions to Telnet clients. Telnet Server supports two types of authentication and supports four types of terminals: ANSI, VT-100, VT-52, and VTNT.
SET TERM {ANSI|VT100|VT52|VTNT} sets the terminal type to the appropriate terminal type.
Use the VT100 terminal type if you are running normal command-line applications. Use the VTNT terminal type if you are running advanced command-line applications, such as edit.
.
Milsim da po default-u je ANSI.
Vaša inštalacija je uspešno spodletela!
Zgodovina sprememb…
- spremenilo: ABX ()
hruske ::
to bi tud delal stran na sshwindows.sourceforge.net
Kalkulator nove omrežnine 2024 - https://omreznina.karlas.si/Kalkulator
64202 ::
Potem bo hec, ko bos dal shutdown in bo excel, ki tece na kisti vprasal "Save Yes/No/Cancel" in cel shutdown se bo ustavil. Vsaj cygwinov shutdown nima force-a, nazadnje ko sem gledal. Ma kdo resitev?
ABX ::
C:\>psshutdown
PsShutdown v2.11 - local and remote system shutdown/lock
Copyright (C) 2000-2003 Mark Russinovich
Sysinternals - www.sysinternals.com
usage:
psshutdown [-u Username [-p password] [[-s|-r|-h|-d|-k [-t nn][-m "message"]
[-f]] -a | -l | -o] [\\computer]
-a Abort a shutdown (only possible while countdown is in progress)
-d Suspend the computer
-f Forces running applications to close
-h Hibernate the computer
-k Poweroff the computer (reboot if poweroff is not supported)
-l Lock the computer
-m Message to display to logged on users
-o Logoff the console user
-r Reboot after shutdown
-s Shutdown without poweroff
-t Specifies countdown in seconds until shutdown (default is 20)
-u Specifies optional user name for login to remote
computer.
-p Specifies optional password for user name. If you omit this
you will be prompted to enter a hidden password.
\\computer Shutdown the remote computer specified
PsShutdown v2.11 - local and remote system shutdown/lock
Copyright (C) 2000-2003 Mark Russinovich
Sysinternals - www.sysinternals.com
usage:
psshutdown [-u Username [-p password] [[-s|-r|-h|-d|-k [-t nn][-m "message"]
[-f]] -a | -l | -o] [\\computer]
-a Abort a shutdown (only possible while countdown is in progress)
-d Suspend the computer
-f Forces running applications to close
-h Hibernate the computer
-k Poweroff the computer (reboot if poweroff is not supported)
-l Lock the computer
-m Message to display to logged on users
-o Logoff the console user
-r Reboot after shutdown
-s Shutdown without poweroff
-t Specifies countdown in seconds until shutdown (default is 20)
-u Specifies optional user name for login to remote
computer.
-p Specifies optional password for user name. If you omit this
you will be prompted to enter a hidden password.
\\computer Shutdown the remote computer specified
Vaša inštalacija je uspešno spodletela!
hruske ::
abx zmaga.
skorej.
ker psshutdown ne dela na linux.
skorej.
ker psshutdown ne dela na linux.
Kalkulator nove omrežnine 2024 - https://omreznina.karlas.si/Kalkulator
Zgodovina sprememb…
- spremenilo: hruske ()
ABX ::
Sej če porihta telnet to nima veze, drugače še vedno lahko kaj napiše v Perl-u.
Vaša inštalacija je uspešno spodletela!
MUC ::
Mah ... naredu sm tkole:
* Napisal System Service za WIndowse in ga pognal
* Napisal PHP skripto, ki se konekta na port tega System servica in mu reče .. ALO-RESETIREJ-SE.
* System service naredi restart rutino in to je to.
Če bi se to že prej lotu, ne bi zabil ure, da sm tuhtal, zakaj me zezajo vsi telnet serverji v windowsih, da se ne dajo uklonit auto-loginu
konec dober, vse dobro.. pa hvala za ideje
* Napisal System Service za WIndowse in ga pognal
* Napisal PHP skripto, ki se konekta na port tega System servica in mu reče .. ALO-RESETIREJ-SE.
* System service naredi restart rutino in to je to.
Če bi se to že prej lotu, ne bi zabil ure, da sm tuhtal, zakaj me zezajo vsi telnet serverji v windowsih, da se ne dajo uklonit auto-loginu
konec dober, vse dobro.. pa hvala za ideje
ABX ::
Perl way:
#code
use Win32API::Registry 0.21 qw( :ALL );
$sComputer='hostname';
$uTimeoutSecs=0;
$bForce='true';
$bReboot='true';
$sMessage='By'
InitiateSystemShutdown( $sComputer, $sMessage, $uTimeoutSecs, $bForce, $bReboot );
#end code
Le avtorizacijo na win mašino iz linux-a porihtaj
P.S: Ravnokar testiral kodo in dela. Še dobro ker pc se nahaj v drugi stavbi :)
#code
use Win32API::Registry 0.21 qw( :ALL );
$sComputer='hostname';
$uTimeoutSecs=0;
$bForce='true';
$bReboot='true';
$sMessage='By'
InitiateSystemShutdown( $sComputer, $sMessage, $uTimeoutSecs, $bForce, $bReboot );
#end code
Le avtorizacijo na win mašino iz linux-a porihtaj
P.S: Ravnokar testiral kodo in dela. Še dobro ker pc se nahaj v drugi stavbi :)
Vaša inštalacija je uspešno spodletela!
Zgodovina sprememb…
- spremenilo: ABX ()
BigWhale ::
> Mah ... naredu sm tkole:
Cool!
(Ko bom naslednjic nucal, da fentam enga komarja, te poklicem, da pripeljes svojo haubico, pa ga bova nacilala!)
;)
Cool!
(Ko bom naslednjic nucal, da fentam enga komarja, te poklicem, da pripeljes svojo haubico, pa ga bova nacilala!)
;)
Vredno ogleda ...
Tema | Ogledi | Zadnje sporočilo | |
---|---|---|---|
Tema | Ogledi | Zadnje sporočilo | |
» | program za avtomatski zagon računalnikaOddelek: Programska oprema | 1421 (1278) | pajanko |
» | eno vprašanje glede diskaOddelek: Pomoč in nasveti | 1481 (1326) | ~Speed |
» | funypictures.bat virus?Oddelek: Pomoč in nasveti | 1216 (1150) | R33D3M33R |
» | WINXP oddaljen reboot ??Oddelek: Pomoč in nasveti | 1144 (1000) | ABX |
» | Remote desktop win2000->xp ???Oddelek: Programska oprema | 1371 (1292) | Tero |