 |
Doctor Deploy: software deployment, - distribution, repackaging, msi, windows installer, client management, installation, setup : forum - discussion boards
|
| Author |
Message |
RainerS
Jeroboam

Joined: 14 Jun 2004
Posts: 75
Location: Nuernberg / Germany
|
Posted:
Fri, 18.Jun.2004, 14:00 |
 |
Hallo Leute,
kennt jemand von euch das Tool "defcom.exe" (die genaue Schreibweise kenne ich nicht)?
Es soll ein Tool sein, mit dem man befehlszeilenorientiert Geräte im Gerätemanager deaktivieren kann.
Ich benötige da etwas, was ich in ein Script einbinden kann (unter NetInstall), womit ich über einen "execute" und entsprechende Parameter eine quiet- Deaktivierung der Geräte machen kann. Z.B. für WLan auf betimmten NBs, die das nicht haben dürfen. |
_________________ Grüße
Rainer |
|
    |
 |
Frank Scholer
Imperial


Joined: 13 Jun 2004
Posts: 22
Location: Germany
|
Posted:
Sat, 19.Jun.2004, 15:07 |
 |
|
    |
 |
RainerS
Jeroboam

Joined: 14 Jun 2004
Posts: 75
Location: Nuernberg / Germany
|
Posted:
Sat, 19.Jun.2004, 16:48 |
 |
Hallo Frank,
ja, das ist es!
Danke Dir!! |
_________________ Grüße
Rainer |
|
    |
 |
Axel Koegler
Piccolo

Joined: 07 Jul 2004
Posts: 1
Location: Duesseldorf
|
Posted:
Thu, 15.Jul.2004, 09:22 |
 |
Hallo zusammen,
falls es jemand brauchen kann, so schalten wir alle WLAN-Karten per Script (Übergabeparameter enable bzw. disable):
Set WshShell = WScript.CreateObject("WScript.Shell")
Set objFSO = CreateObject("Scripting.FileSystemObject")
set args = WScript.Arguments
If args.Count = 0 Then
Switch = "disable"
Else
Switch = args.item(0)
End If
for each Connection in GetObject("winmgmts:{impersonationLevel=impersonate,(Debug)}").InstancesOf ("win32_NetworkAdapter")
If (Instr (UCase(Connection.Name),"WIRELESS") > 0) Or (Instr (UCase(Connection.Name),"WLAN") > 0) then
If Connection.PNPDeviceID <> "" then
PNPStrg = PNPStrg & " " & Left(Connection.PNPDeviceID, InstrRev(Connection.PNPDeviceID,"\") - 1)
end if
end if
next
'*********************** Die Sonderlocken ***********************
'++ T Sinus 130card ++
PNPStrg = PNPStrg & " PCMCIA\T-Sinus-0156-0002"
'****************************************************************
LocalSystemDir = WshShell.ExpandEnvironmentStrings("%SystemRoot%")
if objFSO.FileExists(LocalSystemDir & "\devcon.exe") then
WshShell.Run LocalSystemDir & "\devcon.exe " & Switch & PNPStrg, 0, false
End If |
|
|
   |
 |
|
|
|
|
|
View next topic
View previous topic
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Service provided by flatbyte.com
::
Powered by phpBB
:: FI Theme
:: Imprint ::
All times are GMT + 1 Hour
| |