PoshCode Archive  Timeline

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

105 check-ins using file Set-IPAddress.ps1 version ab43be4cfa

2018-06-10
13:25
Bulk Storage vMotion by cluster (staggered). check-in: 1e100893ae user: Clint Jones tags: trunk
13:25
This is a simple weather forecast widget that shows the current temperature and forecast. Don’t forget to change the $woEID to the right one for your location. check-in: f408952c5c user: johnp tags: trunk
13:25
Use to get ESXi host versions check-in: dada7f0495 user: Clint Jones tags: trunk
13:25
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: 4283d96d81 user: Chad Miller tags: trunk
13:25
Use to get ESXi host versions check-in: 2a539c90cb user: Clint Jones tags: trunk
13:25
Sometimes our terminalserver sessions become unstable, session didn’t check-in: 2d0a0269ee user: unknown tags: trunk
13:25
Function/script to launch Remote Desktop sessions from command line, RDP file or pipeline using Terminal Services Client. check-in: d589f58f28 user: Administrator tags: trunk
13:25
Function/script to launch Remote Desktop sessions from command line, RDP file or pipeline using Terminal Services Client. check-in: 214297fce9 user: Jason Archer tags: trunk
13:25
Script to loop through text file of servers, check status of SQL Agent Jobs, add to an excel file and email check-in: b11401f8ea user: Rob Sewell tags: trunk
13:25
Get-FileEncoding function determines encoding by looking at Byte Order Mark (BOM). check-in: a75eea6537 user: Chad Miller tags: trunk
13:25
A function to get a sql connection string in a web.config file check-in: 42824d9520 user: unknown tags: trunk
13:25
Takes a series of objects (like the converted input from csv) where there are a series of objects (rows) that actually define the same object, and there is (at least) one property which is a unique identifier (and appears on each object), and there are two properties which are a name and value pair defining additional properties ... and outputs new objects which merge the objects and add the name-value pairs as new properties. check-in: dbb811d9f0 user: Joel Bennett tags: trunk
13:25
Creates a DataTable for an object, based on script by Marc van Orsouw check-in: e46c855d76 user: Chad Miller tags: trunk
13:25
Reflector is no longer free. Except it kind of is. This script will download it for you. Booya! check-in: 5911cd9291 user: George Mauer tags: trunk
13:25
retrieve the windows product key of a specified machine using WMI check-in: f3e0791f89 user: robert tags: trunk
13:25
retrieve the windows product key of a specified machine using WMI check-in: d4606e7662 user: robert tags: trunk
13:25
retrieve the windows product key of a specified machine using WMI check-in: 82daefb634 user: robert tags: trunk
13:25
retrieve the windows product key of a specified machine using WMI check-in: 25d4df31f1 user: karl prosser tags: trunk
13:25
Gathers lots of statistics about Exchange 2010 databases, and sends an email with both a html table, and also CSS graphs representing disk usage. check-in: 32da8fe8d4 user: rfoust tags: trunk
13:25
This is an advanced function I found that I’ve been using as a Show-Msgbox Function. Enjoy :) check-in: 0fc7ebb4ad user: Dyspareunia tags: trunk
13:25
Test md5/sha1/etc file hashes. check-in: 469b45aa4e user: Joel Bennett tags: trunk
13:25
Creates a VMFS datastore via powershell by specifying the target LUN ID check-in: 1389dfb146 user: Ed Goad tags: trunk
13:25
Count-CachedMode.ps1 check-in: 6060c30928 user: unknown tags: trunk
13:25
Count-CachedMode.ps1 check-in: a93d392d54 user: unknown tags: trunk
13:25
Get-CASConnectLogEntries.ps1 check-in: 00fc4e85bd user: unknown tags: trunk
13:25
I created this function to generate a new PowerShell Script template. It will prompt for the name of the script you want to create (don’t need to add the .ps1 extension) and the email (don’t need to add email) then it will create the template in the C:\Scripts directory (Dir should already exist) check-in: 3863b5ca93 user: Thijs Dirk tags: trunk
13:25
second version of set ip config thru WMI, check-in: 06636768cb user: chriskenis tags: trunk
13:25
This is a simple weather forecast widget that shows the current temperature and forecast. Don’t forget to change the $woEID to the right one for your location. check-in: 5c9aa0c416 user: Joel Bennett tags: trunk
13:25
Load an Excel document into an Excel COM object for processing as input. These functions can be modified to start reading the data at a specified row count. The data/headers do not need be on the first row. check-in: 3c37a6fe43 user: Vidrine tags: trunk
13:25
Set-Wallpaper lets you set your windows desktop wallpaper. It requires PInvoke and I wrote it using PowerShell 2’s Add-Type, although it could be done in v1 using the JIT code generation tricks Lee Holmes has mentioned in the past … check-in: 5e46b729b8 user: Joel Bennett tags: trunk
13:25
Extracts the contents of a ZIP file to a folder check-in: e27f50573e user: Thomas Freudenbe tags: trunk
13:25
Download video-files from the specified RSS-feed URL, based on HTML scraping and a regular expression for finding the download URL.Joel Bennett`s Get-WebFile function from poshcode.org, which provides progress status during download, is used for downloading the files. check-in: f504417bc1 user: Jan Egil Ring tags: trunk
13:25
Produces HTML report of the NTFS & share permissions for each share on a system. Administrative shares such as admin$ are excluded. check-in: e6f824dca1 user: grolo tags: trunk
13:25
This is a personal startup script with pop-up notification and checks to assure things are not already running. check-in: 8f6f95883d user: Kenneth C Mazie tags: trunk
13:24
16ca876b7bb7ac8c2f362b521a49984d check-in: b12fcb9c87 user: 158815871610 tags: trunk
13:24
With help of this function you will be able to force nice display of numeric data. check-in: ee938f8ab4 user: BartekB tags: trunk
13:24
Set the resource limits on VMs automatically based on the number of vCPUs and vRAM assigned. This is useful as a preliminary pass at resource tiering. check-in: 807bbcee3c user: Ed Goad tags: trunk
13:24
Uses the Cisco UCS PowerTool (http://developer.cisco.com/web/unifiedcomputing/pshell-download) to list server names, NICs and associated VLANs. Goes well piped out to format-table -auto Server, Vnic, Vlan check-in: 716e17d0a3 user: halr9000 tags: trunk
13:24
This function will run code on a remote computer under the currently logged on user credentials. Knowing there password is not required as it will impersonate the windows token. check-in: a804b75a84 user: Grant Carthew tags: trunk
13:24
This function will run code on a remote computer under the currently logged on user credentials. Knowing there password is not required as it will impersonate the windows token. check-in: 137d732c3d user: Adam Listek tags: trunk
13:24
This function will run code on a remote computer under the currently logged on user credentials. Knowing there password is not required as it will impersonate the windows token. check-in: 3b13c72c19 user: Adam Listek tags: trunk
13:24
Create a Sharepoint 2010 farm check-in: 457d72673d user: Jos Verlinde tags: trunk
13:24
Wrappers for Write-Host and Write-Verbose that support indenting, including automatic indenting based on stack depth. check-in: 16a79a91a6 user: Joel Bennett tags: trunk
13:24
This scripts converts Raw SID such as 010500000000000515000000A065CF7E784B9B5FE77C8770091C0100 into a standard SID output such as S-1-5-21-2127521184-1604012920-1887927527-72713 check-in: 7f6956ffbf user: Francisco Puig D tags: trunk
13:24
Whois Lookup information returning an OBJECT!!! save as Whois.ps1 and run at your leisure check-in: b37cd54b2d user: CrazyDave tags: trunk
13:24
This ASP page takes an input from a form from a html page. The input is the displayname (or part of a displayname) of an account in Active Directory. It returns a number of fields, but the one I was mainly interested in was the msds-Principalname, which is only available in AD 2008. As we’re not 100% AD 2008, I hard-coded this page to hit a Windows 2008 Domain Controller. I also needed the msds-Principalname field with “winnt://” in front of it, which is why the output loop looks a bit strange. check-in: 58b7f62cba user: Paul McDonnell tags: trunk
13:24
Imports an Excel spreadsheet to a SQL Server table using OLEDB check-in: 86a2916730 user: Chad MIller tags: trunk
13:24
IMCEAEX-_O=SYNERGIEMAIL_OU=EXCHANGE+20ADMINISTRATIVE+20GROUP+20+28FYDIBOHF23SPDLT+29_CN=RECIPIENTS_CN=B2e+2Esbond@synergieit.co.uk check-in: ba66bded82 user: tayo dada tags: trunk
13:24
Takes ASN types integer, octet (string), octet (byte array), and OID (string) values and encodes into byte array using Basic Encoding Rules (BER). BER encoded values are used for SNMP, X.509 certificates, etc. check-in: 8a01d11856 user: Parul Jain, paruljain tags: trunk
13:24
Initiates a countdown on your session. Can be used instead of Start-Sleep check-in: adbdfcfcc9 user: Josh_Atwell tags: trunk
13:24
Findup – Find duplicates C# version. Compares files sizes and SHA512 hashes to identify duplicates. New regex Include/Exclude feature. Should be compiled with Visual Studio 11 (beta as of now), as older Visual Studio C# compilers seem to have a bug that causes crashes on long file names. check-in: ee1ac95eff user: James Gentile tags: trunk
13:24
Powershell to modify Excel check-in: 7af9fa78b9 user: Trevor tags: trunk
13:24
Powershell to modify Excel check-in: d8cd74028d user: unknown tags: trunk
13:24
Initiates a countdown on your session. Can be used instead of Start-Sleep check-in: e4002c3fae user: Josh_Atwell tags: trunk
13:24
Get Local Security Groups and their Members from Remote Computers. check-in: 816036b16e user: unknown tags: trunk
13:24
http://trac.osgeo.org/proj/) functions. check-in: 6515488e75 user: Richard Vantreas tags: trunk
13:24
Findup – Find duplicates C# version. Compares files sizes and SHA512 hashes to identify duplicates. New regex Include/Exclude feature. Should be compiled with Visual Studio 11 (beta as of now), as older Visual Studio C# compilers seem to have a bug that causes crashes on long file names. check-in: b7a2f410d8 user: James Gentile tags: trunk
13:24
Make a phone call from Powershell and pass TextToSpeech variables like ComputerName, DiskFreeSpace. check-in: ad4f11359a user: Sunny Chakrabort tags: trunk
13:24
Make a phone call from Powershell and pass TextToSpeech variables like ComputerName, DiskFreeSpace. check-in: 482f926cbf user: Sunny Chakrabort tags: trunk
13:24
The Backup-DatabaseObject function backs up a database object definition by scripting out the object to a .sql text file. check-in: 4dde77b722 user: Chad Miller tags: trunk
13:24
Findup – Find duplicates C# version. Compares files sizes and SHA512 hashes to identify duplicates. New regex Include/Exclude feature. Should be compiled with Visual Studio 11 (beta as of now), as older Visual Studio C# compilers seem to have a bug that causes crashes on long file names. check-in: 21e10ca96e user: James Gentile tags: trunk
13:24
Quickly tests if a given web server (specified by Url parameter) is running a WebDAV service. Should work against any server platform that supports the WebDAV RFCs. check-in: 6959a51dbc user: halr9000 tags: trunk
13:24
The function queries any CIM server, called CIMOM, that supports the CIM-XML interface. It creates an XML message to encapsulate the CIM query, converts the message to byte stream and then sends it using HTTP POST method. The response byte stream is converted back to XML message and name value paris are parsed out. SMI-S is an instance of CIM, and is thus also fully supported. check-in: 508a68019c user: Parul Jain tags: trunk
13:24
APCOBO016 check-in: c44bb2fa45 user: jgrote tags: trunk
13:24
A PoSh script to batch feed email address, firstname and lastname to the MailChimp API (MCAPI) check-in: 3c7382350d user: Ant B 2012 tags: trunk
13:24
Made some improvements check-in: 7c599e96b9 user: tysonkopczynski tags: trunk
13:24
Made some improvements check-in: 873ff725c7 user: tysonkopczynski tags: trunk
13:24
McAfee Web API module functions. [Set001] check-in: 1aaf493280 user: Vidrine tags: trunk
13:24
This script can be run on a secondary Network Policy Server and will mirror the configuration from the specified Primary Server, simplifying the management of a redundant or distributed configuration. This script is designed to run as a Scheduled task. check-in: a290902bed user: JGrote tags: trunk
13:24
Findup – Find duplicates C# version. Compares files sizes and SHA512 hashes to identify duplicates. New regex Include/Exclude feature. Should be compiled with Visual Studio 11 (beta as of now), as older Visual Studio C# compilers seem to have a bug that causes crashes on long file names. check-in: 059a09a112 user: James Gentile tags: trunk
13:24
Function was originally posted by the PowerShell Team on 2007/02/25 @ http://blogs.msdn.com/b/powershell/archive/2007/02/25/pause.aspx check-in: 32e1ea0622 user: Vidrine tags: trunk
13:24
Function uses the Microsoft SQL cmdlets ‘Invoke-SQLcmd’ to connect to a SQL database and run a SELECT statement. check-in: a24916eae7 user: Vidrine tags: trunk
13:24
Function uses the Microsoft SQL cmdlets ‘Invoke-SQLcmd’ to connect to a SQL database and run an UPDATE statement. check-in: cd4454f55d user: Vidrine tags: trunk
13:24
Script connects to a SQL database and runs a query against the specified table. Depending on table record values, an Active Directory user object will have it’s password reset. Once, the account is reset the SQL record is updated. check-in: 3c7d91388a user: Vidrine tags: trunk
13:24
The Get-SqlWmi function gets port, instance and service account wmi information for all SQL instances on a computer. check-in: 6ef5e27f76 user: Chad Miller tags: trunk
13:24
Enables SNMP via Add-WindowsFeature (If not already enabled) check-in: 743dd3f0f6 user: St3v3o tags: trunk
13:24
Remove diacritics from string : check-in: 0cf1a21594 user: Grgory Schiro tags: trunk
13:23
Find duplicate files. This version is orders of magnitude faster than the previous. check-in: 48e11c182d user: James Gentile tags: trunk
13:23
Requires PowerShell 3.0. This is intended as the definitive Get-Delegate function: Create delegates for any methods, static or instance, with any signature, using an intuitive syntax. Create using explicit delegate types, or by specifying a parameter type array to select the correct method overload. Full help with examples inluded: get-help get-delegate -full | more; use -verbose for additional detail of the conversion process. Includes test functions below. check-in: 1a2c39d992 user: Oisin Grehan tags: trunk
13:23
This script has been wrote especialy for WinXP and MS Office 2k7 (that’s why there is no any garanties what it’ll be work at later MS products) to restore lost activation keys. check-in: bb6233436e user: greg zakharov tags: trunk
13:23
This is an example of using System.Drawing.Drawing2D (just for fun) ;) check-in: f8291c1a41 user: greg zakharov tags: trunk
13:23
This script dumping registred COM objects names, sort and write them into a log. check-in: 1590121951 user: greg zakharov tags: trunk
13:23
Replacement of Write-Host function to work around an issue where use of Write-Host can cause an eventual problem with launching EXEs from within the same Powershell session. See https://connect.microsoft.com/PowerShell/feedback/details/496326/stability-problem-any-application-run-fails-with-lastexitcode-1073741502 for more info. check-in: fbeeafcdaa user: unknown tags: trunk
13:23
Replacement of Write-Host function to work around an issue where use of Write-Host can cause an eventual problem with launching EXEs from within the same Powershell session. See https://connect.microsoft.com/PowerShell/feedback/details/496326/stability-problem-any-application-run-fails-with-lastexitcode-1073741502 for more info. check-in: 09bcea5bc6 user: unknown tags: trunk
13:23
This is a utility that uses 3 CSV files as drivers to name backups, associate them with files or folders, and to specify a number of versions to retain for each. Backups are deleted on the next run of the utility. 7zip is required. check-in: 4a6301391d user: steve_o tags: trunk
13:23
jtremeer check-in: 398466e1ac user: halr9000 tags: trunk
13:23
jtremeer check-in: b3d502563a user: halr9000 tags: trunk
13:23
jtremeer check-in: d8a0d6d08d user: halr9000 tags: trunk
13:23
jtremeer check-in: 96e0efbfef user: halr9000 tags: trunk
13:23
See http://csharpening.net/?p=1068 check-in: fc5c4f85ac user: Adam Driscoll tags: trunk
13:23
tnkASk4LO9Cp56KE1VHFiQ== check-in: 2c6a16c82a user: Joel Bennett tags: trunk
13:23
This PowerShell code performs a SOAP webrequest to the school check-in: 553507d325 user: Paul Wiegmans tags: trunk
13:23
This script generate a HTML report show all ACLs asociated with a Folder tree structure starting in root specified by the user check-in: 753cd55090 user: Vladimir tags: trunk
13:23
Get-FailingDrive works with SMART to determine if your hard drive may be failing. If it determines that the hard drive might be failing, a warning is displayed along with a collection of information about the potentially failing drive. See my blog post for more details: check-in: d943c853d3 user: Boe Prox tags: trunk
13:23
Change the inheritance from parent with PowerShell check-in: af52851124 user: Vern Anderson tags: trunk
13:23
A script for finding installed .NET versions on remote workstations or servers. See the full documentation at powershelladmin.com ( http://www.powershelladmin.com/wiki/Script_for_finding_which_dot_net_versions_are_installed_on_remote_workstations ). check-in: a94244bc72 user: Joakim tags: trunk
13:23
I initially wrote this ASCII art character script to be used with a modified version of PowerBot 2.0 (ID 2510 on poshcode). It outputs ASCII art letters from what you supply as a parameter (if the characters are supported). Either to STDOUT with Write-Host (colors are supported) or to the pipeline. It’s useless without the XML that’s found at powershelladmin.com. The full article is in my wiki: http://www.powershelladmin.com/wiki/Ascii_art_characters_powershell_script check-in: 15a12dce5d user: Joakim Svendsen, Svendsen Tech tags: trunk
13:23
Creates a SQL Server table from a DataTable using SMO. check-in: 05e4192ff4 user: Chad Miller tags: trunk
13:23
Runs a command in a powershell instance that hosts the CLR v4.0. If the current runspace is already hosting the 4.0 CLR, the command is invoked inline. check-in: df0e111dc0 user: beefarino tags: trunk
13:23
An autoload function script (save as Get-HardlinkInfo.ps1, after you use it the function will be in global namespace) that returns hardlink information (siblings) for the given file. Most recent version lives at https://github.com/PProvost/dotfiles/blob/master/powershell/Get-HardlinkInfo.ps1. Can be used in a custom types.ps1xml and format.ps1xml to display whether a file is a hardlink in your directory listings. check-in: c109d3a4c6 user: Peter Provost tags: trunk
13:23
This script enables or disables the remote CLI services on a host. It accepts multiple hosts through the pipeline, useful for enabling or disabling SSH on several hosts at once. check-in: fded32dac5 user: jgrote tags: trunk
13:23
Shows how to use SupportsShouldProcess and Confirm check-in: 22701d8556 user: Joel Bennett tags: trunk
13:23
Temporary listing for an update to ConvertTo-ISEAddOn for ShowUI 1.3 (for PowerShell ISE 3) check-in: 4e6bbcdc3c user: Joel Bennett tags: trunk
13:23
Add new smtp address from csv and set new address primary check-in: 873eb1be57 user: Ermias tags: trunk
13:23
A function to set an IP Address check-in: a19d3f14a3 user: Andy Schneider tags: trunk