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]
Download: Technet
Add-ADSubnet (ADSI Function)
Description: This function allow you to add a subnet object in your active directory using ADSI
Download: Technet
Disable-VMCopyPaste
Description: This function allows you to DISABLE Copy Paste operation between a Virtual Machine and your local machine.
Download: Technet
Enable-VMCopyPaste
Description: This function allows you to ENABLE Copy Paste operation between a Virtual Machine and your local machine.
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.
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
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…
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.
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).
Download: Technet
Get-LocalGroupMembership
Description: This function get the local group membership on a local or remote computer 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.
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
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.
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)
Download: Technet
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).
Download: Technet
NetBackupPS Module
Description: PowerShell module for Symantec NetBackup.
This module contains cmdlets that parse the output of regular CLI tools.
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.
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)
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-
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.
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)
Download: Technet
Tutorial – Creating a Basic GUI
Tutorial – DataGridView Control- Add Sorting
Tutorial – ListView Control- Fill my second column
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.
Download: Technet
WinFormPS Module
Description: PowerShell module to interact with Windows Form Controls.
Download: GitHub