-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automation AD powershell #11
Comments
Hey @ggill27, Are you using the IT Glue PowerShell module? If so, below is some sample code that I used when testing the The first step is to form a $data = @{
'type' = 'passwords'
'attributes' = @{
'name' = 'Domain Admin'
'username' = 'contoso\administrator'
'password' = $myPassword
'notes' = "Admin credentials for the domain admin account"
'password-category-id' = '<<<fill this in>>>'
'password-category-name' = '<<<fill this in>>>'
'organization_id' = $org_id
}
} Note the password categories pertain to things like "Web/FTP" or "Application." You can get a list of the current password categories in your IT Glue account by running If you are creating a new password, simply pass the new variable to the $output = New-ITGluePasswords -data $data With the password id now in hand, you can have your script easily update the existing password. Just modify the Set-ITGluePasswords -id $password_id -data $data |
ConvertTo-Json : Cannot validate argument on parameter 'Depth'. The argument is null, empty, or an element of the argument
Set-ITGluePasswords : The remote server returned an error: (400) Bad Request.
This is the error message I'm getting and below is the code
} |
Hi,
I'm after a powershell script to reset domain account password and update in IT glue.
I already have the script just need the guidance to update the password in IT glue.
I'm got the API Keys.
The text was updated successfully, but these errors were encountered: