Create a short script called mntWinSamba.sh that turns on samba and runs the command to mount the directory.
#! /bin/bash
user=linuxuser
pass=passwd4user
wincp=//win_hostname
winpath=/win_directory
linuxpath=/linux_mntdir
fstab_line=$wincp$winpath /mnt$linuxpath smbfs
username=$user,password=$pass 0 0
/etc/init.d/smb start
echo $fstab_line >> /etc/fstab
mount -a
|
Upload the script as a Local -> Post-Action -> mntWin.
See Uploading Actions.
Create a profile that requires samba-client and mntWin.
See To Create a Profile.
Make the profile applicable to all active distributions.
Run a job on selected hosts that deploys the profile.