Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

strange error from AD when using powershell

$
0
0

hey guys, im trying to add UPN suffixes to AD-Forest, and im using the below command for that.

Import-Module activedirectory
Set-ADForest -Identity domain.com -UPNSuffixes @{Add="demo23.com"}

now the problem  sometimes im getting the below error.

Set-ADForest : Insufficient access rights to perform the operation
At line:1 char:13+ Set-ADForest <<<<  -Identity "domain.com" -UPNSuffixes @{Add="demo23.com"}+ CategoryInfo          : NotSpecified: (Microsoft.Activ...gement.ADForest:ADForest) [Set-ADForest], ADException+ FullyQualifiedErrorId : Insufficient access rights to perform the operation,Microsoft.ActiveDirectory.Management
   .Commands.SetADForest

Now, the above error comes occasionally.. 

i was able to actually execute the powershell cmdlets peacefully, then all of a sudden it throws teh above error for teh same user on same machine, and on same powershell console.. 

im totally blank here. can any help help me with this strange error.

Edit:

Just now i have been able to reproduce the error. What i did was to log off from the domain controller and then after logging back and running the same command, im getting the same error.

 i have already posted the same question  here  http://social.technet.microsoft.com/Forums/en-US/winserverpowershell/thread/b75fb1ca-1f4a-4669-b929-196ab005898e

but no luck...


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>