<task> - Verify And Create Windows Share Task
This is a task that is pre-defined within Osirium PAM release Windows templates.
It`s purpose is to setup a fileshare that Osirium PAM can connect into to fetch files from a Windows device.
It works in conjunction with the following two configuration lines, also predefined in Osirium PAM release Windows templates:
1 2 3 4
The share_directory configuration tag`s value attribute contains the Windows System Drive environment variable.
This will resolve to
C:\ or whatever the system drive is on the Windows device.
More info on :program:
<configuration> tag lines here: :ref:
The create and verify task looks like this:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
Basically it does the following:
|5||Name the task
|7||Create the actual directory on the Windows device. The substitution
|8||If the directory does not exist then, the device simple returns its standard prompt to showcreation has been successful.|
|9||If the directory already exists, then accept this as we want the directory is exists so allis good to carry on.|
|10||Anything else fails.|
|12||Set up a share based on the config item
|13||If the share already exists, then accept this and carry on.|
|14||If the share does not exist, then accept it has now been created.|
|15||Anything else fails.|
|17||Now we need to set the access permissions on the share so that the current user (the Osirium PAM) control account for this device and the built in
|18||Once cacls has done its stuff, it returns a statement saying the directory has been processed. So we look for this line as our success
|19||Anything else fails.|