Kaseya Community

Anyone using DEFRAGGLER successfully on Windows 2000, XP and Windows 7 and care to share there script?

This question is answered

I am looking for a scrpt that works on both 32bit and 64bit OS.

 

If it works on server 2003/2008 that would be to fantastic as well!

 

Let me know if anyone has something that might meet what it is I am trying to accomplish.

 

If you have a defrag script other than Defraggler, please share your experience with us so we can all possibly use it.

 

Thanks,

Grantb

Verified Answer
  • WIP Nerds.... first one installs defraggler Slim

    <?xml version="1.0" encoding="utf-8"?>

    <ScriptExport xmlns:xsi="www.w3.org/.../XMLSchema-instance" xmlns:xsd="www.w3.org/.../XMLSchema" xmlns="www.kaseya.com/.../Scripting">

     <Procedure name="Defraggler Slim Install" treePres="3" id="66614178">

       <Body description="Defraggler Slim Install">

         <If description="Defraggler Slim Install">

           <Condition name="True" />

           <Then>

             <Statement name="GetVariable" continueOnFail="false">

               <Parameter xsi:type="EnumParameter" name="VariableType" value="AgentInstallDrive" />

               <Parameter xsi:type="StringParameter" name="SourceContent" value="" />

               <Parameter xsi:type="StringParameter" name="VariableName" value="agentDrv" />

             </Statement>

             <Statement name="WriteFile" continueOnFail="false">

               <Parameter xsi:type="StringParameter" name="Path" value="#agentDrv#temp\dfsetup121_slim.exe" />

               <Parameter xsi:type="StringParameter" name="ManagedFile" value="VSASharedFiles\dfsetup121_slim.exe" />

               <Parameter xsi:type="BooleanParameter" name="DeleteAfter" value="False" />

             </Statement>

             <Statement name="ExecuteFile" continueOnFail="false">

               <Parameter xsi:type="StringParameter" name="Path" value="#agentDrv#temp\dfsetup121_slim.exe" />

               <Parameter xsi:type="StringParameter" name="Arguments" value="/S" />

               <Parameter xsi:type="EnumParameter" name="ExecuteAccount" value="System" />

               <Parameter xsi:type="BooleanParameter" name="WaitComplete" value="True" />

             </Statement>

           </Then>

         </If>

       </Body>

     </Procedure>

    </ScriptExport>

    This one defrags the C Drive ( I find it runs for awhile)

    <?xml version="1.0" encoding="utf-8"?>

    <ScriptExport xmlns:xsi="www.w3.org/.../XMLSchema-instance" xmlns:xsd="www.w3.org/.../XMLSchema" xmlns="www.kaseya.com/.../Scripting">

     <Procedure name="Defraggler C: Drive" treePres="3" id="784251677">

       <Body description="Runs df.exe and defrags the C drive">

         <Statement description="Execute the specified file - full path to file required." name="ExecuteFile" continueOnFail="false" osType="NT4|2000|XP|2003|Vista|2008">

           <Parameter xsi:type="StringParameter" name="Path" value="C:\program files\defraggler\df.exe" />

           <Parameter xsi:type="StringParameter" name="Arguments" value="C: /QD" />

           <Parameter xsi:type="EnumParameter" name="ExecuteAccount" value="System" />

           <Parameter xsi:type="BooleanParameter" name="WaitComplete" value="True" />

         </Statement>

         <Statement description="Write an Entry into the Procedure Log" name="WriteScriptLogEntry" continueOnFail="false" osType="NT4|2000|XP|2003|Vista|2008">

           <Parameter xsi:type="StringParameter" name="Comment" value="Defraggler completed Sucessfully" />

         </Statement>

       </Body>

     </Procedure>

    </ScriptExport>

All Replies
  • you need to add (x86) to the code