SHARE
TWEET

Untitled

a guest Jun 20th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. New-ADServiceAccount -DNSHostName VM-Backup-Service -Name "VM Backup" -samAccountName VM_Backup -Path "OU=AD_Managed_Service_Accounts,DC=company,DC=local"
  2.      
  3. New-ADServiceAccount -DNSHostName AUDC.company.local -Name "VM Backup" -SamAccountName VM_Backup -Path "OU=AD_Managed_Service_Accounts,DC=company,DC=local"
  4.      
  5. New-ADServiceAccount : The specified account already exists
  6.      
  7. Get-ADServiceAccount -filter 'samAccountName -like "*VM_Backup*"'
  8. Get-ADUser -filter 'samAccountName -like "*VM_Backup*"'
  9.      
  10. Get-ADServiceAccount -filter *
  11.      
  12. New-ADServiceAccount : The specified account already exists
  13. At line:1 char:1
  14. + New-ADServiceAccount -DNSHostName 1682-server-001.vpnsolutions.local  ...
  15. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  16.     + CategoryInfo          : ResourceExists: (CN=VM Backup,OU...ompany,DC=local:String) [New-ADServiceAccount], ADIde
  17.    ntityAlreadyExistsException
  18.     + FullyQualifiedErrorId : ActiveDirectoryServer:1316,Microsoft.ActiveDirectory.Management.Commands.NewADServiceAcc
  19.    ount
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top