Scripts/Projects

















Active Directory User Unlocker

Description: The following script will show how to Unlock Active Directory User account using PowerShell The goal is to do something simple and functional, no fancy GUI... No need of Active Directory Module or Quest Active Directory Snapin, in my case I used ADSI: [ADSISearcher]
Blog post(s): 2013/04/02 PowerShell/WinForm - Active Directory User Unlocker

Download: Technet




Add-ADSubnet (ADSI Function)


Description: This function allow you to add a subnet object in your active directory using ADSI
Blog post(s): 2013/11/11 PowerShell - Add AD Site Subnet

Download: Technet



Disable-VMCopyPaste


Description: This function allows you to DISABLE Copy Paste operation between a Virtual Machine and your local machine.
Blog post(s): 2013/07/01 How to Enable Copy/Paste Operations Between GuestOS and Remote Console on vSphere 5.1 (GUI and PowerCli)

Download: Technet


Enable-VMCopyPaste


Description: This function allows you to ENABLE Copy Paste operation between a Virtual Machine and your local machine.
Blog post(s): 2013/07/01 How to Enable Copy/Paste Operations Between GuestOS and Remote Console on vSphere 5.1 (GUI and PowerCli)

Download: Technet



Get-ADGPOReplication


Description: Get-ADGPOReplication is retrieving the GPO version and Sysvol version accross the domain for one ore more Group Policy. This can help you troubleshoot replication issues.
Blog post(s): 2014/10/01 PowerShell - Check the GPO Replication accross your domain

Download: Technet / GitHub



Get-ComputerInfo



Description: This small function will return information about: Operating System Name Operating System Version Memory (GB) Number of Processors Number of Sockets Number of Cores
Blog post(s): 2013/05/08 Scripting Games 2013 - Advanced Event 2 - An Inventory Intervention

Download: Technet


Get-DiskSizeInfo

Description: Winter Scripting Games - Practice Event #1 - Sizing up the Disks - You have been asked to create a Windows PowerShell advanced function named Get-DiskSizeInfo. It must accept one or more computer names, and use WMI or CIM to query each computer...
Blog post(s): 2013/02/10 Winter Scripting Games 2013 - Practice Event 1

Download: Technet




Get-DomainComputer (ADSI Function)

Description: The following function use ADSI to query Computer objects from the Active Directory. You can specify one or multiple names/patterns to search.
Optionally you can specify a different domain to query and alternate credentials to use.
Blog post(s): 2013/10/31 PowerShell - Get-DomainComputer (ADSI)

Download: Technet



Get-LocalGroupAllMembers

Description: The following functions query a localgroup on the localhost or a remote computer, and gather all the local and domain members (direct and nested,users and groups).
Blog post(s): 2013/01/07 Get-LocalGroupAllMembers
Download: Technet

Get-LocalGroupMembership

Description: This function get the local group membership on a local or remote computer using ADSI/WinNT.
Blog post(s): 2012/12/31 Get-LocalGroupMembership (Using ADSI/WinNT)

Download: Technet

Get-NetStat

Description: This function parse the output of the tool NETSTAT.EXE. The purpose of this function is to show how to parse standard tools to allow usage inside Powershell.
Blog post(s): 2014/08/17 PowerShell - Parse this: NetStat.exe

Download: Technet




Get-NetStat Using ConvertFrom-String

Description: This show how to parse the output of the tool NETSTAT.EXE using the new awesome cmdlet ConvertFrom-String
Blog post(s): 2014/09/05 PowerShell - Playing with the new ConvertFrom-String cmdlet

Download: See blog post


Get-NetStat Using ConvertFrom-String -TemplateFile

Description: This show how to parse the output of the tool NETSTAT.EXE using the new awesome cmdlet ConvertFrom-String and the parameter -TemplateFile which allows you to specify the pattern that you are looking for.
Blog post(s): 2014/09/06 PowerShell - ConvertFrom-String and the TemplateFile parameter

Download: See blog post



Get-NetworkLevelAuthentication (NLA)

Description: Get the Network Level Authentication setting on one or more computers using CIM Cmldets/WMI (DCOM or WSMAN protocol)
Blog post(s): 2014/04/04 PowerShell - Get/Set the Network Level Authentication Remotely (RDP Setting)
Download: Technet



LazyTS


Description: LazyTS is a PowerShell script to manage Sessions and Processes on local or remote machines. It also allows you to Disconnect/Stop sessions and Send Interactive message to one or more sessions.

This tool is using the module PSTerminalService which relies on the Cassia .NET Library.I used Sapien PowerShell Studio 2014 to which make life easier if you want to start building WinForms tools and add PowerShell code.

Dedicated Page: LazyTS
Blog post(s): 2014/10/04 PowerShell GUI - LazyTS (Terminal Services Management)

Download: Technet Gallery / GitHub / GitHubPage



LazyWinAdmin

Description: LazyWinAdmin is a PowerShell Script that generates a GUI/WinForms loaded with tons of functions.
Source/Contributionhttps://github.com/lazywinadmin/LazyWinAdmin_GUI
Dedicated Page: LazyWinAdmin
Blog post(s):
Download: Technet
Screenshot(s):



Monitor Active Directory Group membership change

Description: This Powershell script can monitor one or more Groups Membership in Active Directory, using the PsSnapin from Quest and send an email when someone is added or removed from this/those group(s).
Dedicated Page: Monitor Active Directory Group membership change
Blog post(s):
Download: Technet




NetBackupPS Module

Description: PowerShell module for Symantec NetBackup.
This module contains cmdlets that parse the output of regular CLI tools.
Blog post(s): 2014/09/21 PowerShell - NetBackupPS: Module for Symantec NetBackup

Download: GitHub



Read Excel File (Using COM)

Description: This is a sample file that show how to use PowerShell and COM Interface to read an Excel file. Note that the machine that will run the script need Excel installed.
Blog post(s): 2014/03/23 PowerShell - Read an Excel file using COM Interface

Download: Technet


Report Active Directory Missing subnets

Description: This script report the Active Directory Missing Subnets detected in the NetLogon file(s) of each Domain Controller(s)
Blog post(s): 2013/10/21 PowerShell - Report the AD Missing Subnets from the NETLOGON.log

Download: Technet




SCCMAutomation Module

Description: "This Powershell module contains a collection of functions gathered from an assortment of scripts I use to automate SCCM software distribution. After spending way too many hours cutting and pasting from old scripts in order to automate a new task, I decided I needed to aggregate all of the bits of code from my collection of scripts into a reusable kit. This is the result of that decision."
-Andre Bocchini-
Blog post(s): 2013/06/28 PowerShell SCCM 2007 Module - My contribution

Download: GitHub


Set-VMChangeBlockTracking

Description: The function Set-VMChangeBlockTracking allows you to set the Change Block Tracking setting on each VM you specify It can be run against one or more computers. It requires PowerShell version 3 (for #requires)
Changed Block Tracking (CBT) is a VMware feature that helps  perform incremental backups. VMware Data Recovery uses this  technology, and so can developers of backup and recovery software.
Blog post(s): 2013/07/02 Enabling Change Block Tracking (CBT) on a vSphere 5.1 VM with PowerShell/PowerCli

Download: Technet

Services where StartMode is AUTOMATIC and NOT running

Description: This Powershell script will list all the services from a local or remote computer where the StartMode property is set to "Automatic" and where the state property is different from "RUNNING" (so mostly where the state is NOT RUNNING).
Blog post(s): n/a

Download: Technet

Set-NetworkLevelAuthentication (NLA)

Description: Set the Network Level Authentication setting on one or more computers using CIM Cmldets/WMI (DCOM or WSMAN protocol)
Blog post(s): 2014/04/04 PowerShell - Get/Set the Network Level Authentication Remotely (RDP Setting)
Download: Technet



Tutorial - Creating a Basic GUI

Description: This script demos how to create a basic Graphical User Interface with SAPIEN PowerShell Studio 2012.We will simply add a couple of controls (Buttons and a Richtextbox) and add a few events to write in the Richtextbox when pressing the buttons.
Video: Youtube

Download: Technet




Tutorial - DataGridView Control- Add Sorting


Description: This sample script show how to sort columns using WinForm DataGridView control and PowerShell scripting.
Download: Technet / GitHub


Tutorial - ListView Control- Fill my second column


Description: This sample script show how to fill a second column using WinForm ListView Control and PowerShell scripting.
Blog post(s): n/a
Download: Technet

Tutorial - ToolMaking (Winform)

Description: The script demos how to create a tool using Sapien PowerShell Studio 2012 to query some information from a remote computer.
Blog post(s): 2013/10/11 PowerShell Studio 2012 - WinForms - GUI ToolMaking
Video: Youtube

Download: Technet



WinFormPS Module

Description: PowerShell module to interact with Windows Form Controls.
Blog post(s):

Download: GitHub


3 comments:

  1. Hi, It was a fantastic application.
    i am wondering if could let me know how we can chnage the Authentication type (User and password)?

    ReplyDelete
    Replies
    1. Hi Arash,

      Thanks for your comment!
      For now you can only use the "Run As a different user" menu option.

      Not possible to change the current username/password when the script is launched

      I might add this feature in the next version.

      Fx

      Delete