Skip to content

Instantly share code, notes, and snippets.

@Kreloc
Kreloc / Get-akActiveUser.ps1
Created April 18, 2017 19:02
Get the active user using explorer.exe
Function Get-akActiveUser
{
<#
.SYNOPSIS
This function gets the activer user on specified computer.
.DESCRIPTION
This function gets the activer user on specified computer as defined by the running explorer process on their system. Potentially may return
more than one user.
@Kreloc
Kreloc / Get-Answer.ps1
Created March 25, 2017 05:51
Get-Answer
Function Get-Answer
{
<#
.SYNOPSIS
Get-Answer gets the Instant Answer from DuckDuckGo for the entered query.
.DESCRIPTION
Get-Answer gets the Instant Answer from DuckDuckGo for the entered query using
DuckDuckGo's API and returns information about that answer.
@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.