Can't include ps1 from BuildDeploySupport using dot-sourcing

I’m trying to use the Deployweb script from BuildDeploySupport (

I have this at the top of PreDeploy.ps1:

. .\DeployWeb.ps1

InstallAppPool ‘…’ ‘v4.0’ {
SetCredentials ‘…’ ‘…’

But it doesnt seem to be including the Deployweb functions into powershell. I get:

2013-08-08 14:21:05 INFO ERROR: The term ‘InstallAppPool’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included,…

I’m on octopus version

Is there a trick to getting that to include those functions? I have verified that script is in the same folder as PreDeploy on the extracted path on the target machine.

Any ideas?

I think i just figured this out. His sample was InstallAppPool while the actual function is Install-AppPool.

I’ll update his docs to be correct. thanks!

Actually what I found was the blog post you had published has incorrect examples here:

His github repo has the correct function names