- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
CONTEXT:
1) I tried running an action "GETAccount" using 2 mid servers, let's say mid1 and mid2.
2) Using mid1 I'm able to complete the action successfully and get the required data.
3) Using mid2, action gets complete with an error "Error:The term 'Get-ADUser' 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."
WHAT I DID:
1) After analysis I concluded that mid2 is missing ActiveDirectory module, I confirmed it by running this command on powershell "Get-Module -ListAvailable ActiveDirectory" which returns nothing in mid2.
2) Same command returns the path, and operations in mid1, which means mid1 has ActiveDirectoy.
3) I copied the ActiveDirectory folder from mid1 and pasted in mid2 on same location.
4) After this the command "Get-Module -ListAvailable ActiveDirectory" is returning the path and operations on mid2 as well, but I'm still getting the same error on the action in servicenow.
ASSISTANCE REQUIRED ON THE FOLLOWING:
1) I'm not sure weather ActiveDirectory is installed in mid2 or not, as the command returns the value, but we are getting same error while executing the action.
2) Do I need to restart the mid, or the host in order for it to sync.
3) Is there a correct way to install ActiveDirectory.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
I've found the resolution, which worked for me.
Copying ActiveDirectory file doesn't work, so here's what I did.
1) Delete the copied Active Directory file from mid2.
2) Open powershell and install ActiveDirectory correctly using below commands:
2.1) Get-WindowsFeature RSAT-AD-Powershell
This should return installed state : available.
2.2) Install-WindowsFeature RSAT-AD-Powershell
Wait for it to complete and display success message. (took 1 minute for me)
2.3) Restart the mid server, service.
After this is tested the action with mid2 and it worked.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
I've found the resolution, which worked for me.
Copying ActiveDirectory file doesn't work, so here's what I did.
1) Delete the copied Active Directory file from mid2.
2) Open powershell and install ActiveDirectory correctly using below commands:
2.1) Get-WindowsFeature RSAT-AD-Powershell
This should return installed state : available.
2.2) Install-WindowsFeature RSAT-AD-Powershell
Wait for it to complete and display success message. (took 1 minute for me)
2.3) Restart the mid server, service.
After this is tested the action with mid2 and it worked.
Thanks