About 50 results
Open links in new tab
  1. AD PowerShell: Difference between Search-ADAccount and Get …

    I have been working with some scripts to search for and delete stale AD Computers in our domain that have not logged in or been inactive for 180 days. I have tried both Search-ADAccount and Get …

  2. Powershell v5.1 Get-ADComputer Name truncated

    For Powershell v2.0 on my Windows 7 PS C:\temp> get-adcomputer -filter * -properties * |FT OperatingSystem, LastLogonDate, Enabled, Name > C:\temp\allPCs201707111100.txt Names are …

  3. Powershell: Accepting pipeline input from multiple sources

    I'd like the script to accept input from Get-ADComputer, Get-Content (of a text file with server names), or from the command line. Right now, I can pass in multiple names from the command line …

  4. Get Dell service tag and store in AD Computer Object

    I'd like to store the Dell servicetag for all my computers in their respective computer object. I've got some psuedo code below that appears to work although I'm not sure how to best retreive the info. I've …

  5. How to get all active computer list in domain with some attributes?

    Either this new question should be split from this old thread, or you should ask a new question. But here is a PowerShell script that retrieves all enabled computers that have not logged into the domain in …

  6. Add/remove computer group membership based on OU

    Jul 21, 2011 · The problem: Helpdesk users forget to change (or worse, add) group membership when creating/moving computer objects.

  7. get-adcomputer with ipv4 - social.technet.microsoft.com

    Question 0 Sign in to vote i am not seeing ipv4 address in the attributes of get-adcomputer -properties *

  8. powershell if/else statement wiith hostname matching in AD

    the problem is the first if statement. if not match in $destination the logic is ----if $localhostname match in $destination OU exit and write a log

  9. How to edit Organizational Unit (OU) GPO via Powershell

    Trying to automate GPO editing via Powershell because the OUs, GPOs and Computers are created from csv values.

  10. How to list Inactive computer Accounts In Cmd or PS

    If so, you can install the ADMG on the 2003 machine and then use the AD PowerShell module available for those OSs to check. The following will return any computer that hasn't been active in the last six …