Hi Megan,

So upon some further learning and testing, what I am trying to accomplish 
ultimately is capturing a reference machine for Microsoft Deployment 
Toolkit. I know this is a weird use case and not something Packer was 
really built for, but I figured I would ask for some help. To capture an 
image, the VM runs a VBS script on a CIFS share (The MDT server). Which 
then starts the capturing process (such as sysprep and creating a .wim 
file). I actually have this working fine, but its a hack because I am 
actually just using a provisioner which is  PowerShell script mapping the 
CIFS share and kicking off the VBS script. I was wondering if you knew of a 
better way to handle this. The PowerShell post-processor might not work 
because I really need a shell on the packer VM, not my local.

"provisioners": [
{
"scripts": [
"./scripts/MDT.ps1"
],
"type": "powershell"
}

The MDT script is as this:

net use s: '\\wds-1.itg.ias.edu\win10capture$' /user:NTDOMAIN\wds 'PW'
Set-Location -Path S:\Scripts\
cscript .\litetouch.vbs
Start-Sleep -Seconds 3600

On Friday, May 4, 2018 at 4:18:06 PM UTC-4, Megan Marsh wrote:
>
> Sounds good to me :) . This is a great list to reach out to if you have 
> any questions. I assume you've seen our getting-started tutorial in the 
> docs, but just in case: 
> https://www.packer.io/intro/getting-started/build-image.html
>

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/5c407ee5-1f88-4d1a-af25-504d8ebffdc6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to