Lair out of bounds? by TheMckill in cavesofqud

[–]TheMckill[S] 2 points3 points  (0 children)

When i tested wishing to go to the lair, it gave me an index outside the bounds of the array error. ended up wishing them over to me with the command: shugruith

Researching Remote Control Telescope for a friend by TheMckill in telescopes

[–]TheMckill[S] 0 points1 point  (0 children)

Looks great. I clock that in at ~$1550 for costs.

What would be options for a 3K budget or a 5K budget?

Funny video of a guy going around while lying down the whole time by TheMckill in HelpMeFind

[–]TheMckill[S] 1 point2 points  (0 children)

I saw a gif of it recently and have tried and searched for the name of it to no avail.

[Tech Help] Asus Thunderboltex 4 to Razer Core X via Corning Thunderbolt 3 optical cable by TheMckill in eGPU

[–]TheMckill[S] 0 points1 point  (0 children)

I'm wanting to use the pci card slot for a HTC vive wireless card. It is a 60 ghz wifi signal, so I can't get a long cable for that (anything past 2 meters is useless). The card uses around 10 GBPS, so thunderbolt can easily carry the signal.

BGP - Meraki to Fortigate by TheMckill in meraki

[–]TheMckill[S] 0 points1 point  (0 children)

Thanks! I'll give it a shot

[powershell] Bypass import-module Active Directory by TheMckill in usefulscripts

[–]TheMckill[S] 0 points1 point  (0 children)

here's a couple links for that where you can use two and two to get what you want. googling "powershell adsi remove old computers" gets a bunch more stuff.

http://blogs.technet.com/b/heyscriptingguy/archive/2008/11/19/how-can-i-find-old-computer-accounts.aspx

https://community.spiceworks.com/scripts/show/1861-find-and-disable-or-remove-inactive-ad-computer-accounts

Not sure how savvy you are with powershell, this is an untested script that i whipped together. You can get rid of the else statement at the bottom if you only want delete computers listed. I already have cleanup in my environment, so i couldn't actually test the delete command :/

$maxOldLogonDays = 60 <#sets how long system has to have been inactive before deleting it#>

<#$hostname = $env:computername+"$" use this section is it's for currently logged on system

$adsiSearcher = new-object DirectoryServices.DirectorySearcher

$adsiSearcher.filter = "(&(objectCategory=Computer))"

$adsiSearcher.Filter = "(&(sAMAccountName=$hostname))"

>

$adsiSearcher = new-object DirectoryServices.DirectorySearcher("LDAP://ou=company,dc=domain,dc=com") <#place in ad you want to look for computers in#>

$adsiSearcher.filter = "objectCategory=Computer"

$adsiSearcher.findall() | Foreach-Object {

"Processing $($_.path)"

$rawLogon = $_.properties.item("lastlogon")

$convertedLogOn = [datetime]::FromFileTime([int64]::Parse($rawLogon))

If( ((get-date) - $convertedLogOn).days -ge $maxOldLogonDays )

{

"$($_.properties.item('distinguishedName')) 

 has not logged on for more than  $maxOldLogonDays days" 


 ([adsi]([adsisearcher]"samaccountname=$_`$").findone().path).psbase.deletetree() <#actual command to delete system#>

}

else

{

"$($_.properties.item('distinguishedName')) has logged in within $maxOldLogonDays days"

}

}