Skip to content

Instantly share code, notes, and snippets.

@Kreloc
Kreloc / DangItBobby.ps1
Last active April 12, 2016 21:30 — forked from danieltharp/DangItBobby.ps1
PowerShell script to find where a user is logged into on the network and disable their NIC.
Function Disable-NICBasedOnUser
{
<#
.SYNOPSIS
Disables the network adapter on remote computer based on inputted user name and computer filter.
.DESCRIPTION
Disabled the IP enabled network adapters on remote computers. Computers are found using Get-ADComputer and user accounts
are verified against Active Directory.