Windows Vista Forums

Set-qadobject -<disabled>parameter ?
  1. #1


    IT Staff Guest

    Set-qadobject -<disabled>parameter ?

    I can't find "disabled" parameter in both get-qadcomputer and set-qadobject.
    Am i missing anything ?

    disabled parameter seems to exist only for users. What i want is on
    computers objects





      My System SpecsSystem Spec

  2. #2


    IT Staff Guest

    Re: Set-qadobject -<disabled>parameter ?

    get-qadcomputer computer1| set-qadobject -objectattributes
    @{userAccountControl=514}

    Managed to get the above work, unless anyone has another way of handling it.



    "IT Staff" <jkklim@xxxxxx> wrote in message
    news:uxI3M1GSJHA.3880@xxxxxx

    >I can't find "disabled" parameter in both get-qadcomputer and
    >set-qadobject. Am i missing anything ?
    >
    > disabled parameter seems to exist only for users. What i want is on
    > computers objects
    >


      My System SpecsSystem Spec

  3. #3


    Shay Levy [MVP] Guest

    Re: Set-qadobject -<disabled>parameter ?


    These switches (disabled/enabled) are available only in Get-QADUser and they
    are used to retrieve the respective objects (not to set them).

    I made a request in the PowerGUI forum to add the same functionality to Get-QADComputer

    http://www.powergui.org/thread.jspa?...=7773&tstart=0


    To get dsiabled computers:

    Get-QADComputer -ldap '(userAccountControl:1.2.840.113556.1.4.803:=2)'




    ---
    Shay Levy
    Windows PowerShell MVP
    http://blogs.microsoft.co.il/blogs/ScriptFanatic
    PowerShell Toolbar: http://tinyurl.com/PSToolbar


    IS> I can't find "disabled" parameter in both get-qadcomputer and
    IS> set-qadobject. Am i missing anything ?
    IS>
    IS> disabled parameter seems to exist only for users. What i want is on
    IS> computers objects
    IS>



      My System SpecsSystem Spec

  4. #4


    Shay Levy [MVP] Guest

    Re: Set-qadobject -<disabled>parameter ?


    $obj = Get-QADComputer computerName
    $obj.directoryEntry.invokeSet("accountDisabled",<$false|$true>)
    $obj.commitChanges()


    ---
    Shay Levy
    Windows PowerShell MVP
    http://blogs.microsoft.co.il/blogs/ScriptFanatic
    PowerShell Toolbar: http://tinyurl.com/PSToolbar


    IS> get-qadcomputer computer1| set-qadobject -objectattributes
    IS> @{userAccountControl=514}
    IS>
    IS> Managed to get the above work, unless anyone has another way of
    IS> handling it.
    IS>
    IS> "IT Staff" <jkklim@xxxxxx> wrote in message
    IS> news:uxI3M1GSJHA.3880@xxxxxx
    IS>

    >> I can't find "disabled" parameter in both get-qadcomputer and
    >> set-qadobject. Am i missing anything ?
    >>
    >> disabled parameter seems to exist only for users. What i want is on
    >> computers objects
    >>


      My System SpecsSystem Spec

  5. #5


    Brandon Shell [MVP] Guest

    Re: Set-qadobject -<disabled>parameter ?

    Shay... I would also request the extend the use of enable-qaduser and disable-qaduser
    to include computers

    Brandon Shell
    ---------------
    Blog: http://www.bsonposh.com/
    PSH Scripts Project: www.codeplex.com/psobject

    S> These switches (disabled/enabled) are available only in Get-QADUser
    S> and they are used to retrieve the respective objects (not to set
    S> them).
    S>
    S> I made a request in the PowerGUI forum to add the same functionality
    S> to Get-QADComputer
    S>
    S> http://www.powergui.org/thread.jspa?...=7773&tstart=0
    S>
    S> To get dsiabled computers:
    S>
    S> Get-QADComputer -ldap
    S> '(userAccountControl:1.2.840.113556.1.4.803:=2)'
    S>
    S> ---
    S> Shay Levy
    S> Windows PowerShell MVP
    S> http://blogs.microsoft.co.il/blogs/ScriptFanatic
    S> PowerShell Toolbar: http://tinyurl.com/PSToolbar
    IS>> I can't find "disabled" parameter in both get-qadcomputer and
    IS>> set-qadobject. Am i missing anything ?
    IS>>
    IS>> disabled parameter seems to exist only for users. What i want is on
    IS>> computers objects
    IS>>



      My System SpecsSystem Spec

  6. #6


    Shay Levy [MVP] Guest

    Re: Set-qadobject -<disabled>parameter ?

    Good point Brandon, I'll add that too.



    ---
    Shay Levy
    Windows PowerShell MVP
    http://blogs.microsoft.co.il/blogs/ScriptFanatic
    PowerShell Toolbar: http://tinyurl.com/PSToolbar


    B> Shay... I would also request the extend the use of enable-qaduser and
    B> disable-qaduser to include computers
    B>
    B> Brandon Shell
    B> ---------------
    B> Blog: http://www.bsonposh.com/
    B> PSH Scripts Project: www.codeplex.com/psobject
    S>> These switches (disabled/enabled) are available only in Get-QADUser
    S>> and they are used to retrieve the respective objects (not to set
    S>> them).
    S>>
    S>> I made a request in the PowerGUI forum to add the same functionality
    S>> to Get-QADComputer
    S>>
    S>> http://www.powergui.org/thread.jspa?...=7773&tstart=0
    S>>
    S>> To get dsiabled computers:
    S>>
    S>> Get-QADComputer -ldap
    S>> '(userAccountControl:1.2.840.113556.1.4.803:=2)'
    S>> ---
    S>> Shay Levy
    S>> Windows PowerShell MVP
    S>> http://blogs.microsoft.co.il/blogs/ScriptFanatic
    S>> PowerShell Toolbar: http://tinyurl.com/PSToolbar
    IS>>> I can't find "disabled" parameter in both get-qadcomputer and
    IS>>> set-qadobject. Am i missing anything ?
    IS>>>
    IS>>> disabled parameter seems to exist only for users. What i want is
    IS>>> on computers objects
    IS>>>



      My System SpecsSystem Spec

  7. #7


    IT Staff Guest

    Re: Set-qadobject -<disabled>parameter ?

    Before the new release of cmdlets from Quest, i used the following url as a
    way to enable/disable

    http://support.microsoft.com/kb/305144





    "IT Staff" <jkklim@xxxxxx> wrote in message
    news:uyOtmFHSJHA.5092@xxxxxx

    > get-qadcomputer computer1| set-qadobject -objectattributes
    > @{userAccountControl=514}
    >
    > Managed to get the above work, unless anyone has another way of handling
    > it.
    >
    >
    >
    > "IT Staff" <jkklim@xxxxxx> wrote in message
    > news:uxI3M1GSJHA.3880@xxxxxx

    >>I can't find "disabled" parameter in both get-qadcomputer and
    >>set-qadobject. Am i missing anything ?
    >>
    >> disabled parameter seems to exist only for users. What i want is on
    >> computers objects
    >>
    >
    >


      My System SpecsSystem Spec

Set-qadobject -<disabled>parameter ? problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
move-qadobject IT Staff PowerShell 0 13 Feb 2009
UNABLE to delete object using remove-qadobject IT Staff PowerShell 3 31 Dec 2008
Using multiple Parameter sets for a Parameter AgentM PowerShell 2 29 Jul 2008
Experience with Set-QADObject for groups? Kevin N. Kidder PowerShell 8 26 Sep 2007
How to best control parameter attributes and parameter parsing in your own scripts? Audun Gjerken PowerShell 1 04 Mar 2007