This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Active Directory command in Quest Powershell?

Hello,

Does anybody have the corresponding command for Quest?

Get-ADComputer -Filter {servicePrincipalName -notlike "msclustervirtualserver*" }

Thanks,

Dom

  • Hello,
    I am getting an error:
    [PS] C:\windows>Get-QADComputer -IncludeAllProperties | where {$_.servicePrincipalName -notlike "msclustervirtualserver*
    " -and $_.operatingSystem -like "Windows Server*"}
    Get-QADComputer : An operation error occurred.
    At line:1 char:16
    + Get-QADComputer <<<< -IncludeAllProperties | where {$_.servicePrincipalName -notlike "msclustervirtualserver*" -and
    $_.operatingSystem -like "Windows Server*"}
    + CategoryInfo : NotSpecified: (:) [Get-QADComputer], DirectoryAccessException
    + FullyQualifiedErrorId : Quest.ActiveRoles.ArsPowerShellSnapIn.DirectoryAccess.DirectoryAccessException,Quest.Act
    iveRoles.ArsPowerShellSnapIn.Powershell.Cmdlets.GetComputerCmdlet

    Any idea?
    Thanks,
    Dom
  • this might help...though its very old...
    en.community.dell.com/.../19586889

    you can try by specifying the exact property and switch the parameter -includeproperties
  • I'm not sure if this makes a difference re the error but I think your "WHERE" needs to look like this:

    where {($_.servicePrincipalName -notlike "msclustervirtualserver*") -and
    ($_.operatingSystem -like "Windows Server*")}

    i.e. added the parentheses around each logical test