$fileDateTimeStamp = Get-Date -format "d-MMM-yyyy__HH-mm-ss" $disableandmove = Import-Csv C:\ADCLeanUP\Final.xlsx $disableandmove = $disableandmove | Where-Object {$_.Status -like "Offline"} $disableandmove | Set-ADComputer -Description "Server computer account disabled on $fileDateTimeStamp due to 365+ days of inactivity" -Enabled $false $disableandmove | Move-ADObject -TargetPath "OU=Computer Accounts,OU=Disabled Accounts,DC=xxx,DC=xxx,DC=xxx"
when i am running above script getting beloow error
Move-ADObject : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the parameters that
take pipeline input.
At C:\ADCLeanUP\ADcleanup.ps1:4 char:19
Can you help me.