Page 1 of 1

Map a drive - Direct to specific device?

Posted: Thu Apr 28, 2022 9:40 am
by NathanWilson
Hello,

We've just adopted this plugin and it looks really valuable!

One question, when using the map drive/printer function in the plugin, how do we direct this to a specific device not all? Doesn't appear to be an option - I see Console number = 0 which is changable which I presume is the function, but no documentation on how the logic behind this works?

Re: Map a drive - Direct to specific device?

Posted: Fri Apr 29, 2022 1:08 pm
by Cubert
Don't mind the "Habitat" its the same plugin tool + a little. It will work for demo purposes.

Which ever agent you select from the drives list gets the mappings, unless the Map Across Client is set to yes.



The mapping function schedules a script to do the work. It passes the arguments over to script and the Automate script then handles the actual mapping. You can follow this along in the scripts log of the agent in question.

If Map across client is set to yes, then that same script is scheduled on all windows agents. If drive already exists it will error out as a duplicate and leave existing mapping as is.

The console ID is sent as an ID to identify a logged in console to install as, if no one is logged in it switches to execute as admin. All other controls are directed to the map drive command on Windows.
mapdrive.png
mapdrive.png (33.12 KiB) Viewed 1490 times