Top-Themen

AppleEntwicklungHardwareInternetLinuxMicrosoftMultimediaNetzwerkeOff TopicSicherheitSonstige SystemeVirtualisierungWeiterbildungZusammenarbeit

Aktuelle Themen

Administrator.de FeedbackApache ServerAppleAssemblerAudioAusbildungAuslandBackupBasicBatch & ShellBenchmarksBibliotheken & ToolkitsBlogsCloud-DiensteClusterCMSCPU, RAM, MainboardsCSSC und C++DatenbankenDatenschutzDebianDigitiales FernsehenDNSDrucker und ScannerDSL, VDSLE-BooksE-BusinessE-MailEntwicklungErkennung und -AbwehrExchange ServerFestplatten, SSD, RaidFirewallFlatratesGoogle AndroidGrafikGrafikkarten & MonitoreGroupwareHardwareHosting & HousingHTMLHumor (lol)Hyper-VIconsIDE & EditorenInformationsdiensteInstallationInstant MessagingInternetInternet DomäneniOSISDN & AnaloganschlüsseiTunesJavaJavaScriptKiXtartKVMLAN, WAN, WirelessLinuxLinux DesktopLinux NetzwerkLinux ToolsLinux UserverwaltungLizenzierungMac OS XMicrosoftMicrosoft OfficeMikroTik RouterOSMonitoringMultimediaMultimedia & ZubehörNetzwerkeNetzwerkgrundlagenNetzwerkmanagementNetzwerkprotokolleNotebook & ZubehörNovell NetwareOff TopicOpenOffice, LibreOfficeOutlook & MailPapierkorbPascal und DelphiPeripheriegerätePerlPHPPythonRechtliche FragenRedHat, CentOS, FedoraRouter & RoutingSambaSAN, NAS, DASSchriftartenSchulung & TrainingSEOServerServer-HardwareSicherheitSicherheits-ToolsSicherheitsgrundlagenSolarisSonstige SystemeSoziale NetzwerkeSpeicherkartenStudentenjobs & PraktikumSuche ProjektpartnerSuseSwitche und HubsTipps & TricksTK-Netze & GeräteUbuntuUMTS, EDGE & GPRSUtilitiesVB for ApplicationsVerschlüsselung & ZertifikateVideo & StreamingViren und TrojanerVirtualisierungVisual StudioVmwareVoice over IPWebbrowserWebentwicklungWeiterbildungWindows 7Windows 8Windows 10Windows InstallationWindows MobileWindows NetzwerkWindows ServerWindows SystemdateienWindows ToolsWindows UpdateWindows UserverwaltungWindows VistaWindows XPXenserverXMLZusammenarbeit
GELÖST

VNC Viewer per Batch starten und einloggen

Frage Entwicklung Batch & Shell

Mitglied: SirTombi

SirTombi (Level 1) - Jetzt verbinden

23.06.2008, aktualisiert 15:31 Uhr, 26724 Aufrufe, 3 Kommentare

Hallo,
ich würde gerne von einem Server aus, einen VNC Clienten auf einem Rechner im Netzwerk starten(jedes mal manuell, wenn benötigt, da die Rechner sehr schwach sind). Dies habe ich nun auch mithilfe folgender Batchzeile geschafft:

sc \\Rechnername start winvnc

Jetzt habe ich noch den VNC Viewer gestartet durch:

start vncviewer.exe

Nun würde ich gerne noch einbauen, dass die Batchdatei den VNC Viewer beim entsprechenden Rechner einloggt und das Passwort eingibt. Gibt es da eine Möglichkeit?
Vielen Dank schonmal für Eure Antworten
Lg
Tobias
Mitglied: VB-NET
23.06.2008 um 14:36 Uhr
Das könnte dir weiterhelfen - VNC über Startparameter configurieren:

01.
  
02.
usage: vncviewer <options> <hostname>[:<display>] 
03.
Command-line options: 
04.
  -help                                - Provide usage information. 
05.
  -config <file>                       - Load connection settings from VNC Viewe 
06.
r 3.3 settings file 
07.
  -console                             - Run with a console window visible. 
08.
  <setting>=<value>                    - Set the named configuration parameter. 
09.
    (Parameter values specified on the command-line override those specified by 
10.
other configuration methods.) 
11.
 
12.
Log names: 
13.
  SecurityWin32, CurrentUser, Service, CSecurityUserPasswd, SecurityRA2, Pointer 
14.
RateLimit, Pointer3Button, DynamicFn, TimerManager, Config, CircularBuffer, Down 
15.
loadManager, UploadManager, FileTransferExtension, RSA, CSecuritySSPI, Cursor, P 
16.
ixelBuffer, FullFramePb, UnicodeToKeysym, ManagedPb, CConnection, OverlappedInSt 
17.
ream, OleThread, PipeEndpoint, FileStream, DirEnumThread, DataObject, ClipboardH 
18.
elper, ClipboardFormats, ClipboardFiles, Threading, EventManager, DIBSectionBuff 
19.
er, WMShatter, SPointer, Clipboard, MsgWindow, ClipboardText, DeviceContext, Mon 
20.
itorInfo, LowLevelKeyEvents, EventSocketManager, CKeyboard, AboutDialog, RegConf 
21.
ig, Registry, PropSheet, Dialog, TcpFilter, TcpListenerManager, TcpSocket, main, 
22.
 Scaling, Options, Info, DesktopWindow, CConnManager, CConn 
23.
 
24.
Log destinations: 
25.
  file 
26.
  stdout 
27.
  stderr 
28.
 
29.
Parameters: 
30.
Global Parameters: 
31.
  Ticket     - Ticket to use to authenticate to server (default=) 
32.
  Log        - Specifies which log output should be directed to which target 
33.
               logger, and the level of output to log. Format is 
34.
               <log>:<target>:<level>[, ...]. (default=*:stderr:0) 
35.
  FileTransferLWM - Number of outstanding bytes before renewing a download, or 
36.
               -1 to disable renewal suppression. (default=-1) 
37.
  FileTransferBias - The approximate percentage of bandwidth to use for file 
38.
               transfers (0-95) (default=25) 
39.
  RSA_Private_Key_File - File from which to load the RSA private key 
40.
               (default=$HOME/.vnc/private.key) 
41.
  RSA_Private_Key - Private key to use for RSA encrypted key exchange 
42.
               (default=00000800eaddddd5e79b7d591c0e885e8a0ab9cdf9b93e7e65dddb6f 
43.
12f59129b86b06e79077a577ec99ebcac84ffb4b0d89527baaae6fede0c6ae0106fa901dfcb97510 
44.
b185a1cce7d805092fb1b308c6c6cde2cdd855d64d71ad34125cdec738c1df6c0abfb3748ee6b404 
45.
4bbd2f3598b097a72cb7a617b8e25dcc4b400df3b4c3959dd7508bdf8ad3ea0d4d104a50e25df0e2 
46.
b2c93fe07befacc65be4f247c5db43fe57a2099e6c38faffde4671305a556ea0aef27c79b685ec18 
47.
c1e6d27d3fc2af44e457b75b5950eede36c36a093fae407b79015d4579a1c567787299c0eefa9f4b 
48.
203c2782e0c07ace34c5817db07c984b3fc00a1ba177cb0c7986d36bdfa365830000000000000000 
49.
00000000000000000000000000000000000000000000000000000000000000000000000000000000 
50.
00000000000000000000000000000000000000000000000000000000000000000000000000000000 
51.
00000000000000000000000000000000000000000000000000000000000000000000000000000000 
52.
00000000000000000000000000000000000000000000000000000000000000000000000000000000 
53.
00000000000000000000000000000000000000000000000000000000000000000000000000000000 
54.
00000000000000000000000000000000000000000000000000000000000000000000000000000000 
55.
0000000000010001dbb9b54fe8de0ee6ced8c9bba869606ad2b5fb41450bc9bea07e1cd06b37b5bd 
56.
edea0163b0764fa1e6c4ecd3ca562e5483d9addd5dec81dd7429f5aa184568bfb554cf8a635c3559 
57.
e2c4dc39d9bd23e08bb3589aa4d934b1027cdfee81aadedab533a32fe880ece917f265b83ea0f73f 
58.
ef15e0cd50aa76162a5042bd3cdfbd97a28aa8ace161a01c72586cebbd3f5bf01b453d759bf62066 
59.
37ba12ca4c2d42ce4695f83f14dc0ae7b736f8ebb7382fbad25ee334d062dcb926f5bb1a802d6a47 
60.
3f1a010be9cb388eaf5a4c44a6440e4f41bacdd69a81a3c3146284f92c3bfb507a8520d0f9f3dcfc 
61.
2d835e7df29a3f9180b50e1c9ed65e22447b76e199de2801f539198d5de8a2b4e3ada360e58b2326 
62.
99fb1681c1c5f6f8bffb3fa1c619078db331902813fb33e563f91f646b9c926c00065c0ba0da6afc 
63.
f1e5968e5a0ccba5c2b09c700dda0e61b7df4463497edd5032aae5227004627f1108106b08f4ed8b 
64.
7c0e4cf6144cfa823ccc67357408ad3c3153069278824d6b02a7e13b1575209bf5304062b38a00ce 
65.
7284757bd629d03573f914d0b9b68d558666727f1f538b05b6b9f73c91d92b4be7bc4890f13e9393 
66.
45876d4edf0eb91bcc11647bbe65471377d3bb1846d33158c9cf5269a01a530e14979b567176a56d 
67.
3f2cf81e1c505a0c1c127b97e9061c6bfdda96cd825d430f528a58b4cc050099d669a7838f201939 
68.
3c45a88e2282c75b068aeb1929d224f59beb2701058b8ec45d0b77fc5f204fc6f8403a5a5f6ee2b6 
69.
82f7fc4b4657d9754a1c460b65a1c9a21a227ffac50f580e89e7b6cba3dbf0a4fbf8986a7ee9fba3 
70.
7690a278f067637e2fc577a39733fc1ec8830b4f8075db2c9f9cedd1298fe8645f0b3516532053be 
71.
f58c25c3cbe659f99e981a5d7d925b592e3bbd9e5f75e6665ce09575395afa6a82a7cb91ac9aa647 
72.
08dd9b2d438dbc72b9af5124e7d6b9303e7e0dd74172cd8b4c6147a4bf0fd57ca33a823f7eb866a7 
73.
eec9ba9df5e0712e9f653d2619f84ba2b1858dec34164958a1e3d6abf91f69ccf483aa9dbda0439b 
74.
2aa1b02529fe66581b9775b22426f80954268a1a219bb1a4c62d65c225a64c0c7fe49464da980afc 
75.
8a9e6f16d0bf7b7c74ad34f875b2e4cd7b31ea3703bb94f35ea74e4cb90c7b3749abcfffd2caae28 
76.
d12bf2749579a69e8b3302c0d3328d1101632fcd12dbcdf6d65fcda69e259cdd24c8ee6120403552 
77.
7ba43a2564e5705f3294933eca77ff8720070476813c83a4) 
78.
  RSA_Public_Key - Public key to use for RSA encrypted key exchange (default=) 
79.
  RSA_Modulus_Bits - Total number of bits to use when generating public and 
80.
               private keys (default=2048) 
81.
  MaxOutBufferSize - The maximum number of bytes to buffer internally when 
82.
               writing to slowclients.  Larger values improve concurrency, 
83.
               smaller values reducememory usage.  Changes to this settings 
84.
               affect new connections only. (default=0) 
85.
  MaxCutText - Maximum length of incoming clipboard text (default=262144) 
86.
  FileTransferYieldThreshold - The percentage buffer space that must be used 
87.
               before explicitly yielding to the OLE thread. (default=85) 
88.
  FileTransferBufferSize - The size of the internal file transfer buffer 
89.
               (default=262144) 
90.
  DebugClipboardHelper - Provide a console and debug output for vncclipboard 
91.
               (default=0) 
92.
  MultiThreadedIStreams - Read from IStreams in a separate thread (recommended) 
93.
               (default=1) 
94.
  UseClipboardHelper - Support clipboard file transfer in a seperate process 
95.
               (0=no, 1=yes, -1=default) (default=-1) 
96.
  LazyFlushTimeout - Maximum number of seconds for which attempts should be 
97.
               made to flush data to an unresponsive client (maximum 49 days) 
98.
               (default=300) 
99.
  InTransports - List of address families on which to accept connections. 
100.
               Families are specified by number - see platform networking 
101.
               headers files for valid values. Special mnemonics IPv4 and IPv6 
102.
               are also supported. (default=IPv4) 
103.
  Listen     - Accept incoming connections from VNC servers. (default=0) 
104.
  IdHash     - Expected identity of the remote server, as a 64-bit hash. 
105.
               (default=) 
106.
  Identity   - Expected identity of the remote server, in full.  (default=) 
107.
  VerifyId   - When to warn regarding new or changed server identities. 
108.
               (2=always, 1=only if changed, 0=never) (default=2) 
109.
  SingleSignOn - Attempt to authenticate to servers using the current user 
110.
               credentials if the servers support it (default=1) 
111.
  AutoReconnect - Offer to reconnect to the remote server if the connectionis 
112.
               dropped because an error occurs. (default=1) 
113.
  MenuKey    - The key which brings up the popup menu (default=F8) 
114.
  Scaling    - Scale the desktop in the specified manner (None, Fit (fit 
115.
               window), AspectFit (fit window but maintain Aspect Ratio), 
116.
               <Width>x<Height>, <Percent>%, 
117.
               <Percent_Width>%x<Percent_Height>%, <Width>x, x<Height>) 
118.
               (default=None) 
119.
  Monitor    - The monitor to open the VNC Viewer window on, if available. 
120.
               (default=) 
121.
  UserName   - The user name for connecting to the server (default=) 
122.
  AcceptBell - Produce a system beep when requested to by the server. 
123.
               (default=1) 
124.
  Emulate3   - Emulate middle mouse button when left and right buttons are used 
125.
               simulatenously. (default=0) 
126.
  PointerEventInterval - The interval to delay between sending one pointer 
127.
               event and the next. (default=0) 
128.
  Protocol3.3 - Only use protocol version 3.3 (default=0) 
129.
  DisableWinKeys - Pass special Windows keys directly to the server. 
130.
               (default=1) 
131.
  ShareFiles - Enable file sharing with the server. (default=1) 
132.
  ServerCutText - Accept clipboard changes from the server. (default=1) 
133.
  ClientCutText - Send clipboard changes to the server. (default=1) 
134.
  SendKeyEvents - Send key presses (and releases) to the server. (default=1) 
135.
  SendPointerEvents - Send pointer (mouse) events to the server. (default=1) 
136.
  Shared     - Allow existing connections to the server to continue.(Default is 
137.
               to disconnect all other clients) (default=0) 
138.
  AutoSelect - Auto select pixel format and encoding (default=1) 
139.
  PreferredEncoding - Preferred graphical encoding to use - overridden by 
140.
               AutoSelect if set. (ZRLE, Hextile or Raw) (default=ZRLE) 
141.
  RelativePtr - Send relative pointer events (default=0) 
142.
  UseAllMonitors - Use all available monitors when entering full-screen mode 
143.
               (default=0) 
144.
  FullScreenChangeResolution - Adjust the display resolution to match that of 
145.
               theserver when in full-screen mode (default=0) 
146.
  FullScreen - Use the whole display to show the remote desktop.(Press F8 to 
147.
               access the viewer menu) (default=0) 
148.
  LowColourLevel - Colour level to use on slow connections. 0 = Very Low (8 
149.
               colours), 1 = Low (64 colours), 2 = Medium (256 colours) 
150.
               (default=1) 
151.
  FullColour - Use full colour (default is to use low colour unless auto select 
152.
               decides the link is fast enough). (default=0) 
153.
  UseDesktopResize - Support dynamic desktop resizing (default=1) 
154.
  UseLocalCursor - Render the mouse cursor locally (default=1) 
155.
  SelectDesktop - Name or number of desktop to select within a multi-desktop 
156.
               server (default=) 
157.
  Encryption - The encryption level to use when connecting to servers. Valid 
158.
               values are: Server, PreferOff, PreferOn, AlwaysOn. 
159.
               (default=Server) 
160.
  DstXor     - value to xor dest pixels for CopyRectDelay (default=65280) 
161.
  SrcXor     - value to xor source pixels for CopyRectDelay (default=255) 
162.
  CopyRectDelay - Milliseconds to display each copyrect - a debugging feature 
163.
               (default=0) 
164.
  DebugDelay - Milliseconds to display inverted pixel data - a debugging 
165.
               feature (default=0)

Die gewünschten Parameter kannst du in den Verknüpfungseigenschaften hinter den Zielpfad schreiben:
"C:\Programme\RealVNC\VNC4\vncviewer -blablabla" (Pfadangaben überprüfen)

Oder:
Eine Datei mit folgendem Inhalt (natürlich weiter anpassen):
01.
[Connection] 
02.
Host=192.168.178.10:5900 
03.
[Options] 
04.
UseLocalCursor=1 
05.
UseDesktopResize=1 
06.
FullScreen=0 
07.
FullColour=1 
08.
LowColourLevel=1 
09.
PreferredEncoding=ZRLE 
10.
AutoSelect=1 
11.
Shared=0 
12.
SendPtrEvents=1 
13.
SendKeyEvents=1 
14.
SendCutText=1 
15.
AcceptCutText=1 
16.
DisableWinKeys=1 
17.
Emulate3=0 
18.
PointerEventInterval=0 
19.
Monitor= 
20.
MenuKey=F8 
21.
AutoReconnect=1
erstellen und als Dateiname.vnc speichern.

Hoffe ich konnte dir helfen.

Gruß

VB-NET
Bitte warten ..
Mitglied: SirTombi
23.06.2008 um 15:31 Uhr
Dankesehr für die Antwort,
du hast mir damit sehr geholfen. Mit folgenden Zeilen funktioniert das ganz gut:

sc \\Rechnername start winvnc
pause
start vncviewer.exe rechnername

Er startet jetzt den Dienst auf dem Remote Pc und öffnet vncviewer auf dem Server mit dem richtigen Host. Leider habe ich es noch nicht geschafft eine Möglichkeit zu finden das Passwort gleich in die Batch mit einzubringen, sodass ich nurnoch die Batch starten muss.
Lg
Tobias
Bitte warten ..
Mitglied: Midivirus
04.08.2009 um 23:26 Uhr
@echo off
"C:\Program Files\UltraVNC\vncviewer.exe" 192.0.2.50 /password VNCPC1

Quelle http://www.computing.net/answers/windows-2000/batchfile-for-vnc-connect ...
Bitte warten ..
Neuester Wissensbeitrag
Humor (lol)

Linkliste für Adventskalender

(3)

Information von nikoatit zum Thema Humor (lol) ...

Ähnliche Inhalte
Batch & Shell
gelöst Batch, Aufgabe mit höchsten Previlegien soll Outlook "normal" starten (6)

Frage von Zunaras zum Thema Batch & Shell ...

Batch & Shell
gelöst Batch erst starten wenn bestimmte Datei vorhanden ist (7)

Frage von pdiddo zum Thema Batch & Shell ...

Batch & Shell
Dateinamen nach Zeichnen abschneiden - Batch-Shell (9)

Frage von cberndt zum Thema Batch & Shell ...

Batch & Shell
CMD Verschlüsslung ( Batch ) (9)

Frage von clragon zum Thema Batch & Shell ...

Heiß diskutierte Inhalte
Windows Server
DHCP Server switchen (25)

Frage von M.Marz zum Thema Windows Server ...

SAN, NAS, DAS
gelöst HP-Proliant Microserver Betriebssystem (14)

Frage von Yannosch zum Thema SAN, NAS, DAS ...

Grafikkarten & Monitore
Win 10 Grafikkarte Crash von Software? (13)

Frage von Marabunta zum Thema Grafikkarten & Monitore ...

Windows 7
Verteillösung für IT-Raum benötigt (12)

Frage von TheM-Man zum Thema Windows 7 ...