Hi,
I have below powershell script to retrieve inactive computers. $DaysInactive is the parameter in powershell and when i run this script it ask me to enter inactive days.
I wanted to run this powershell script through bigfix but i dont know how to parameterised the same thing in bigfix so that this should ask me to enter inactive days while executing the fixlet.
param **
( **
** [Parameter(Mandatory=$True,Position=1)]
** [string]$DaysInactive
)
$time = (Get-Date).Adddays(-($DaysInactive))
Get-ADComputer -Filter {LastLogonTimeStamp -lt $time} -ResultPageSize 2000 -resultSetSize $null -Properties Name, OperatingSystem, SamAccountName, DistinguishedName | export-csv c:\temp\output.txt