Cool Solutions

ZENworks Remote CD/DVD Drive

Mark Fratto

By:

February 3, 2017 8:29 am

Reads:1,352

Comments:0

Score:Unrated

Print/PDF

Novell Success Story

As the IT world evolves things tend to change and not always for the better when the old ways of doing things just seem easier in those one off situations. Take for example an actual CD/DVD drive on a laptop. Well, in this case I have finally decided to start sharing the things I have come up with here on Cool Solutions.

What I am posting here is access to a CD/DVD drive remotely. So easy for end users that they will literally click an ICON in their ZENworks Window and viola magic happens. The only requirement is that the AD user must be logged into both stations on the same network. So let’s get started.

Two options are available to make this happen:

  • Manual: Use Method 1 to Manually Create Bundle
  • Import: Use Method 2 to import bundle on primary server

Method 1: Manually create Bundle in ZCM

Steps: This assumes users have a mapped Network Home Directory through Active Directory which in this case will be H: and also that your Optical Drives are Drive Letter D:

Create a new bundle (Which I called Z-Remote CD-DVD, I place a “Z-” before all bundles considered self service, self service meaning end users do not need IT DEPT. to complete certain tasks anymore with these tools)

  1. Add “Launch Executable (OPEN SHARE)” – Continue on Failure
    1. General: Command – H:\Optical_Drive.bat
    2. Advanced: When action is complete, and Run as logged in user
    3. Launch Option: Use the operating system shell to start the process
    4. Requirements: File Exists – H:\Optical_Drive.bat – Yes
  2. Add “Run Script (SHARE D:)” – Continue on Failure
    1. General: Define your own script
      1. Script content: net share OPTICAL_DRIVE=D:
      2. Script file extension: .bat
      3. Wait: When action is complete
    2. Advanced: Run as secure system user (Don’t allow system to interact with desktop)
    3. Requirements: File Exists – H:\Optical_Drive.bat – No
  3. Add “Run Script (BAT FILE CREATE)” – Continue on Failure
    1. General: Define your own script
      1. Script content: echo explorer.exe \\”%COMPUTERNAME%\OPTICAL_DRIVE” > “H:\Optical_Drive.bat”
      2. Script file extension: .bat
      3. Wait: When action is complete
    2. Advanced: Run as logged in user
    3. Requirements: File Exists – H:\Optical_Drive.bat – No
  4. Add “Prompt User (WAIT)
    1. General: How often to prompt: Always
      1. Define Prompt: If this is the computer with the DVD drive, now launch the same ZEN icon on the computer with no DVD drive.
  5. Add “Run Script (DELETE SHARE)” – Continue on Failure
    1. General: Define your own script
      1. Script content: net share OPTICAL_DRIVE /delete /Y
      2. Script file extension: .bat
      3. Wait: When action is complete
    2. Advanced: Run as secure system user (Don’t allow system to interact with desktop)
  6. Add “Run Script (BAT FILE DEL)” – Continue on Failure
    1. General: Define your own script
      1. Script content: del “H:\Optical_Drive.bat”
      2. Script file extension: .bat
      3. Wait: No wait
    2. Advanced: Run as logged in user

Method 2: Import using zman bc command on a primary server.

  • 1.Copy Below XML to xml file called “Z-Remote CD-DVD.xml”
  • 2.Open command prompt as administrator then run
  • 3.zman bc “NewBundleNameHere” “Z-Remote CD-DVD.xml”
<?xml version="1.0" encoding="UTF-8"?>
<ns1:Bundle xmlns:ns1="http://novell.com/zenworks/datamodel/objects/bundles" xmlns="http://novell.com/zenworks/datamodel/objects/bundles">
 <ns2:UID xmlns:ns2="http://novell.com/zenworks/datamodel/objects" xmlns="http://novell.com/zenworks/datamodel/objects">cd2175667263e00f10239715874f10b6</ns2:UID>
 <ns2:Name xmlns:ns2="http://novell.com/zenworks/datamodel/objects" xmlns="http://novell.com/zenworks/datamodel/objects">Z-Remote CD-DVD</ns2:Name>
 <ns2:InternalName xmlns:ns2="http://novell.com/zenworks/datamodel/objects" xmlns="http://novell.com/zenworks/datamodel/objects">Z-Remote CD-DVD</ns2:InternalName>
 <ns2:ParentUID xmlns:ns2="http://novell.com/zenworks/datamodel/objects" xmlns="http://novell.com/zenworks/datamodel/objects">575f13c4c62e860ad53f572c080e02ff</ns2:ParentUID>
 <ns2:Path xmlns:ns2="http://novell.com/zenworks/datamodel/objects" xmlns="http://novell.com/zenworks/datamodel/objects">/Bundles/Shortcuts/Self Service/Z-Remote CD-DVD</ns2:Path>
 <ns2:InternalPath xmlns:ns2="http://novell.com/zenworks/datamodel/objects" xmlns="http://novell.com/zenworks/datamodel/objects">/~bundles~/Shortcuts/Self Service/Z-Remote CD-DVD</ns2:InternalPath>
 <ns2:AdminID xmlns:ns2="http://novell.com/zenworks/datamodel/objects" xmlns="http://novell.com/zenworks/datamodel/objects">Bundles</ns2:AdminID>
 <ns2:Description xmlns:ns2="http://novell.com/zenworks/datamodel/objects" xmlns="http://novell.com/zenworks/datamodel/objects" />
 <ns2:PrimaryType xmlns:ns2="http://novell.com/zenworks/datamodel/objects" xmlns="http://novell.com/zenworks/datamodel/objects">Bundle</ns2:PrimaryType>
 <ns2:SubType xmlns:ns2="http://novell.com/zenworks/datamodel/objects" xmlns="http://novell.com/zenworks/datamodel/objects">Windows Bundle</ns2:SubType>
 <ns2:GeneralType xmlns:ns2="http://novell.com/zenworks/datamodel/objects" xmlns="http://novell.com/zenworks/datamodel/objects">2</ns2:GeneralType>
 <ns2:Deletable xmlns:ns2="http://novell.com/zenworks/datamodel/objects" xmlns="http://novell.com/zenworks/datamodel/objects">true</ns2:Deletable>
 <ns2:Undeletable xmlns:ns2="http://novell.com/zenworks/datamodel/objects" xmlns="http://novell.com/zenworks/datamodel/objects">false</ns2:Undeletable>
 <ns2:ErrorWarningStatus xmlns:ns2="http://novell.com/zenworks/datamodel/objects" xmlns="http://novell.com/zenworks/datamodel/objects">1</ns2:ErrorWarningStatus>
 <ns2:ComplianceStatus xmlns:ns2="http://novell.com/zenworks/datamodel/objects" xmlns="http://novell.com/zenworks/datamodel/objects">1</ns2:ComplianceStatus>
 <ns2:IsEnabled xmlns:ns2="http://novell.com/zenworks/datamodel/objects/assignablecontent" xmlns="http://novell.com/zenworks/datamodel/objects/assignablecontent">true</ns2:IsEnabled>
 <ns2:Version xmlns:ns2="http://novell.com/zenworks/datamodel/objects/assignablecontent" xmlns="http://novell.com/zenworks/datamodel/objects/assignablecontent">23</ns2:Version>
 <ns2:Revision xmlns:ns2="http://novell.com/zenworks/datamodel/objects/assignablecontent" xmlns="http://novell.com/zenworks/datamodel/objects/assignablecontent">0</ns2:Revision>
 <ns2:ContentInfoVer xmlns:ns2="http://novell.com/zenworks/datamodel/objects/assignablecontent" xmlns="http://novell.com/zenworks/datamodel/objects/assignablecontent">0</ns2:ContentInfoVer>
 <ns2:ContentPriority xmlns:ns2="http://novell.com/zenworks/datamodel/objects/assignablecontent" xmlns="http://novell.com/zenworks/datamodel/objects/assignablecontent">0</ns2:ContentPriority>
 <ns2:NextRevision xmlns:ns2="http://novell.com/zenworks/datamodel/objects/assignablecontent" xmlns="http://novell.com/zenworks/datamodel/objects/assignablecontent">0</ns2:NextRevision>
 <ns2:Replication xmlns:ns2="http://novell.com/zenworks/datamodel/objects/assignablecontent" xmlns="http://novell.com/zenworks/datamodel/objects/assignablecontent">2</ns2:Replication>
 <ns2:Sandbox xmlns:ns2="http://novell.com/zenworks/datamodel/objects/assignablecontent" xmlns="http://novell.com/zenworks/datamodel/objects/assignablecontent">false</ns2:Sandbox>
 <ns2:SatelliteRep xmlns:ns2="http://novell.com/zenworks/datamodel/objects/assignablecontent" xmlns="http://novell.com/zenworks/datamodel/objects/assignablecontent">1</ns2:SatelliteRep>
 <ns2:Inheritance xmlns:ns2="http://novell.com/zenworks/datamodel/objects/assignablecontent" xmlns="http://novell.com/zenworks/datamodel/objects/assignablecontent">15</ns2:Inheritance>
 <ns2:ContentTypeTags xmlns:ns2="http://novell.com/zenworks/datamodel/objects/assignablecontent" xmlns="http://novell.com/zenworks/datamodel/objects/assignablecontent">Windows-Bundle</ns2:ContentTypeTags>
 <ns2:ActionSets xmlns:ns2="http://novell.com/zenworks/datamodel/objects/actions" xmlns="http://novell.com/zenworks/datamodel/objects/actions">
 <Id>d7424971b8320e6fa6ddd843ca1bacbd</Id>
 <Type>Terminate</Type>
 <Version>1</Version>
 <Modified>false</Modified>
 <Data>
 <ns1:Terminate xmlns:ns1="http://novell.com/zenworks/apps/appSchema">
 <Enabled xmlns="http://novell.com/zenworks/apps/appSchema">true</Enabled>
 </ns1:Terminate>
 </Data>
 <Actions>
 <Id>e5838eb82c7f23d6979aa4fa7fcd08d9</Id>
 <Type>Terminate Action Prompt</Type>
 <Data>
 <ns1:PromptActionData xmlns:ns1="https://www.novell.com/ZENworks/Actions/v1.0">
 <PromptFrequency xmlns="https://www.novell.com/ZENworks/Actions/v1.0">PROMPT_ALWAYS</PromptFrequency>
 <CancelsAllowed xmlns="https://www.novell.com/ZENworks/Actions/v1.0">0</CancelsAllowed>
 <Timeout xmlns="https://www.novell.com/ZENworks/Actions/v1.0">60</Timeout>
 </ns1:PromptActionData>
 </Data>
 <ContinueOnFailure>false</ContinueOnFailure>
 <Enabled>true</Enabled>
 <actionUniqueId>ab2702d9c6ac16964c9a28a7154e58ba</actionUniqueId>
 </Actions>
 <Actions>
 <Id>9686934f3b8c8d41822cbc5d89abbf2c</Id>
 <Type>Terminate Action</Type>
 <Data>
 <ns1:TerminateActionData xmlns:ns1="https://www.novell.com/ZENworks/Actions/v1.0">
 <Terminate xmlns="https://www.novell.com/ZENworks/Actions/v1.0">true</Terminate>
 </ns1:TerminateActionData>
 </Data>
 <ContinueOnFailure>false</ContinueOnFailure>
 <Enabled>true</Enabled>
 <actionUniqueId>26c1dc0acfbd3324bae8f215f1e352f2</actionUniqueId>
 </Actions>
 </ns2:ActionSets>
 <ns2:ActionSets xmlns:ns2="http://novell.com/zenworks/datamodel/objects/actions" xmlns="http://novell.com/zenworks/datamodel/objects/actions">
 <Id>35c47cf8d0b426e687666e7133dead6e</Id>
 <Type>Launch</Type>
 <Version>19</Version>
 <Modified>false</Modified>
 <Data>
 <ns1:Launch xmlns:ns1="http://novell.com/zenworks/apps/appSchema" />
 </Data>
 <Actions>
 <Id>71b884b1f3a6824a010f1dda2184cb21</Id>
 <Name>Launch Executable</Name>
 <Type>Launch Action</Type>
 <Data>
 <ns1:LaunchActionData xmlns:ns1="https://www.novell.com/ZENworks/Actions/v1.0">
 <Command xmlns="https://www.novell.com/ZENworks/Actions/v1.0">H:\Optical_Drive.bat</Command>
 <Impersonate xmlns="https://www.novell.com/ZENworks/Actions/v1.0">
 <Impersonation>USER</Impersonation>
 <WindowAction>NORMAL</WindowAction>
 <ElevateUserAsAdmin>false</ElevateUserAsAdmin>
 </Impersonate>
 <WaitForExit xmlns="https://www.novell.com/ZENworks/Actions/v1.0">true</WaitForExit>
 <WaitTimeout xmlns="https://www.novell.com/ZENworks/Actions/v1.0">0</WaitTimeout>
 <TerminateAfterTimeout xmlns="https://www.novell.com/ZENworks/Actions/v1.0">false</TerminateAfterTimeout>
 <CommandLine xmlns="https://www.novell.com/ZENworks/Actions/v1.0" />
 <UseShellExecute xmlns="https://www.novell.com/ZENworks/Actions/v1.0">true</UseShellExecute>
 <WorkDir xmlns="https://www.novell.com/ZENworks/Actions/v1.0" />
 <WindowsData xmlns="https://www.novell.com/ZENworks/Actions/v1.0">
 <Compatibility>
 <RunIn256Colors>false</RunIn256Colors>
 <RunIn640x480>false</RunIn640x480>
 <DisableVisualThemes>false</DisableVisualThemes>
 <TurnOffAdvancedTextServices>false</TurnOffAdvancedTextServices>
 </Compatibility>
 </WindowsData>
 <SuccessReturnCode xmlns="https://www.novell.com/ZENworks/Actions/v1.0" />
 </ns1:LaunchActionData>
 </Data>
 <ContinueOnFailure>true</ContinueOnFailure>
 <Enabled>true</Enabled>
 <SysReqs>
 <ns1:SysReqs xmlns:ns1="https://www.novell.com/ZENworks/Reqs/v1.0" Conjunction="OR">
 <Req xmlns="https://www.novell.com/ZENworks/Reqs/v1.0" Type="GroupReq">
 <Data>
 <ns1:GroupReq Conjunction="AND">
 <Req Type="FileExistsReq">
 <Data>
 <ns1:FileExistsReq>
 <Value>true</Value>
 <Name>H:\Optical_Drive.bat</Name>
 </ns1:FileExistsReq>
 </Data>
 </Req>
 </ns1:GroupReq>
 </Data>
 </Req>
 </ns1:SysReqs>
 </SysReqs>
 <reqsFailAction>0</reqsFailAction>
 <actionUniqueId>0ed66e05d031d93136ecbbed32d51806</actionUniqueId>
 </Actions>
 <Actions>
 <Id>d68be27eb126e336d1ce963027b41246</Id>
 <Name>Run Script (SHARE D:)</Name>
 <Type>Run Script Action</Type>
 <Data>
 <ns1:RunScriptActionHandlerData xmlns:ns1="https://www.novell.com/ZENworks/Actions">
 <Exec xmlns="https://www.novell.com/ZENworks/Actions" maxTimeToWait="-1" terminateProgram="false">
 <ns2:Script xmlns:ns2="https://www.novell.com/ZENworks/Controls" extension=".bat">net share OPTICAL_DRIVE=D:</ns2:Script>
 <ns2:ProgramExecutor xmlns:ns2="https://www.novell.com/ZENworks/Controls" arguments="" path="" />
 <ns2:AdvancedSettings xmlns:ns2="https://www.novell.com/ZENworks/Controls">
 <Priority xmlns="https://www.novell.com/ZENworks/Controls">Normal</Priority>
 <RunAs xmlns="https://www.novell.com/ZENworks/Controls">System</RunAs>
 </ns2:AdvancedSettings>
 </Exec>
 </ns1:RunScriptActionHandlerData>
 </Data>
 <ContinueOnFailure>true</ContinueOnFailure>
 <Enabled>true</Enabled>
 <Properties>Impersonation=SYSTEM;</Properties>
 <SysReqs>
 <ns1:SysReqs xmlns:ns1="https://www.novell.com/ZENworks/Reqs/v1.0" Conjunction="OR">
 <Req xmlns="https://www.novell.com/ZENworks/Reqs/v1.0" Type="GroupReq">
 <Data>
 <ns1:GroupReq Conjunction="AND">
 <Req Type="FileExistsReq">
 <Data>
 <ns1:FileExistsReq>
 <Value>false</Value>
 <Name>H:\Optical_Drive.bat</Name>
 </ns1:FileExistsReq>
 </Data>
 </Req>
 </ns1:GroupReq>
 </Data>
 </Req>
 </ns1:SysReqs>
 </SysReqs>
 <reqsFailAction>0</reqsFailAction>
 <actionUniqueId>e33b5e0a12a8d3a51ca194f9b05e7478</actionUniqueId>
 </Actions>
 <Actions>
 <Id>e998921d3deef2bca1b459bb45c9d660</Id>
 <Name>Run Script (BAT FILE CREATE)</Name>
 <Type>Run Script Action</Type>
 <Data>
 <ns1:RunScriptActionHandlerData xmlns:ns1="https://www.novell.com/ZENworks/Actions">
 <Exec xmlns="https://www.novell.com/ZENworks/Actions" maxTimeToWait="-1" terminateProgram="false">
 <ns2:Script xmlns:ns2="https://www.novell.com/ZENworks/Controls" extension=".bat">echo explorer.exe \\"%COMPUTERNAME%\OPTICAL_DRIVE" &gt; "H:\Optical_Drive.bat"</ns2:Script>
 <ns2:ProgramExecutor xmlns:ns2="https://www.novell.com/ZENworks/Controls" arguments="" path="" />
 <ns2:AdvancedSettings xmlns:ns2="https://www.novell.com/ZENworks/Controls">
 <Priority xmlns="https://www.novell.com/ZENworks/Controls">Normal</Priority>
 <RunAs xmlns="https://www.novell.com/ZENworks/Controls">User</RunAs>
 </ns2:AdvancedSettings>
 </Exec>
 </ns1:RunScriptActionHandlerData>
 </Data>
 <ContinueOnFailure>true</ContinueOnFailure>
 <Enabled>true</Enabled>
 <Properties>Impersonation=USER;</Properties>
 <SysReqs>
 <ns1:SysReqs xmlns:ns1="https://www.novell.com/ZENworks/Reqs/v1.0" Conjunction="OR">
 <Req xmlns="https://www.novell.com/ZENworks/Reqs/v1.0" Type="GroupReq">
 <Data>
 <ns1:GroupReq Conjunction="AND">
 <Req Type="FileExistsReq">
 <Data>
 <ns1:FileExistsReq>
 <Value>false</Value>
 <Name>H:\Optical_Drive.bat</Name>
 </ns1:FileExistsReq>
 </Data>
 </Req>
 </ns1:GroupReq>
 </Data>
 </Req>
 </ns1:SysReqs>
 </SysReqs>
 <reqsFailAction>0</reqsFailAction>
 <actionUniqueId>c17f4b8a838c213d1b50ab2fca31c79b</actionUniqueId>
 </Actions>
 <Actions>
 <Id>8862e4d453e58f20a23e8a503500c133</Id>
 <Name>Prompt User (WAIT)</Name>
 <Type>Prompt Action</Type>
 <Data>
 <ns1:PromptActionData xmlns:ns1="https://www.novell.com/ZENworks/Actions/v1.0">
 <PromptString xmlns="https://www.novell.com/ZENworks/Actions/v1.0">
 <Locale>en</Locale>
 <String>If this is the computer with the DVD drive, now launch the same ZEN icon on the computer with no DVD drive. 

Do not close this window on either computer until you are done transferring/installing files.</String>
 </PromptString>
 <PromptFrequency xmlns="https://www.novell.com/ZENworks/Actions/v1.0">PROMPT_ALWAYS</PromptFrequency>
 <CancelsAllowed xmlns="https://www.novell.com/ZENworks/Actions/v1.0">0</CancelsAllowed>
 <Timeout xmlns="https://www.novell.com/ZENworks/Actions/v1.0">0</Timeout>
 </ns1:PromptActionData>
 </Data>
 <ContinueOnFailure>false</ContinueOnFailure>
 <Enabled>true</Enabled>
 <reqsFailAction>0</reqsFailAction>
 <actionUniqueId>7b0a4f9f88bfd1ba20b5b5937474662b</actionUniqueId>
 </Actions>
 <Actions>
 <Id>98c597a51a913d3a36188637057abee2</Id>
 <Name>Run Script (DELETE SHARE)</Name>
 <Type>Run Script Action</Type>
 <Data>
 <ns1:RunScriptActionHandlerData xmlns:ns1="https://www.novell.com/ZENworks/Actions">
 <Exec xmlns="https://www.novell.com/ZENworks/Actions" maxTimeToWait="-1" terminateProgram="false">
 <ns2:Script xmlns:ns2="https://www.novell.com/ZENworks/Controls" extension=".bat">net share OPTICAL_DRIVE /delete /Y</ns2:Script>
 <ns2:ProgramExecutor xmlns:ns2="https://www.novell.com/ZENworks/Controls" arguments="" path="" />
 <ns2:AdvancedSettings xmlns:ns2="https://www.novell.com/ZENworks/Controls">
 <Priority xmlns="https://www.novell.com/ZENworks/Controls">Normal</Priority>
 <RunAs xmlns="https://www.novell.com/ZENworks/Controls">System</RunAs>
 </ns2:AdvancedSettings>
 </Exec>
 </ns1:RunScriptActionHandlerData>
 </Data>
 <ContinueOnFailure>true</ContinueOnFailure>
 <Enabled>true</Enabled>
 <Properties>Impersonation=SYSTEM;</Properties>
 <reqsFailAction>0</reqsFailAction>
 <actionUniqueId>b96bf7a9de37cb0d5f6eafff2d870c53</actionUniqueId>
 </Actions>
 <Actions>
 <Id>3527c7dbb2b40ac2c3930e0856795907</Id>
 <Name>Run Script (BAT FILE DEL)</Name>
 <Type>Run Script Action</Type>
 <Data>
 <ns1:RunScriptActionHandlerData xmlns:ns1="https://www.novell.com/ZENworks/Actions">
 <Exec xmlns="https://www.novell.com/ZENworks/Actions" maxTimeToWait="0" terminateProgram="false">
 <ns2:Script xmlns:ns2="https://www.novell.com/ZENworks/Controls" extension=".bat">del "H:\Optical_Drive.bat"</ns2:Script>
 <ns2:ProgramExecutor xmlns:ns2="https://www.novell.com/ZENworks/Controls" arguments="" path="" />
 <ns2:AdvancedSettings xmlns:ns2="https://www.novell.com/ZENworks/Controls">
 <Priority xmlns="https://www.novell.com/ZENworks/Controls">Normal</Priority>
 <RunAs xmlns="https://www.novell.com/ZENworks/Controls">User</RunAs>
 </ns2:AdvancedSettings>
 </Exec>
 </ns1:RunScriptActionHandlerData>
 </Data>
 <ContinueOnFailure>true</ContinueOnFailure>
 <Enabled>true</Enabled>
 <Properties>Impersonation=USER;</Properties>
 <reqsFailAction>0</reqsFailAction>
 <actionUniqueId>0216072ddd2460a9803f31c3080723bd</actionUniqueId>
 </Actions>
 </ns2:ActionSets>
 <ns2:ActionSets xmlns:ns2="http://novell.com/zenworks/datamodel/objects/actions" xmlns="http://novell.com/zenworks/datamodel/objects/actions">
 <Id>7e4c1af5950a30e90286dca759fe8f4e</Id>
 <Type>Distribution</Type>
 <Version>1</Version>
 <Modified>false</Modified>
 <Actions>
 <Id>335da9aa6032e1d4b2cb2913893abdf7</Id>
 <Type>Distribute Action</Type>
 <ContinueOnFailure>false</ContinueOnFailure>
 <Enabled>true</Enabled>
 <actionUniqueId>ebf8414eebf88f7e0dd6fda83462f29f</actionUniqueId>
 </Actions>
 </ns2:ActionSets>
 <ns2:ActionSets xmlns:ns2="http://novell.com/zenworks/datamodel/objects/actions" xmlns="http://novell.com/zenworks/datamodel/objects/actions">
 <Id>7045e82a15f246b09a7ce058ba8f2591</Id>
 <Type>Install</Type>
 <Version>1</Version>
 <Modified>false</Modified>
 <Data>
 <ns1:Install xmlns:ns1="http://novell.com/zenworks/apps/appSchema">
 <InstallOption xmlns="http://novell.com/zenworks/apps/appSchema">InstallPerMachine</InstallOption>
 <AllowedPostpones xmlns="http://novell.com/zenworks/apps/appSchema">3</AllowedPostpones>
 </ns1:Install>
 </Data>
 </ns2:ActionSets>
 <ns2:ActionSets xmlns:ns2="http://novell.com/zenworks/datamodel/objects/actions" xmlns="http://novell.com/zenworks/datamodel/objects/actions">
 <Id>383989c792ed2fa4a4cc08145c78c1f4</Id>
 <Type>Verify</Type>
 <Version>5</Version>
 <Modified>false</Modified>
 <Actions>
 <Id>dd15b200fdd6c13f555d1bfa480cce78</Id>
 <Type>Verify Install</Type>
 <ContinueOnFailure>false</ContinueOnFailure>
 <Enabled>true</Enabled>
 <actionUniqueId>9ca855d1bf6e8c0083d2c332ece2238a</actionUniqueId>
 </Actions>
 <Actions>
 <Id>d1d316f0ca57c66b9243303293fa87b9</Id>
 <Name>Run Script</Name>
 <Type>Run Script Action</Type>
 <Data>
 <ns1:RunScriptActionHandlerData xmlns:ns1="https://www.novell.com/ZENworks/Actions">
 <Exec xmlns="https://www.novell.com/ZENworks/Actions" maxTimeToWait="0" terminateProgram="false">
 <ns2:Script xmlns:ns2="https://www.novell.com/ZENworks/Controls" extension=".bat">del "H:\Optical_Drive.bat"</ns2:Script>
 <ns2:ProgramExecutor xmlns:ns2="https://www.novell.com/ZENworks/Controls" arguments="" path="" />
 <ns2:AdvancedSettings xmlns:ns2="https://www.novell.com/ZENworks/Controls">
 <Priority xmlns="https://www.novell.com/ZENworks/Controls">Normal</Priority>
 <RunAs xmlns="https://www.novell.com/ZENworks/Controls">User</RunAs>
 </ns2:AdvancedSettings>
 </Exec>
 </ns1:RunScriptActionHandlerData>
 </Data>
 <ContinueOnFailure>true</ContinueOnFailure>
 <Enabled>true</Enabled>
 <Properties>Impersonation=USER;</Properties>
 <reqsFailAction>0</reqsFailAction>
 <actionUniqueId>c1b1b5190042da2769d6b8052ad9ae4a</actionUniqueId>
 </Actions>
 <Actions>
 <Id>58f0de9191a2e5eb269fec9f438eaee6</Id>
 <Name>Run Script</Name>
 <Type>Run Script Action</Type>
 <Data>
 <ns1:RunScriptActionHandlerData xmlns:ns1="https://www.novell.com/ZENworks/Actions">
 <Exec xmlns="https://www.novell.com/ZENworks/Actions" maxTimeToWait="5" terminateProgram="false">
 <ns2:Script xmlns:ns2="https://www.novell.com/ZENworks/Controls" extension=".bat">net share OPTICAL_DRIVE /delete /Y</ns2:Script>
 <ns2:ProgramExecutor xmlns:ns2="https://www.novell.com/ZENworks/Controls" arguments="" path="" />
 <ns2:AdvancedSettings xmlns:ns2="https://www.novell.com/ZENworks/Controls">
 <Priority xmlns="https://www.novell.com/ZENworks/Controls">Normal</Priority>
 <RunAs xmlns="https://www.novell.com/ZENworks/Controls">System</RunAs>
 </ns2:AdvancedSettings>
 </Exec>
 </ns1:RunScriptActionHandlerData>
 </Data>
 <ContinueOnFailure>true</ContinueOnFailure>
 <Enabled>true</Enabled>
 <Properties>Impersonation=SYSTEM;</Properties>
 <reqsFailAction>0</reqsFailAction>
 <actionUniqueId>0cff91ed1254668b2817ade19d9a7829</actionUniqueId>
 </Actions>
 </ns2:ActionSets>
 <ns2:ActionSets xmlns:ns2="http://novell.com/zenworks/datamodel/objects/actions" xmlns="http://novell.com/zenworks/datamodel/objects/actions">
 <Id>a186c6d7ed86eea9fc25319526b21ecd</Id>
 <Type>Uninstall</Type>
 <Version>1</Version>
 <Modified>false</Modified>
 <Data>
 <ns1:Uninstall xmlns:ns1="http://novell.com/zenworks/apps/appSchema">
 <Enabled xmlns="http://novell.com/zenworks/apps/appSchema">false</Enabled>
 <AllowManual xmlns="http://novell.com/zenworks/apps/appSchema">false</AllowManual>
 <DaysBeforeUninstallWhenNotUsed xmlns="http://novell.com/zenworks/apps/appSchema">-1</DaysBeforeUninstallWhenNotUsed>
 <IgnoreChainedDependencies xmlns="http://novell.com/zenworks/apps/appSchema">false</IgnoreChainedDependencies>
 </ns1:Uninstall>
 </Data>
 <Actions>
 <Id>24c9b2113eed4ffa5a8986b44c9c5865</Id>
 <Type>Undo Install</Type>
 <ContinueOnFailure>false</ContinueOnFailure>
 <Enabled>true</Enabled>
 <actionUniqueId>3535cfdd921b21e9c145d519a429ab8b</actionUniqueId>
 </Actions>
 </ns2:ActionSets>
 <DisplayName>Z-Remote CD-DVD</DisplayName>
 <CreationDate>2017-01-30T13:13:12</CreationDate>
 <Category>simpleApp</Category>
 <Data>&lt;ns1:ApplicationBundleData xmlns="http://novell.com/zenworks/datamodel/objects/bundles" xmlns:ns1="http://novell.com/zenworks/datamodel/objects/bundles"&gt;&lt;IconExt&gt;png&lt;/IconExt&gt;&lt;AlwaysShowIcon&gt;false&lt;/AlwaysShowIcon&gt;&lt;ShowProgress&gt;false&lt;/ShowProgress&gt;&lt;ForceRunOrder&gt;-1&lt;/ForceRunOrder&gt;&lt;WaitOnForceRun&gt;false&lt;/WaitOnForceRun&gt;&lt;/ns1:ApplicationBundleData&gt;</Data>
</ns1:Bundle>

 

0 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 5 (0 votes, average: 0.00 out of 5)
You need to be a registered member to rate this post.
Loading...

Tags: ,
Categories: Cool Tools, Technical, Unified Endpoint Management, ZENworks

Disclaimer: This content is not supported by Micro Focus. It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test it thoroughly before using it in a production environment.

Comment

RSS