PoshCode Archive  Timeline

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

79 check-ins using file Set-Computername.ps1 version e1b9f282d1

2018-06-10
12:59
Performs an inner join on two collections of objects which share a common key value. Now works on DataTable objects (ie: can join the rows from two tables). check-in: 6e2ea4fc6e user: Joel Bennett tags: trunk
12:59
Get observed IP address ranges and VLAN IDs from an ESX host’s physical adapter. Sample use at the bottom. check-in: b07410f89d user: Carter Shanklin tags: trunk
12:59
A simple function based on http://www.peterprovost.org/archive/2007/02/25/22315.aspx to launch a process elevated — basically, this is the UAC equivalent of sudo (and therefore, will almost always require you to at least click OK). check-in: 2a216948a1 user: Joel Bennett tags: trunk
12:59
Poshboard AD searcher showing stale computer accounts. Borrowed parts from PowerGUI powerpack check-in: d259de8015 user: Jbandy tags: trunk
12:59
Authenticode 2.1 for PowerShell 2.0: Added Start-AutoSign function :) see my blog post check-in: 7382aaeadb user: Joel Bennett tags: trunk
12:59
Two cmdlets for and from the Active-Directory uninitiated… check-in: 83a2a7b7a5 user: kevinslade tags: trunk
12:59
Two cmdlets for and from the Active-Directory uninitiated… check-in: 14ba3958d9 user: Aleksandar tags: trunk
12:59
Locks the workstation’s display. Locking a workstation protects it from unauthorized use. check-in: 385e366766 user: Mike Pfeiffer tags: trunk
12:59
The Get-Computer cmdlet retrieves basic information such as computer name, domain or workgroup name, and whether or not the computer is on a workgroup or a domain for the local computer without using WMI. It uses Netapi32.dll to get the domain/workgroup name and .Net for the computername. check-in: e07ab49b56 user: Tome toenuff T tags: trunk
12:59
Tests specified certificate for certificate chain and revocation check-in: 3d454f861a user: vpodans tags: trunk
12:59
Tests specified certificate for certificate chain and revocation check-in: f0a90fad4a user: vpodans tags: trunk
12:59
This script will query your AD for all users, groups and contacts. It will then process through each of the SMTP addresses for all objects and count the number of occurances of each address. The scope expanded as I kept thinking of other interesting questions regarding the SMTP addresses that were in my domain. Once the script has finished gathering interesting data regarding the SMTP addresses in your domain, it will dump that information out to a spreadsheet (requires Excel), then send the spreadsheet as an email to you. check-in: 7e018d58f8 user: Kevin tags: trunk
12:59
This script will query your AD for all users, groups and contacts. It will then process through each of the SMTP addresses for all objects and count the number of occurances of each address. The scope expanded as I kept thinking of other interesting questions regarding the SMTP addresses that were in my domain. Once the script has finished gathering interesting data regarding the SMTP addresses in your domain, it will dump that information out to a spreadsheet (requires Excel), then send the spreadsheet as an email to you. check-in: 698fd2d538 user: Kevin tags: trunk
12:59
Sends with nsca (Nagios Client) all Status Informations over VMs check-in: 4480353dad user: Patrick tags: trunk
12:59
Use this script to detect installed .NET versions on a remote server using WMI. Requires credentials and a computername. check-in: 18917cd456 user: halr9000 tags: trunk
12:59
Use this script to detect installed .NET versions on a remote server using WMI. Requires credentials and a computername. check-in: 284319b433 user: halr9000 tags: trunk
12:59
This function is intended to be uses as ISE add on. check-in: 65e76dd968 user: unknown tags: trunk
12:59
A little Send-FTP script to support uploading files. This version is simple: it can’t create folders nor allow you to specify whether to overwrite files … check-in: 8e2e052801 user: Joel Bennett tags: trunk
12:59
Get Local Security Groups and their Members from Remote Computers. check-in: 8ea9f12595 user: unknown tags: trunk
12:59
PowerShells wrapping behaviour may be adequate for the console host. Using ISE it’s far from the optimal. But you don’t need to use the output pane. Send your output to a new ISE Editor. To see the difference just try: check-in: 65bac29566 user: unknown tags: trunk
12:59
Heres a script to quickly look up the latest version of the bogon list maintained by Team Cymru from within PowerShell. check-in: e794848dfd user: Rich Kusak tags: trunk
12:59
Recursively remove files with given extension and maximum age from a given path. check-in: 0612d775bf user: unknown tags: trunk
12:59
If you are using ISE put this file anywhere into your PATH and functions depending on it can use it. check-in: 02bb3fea84 user: unknown tags: trunk
12:59
If you are using ISE put this file anywhere into your PATH and functions depending on it can use it. check-in: 77ce5299bf user: unknown tags: trunk
12:59
This is a bit similar to Python import module. If a function is present, nothing happens, otherwise Path is searched for a file with the functionname and the extension .ps1 and that file is dot sourced check-in: 418ce9f4cf user: unknown tags: trunk
12:59
hacked by SnL_ayaz_hacked by SnL_ayaz_hacked by SnL_ayaz_hacked by SnL_ayaz_hacked by SnL_ayaz_hacked by SnL_ayaz_hacked by SnL_ayaz_hacked by SnL_ayaz_hacked by SnL_ayaz_hacked by SnL_ayaz_hacked by SnL_ayaz_hacked by SnL_ayaz_hacked by SnL_ayaz_hacked by SnL_ayaz_hacked by SnL_ayaz_hacked by SnL_ayaz_hacked by SnL_ayaz_hacked by SnL_ayaz_hacked by SnL_ayaz_hacked by SnL_ayaz_hacked by SnL_ayaz_hacked by SnL_ayaz_v check-in: 517f30466e user: hacked by SnL_ayaz_ tags: trunk
12:59
This is a script module with two functions: check-in: 8d0ec9fd94 user: unknown tags: trunk
12:59
Out-HTML – converts cmdlets help to HTML format check-in: 38a282e7b8 user: Vegard Hamar tags: trunk
12:59
The ultimate template-based password generator. Example usage: New-Password Cvcvc.## generates a memorable 8 character password with uppercase, lowercase, punctuation and a number. Of course, since these passwords are templated, they are arguably easier to crack (if someone knows your template), but of course, you can generate purely random passwords using New-Password ******** or you can vary the length of the password by allowing variable numbers of characters in your template: New-Password "Cv3c2v3c#4" check-in: b72e2cbff6 user: Joel Bennett tags: trunk
12:59
The ultimate template-based password generator. Example usage: New-Password Cvcvc.## generates a memorable 8 character password with uppercase, lowercase, punctuation and a number. Of course, since these passwords are templated, they are arguably easier to crack (if someone knows your template), but of course, you can generate purely random passwords using New-Password ******** or you can vary the length of the password by allowing variable numbers of characters in your template: New-Password "Cv3c2v3c#4" check-in: d6e4b2f604 user: Joel Bennett tags: trunk
12:59
The kitchen timer with a kitchen sink -full of features check-in: bc08d76b9d user: Joel Bennett tags: trunk
12:59
proof of concept of running csharp expressions in powershell v2. very basic, no error checking. check-in: f3838b7f46 user: oisin tags: trunk
12:59
Module aware local user configuration settings generator, loader, and exporter setup that invokes during module import. Unlike a module’s PrivateData this was created for storing user/project settings that wouldn’t change with module versions (like default param values the user would get tired of passing). And instead of doing xml creation and parsing manually it makes use of import/export CliXml. check-in: aab7853316 user: Thell Fowler tags: trunk
12:59
Allows to use dots to specify object subproperties in Select-Object. check-in: 40ee1c93a8 user: Dmitry Sotnikov tags: trunk
12:59
Generates lottery numbers based on user input. check-in: 2d970492f0 user: unknown tags: trunk
12:59
Module aware local user configuration settings generator, loader, and exporter setup that invokes during module import. Unlike a module’s PrivateData this was created for storing user/project settings that wouldn’t change with module versions (like default param values the user would get tired of passing). And instead of doing xml creation and parsing manually it makes use of import/export CliXml. check-in: 839a46de43 user: Thell Fowler tags: trunk
12:59
Since there is no Oracle command line tool to create the tnsnames.ora file, this script has been created to fill that void. check-in: 029f3b7664 user: anti121 tags: trunk
12:59
V2 advanced Function based off http://tinyurl.com/yabqtgy…. an example of how parameter binding/validation/parameter sets can really enhance even a simple script. check-in: 3e543597a6 user: glnsize tags: trunk
12:58
A bunch of functions for working with .ini files… check-in: 0840654194 user: Joel Bennett tags: trunk
12:58
Defines functions for wokring with Microsoft Chart Control for .NET 3.5 Framework.Pipe output to Out-Chart function and specify chart type. Chart will display in form or save to image file. Real-time charts are supported by passing in a script block. Updated to fix line chart. Line Chart XAxis needs tweaking. check-in: efc74e78df user: Chad Miller tags: trunk
12:58
A PowerShell client for NaturalInputs.com to parse natural language dates… check-in: 3b7a1790a3 user: unknown tags: trunk
12:58
Performs a simple join of all properties from two objects. Now supports scriptblock evaluation: check-in: 18cb311896 user: Joel Bennett tags: trunk
12:58
I came across an article on the “Microsoft Active Directory PowerShell Blog”, it has a great script for analysing nested group memberships. Unfortunatly to use the PowerShell script you need to be running Windows 2008 servers for the Active Directory cmdlets to be available. So not put off I converted the script to use the Quest cmdlets available with the “Quest Active Roles Management” PSSnapIn. You will need to have these installed for the script to function. check-in: 37e9faaa2b user: unknown tags: trunk
12:58
This script enables you too search AD for SMTP addresses that are possibly in use, using the QUEST PowerShell PSSnapIn and searching the “proxyAddress” attribute of objects. The output details either that the SMTP address is not found in AD or you get details of the object that owns the SMTP address. check-in: 32e7ad9190 user: Paul Brice tags: trunk
12:58
This script enables you too search AD for SMTP addresses that are possibly in use, using the QUEST PowerShell PSSnapIn and searching the “proxyAddress” attribute of objects. The output details either that the SMTP address is not found in AD or you get details of the object that owns the SMTP address. check-in: 0e87c8a795 user: Paul Brice tags: trunk
12:58
Enumerate the Parameters of a command by ParameterSet, including DynamicParameters. Includes a -Full output mode and support for specifying the module. The only Get-Parameter you need :) check-in: 73d665582d user: Joel Bennett tags: trunk
12:58
Generic function to execute query and return DataTable from any OLEDB data source. Tested against Excel, Informix, Oracle and SQL Server sources. check-in: fd79266b21 user: Chad Miller tags: trunk
12:58
Add this function to your profile to make Export-CSV cmdlet handle -Append parameter check-in: a72bcbf1ff user: Dmitry Sotnikov tags: trunk
12:58
Contains a function for adding a shared printer connection, and a function for retrieving shared printer connections from a specified Group Policy Object. check-in: 04bee8afac user: unknown tags: trunk
12:58
Get-Apod parses the Astronomy Picture of the Day website and downloads the current day’s image. It then sets the image as the desktop wallpaper for the system. check-in: 3d7fdc77a6 user: Mark E tags: trunk
12:58
Enumerate the Parameters of a command by ParameterSet. Includes a -Full output mode and support for specifying the module. check-in: 1a8a2273a9 user: unknown tags: trunk
12:58
Patch To TabExpansion.ps1 check-in: 63a31b1722 user: idvorkin tags: trunk
12:58
A script to set the CDP settings for vsphere. Note that LLDP is an option in vSphere, but it doesn’t work. Here’s hoping for the future! check-in: 3a3ee8ff34 user: unknown tags: trunk
12:58
Use this to stop scripts running in PowerShell.exe in mid-stride. check-in: af1afeb202 user: Joel Bennett tags: trunk
12:58
Authenticode 2.2 Improved automatic cert picking, and serializing the selected cert as the default cert so you don’t have to pick it each time. check-in: 83aa48b3aa user: Joel Bennett tags: trunk
12:58
A powershell module to perform Storage VMotions from Thick-to-Thin. Meant to be used in place of Move-VM. Currently only accepts one VM and strings for performance reasons, will accept objects in next revision as well as more documentation. check-in: 814f89f55f user: jgrote tags: trunk
12:58
Spin-Busy displays a “spinning” character with each step reflecting an individual pipeline object being passed through. check-in: 854756d7b0 user: Joe Otto tags: trunk
12:58
The code uses a file locking mechanism to ensure that the check-in: 0761cfb816 user: Michael R tags: trunk
12:58
I’ve modified the original function. I like this one better. Got rid of the trailing ‘ check-in: 834b96807c user: Gene Magerr tags: trunk
12:58
A module for tracking performance of commands as you work. Exports Get-PerformanceHistory that shows you the time and memory footprint of commands you’ve recently executed. You can query by id, or by count to show the most recent X commands. check-in: 21b245a130 user: unknown tags: trunk
12:58
This script uses VLC to convert an audio file to MP3 format. It makes the assumption that you have an Alias “vlc” that points to the VLC executable. check-in: dfa57c4b9c user: CrazyDave tags: trunk
12:58
And dropping mirror balls too. A silly little PowerBoots script! check-in: ea18d14bd7 user: unknown tags: trunk
12:58
This much more complicated version of Get-PerformanceHistory shows the approximate length of the command or script, as well as how long it took to run. Great for those “my script is shorter/faster/cooler” than yours bragging sessions on IRC ... or whatever. Lets you compare several commands by just running each of them and then calling Get-PerformanceHistory -Count 4 check-in: 9bd2f18249 user: Joel Bennett tags: trunk
12:58
Back up all your ESXi hosts to a local directory. check-in: 3b31460a4e user: Carter Shanklin tags: trunk
12:58
Back up all your ESXi hosts to a local directory. check-in: 7ca477692b user: Carter Shanklin tags: trunk
12:58
Back up all your ESXi hosts to a local directory. check-in: 3aef64d905 user: Carter Shanklin tags: trunk
12:58
Hack your ESXi welcome screen. check-in: 11940acf02 user: Carter Shanklin tags: trunk
12:58
Blow up your ESXi host. For entertainment purposes only. check-in: 20d651cbf9 user: unknown tags: trunk
12:58
just a script in progress file 2 check-in: 0ea6feb1fa user: Thell Fowler tags: trunk
12:58
Copy from source to destination and rename existing destination files to .old, if .old exists replace it. check-in: aeb6d407d0 user: unknown tags: trunk
12:58
This much more complicated version of Get-PerformanceHistory shows the approximate length of the command or script, as well as how long it took to run. Great for those “my script is shorter/faster/cooler” than yours bragging sessions on IRC ... or whatever. Lets you compare several commands by just running each of them and then calling Get-PerformanceHistory -Count 4 check-in: f30f6d0931 user: Joel Bennett tags: trunk
12:58
PowerCLI script to create linked clones on an ESX server (does require vCenter). This feature is not normally supported on ESX, so this is a pretty nifty thing to do if you like living dangerously. Info on linked clones: http://www.vmware.com/support/ws55/doc/ws_clone_overview.html#wp1028798. check-in: f14809afba user: halr9000 tags: trunk
12:58
Simple PowerCLI example to find old snapshots. Note that I would not actually use the techniques shown here, this script was intentionally written this way as a part of a training video in which I am building on techniques. check-in: 19241066de user: halr9000 tags: trunk
12:58
This is a PowerCLI sample script I wrote to demonstrate how you could entirely automate the creation of a relatively complex virtual farm environment. check-in: 457c704bff user: unknown tags: trunk
12:58
A wrapper for creating gadget windows with PowerBoots like these check-in: 560867d2ba user: unknown tags: trunk
12:58
Retrieve the windows product key of a specified machine using WMI — Updated for v2 and to take an array of computers (without rewriting anything) check-in: 260e444ca6 user: karl prosser tags: trunk
12:58
This function will create a custom PSObject using a hashtable as input. check-in: 14d814d71d user: russellds tags: trunk
12:58
Fixed a script to open files for editing in Notepad++ — you may need to edit the $npp variable in the BEGIN block to put the full path in, if you didn’t run the Notepad++ installer. check-in: 1fd6d1c380 user: Joel Bennett tags: trunk
12:58
A function to rename a computer check-in: bfa4efc6c1 user: Gerald Klassen tags: trunk