F
Fyodor Koryazhkin
Hi,
I am trying to add a domain memeber to a local group but my script fails
with the following error:
"General access denied error
Code: 80070005
Source: Active Directory"
The script I am running is:
computername = computer
ServerName = domain
User_Name = user
set IIS_WPG = GetObject("WinNT://" & computername & "/IIS_WPG,group")
set MyUser = GetObject("WinNT://" & ServerName & "/" & User_Name & ",user")
if not IIS_WPG.IsMember(MyUser.AdsPath) then
IIS_WPG.Add(MyUser.AdsPath)
End if
The script fails on the line IIS_WPG.Add(MyUser.AdsPath).
If I run the same script trying to add a local user, it passes OK.
Where can be a problem?
Thank you.
Fyodor.
I am trying to add a domain memeber to a local group but my script fails
with the following error:
"General access denied error
Code: 80070005
Source: Active Directory"
The script I am running is:
computername = computer
ServerName = domain
User_Name = user
set IIS_WPG = GetObject("WinNT://" & computername & "/IIS_WPG,group")
set MyUser = GetObject("WinNT://" & ServerName & "/" & User_Name & ",user")
if not IIS_WPG.IsMember(MyUser.AdsPath) then
IIS_WPG.Add(MyUser.AdsPath)
End if
The script fails on the line IIS_WPG.Add(MyUser.AdsPath).
If I run the same script trying to add a local user, it passes OK.
Where can be a problem?
Thank you.
Fyodor.