Here is my code
Code:
Break On
if not InContainer('OU=Servers,OU=Machines,DC=TIGR,DC=ORG', 'Computer')[0]
If Not Incontainer('OU=Domain Controllers,DC=TIGR,DC=ORG', 'Computer')[0]
If @WKSTA <> "psmith02-xp"
IF NOT exist c:\Windows\sytem32\aexswdinstsvc.exe
copy \\Altiris\x86\aexswdinstsvc.exe c:\Windows\system32
EndIF
if NOT exist c:\Windows\system32\aexnsc.log
c:\Windows\system32\aexswdinstsvc.exe -u “http://Altiris/Altiris/nscap/bin/win32/x86/ns
client package/aexnsc.exe” -s Altiris.TIGR.ORG -w http://Altiris/Altiris
EndIF
endif
[The funcition code for the "Translatename" and "Incontainer" is later in the script and has been tested to be working, that is not the issue]
When run I get the following error...
Quote:
Script error : invalid method/function call: missing '(' !
IF NOT Exist c:\WIndows\system32\aexswdistsvc.exe
As far as I can tell it does not understand the "not exist" function... any ideas?