Hello,
I have received the following error when trying to import the Carbon Module using the Import-Carbon.ps1 script. I am using PowerShell version 5.1.15063.502
PS C:\WINDOWS\system32> C:\Carbon\Carbon-2.5.0\Carbon\Import-Carbon.ps1
Import-Module : Could not load file or assembly 'file:///C:\Carbon\Carbon-2.5.0\Carbon\bin\Carbon.dll' or one of its
dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
At C:\Carbon\Carbon-2.5.0\Carbon\Import-Carbon.ps1:96 char:1
+ Import-Module $carbonPsd1Path -ErrorAction Stop -Verbose:$false @impo ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Import-Module], FileLoadException
+ FullyQualifiedErrorId : FormatXmlUpdateException,Microsoft.PowerShell.Commands.ImportModuleCommand
Get-Member : You must specify an object for the Get-Member cmdlet.
At C:\Carbon\Carbon-2.5.0\Carbon\Import-Carbon.ps1:98 char:39
+ ... f( -not (Get-Module -Name 'Carbon' | Get-Member -Name 'ImportedAt') )
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [Get-Member], InvalidOperationException
+ FullyQualifiedErrorId : NoObjectInGetMember,Microsoft.PowerShell.Commands.GetMemberCommand
The property 'ImportedAt' cannot be found on this object. Verify that the property exists and can be set.
At C:\Carbon\Carbon-2.5.0\Carbon\Import-Carbon.ps1:106 char:5
+ $loadedModule.ImportedAt = Get-Date
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : PropertyNotFound
I am sure it something easy that I am missing, I am very new to PowerShell.
Thank you for your time!
Alan Walt
LAN Support II
Fond du Lac Resevation
--
You received this message because you are subscribed to the Google Groups "Carbon" group.
To unsubscribe from this group and stop receiving emails from it, send an email to carbonps+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/carbonps/4709D404677B1A4486E1B14FB3CB09107D51FCDD65%40MAILCLUSTER.mail.int.
For more options, visit https://groups.google.com/d/optout.