User Profile
mbuddd
Copper Contributor
Joined Sep 21, 2021
User Widgets
Recent Discussions
Devops organizations
Hello, I am working with a company that uses Azure AD and has many Devops organizations. I would like to do a cleanup as the majority of the Devops organizations were created by accident. I have an account defined in Azure AD for which I can assign any rights. I would like to find all the Devops organzations that exist that do not have any projects defined. Currently, I am able to get a list of all the existing devops organizations that exist, as well as the organization owner. I am not certain if there is a way to extract and see if any projects exist for the list of organizations that I have available. What I would like to do is : From the list of organizations, determine which organization (within devops) have no projects defined. If an organization has not project defined, then delete the organization. I would like to have this automated, and was wondering if it is possible to do this sort of task with powershell. Thanks in advance. Mark913Views0likes1CommentRe: Creating an on premise Active Directory Security group
How does one connect to domain with domain namespace? Could you please provide an example with powershell code? I use the command: $credentials = Get-Credential PS C:\temp> $credentials UserName Password -------- -------- my-lab.net\mbtest System.Security.SecureString PS C:\temp> New-ADGroup -Name $ADSecurityGroup -SamAccountName $ADSecurityGroup -GroupCategory Security -GroupScope Global -DisplayName $ADSecurityGroup -Path $orgUnit -Credential $Credentials Error: New-ADGroup : Access is denied At line:1 char:1 + New-ADGroup -Name $ADSecurityGroup -SamAccountName $ADSecurityGroup - ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : PermissionDenied: (CN=etest,OU=CRA...=cldsvcs,DC=net:String) [New-ADGroup], UnauthorizedAccessException + FullyQualifiedErrorId : ActiveDirectoryCmdlet:System.UnauthorizedAccessException,Microsoft.ActiveDirectory.Management.Commands.NewADGroup2.2KViews0likes1CommentCreating an on premise Active Directory Security group
Hello, This is only for on premise Active Directory. I would like to do the following: Get user credentials Identify the domain where the security is to be created Get the name of the user group Verify if the security group already exists; If not create the group assuming the user has the correct credentials Create the security group (in a predetermined ou) I understand the basics of what has to be done, but I have some questions: 1. How does one connect to a different domain? Does one need to connect to a DC or is there are way to just identify a domain? 2. I use the command $creds = Get-credential however, when I use this value in adding the group: New-ADGroup -Name "RODC Admins" -SamAccountName RODCAdmins -GroupCategory Security -GroupScope Global -DisplayName "RODC Administrators" -Path "CN=Users,DC=Fabrikam,DC=Com" -Description "Members of this group are RODC Administrators" -Credentail $creds I get an access denied error. If I do not enter Credential=$creds and use the same account that I am logged in to poweshell with, it works okay. If I user the same account for $Cred, it fails with access denied. When requesting user credentials is there a way to verify that username and password are valid? Any suggestions and comments would be greatly appreciated.? Thanks, Mark2.4KViews0likes3Comments
Recent Blog Articles
No content to show