Unable to find type [stirng]
mikeoke opened this issue · 10 comments
When I lookup commands in Powershell I get the following error
Windows PowerShell ISE - Error
Failed to import the module required by command "Get-TestimoSources". Module name: "Testimo". Error message: "Unable to find type [stirng].".
OK
Also with the other modules same [STIRNG] error
Failed to import the module required by command "Get-TestimoConfiguration".
Failed to import the module required by command "Invoke-Testimo".
You need to provide more details.
- How did you install Testimo?
- Which version?
- How are you trying to use it?
- What errors exactly are you getting? Which line etc?
You need to provide more details.
Sorry I am new to GitHub and try to give you more info below with printscreen.
How did you install Testimo?
Install-Module -Name Testimo -AllowClobber -Force
Which version?
Update-Module -Name Testimo
[Current: 0.0.36]
How are you trying to use it?
Powershell ISE on Server 2016
[i][Testimo] Version [Informative] [Current: 0.0.36]
[i][Testimo] Using configuration defaults [Informative] [No configuration provided by user]
[i][Forest] Forest [Informative]
What errors exactly are you getting? Which line etc?
I will attach printscreen
In this Printscreen when I click "Show Details" I got this error.
I use Powershell this way so I can type extra commands in de Details and RUN command
Could it be that you have more than one testimo release get-module -listavailable Testimo
?
@PrzemyslawKlys I remember seeing the same thing but ended up switching to VS Code when I saw ISE was being deprecated as I researched. It's specifically when you pop open that autofill/help module. It's possible you typo'd a typecast somewhere but I'm not finding "stirng" anywhere in the Testimo code at least. Maybe an ISE bug?
Maybe older release is present with this bug?
I also got this error:
This can be solved with:
Import-Module ActiveDirectory
The other problem comes from PSSharedGoods:
function Get-ComputerServices {
[CmdletBinding()]
param([stirng] $ComputerName = $Env:COMPUTERNAME)
$Services = Get-PSService -ComputerName $ComputerName | Select-Object Name, Displayname, Status
return $Services
}
Update-Module Testimo should fix it. I will also change in new version to fix the adaccount issue.
Actually I'll keep it open till that's fixed.
Thank you both for helping.
I am glad you found a solution.
When I use powershell its almost always in Powershell ISE but with Testimo it also works directly, I am happy and got a nice Report and some work to do.
Thanks!