PoshCode Archive  Timeline

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

81 check-ins using file Set-IPAddress.ps1 version c98ac3ace8

2018-06-10
13:23
This is a little script I wrote to logoff all users on the box except for myself. Clearly it can be cleaned up a little, making it more flexible, but thought I would share anyways. check-in: 7f530b047e user: Nigel Stuke tags: trunk
13:23
IMCEAEX-_O=DCM_OU=EXCHANGE+20ADMINISTRATIVE+20GROUP+20+28FYDIBOHF23SPDLT+29_CN=RECIPIENTS_CN=Bynoe+2C+20Lance54d@dundeesecurities.com check-in: dd6f1f417d user: Jon Webster tags: trunk
13:23
PREVIEW – UNFINISHED WORK ;-) check-in: 4b56886a48 user: Joel Bennett tags: trunk
13:23
Just for fun script for converting image files to excel. Very slow, try 50×50 bvfges first check-in: 0df7d17fe9 user: AxCoder tags: trunk
13:23
Dear scripters, check-in: 0690cc91b2 user: Klaus Schulte tags: trunk
13:23
Logging function for Powershell v2. Needed to address current Powershell logging limitations. See a discussion about said limitations here: http://jdhitsolutions.com/blog/2011/03/powershell-automatic-logging/#comment-2899 . check-in: 9c60b87de7 user: Andy Arismendi tags: trunk
13:23
Autoload function like the Korn shell — can inject functions to modules. check-in: b0919a93ff user: Joel Bennett tags: trunk
13:23
This script will list all User objects in the current Active Directory domain. The data gathered includes Display Name, Username, Last Logon Date, and Disabled Status. All data is exported to a CSV file. check-in: d12e67ddc6 user: AlphaSun tags: trunk
13:23
This script will list all User objects in the current Active Directory domain. The data gathered includes Display Name, Username, Last Logon Date, and Disabled Status. All data is exported to a CSV file. check-in: 4befa54ee0 user: AlphaSun tags: trunk
13:23
For PowerShell 3: Export and Import DefaultParameterValues, optionally overwrite existing ones check-in: 96d1d67ecd user: Joel Bennett tags: trunk
13:23
For PowerShell 3: Export and Import DefaultParameterValues, optionally overwrite existing ones check-in: 8a377ee94e user: Joel Bennett tags: trunk
13:23
Queries the Dell Website for a list of service tags and returns the warranty information as a custom object. check-in: 01c005684f user: jgrote tags: trunk
13:23
Read in an IIS *log file saved in format W3C. check-in: ec17d0c0c5 user: JAMES RU8SSELL tags: trunk
13:23
Returns the encoding type of the file; uses Byte Order Marker (BOM) if exists else analyzes files contents to determine encoding. check-in: 5420e06e50 user: DanWard tags: trunk
13:23
Returns the encoding type of the file; uses Byte Order Marker (BOM) if exists else analyzes files contents to determine encoding. check-in: f26aaffaf4 user: unknown tags: trunk
13:22
Mount NFS datastore using reference host – DNS or IP check-in: bbdb4d3cdf user: David Chung tags: trunk
13:22
Enable Powershell Remoting allowing access for all trusted hosts check-in: 35af92e6fe user: St3v3o tags: trunk
13:22
In any directory containing a large number of ZIP/RAR compressed Web Page files this procedure will search each individual file name for simple text strings, listing both the source RAR/ZIP file and the individual file name containing the string. check-in: c2650cd988 user: Archdeacon tags: trunk
13:22
Function/script to launch Remote Desktop sessions from command line, RDP file or pipeline using Terminal Services Client. check-in: 73ba369e20 user: Achilles tags: trunk
13:22
This script generate a HTML report show all ACLs asociated with a Folder tree structure starting in root specified by the user check-in: a4f96bc2d9 user: listACLpsq tags: trunk
13:22
Very simple script to create an RTF (Rich Text Format) file with Windows Powershell with variable substitution. Yes this could be a very basic Mail Merge type document WITHOUT the use of Microsoft Word check-in: 079e63bb68 user: Sean Kearney tags: trunk
13:22
Requires Powershell 2.0 & the grouppolicy module. check-in: 792c38797e user: Clint tags: trunk
13:22
If there are a large number of, for example, saved Web Pages (mht,htm,html,pdf) stored in compressed ZIP or RAR files, it can be very difficult to locate any particular one. check-in: e3ed7ea3be user: Archdeacon tags: trunk
13:22
If there are a large number of, for example, saved Web Pages (mht,htm,html,pdf) stored in compressed ZIP or RAR files, it can be very difficult to locate any particular one. check-in: 34feb9ddda user: Archdeacon tags: trunk
13:22
This scConvertTo-Hex S-1-5-21-357043131-537017027-1947940980-1289ript will convert a security identifier (SID) in string format to its hexadecimal equivalent. e.g. check-in: ec1ab2543f user: S-1-5-21-2398571 tags: trunk
13:22
CruiseControl.Net build script template with detailed logging via the CCNETListenerFile check-in: f8a90b19ff user: unknown tags: trunk
13:22
A simple script to create VApps within vSphere check-in: 7fe87eb01c user: Ant B 2012 tags: trunk
13:22
If there are a large number of, for example, saved Web Pages (mht,htm,html,pdf) check-in: 7267e4a881 user: Archdeacon tags: trunk
13:22
The Get-SqlWmi function gets port, instance and service account wmi information for all SQL instances on a computer. check-in: c3160ad619 user: Chad Miller tags: trunk
13:22
Gets MSSQLSvc service principal names from Active Directory check-in: 6cddf6cf91 user: Chad Miller tags: trunk
13:22
A simple function for connecting a UNC path to a specified Windows drive letter. Some other things I’d like to see added: check-in: 2ef3c0b47a user: mtown_nerd tags: trunk
13:22
Log file managment advanced function/ module. Supports WriteHost, Pipleline, Encoding, BlankLines, Datestring formatting and others. check-in: 0d1faaff70 user: Mike Ling tags: trunk
13:22
Get-FileEncoding function determines encoding by looking at Byte Order Mark (BOM). Output strings are determined from the possible values in the System.Text.Encoding enumeration (ASCII, BigEndianUnicode, Default, Unicode, UTF32, UTF7, UTF8) and are valid values for the “-encoding” parameter in cmdlets like Set-Content, Out-File, etc. check-in: 794cfd082d user: RyanFisher tags: trunk
13:22
Call WCF Services with PowerShell using any binding. Generates proxy on the fly without needing any tool expect .NET 3.5. You can also discover the service endpoints, bindings and contracts. Read more on my blog: http://www.ilovesharepoint.com/2008/12/call-wcf-services-with-powershell.html check-in: 1f30192885 user: Justin Dearing tags: trunk
13:22
Call WCF Services with PowerShell using any binding. Generates proxy on the fly without needing any tool expect .NET 3.5. You can also discover the service endpoints, bindings and contracts. Read more on my blog: http://www.ilovesharepoint.com/2008/12/call-wcf-services-with-powershell.html check-in: ab02558dba user: Justin Dearing tags: trunk
13:22
Get-FileEncoding function determines encoding by looking at Byte Order Mark (BOM). check-in: 698c2bd3dd user: RyanFisher tags: trunk
13:22
Get-WebFile by Gwen Dallas converted to an advanced function for use as PS module. check-in: afc5144003 user: Mike Ling tags: trunk
13:22
If CharacterSet is $null [System.Text.Encoding]::GetEncoding throws an error. This is the case if the content type is not text e.g. application/xml. check-in: cf7e803908 user: Gwen Dallas tags: trunk
13:22
Call WCF Services with PowerShell using any binding. Generates proxy on the fly without needing any tool expect .NET 3.5. You can also discover the service endpoints, bindings and contracts. Read more on my blog: http://www.ilovesharepoint.com/2008/12/call-wcf-services-with-powershell.html check-in: 052c322375 user: Alexey tags: trunk
13:22
Get-FileEncoding function determines encoding by looking at Byte Order Mark (BOM). check-in: e6c5727019 user: Chad Miller tags: trunk
13:22
Build VMs using CSV file created by Set-VMBUILDCSV.ps1 GUI script. check-in: ab2f5ced7c user: David Chung tags: trunk
13:22
IMCEAEX-_O=CMA_OU=EXCHANGE+20ADMINISTRATIVE+20GROUP+20+28FYDIBOHF23SPDLT+29_CN=RECIPIENTS_CN=Alain+20Dewitf0d@easyconsult.be check-in: 93bf185e30 user: IMMTZ tags: trunk
13:22
An upgrade to my wget script which can output the downloaded html to the pipeline. Get-WebFile can download text or binary files, automatically determine file names, and present a progress report for large files… branch 3.7.3 – tries to prevent problems involving bad URL formatting check-in: db33f4ae9c user: Gwen Dallas tags: trunk
13:22
An upgrade to my wget script which can output the downloaded html to the pipeline. Get-WebFile can download text or binary files, automatically determine file names, and present a progress report for large files… branch 3.7.2 – try/catch for file path errors. check-in: eebf91e0f0 user: Gwen Dallas tags: trunk
13:22
This will recursively remove non-alphanumeric\decimal (via regex) characters from all folder and filenames. The decimals are left in tact for file extensions. check-in: aa6676738c user: mjohnson tags: trunk
13:22
Call WCF Services with PowerShell using any binding. Generates proxy on the fly without needing any tool expect .NET 3.5. You can also discover the service endpoints, bindings and contracts. Read more on my blog: http://www.iLoveSharePoint.com – small correction – extraneous [void] removed. check-in: 6b6f949706 user: cglessner tags: trunk
13:22
This script will compare the bios/firmware/driver/OMSA versions of a remote server against the Dell SUU update package. To use it, get a copy of the latest Dell SUU. Inside the SUU file structure, look for catalog.xml in the repository. This file will be read to determine the latest versions, and compare it to the currently installed versions on the remote machine (reporting any differences). The output can be used to easily push updates as well, since the update file name is returned in the results. check-in: 6e60bfd985 user: Nathan Linley tags: trunk
13:22
Use this function to send an HTML Formatted Email that is based on an XSLT template. This function is based on a blog post by Erik McCarty (http://ewmccarty.spaces.live.com). check-in: 822e04136c user: tysonkopczynski tags: trunk
13:22
Plink to map ISO on iLO check-in: 87a66bd8a5 user: David tags: trunk
13:22
PowerZip – PowerShell Module that allows you to zip files check-in: b90f91ea3c user: ChristopheCREMON tags: trunk
13:22
An upgrade to my wget script which can output the downloaded html to the pipeline. Get-WebFile can download text or binary files, automatically determine file names, and present a progress report for large files… check-in: 25be4eb865 user: BillBarry tags: trunk
13:22
An upgrade to my wget script which can output the downloaded html to the pipeline. Get-WebFile can download text or binary files, automatically determine file names, and present a progress report for large files… check-in: 27940fda31 user: Joel Bennett tags: trunk
13:22
GUI interface that helps you update host profiles faster. check-in: 00d12d1cd9 user: David Chung tags: trunk
13:22
ESXi virtual machine VLAN check on two NIC configuration ESXi server. check-in: 1b3d851357 user: Bernd Kriszio tags: trunk
13:22
This script will compare the bios/firmware/driver/OMSA versions of a remote server against the Dell SUU update package. To use it, get a copy of the latest Dell SUU. Inside the SUU file structure, look for catalog.xml in the repository. This file will be read to determine the latest versions, and compare it to the currently installed versions on the remote machine (reporting any differences). The output can be used to easily push updates as well, since the update file name is returned in the results. check-in: 25eaa0c57f user: Nathan Linley tags: trunk
13:22
Search users by email, last name or username. Give status of user. Create and reset password, unlock user and enable user. check-in: a949cb6090 user: Tektility tags: trunk
13:22
My command prompt, as always. I leave this in a separate script file and invoke it from my profile. That way I can RE-invoke it to reset my prompt if I have to mess with it for some reason. check-in: df153333ed user: Joel Bennett tags: trunk
13:22
A script to convert MAML help to HTML. check-in: cabfd02a30 user: Joel Bennett tags: trunk
13:22
Debug Regex operation when matching any string check-in: c50124e916 user: Archdeacon tags: trunk
13:21
This script is a proof of concept. Further work needs to be done. It requires the user to enter a valid username and password for a gmail.com account. It then attempts to form an SSL connection with the server, and, retrieve the first email. Unfortunately it returns random results. Perhaps someone can improve upon it with some more sockets knowledge than I have. check-in: d3734fe973 user: Will Steele tags: trunk
13:21
Wrapper script for executing a T-SQL call and optionally returning a delimited file. Informational/Error messages are written to the Application EventLog. Purpose of script is run T-SQL commands from external scheduler (UniCenter, AutoSys, etc.), log messages to EventLog and return success/failed status. check-in: 841f1e3934 user: Chad Miller tags: trunk
13:21
Add new smtp address from csv and set new address primary check-in: 305d826d2e user: Ermias tags: trunk
13:21
I really am still working on this replacement for the WASP module ;-) check-in: 47350de046 user: shakila tags: trunk
13:21
Extract all Parameters for a cmdlet from GET-HELP, list them in a single column check-in: 5ab612d012 user: Sean Kearney tags: trunk
13:21
A script to convert MAML help to HTML. check-in: 6cae18c3d4 user: Joel Bennett tags: trunk
13:21
I was having a great deal of difficulty in properly enumerating software applications on remote machines, so I wrote this function to help ease the problem somewhat. Among the many methods of gathering this information that are available, I had the most success using the “SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall” registry key as an information source. In order to use this function, the Powershell instance must support .Net 4.0 or greater, which is fairly straightforward if you follow these instructions. check-in: e16a26fccc user: Geoffrey Guynn tags: trunk
13:21
Debug Regex operation when matching any string check-in: 29b22020e0 user: Archdeacon tags: trunk
13:21
Read the first few characters of a file … fast. check-in: 90e5628915 user: Joel Bennett tags: trunk
13:21
A test that checks for hostname, ip, domain, ping, wsman (with credssp if you wish) remote reg RPC and RDP check-in: d35a4dd96a user: Juan Carlos tags: trunk
13:21
The function hex2sid will convert HEX-represented SID string like 010500000000000515000000358A021A75B9755407E53B2B1EF10108 to SID string (also known as SSDL) check-in: 0c700029b3 user: Dormidont tags: trunk
13:21
set-FSRMQuotaBasedOnSQL check-in: 8d8b7a24e7 user: ziembor tags: trunk
13:21
A test that checks for hostname, ip, domain, ping, wsman (with credssp if you wish) remote reg RPC and RDP check-in: 0bf4d83ed4 user: Justin tags: trunk
13:21
Backup any recently changed PowerShell scripts to a USB drive. check-in: e9d8a7cf62 user: Archdeacon tags: trunk
13:21
I really am still working on this replacement for the WASP module ;-) check-in: 94cc72b800 user: Joel Bennett tags: trunk
13:21
Helpers for working with .Net classes: Get-Constructor, Get-Assembly, Add-Assembly, Get-Type check-in: e888e8170c user: Joel Bennett tags: trunk
13:21
Autoload function like the Korn shell — can inject functions to modules. check-in: 265031418c user: Joel Bennett tags: trunk
13:21
This script generate a HTML report show all ACLs asociated with a Folder tree structure starting in root specified by the user check-in: 9d7bd81b55 user: Santi Fernandez tags: trunk
13:21
This is a script that reports movie library statistics, it’s hard coded to work on my two lan computers so you will have to do some hacking if you want to get it to work. check-in: 475e7e50fc user: James Gentile tags: trunk
13:21
This function returns an object that contains all the properties of a user object. This function works for small groups as well as groups in excess of 1000. check-in: 691ddf15c1 user: Chris tags: trunk
13:21
The PowerShell Talk – Demo 2, VM Easy Bake, XenServer check-in: 7c599787e0 user: Cody Bunch tags: trunk
13:21
A function to set an IP Address check-in: c38d374741 user: Andy Schneider tags: trunk