|
Yes. The computer is in a domain. Now I also have a computer insid the house, whom also have the same problem. So is there someting wrong with my script?
Bat file: @echo off %0\..\kix\kix32.exe \\dc\kix\logon.kix
Kix file: ;SLETTER ALLE TIDLIGERE MAPPEDE DREV
use * /DELETE /PERSISTENT
; FUNKTIONER
;SLETTER ALLE PRINTERE PÅ COMPUTEREN function DelPrinterConnections() dim $c,$bk,$conn $c=0 $bk="HKEY_CURRENT_USER\Printers\Connections" $conn=enumkey($bk,$c) while @error=0 ;$c=$c+1 $conn=delkey($bk+"\"+$conn) $conn=enumkey($bk,$c) loop endfunction
; GRUPPE INSTILLINGER
IF INGROUP("Overvågning")
use x: \\andblrdm\Lotus use y: \\sqlserver\webfolder use z: \\DC\progs
ENDIF
IF INGROUP("AB-online") use z: "\\DC\GroupDirs\e-business" use s: \\sqlserver\webfolder use y: \\DC\GroupDirs\freelance use p: \\DC\progs use n: \\DC\GroupDirs\Newbizz
;BRUGER INSTILLINGER IF @Userid = lmo ;messagebox("Halleløjsa","dialog",64) ENDIF ENDIF
IF INGROUP("Analyse") use z: "\\DC\GroupDirs\analyse" use y: "\\DC\GroupDirs\analyse - freelance" use p: "\\dc\presag" ;BRUGER INSTILLINGER IF @Userid = cbh use s: "\\sqlserver\webfolder\analyse" endif ENDIF
IF INGROUP("Konsulent") ;GENERELLE KONSULENT INSTILLINGER use z: \\DC\GroupDirs\Konsulent use y: \\DC\GroupDirs\Analyse\analyse\gallup use n: \\DC\GroupDirs\Newbizz ;BRUGER INSTILLINGER IF @Userid = mha use q: "\\DC\GroupDirs\e-business" endif IF @Userid <> leo DelPrinterConnections() endif ENDIF
IF INGROUP("analyse - freelance") use n: \\DC\GroupDirs\Newbizz use y: "\\DC\GroupDirs\analyse - freelance" use s: "\\dc\GroupDirs\Superbest"
ENDIF
IF INGROUP("Produktion") use z: \\DC\GroupDirs\produktion ;BRUGER INSTILLINGER IF @Userid = jpe use k: \\DC\GroupDirs\Konsulent endif
ENDIF
; INSTILLINGER ALLE SKAL HAVE
;DREV MAPNINGER use @HomeDrive "@HomeShr\@HomeDir" use u: \\dc\GroupDirs\fælles
; PRINTERE AddPrinterConnection("\\dc\4500N") AddPrinterConnection("\\dc\SplashG3")
Should there be a problem with this?
|