Welcome › Forums › General PowerShell Q&A › Learning Powershell. Getting this error for custom attribute 'CmdletBidning'
This topic contains 3 replies, has 3 voices, and was last updated by
I am learning powershell and doing this exercise by following some training videos from Lynda.com
They use PS v3 in the training. I have Pwerhsell version 5.1.14965.1001
it gives me this error. Why? Googled it and it didn't help me to resolve it.
Error: Cannot find the type for custom attribute 'CmdletBidning'. Make sure that the assembly that contains this type is loaded.
Here is the script that I am writing. 🙂
# Param1 help description
foreach ($computer in $computername)
Get-DJOSInfo -computername my-pc
#Get-DJOSInfo -computername dc1, dc2
#Get-DJOSInfo computers.txt | Get-DJOSInfo -namelog
#Get-DJOSInfo -host localhost
Your error message has "CmdletBinding" with a typo.
Update the script to have the correct spelling and then re-run the script and try your function.
Thank you! It is working now!
The topic ‘Learning Powershell. Getting this error for custom attribute 'CmdletBidning'’ is closed to new replies.