You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: error while writing ini file to "\\trustrtestDC.com\SysVol\trustrtestDC.com\Policies\{6FD49D26-75FE-4E44-ADA5-502BE68EA6C2}\Machine\Microsoft\Windows NT\SecEdit\GptTmpl.inf": Error uploading file to $env:TEMP\winrmcp-5e93b190-66a5-4ed6-5e2d-737cd1a57b34.tmp: Couldn't create shell: http response error: 401 - invalid content type
│
│ with ad_gpo_security.gpo_sec,
│ on ad_gpo_security.tf line 22, in resource "ad_gpo_security" "gpo_sec":
│ 22: resource "ad_gpo_security" "gpo_sec" {
I got this error while running ad_gpo_security. I double checked my configuration and its all correct. I did tried all of the functionality like gpo, gpo membership, ad computer and so on from the official web, all went well only getting error for this. Any solution? thanks in advance!
PS : yes trustrtestDC.com is my domain
The text was updated successfully, but these errors were encountered:
terraform {
required_providers {
ad = {
source = "hashicorp/ad"
version = "0.4.4"
}
}
}
provider "ad" {
winrm_hostname = var.hostname
winrm_username = var.username
winrm_password = var.password
winrm_use_ntlm = true
winrm_port = "5985"
winrm_proto = "http"
winrm_insecure = false
}
resource "ad_gpo" "gpo" {
name = var.gpo_name
domain = var.domain
}
resource "ad_gpo_security" "gpo_sec" {
gpo_container = ad_gpo.gpo.id
password_policies {
maximum_password_age = var.minimum_password_length
}
system_services {
service_name = var.service_name
startup_mode = var.startup_mode
acl = "D:AR(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;LA)"
}
system_services {
service_name = var.service_name2
startup_mode = var.startup_mode2
acl = "D:AR(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;SY)(A;;CCLCSWLOCRRC;;;IU)S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD)"
}
}
Error: error while writing ini file to "\\trustrtestDC.com\SysVol\trustrtestDC.com\Policies\{6FD49D26-75FE-4E44-ADA5-502BE68EA6C2}\Machine\Microsoft\Windows NT\SecEdit\GptTmpl.inf": Error uploading file to $env:TEMP\winrmcp-5e93b190-66a5-4ed6-5e2d-737cd1a57b34.tmp: Couldn't create shell: http response error: 401 - invalid content type
│
│ with ad_gpo_security.gpo_sec,
│ on ad_gpo_security.tf line 22, in resource "ad_gpo_security" "gpo_sec":
│ 22: resource "ad_gpo_security" "gpo_sec" {
I got this error while running ad_gpo_security. I double checked my configuration and its all correct. I did tried all of the functionality like gpo, gpo membership, ad computer and so on from the official web, all went well only getting error for this. Any solution? thanks in advance!
PS : yes trustrtestDC.com is my domain
The text was updated successfully, but these errors were encountered: