#187347 - 2008-04-26 05:08 PM
Re: No error, no worky. UNC
[Re: Björn]
|
Arend_
MM club member
   
Registered: 2005-01-17
Posts: 1896
Loc: Hilversum, The Netherlands
|
Working with Altiris here, I only got one suggestion... Get rid of Altiris altogether
|
|
Top
|
|
|
|
#187385 - 2008-04-29 10:08 PM
Re: No error, no worky. UNC
[Re: NTDOC]
|
SoCi0pAtH
Manic
Registered: 2008-04-14
Posts: 16
Loc: Colorado
|
Well I couldnt get kixtart to get past the hidden file state. So I used it to create a batch file that worked just fine.
Thanks
This kixtart script is pretty fun to figure out.
Break on
;open file to create bat file
OPEN(1,"\\server\KiX2010.460\dosdel.bat",5)
;Try to open list with computer names
If Open(3, "\\server\KiX2010.460\allpc.txt", 2) = 0
;List successfully opened. Do more stuff.
;Read first line from the list.
$computer = ReadLine(3)
;If no error occurred and the line is not empty more stuff.
;Enter a loop until the line from the file is empty or end of file is reached.
While @ERROR = 0 AND Trim($computer) <> ""
;Read sysroot from the registry.
$sysroot = ReadValue("\\" + $computer + "\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion", "PathName")
;Split sysroot on : and join it with $.
;This just replaces c: with c$.
$sysroot = Join(Split($sysroot, ":"), "$")
? "Deleting Temp Files From " + $computer
;Set variable Y
$Y = "\\" + $computer + "\" + $sysroot + "\Installer\*.msp"
;Show $y on the screen.
?$y
;Write Delete stuff from the remote machine to batch file.
WRITELINE (1, "Del \\" + $computer + "\" + $sysroot + "\Installer\*.msp /f /q" + @CRLF)
;print error record
?@error
?@serror?
;Read the next line from the list.
$computer = ReadLine(3)
Loop
;Close the list with computer names and batch file.
Close (3)
CLOSE (1)
EndIf
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 476 anonymous users online.
|
|
|