Benutzer:Flow666/Knowledge

Dies ist eine alte Version dieser Seite, zuletzt bearbeitet am 9. August 2004 um 15:48 Uhr durch Flow666 (Diskussion | Beiträge). Sie kann sich erheblich von der aktuellen Version unterscheiden.

TCP/IP Netzwerkdrucker über Script hinzufügen

rundll32 printui.dll,PrintUIEntry /if /b "HP LaserJet 1300n" /f "C:\WINDOWS\drivers\hp 1300n treiber\PCL6\hp1300m6.inf" /r "IP_10.11.1.101" /m "HP LaserJet 1300 PCL 6"

Drucker über Script löschen

rundll32 printui.dll,PrintUIEntry /dl /n "HP LaserJet 1300n"

Drucker über Script zum Standarddrucker machen

rundll32 printui.dll,PrintUIEntry /y /n "HP LaserJet 1300n"

Optionen der printui.dll

rundll32 printui.dll,PrintUIEntry ...

/a[file] binary file name

/b[name] base printer name

/c[name] unc machine name if the action is on a remote machine

/dl delete local printer

/dn delete network printer connection

/dd delete printer driver

/e display printing preferences

/f[file] either inf file or output file

/ga add per machine printer connections

/ge enum per machine printer connections

/gd delete per machine printer connections

/h[arch] driver architecture one of the following, Alpha | Intel | Mips | PowerPC

/ia install printer driver using inf file

/id install printer driver using add printer driver wizard

/if install printer using inf file

/ii install printer using add printer wizard with an inf file

/il install printer using add printer wizard

/in add network printer connection

/j[provider] print provider name

/k print test page to specified printer, cannot be combined with command when installing a printer

/l[path] printer driver source path

/m[model] printer driver model name

/n[name] printer name

/o display printer queue view

/p display printer properties

/q quiet mode, do not display error messages

/r[port] port name

/s display server properties

/Ss Store printer settings into a file

/Sr Restore printer settings from a file

Store or restore printer settings option flags that must be placed at the end of command:

2 PRINTER_INFO_2

7 PRINTER_INFO_7

c Color Profile

d PrinterData

s Security descriptor

g Global DevMode

m Minimal settings

u User DevMode

r Resolve name conflicts

f Force name

p Resolve port

/u use the existing printer driver if it's already installed

/t[#] zero based index page to start on

/v[version] driver version one of the following, Windows 95 or 98 | Windows NT 3.1 | Windows NT 3.5 or 3.51 | Windows NT 3.51 | Windows NT 4.0 | Windows NT 4.0 or 2000 | Windows 2000

/w prompt the user for a driver if specified driver is not found in the inf

/y set printer as the default

/Xg get printer settings

/Xs set printer settings

/z do not auto share this printer

/Z share this printer, can only be used with the /if option

/? help this message

@[file] command line argument file

TCP Printer Port anlegen

cscript C:\Windows\System32\prnport.vbs -a -r IP_10.11.1.101 -h 10.11.1.101 -o raw -n 9100

Alive Test mit der Windows-Shell

@echo off

start

if not "%1" == "" goto ping

for %%c in (odie rhea r01w01 r01w04) do call .\for.bat %%c goto ende

ping

PING -n 1 %1 | FIND "TTL" >NUL

IF ERRORLEVEL 1 echo %1 is down IF NOT ERRORLEVEL 1 echo %1 is alive

ende

ADM-File für AutoAdminLogon

CLASS MACHINE

CATEGORY "Automatisches WinLogon"

KEYNAME "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon"

POLICY "AutoAdminLogon" PART "Custom String" EDITTEXT DEFAULT "1" VALUENAME "AutoAdminLogon" END PART END POLICY

POLICY "ForceAutoLogon" PART "Custom String" EDITTEXT DEFAULT "1" VALUENAME "ForceAutoLogon" END PART END POLICY

POLICY "IgnoreShiftOverride" PART "Custom String" EDITTEXT DEFAULT "1" VALUENAME "IgnoreShiftOverride" END PART END POLICY

POLICY "DefaultUserName" PART "Custom String" EDITTEXT DEFAULT "R0X" VALUENAME "DefaultUserName" END PART END POLICY

POLICY "DefaultDomainName" PART "Custom String" EDITTEXT DEFAULT "IBISACAMOS" VALUENAME "DefaultDomainName" END PART END POLICY

POLICY "DefaultPassword" PART "Custom String" EDITTEXT DEFAULT "password" VALUENAME "DefaultPassword" END PART END POLICY

END CATEGORY