Showing posts with label PowerShell. Show all posts
Showing posts with label PowerShell. Show all posts

Saturday, 4 September 2021

Orchestrator: Runbook Error "The term Get-SCSMObject is not recognized as the name of a cmlet..."

Working on a project to upgrade System Center Service Manager (SCSM) and Orchestrator (SCO) 2019 recently, seeing a familiar error message from Orchestrator Runbook again.

Runbook activity show Failed.



Error : The tern 'Get-SCSMObject' is not recognized as the name of a cmlet, 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.



Resolution: Copy SMLets Folder from System32 to SysWOW64 !

FROM

C:\Windows\System32\WindowsPowerShell\v1.0\Modules

TO

C:\Windows\SysWOW64\WindowsPowerShell\v1.0\Modules


Happily see the activity completed success now !





Wednesday, 30 September 2020

Connect-AzureAD : The term 'Connect-AzureAD' is not recognized

Working on Windows 10 2004 to execute powershell script and found that AzureAD module is not installed yet. 

Error Message: 

Connect-AzureAD : The term 'Connect-AzureAD' 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.

Executed command Install-Module AzureAD to install the module from Administrator powershell windows, another error prompt as below:

Error Message:

Install-Module : The 'Install-Module' command was found in the module 'PowerShellGet', but the module could not be loaded. For more information, run 'Import-Module PowerShellGet'. 


Perform check on Powershell Execution Policy and currently on Restricted state. 

Execute Set-ExecutionPolicy Unrestricted to unblock it and it's work !


Finally, I was able to connect AzureAD to continue the work.