Importing Modules in "Deploy to IIS" slow

execution

(kneumei) #1

I’m using the Deploy to IIS step, and it seems slow to me. Looking at the verbose Logs, I see that it spends over two minutes just importing functions. Is this normal? Surely it doesn’t need all these functions.

21:38:31 to 21:40:32 is all importing modules :frowning:

21:38:31   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Add-GroupMember.ps1.
21:38:32   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Add-IisDefaultDocument.ps1.
21:38:32   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Add-IisServerManagerMember.ps1.
21:38:33   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Add-TrustedHost.ps1.
21:38:33   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Assert-AdminPrivilege.ps1.
21:38:34   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Assert-FirewallConfigurable.ps1.
21:38:34   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Assert-Service.ps1.
21:38:35   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Assert-WindowsFeatureFunctionsSupported.ps1.
21:38:35   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Clear-DscLocalResourceCache.ps1.
21:38:36   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Clear-MofAuthoringMetadata.ps1.
21:38:36   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Clear-TrustedHost.ps1.
21:38:38   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Complete-Job.ps1.
21:38:38   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Compress-Item.ps1.
21:38:38   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Convert-SecureStringToString.ps1.
21:38:40   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Convert-XmlFile.ps1.
21:38:40   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\ConvertFrom-Base64.ps1.
21:38:40   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\ConvertTo-Base64.ps1.
21:38:40   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\ConvertTo-ContainerInheritanceFlags.ps1.
21:38:43   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\ConvertTo-InheritanceFlag.ps1.
21:38:43   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\ConvertTo-PropagationFlag.ps1.
21:38:43   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\ConvertTo-ProviderAccessControlRights.ps1.
21:38:43   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\ConvertTo-SecurityIdentifier.ps1.
21:38:43   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Copy-DscResource.ps1.
21:38:47   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Disable-FirewallStatefulFtp.ps1.
21:38:47   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Disable-IEEnhancedSecurityConfiguration.ps1.
21:38:47   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Disable-IisSecurityAuthentication.ps1.
21:38:47   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Disable-NtfsCompression.ps1.
21:38:47   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Enable-FirewallStatefulFtp.ps1.
21:38:47   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Enable-IEActivationPermission.ps1.
21:38:47   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Enable-IisDirectoryBrowsing.ps1.
21:38:51   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Enable-IisSecurityAuthentication.ps1.
21:38:51   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Enable-IisSsl.ps1.
21:38:51   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Enable-NtfsCompression.ps1.
21:38:51   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Expand-Item.ps1.
21:38:51   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Find-ADUser.ps1.
21:38:51   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Format-ADSearchFilterValue.ps1.
21:38:51   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Get-ADDomainController.ps1.
21:38:51   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Get-Certificate.ps1.
21:38:57   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Get-CertificateStore.ps1.
21:38:57   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Get-ComPermission.ps1.
21:38:57   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Get-ComSecurityDescriptor.ps1.
21:38:57   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Get-DscError.ps1.
21:38:57   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Get-DscWinEvent.ps1.
21:38:57   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Get-FileShare.ps1.
21:38:57   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Get-FileSharePermission.ps1.
21:38:57   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Get-FirewallRule.ps1.
21:39:02   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Get-Group.ps1.
21:39:02   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Get-HttpUrlAcl.ps1.
21:39:02   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Get-IdentityPrincipalContext.ps1.
21:39:02   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Get-IisApplication.ps1.
21:39:02   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Get-IisAppPool.ps1.
21:39:02   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Get-IisConfigurationSection.ps1.
21:39:02   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Get-IisHttpHeader.ps1.
21:39:02   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Get-IisHttpRedirect.ps1.
21:39:02   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Get-IisMimeMap.ps1.
21:39:07   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Get-IisSecurityAuthentication.ps1.
21:39:07   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Get-IisVersion.ps1.
21:39:07   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Get-IisWebsite.ps1.
21:39:07   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Get-IPAddress.ps1.
21:39:07   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Get-Msi.ps1.
21:39:07   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Get-MsmqMessageQueue.ps1.
21:39:07   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Get-MsmqMessageQueuePath.ps1.
21:39:07   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Get-PathProvider.ps1.
21:39:07   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Get-PathToHostsFile.ps1.
21:39:12   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Get-PerformanceCounter.ps1.
21:39:12   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Get-Permission.ps1.
21:39:12   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Get-PowerShellModuleInstallPath.ps1.
21:39:12   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Get-PowershellPath.ps1.
21:39:12   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Get-Privilege.ps1.
21:39:12   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Get-ProgramInstallInfo.ps1.
21:39:12   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Get-RegistryKeyValue.ps1.
21:39:12   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Get-ScheduledTask.ps1.
21:39:12   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Get-ServiceAcl.ps1.
21:39:17   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Get-ServiceConfiguration.ps1.
21:39:17   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Get-ServicePermission.ps1.
21:39:17   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Get-ServiceSecurityDescriptor.ps1.
21:39:17   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Get-SslCertificateBinding.ps1.
21:39:17   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Get-TrustedHost.ps1.
21:39:17   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Get-User.ps1.
21:39:17   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Get-WindowsFeature.ps1.
21:39:17   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Get-WmiLocalUserAccount.ps1.
21:39:17   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Grant-ComPermission.ps1.
21:39:22   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Grant-HttpUrlPermission.ps1.
21:39:22   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Grant-MsmqMessageQueuePermission.ps1.
21:39:22   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Grant-Permission.ps1.
21:39:22   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Grant-Privilege.ps1.
21:39:22   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Grant-ServiceControlPermission.ps1.
21:39:22   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Grant-ServicePermission.ps1.
21:39:22   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Initialize-Lcm.ps1.
21:39:22   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Install-Certificate.ps1.
21:39:22   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Install-Directory.ps1.
21:39:27   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Install-FileShare.ps1.
21:39:27   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Install-Group.ps1.
21:39:27   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Install-IisApplication.ps1.
21:39:27   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Install-IisAppPool.ps1.
21:39:27   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Install-IisVirtualDirectory.ps1.
21:39:27   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Install-IisWebsite.ps1.
21:39:27   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Install-Junction.ps1.
21:39:27   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Install-Msi.ps1.
21:39:32   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Install-Msmq.ps1.
21:39:32   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Install-MsmqMessageQueue.ps1.
21:39:32   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Install-PerformanceCounter.ps1.
21:39:32   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Install-RegistryKey.ps1.
21:39:32   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Install-ScheduledTask.ps1.
21:39:32   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Install-Service.ps1.
21:39:32   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Install-User.ps1.
21:39:32   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Install-WindowsFeature.ps1.
21:39:32   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Invoke-AppCmd.ps1.
21:39:37   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Invoke-ConsoleCommand.ps1.
21:39:37   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Invoke-PowerShell.ps1.
21:39:37   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Join-IisVirtualPath.ps1.
21:39:37   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Lock-IisConfigurationSection.ps1.
21:39:37   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\New-Credential.ps1.
21:39:37   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\New-Junction.ps1.
21:39:37   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\New-RsaKeyPair.ps1.
21:39:37   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\New-TempDirectory.ps1.
21:39:37   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Protect-Acl.ps1.
21:39:42   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Protect-String.ps1.
21:39:42   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Remove-EnvironmentVariable.ps1.
21:39:42   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Remove-GroupMember.ps1.
21:39:42   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Remove-HostsEntry.ps1.
21:39:42   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Remove-IisMimeMap.ps1.
21:39:42   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Remove-IniEntry.ps1.
21:39:42   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Remove-Junction.ps1.
21:39:42   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Remove-RegistryKeyValue.ps1.
21:39:42   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Remove-SslCertificateBinding.ps1.
21:39:47   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Reset-HostsFile.ps1.
21:39:47   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Reset-MsmqQueueManagerID.ps1.
21:39:47   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Resolve-FullPath.ps1.
21:39:47   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Resolve-Identity.ps1.
21:39:47   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Resolve-IdentityName.ps1.
21:39:47   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Resolve-NetPath.ps1.
21:39:47   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Resolve-PathCase.ps1.
21:39:47   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Resolve-RelativePath.ps1.
21:39:47   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Resolve-WindowsFeatureName.ps1.
21:39:52   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Restart-RemoteService.ps1.
21:39:52   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Revoke-ComPermission.ps1.
21:39:52   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Revoke-HttpUrlPermission.ps1.
21:39:52   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Revoke-Permission.ps1.
21:39:52   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Revoke-Privilege.ps1.
21:39:52   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Revoke-ServicePermission.ps1.
21:39:52   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Set-CryptoKeySecurity.ps1.
21:39:52   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Set-DotNetAppSetting.ps1.
21:39:52   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Set-DotNetConnectionString.ps1.
21:39:57   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Set-EnvironmentVariable.ps1.
21:39:57   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Set-HostsEntry.ps1.
21:39:57   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Set-IisHttpHeader.ps1.
21:39:57   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Set-IisHttpRedirect.ps1.
21:39:57   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Set-IisMimeMap.ps1.
21:39:57   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Set-IisWebsiteID.ps1.
21:39:57   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Set-IisWebsiteSslCertificate.ps1.
21:39:57   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Set-IisWindowsAuthentication.ps1.
21:39:57   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Set-IniEntry.ps1.
21:40:02   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Set-RegistryKeyValue.ps1.
21:40:02   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Set-ServiceAcl.ps1.
21:40:02   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Set-SslCertificateBinding.ps1.
21:40:02   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Set-TrustedHost.ps1.
21:40:02   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Split-Ini.ps1.
21:40:02   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Start-DscPullConfiguration.ps1.
21:40:02   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Test-AdminPrivilege.ps1.
21:40:02   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Test-DotNet.ps1.
21:40:02   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Test-DscTargetResource.ps1.
21:40:07   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Test-FileShare.ps1.
21:40:07   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Test-FirewallStatefulFtp.ps1.
21:40:07   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Test-Group.ps1.
21:40:07   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Test-GroupMember.ps1.
21:40:07   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Test-Identity.ps1.
21:40:07   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Test-IisAppPool.ps1.
21:40:07   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Test-IisConfigurationSection.ps1.
21:40:07   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Test-IisSecurityAuthentication.ps1.
21:40:12   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Test-IisWebsite.ps1.
21:40:12   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Test-IPAddress.ps1.
21:40:12   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Test-MsmqMessageQueue.ps1.
21:40:12   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Test-NtfsCompression.ps1.
21:40:12   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Test-OSIs32Bit.ps1.
21:40:12   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Test-OSIs64Bit.ps1.
21:40:12   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Test-PathIsJunction.ps1.
21:40:12   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Test-PerformanceCounter.ps1.
21:40:12   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Test-PerformanceCounterCategory.ps1.
21:40:17   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Test-Permission.ps1.
21:40:17   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Test-PowerShellIs32Bit.ps1.
21:40:17   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Test-PowerShellIs64Bit.ps1.
21:40:17   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Test-Privilege.ps1.
21:40:17   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Test-RegistryKeyValue.ps1.
21:40:17   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Test-ScheduledTask.ps1.
21:40:17   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Test-Service.ps1.
21:40:17   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Test-SslCertificateBinding.ps1.
21:40:17   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Test-TypeDataMember.ps1.
21:40:22   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Test-UncPath.ps1.
21:40:22   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Test-User.ps1.
21:40:22   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Test-WindowsFeature.ps1.
21:40:22   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Test-ZipFile.ps1.
21:40:22   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Uninstall-Certificate.ps1.
21:40:22   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Uninstall-Directory.ps1.
21:40:22   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Uninstall-FileShare.ps1.
21:40:22   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Uninstall-Group.ps1.
21:40:22   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Uninstall-IisAppPool.ps1.
21:40:27   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Uninstall-IisWebsite.ps1.
21:40:27   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Uninstall-Junction.ps1.
21:40:27   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Uninstall-MsmqMessageQueue.ps1.
21:40:27   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Uninstall-PerformanceCounterCategory.ps1.
21:40:27   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Uninstall-ScheduledTask.ps1.
21:40:27   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Uninstall-Service.ps1.
21:40:27   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Uninstall-User.ps1.
21:40:27   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Uninstall-WindowsFeature.ps1.
21:40:27   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Unlock-IisConfigurationSection.ps1.
21:40:32   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Unprotect-String.ps1.
21:40:32   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Use-CallerPreference.ps1.
21:40:32   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Write-DscError.ps1.
21:40:32   Verbose  |       Importing function C:\windows\system32\windowspowershell\v1.0\Modules\Carbon\Functions\Write-IisVerbose.ps1.

(Tom Williams) #2

Hi,

Thanks for reaching out. I am not specifically familiar with the Carbon PowerShell module as it isn’t a component of Octopus, however if that PowerShell module is included in the PowerShell profile for the user that the Tentacle runs under then it will be loaded as it will be loaded automatically when PowerShell starts up.

I hope that helps, please let me know if you have any further questions.

Kinds Regards,
Tom W


(Alex Kates) #3

I’ve run into this as well. The problem occurs on a deployment target with Carbon installed into C:\windows\system32\windowspowershell\v1.0\Modules. The BeforePostDeployment script attempts to get the IIS Feature using ServerManager’s Get-WindowsFeature which you can see here.

The problem is that Carbon also has a Get-WindowsFeature function which causes Carbon to import into the powershell session.

It’s important to add that I’m only seeing this issue when running the Octopus Tentacle as the system administrator i.e., NT Authority\SYSTEM


(Tom Williams) #4