Windows 2012 R2: Help with Start Up Script(s) - Mount ISO's on Startup and Share
hello,
i have windows 2012 r2 server, used virtual machines (pdc, exchange, etc)
i accomplish following , researching looking see if on right path.
1. mount 10 iso's when server reboots & starts up
2. share these mounted iso's, file server
here thoughts , hoping put together
- use powershell script mount-diskimage
- use powershell (check if worked, , share)
- i apply gpo make 1 machine run thing?
here thoughts (script)
pretending purposely trying mount , share 2 specific iso's
$isovolumeone = "e:\isos\isoone.iso"
$isovolumetwo = "e:\isos\isotwo.iso"
$isoimageone = get-diskimage -imagepath $isovolumeone | get-volume
$isoimagetwo = get-diskimage -imagepath $isovolumetwo | get-volume
$isoonename = "office2016"
$isotwoname = "vstf2015"
new-smbshare –name $isoonename –path $isoimageone –fullaccess administrator -readaccess everyone
new-smbshare –name $isotwoname –path $isoimagetwo –fullaccess administrator -readaccess everyone
questions
- does script pretty good? (gonna try out)
- i thinking needed add :\ or "new-smbshare" since drive letter wouldn't enough think?
- how make run each time starts ups
thanks!
- how make run each time starts ups
you can use startup scripts or scheduled tasks.
https://technet.microsoft.com/en-us/library/cc770556.aspx?f=255&mspperror=-2147217396
for scripting help i'd ask on here.
regards, dave patrick ....
microsoft certified professional
microsoft mvp [windows]
disclaimer: posting provided "as is" no warranties or guarantees , , confers no rights.
Windows Server > Windows Server General Forum
Comments
Post a Comment