Failed while executing ActionCreateNewGroup.ps1 (Access denied)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2022 03:39 AM
HI Team ,
I have PowerShell script stored on mid server to create OU in Active Directory using AD spokes. i have 10 different domains in which this script has to be executed . i could get script successfully only in two domain and its getting failed in rest of the domains.(checked with access to user its same for all the domains)
Error:
- Labels:
-
Orchestration (ITOM)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2022 03:51 AM
For given Orchestration User - Access Right of making group is missing.
If u see content of script- ActionCreateNewGroup.ps1 there are commands which are trying to write in AD but since access is not there , Its failing
Regards
RP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2022 03:00 AM
Hi Rahul,
Do you have any solution how we can grant access to this script file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2022 09:56 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2022 08:48 PM
do u have any CLI fr firing these commands on given 8 domains?
You can test manually what service now is trying to do using same orchestration user. This way you can start your troubleshooting.
Regards
RP