Hello, I have a W2008 R2 Enterprise with SCSM 2010 SP1 7.0.6555.128, when I run de command Import-Module -Name SMLets I have the next error. I do not what to do to resolve it. I will apreciate help.
Thanks.
Patricio from Argentina.
Import-Module : Cannot load Windows PowerShell snap-in C:\Program Files\Common Files\SMLets\SMLets.Module.dll because of the following error: Unable to load one or more of the requested types. Retrieve
the LoaderExceptions property for more information.
Loader Exceptions:
Could not load file or assembly 'Microsoft.EnterpriseManagement.Core, Version=7.0.5000.0, Culture=neutral, PublicKeyToken=9396306c2be7fcc4' or one of its dependencies. The system cannot find the file s
pecified.
Could not load file or assembly 'Microsoft.EnterpriseManagement.Core, Version=7.0.5000.0, Culture=neutral, PublicKeyToken=9396306c2be7fcc4' or one of its dependencies. The system cannot find the file s
pecified.
Could not load file or assembly 'Microsoft.EnterpriseManagement.Core, Version=7.0.5000.0, Culture=neutral, PublicKeyToken=9396306c2be7fcc4' or one of its dependencies. The system cannot find the file s
pecified.
At C:\Program Files\Common Files\SMLets\Scripts\InactiveIncidentNotification-V2-AnalystOnly.ps1:1 char:14
+ Import-Module <<<< -Name SMLets
+ CategoryInfo : ResourceUnavailable: (:) [Import-Module], PSSnapInException
+ FullyQualifiedErrorId : PSSnapInLoadFailure,Microsoft.PowerShell.Commands.ImportModuleCommand
The term 'Get-SCSMEnumeration' 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, verify that the path is
correct and try again.
At C:\Program Files\Common Files\SMLets\Scripts\InactiveIncidentNotification-V2-AnalystOnly.ps1:36 char:30
+ $Status = Get-SCSMEnumeration <<<< IncidentStatusEnum.$IncidentStatus$
+ CategoryInfo : ObjectNotFound: (Get-SCSMEnumeration:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
The term 'Get-SCSMRelationshipClass' 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, verify that the pa
th is correct and try again.
At C:\Program Files\Common Files\SMLets\Scripts\InactiveIncidentNotification-V2-AnalystOnly.ps1:37 char:56
+ $AssignedUserObjectRelClass = Get-SCSMRelationshipClass <<<< System.WorkItemAssignedToUser
+ CategoryInfo : ObjectNotFound: (Get-SCSMRelationshipClass:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
The term 'Get-SCSMClass' 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, verify that the path is correc
t and try again.
At C:\Program Files\Common Files\SMLets\Scripts\InactiveIncidentNotification-V2-AnalystOnly.ps1:38 char:31
+ $IncidentClass = Get-SCSMClass <<<< -name System.WorkItem.Incident$
+ CategoryInfo : ObjectNotFound: (Get-SCSMClass:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
The term 'Get-SCSMObject' 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, verify that the path is corre
ct and try again.
At C:\Program Files\Common Files\SMLets\Scripts\InactiveIncidentNotification-V2-AnalystOnly.ps1:41 char:29
+ $Incidents= @(Get-SCSMObject <<<< -Class $IncidentClass | Where {($_.Status -eq $Status -AND $_.LastModified -lt $BeforeDate)})
+ CategoryInfo : ObjectNotFound: (Get-SCSMObject:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Thanks.
Patricio from Argentina.
Import-Module : Cannot load Windows PowerShell snap-in C:\Program Files\Common Files\SMLets\SMLets.Module.dll because of the following error: Unable to load one or more of the requested types. Retrieve
the LoaderExceptions property for more information.
Loader Exceptions:
Could not load file or assembly 'Microsoft.EnterpriseManagement.Core, Version=7.0.5000.0, Culture=neutral, PublicKeyToken=9396306c2be7fcc4' or one of its dependencies. The system cannot find the file s
pecified.
Could not load file or assembly 'Microsoft.EnterpriseManagement.Core, Version=7.0.5000.0, Culture=neutral, PublicKeyToken=9396306c2be7fcc4' or one of its dependencies. The system cannot find the file s
pecified.
Could not load file or assembly 'Microsoft.EnterpriseManagement.Core, Version=7.0.5000.0, Culture=neutral, PublicKeyToken=9396306c2be7fcc4' or one of its dependencies. The system cannot find the file s
pecified.
At C:\Program Files\Common Files\SMLets\Scripts\InactiveIncidentNotification-V2-AnalystOnly.ps1:1 char:14
+ Import-Module <<<< -Name SMLets
+ CategoryInfo : ResourceUnavailable: (:) [Import-Module], PSSnapInException
+ FullyQualifiedErrorId : PSSnapInLoadFailure,Microsoft.PowerShell.Commands.ImportModuleCommand
The term 'Get-SCSMEnumeration' 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, verify that the path is
correct and try again.
At C:\Program Files\Common Files\SMLets\Scripts\InactiveIncidentNotification-V2-AnalystOnly.ps1:36 char:30
+ $Status = Get-SCSMEnumeration <<<< IncidentStatusEnum.$IncidentStatus$
+ CategoryInfo : ObjectNotFound: (Get-SCSMEnumeration:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
The term 'Get-SCSMRelationshipClass' 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, verify that the pa
th is correct and try again.
At C:\Program Files\Common Files\SMLets\Scripts\InactiveIncidentNotification-V2-AnalystOnly.ps1:37 char:56
+ $AssignedUserObjectRelClass = Get-SCSMRelationshipClass <<<< System.WorkItemAssignedToUser
+ CategoryInfo : ObjectNotFound: (Get-SCSMRelationshipClass:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
The term 'Get-SCSMClass' 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, verify that the path is correc
t and try again.
At C:\Program Files\Common Files\SMLets\Scripts\InactiveIncidentNotification-V2-AnalystOnly.ps1:38 char:31
+ $IncidentClass = Get-SCSMClass <<<< -name System.WorkItem.Incident$
+ CategoryInfo : ObjectNotFound: (Get-SCSMClass:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
The term 'Get-SCSMObject' 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, verify that the path is corre
ct and try again.
At C:\Program Files\Common Files\SMLets\Scripts\InactiveIncidentNotification-V2-AnalystOnly.ps1:41 char:29
+ $Incidents= @(Get-SCSMObject <<<< -Class $IncidentClass | Where {($_.Status -eq $Status -AND $_.LastModified -lt $BeforeDate)})
+ CategoryInfo : ObjectNotFound: (Get-SCSMObject:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException