PoshCode Archive  Timeline

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

237 check-ins using file Set-Computername.ps1 version 5b91c0b28a

2018-06-10
14:04
Function takes search term and number of pages as input parameters. Depending on number of pages given check-in: 50d40c70aa user: Syslq tags: trunk
14:04
Copy Data between Folders including a Progressbar check-in: f63dc5ad55 user: Glenn tags: trunk
14:04
01,00,00,00,d0,8c,9d,df,01,15,d1,11,8c,7a,00,c0,4f,c2,97,eb,\ check-in: bfb3a5b376 user: bobby thing tags: trunk
14:04
Finds exchange mailbox folder unique ID for use with Exchange Web Service Managed API. At times you may want to work with a folder that is NOT a well known folder (Inbox,Sent Items, etc). This will get you the unique ID required to bind to that folder. check-in: c36f860403 user: Chad C tags: trunk
14:04
Function takes search term and number of pages as input parameters. Depending on number of pages given check-in: 1bc0519ea3 user: Syslq tags: trunk
14:04
quick hard coded script for uploading a file to an ftp server. check-in: 55e695d458 user: Stephen Price tags: trunk
14:04
This script generates an output file from a template and a driver table. Both of the inputs are files. The template file contains plain check-in: ed9e3e6a75 user: Walter Mitty tags: trunk
14:03
Simple script to bulk-create printers on a print-server. Printers are imported from a csv-file. check-in: 032c6d1842 user: Jan Egil Ring tags: trunk
14:03
Function to create ACE objects to simplify making changes to folder permissions. New-ACE function plus a usage example check-in: d6b793c0c1 user: BattleChicken tags: trunk
14:03
quick hard coded script for uploading a file to an ftp server. check-in: 570596492c user: jiayuhui tags: trunk
14:03
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: cc713b10d3 user: obaid tags: trunk
14:03
This takes the output from HP Configuration Collector for an EVA and converts it to useful CSVs for reporting. check-in: 8244752ce6 user: jgrote tags: trunk
14:03
Fair warning: This is a messy scrip, not even parameterized. It ain’t pretty. check-in: bc30086088 user: Steve Whitcher tags: trunk
14:03
Extract-zip got me thinking – I’ve had some global Zip functions in my .profile for a long ass time – here they are, I suggest if you want to allow “global” use of these, to add them to the global profile for powershell. I’m sure I copied them form some PS guru, but the whom escapes me… check-in: 7f5687368b user: Munsonisim tags: trunk
14:03
Extracts the contents of a ZIP file to a folder check-in: e3b82cc121 user: Thomas Freudenbe tags: trunk
14:03
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: 5f77ca4e69 user: S-1-5-21-2398571 tags: trunk
14:03
retrieve the windows product key of a specified machine using WMI check-in: 4ecb0e314a user: karl prosser tags: trunk
14:03
This script checks for any service that is not running that needs to be running. This script creates a temp file with a list of the services that are not running and when this is detected as having values the script imports the entries from the .csv and emails them to the appropriate individuals. This script was designed to be ran repeatedly as a scheduled task. check-in: 04d0a6715e user: David tags: trunk
14:03
Get-FileEncoding function determines encoding by looking at Byte Order Mark (BOM). check-in: a177e021d6 user: Jason Poad tags: trunk
14:03
original filename: lib-authentication.ps1 check-in: 93857dea9a user: Hal Rottenberg tags: trunk
14:03
MediaWiki API check-in: 155391dcac user: Serpen tags: trunk
14:03
Function to import security certificates. check-in: 015c3d4e7b user: anti121 tags: trunk
14:03
“Throw” keyword is misspelled in ConvertFrom-Canonical param. check-in: 6dc457140d user: Glenn Sizemore glnsize tags: trunk
14:03
With this function I can switch between IE and Firefox as default browser. It is just a start. There might be some more registry keys to be changed check-in: e2ef45f7ef user: Bernd Kriszio tags: trunk
14:03
Copy Data between Folders including a Progressbar check-in: b45d6938ed user: zorion tags: trunk
14:03
Used for fetching an HP Procurve switch config via SFTP for backup and revision control. Made this because PCM is no longer free. VERY BASIC ERROR CHECKING, use at own risk. check-in: 538b9d86ee user: JGrote tags: trunk
14:03
Used for fetching an HP Procurve switch config via SFTP for backup and revision control. Made this because PCM is no longer free. check-in: df89c07dd5 user: JGrote tags: trunk
14:03
ConvertFrom-String Buddy check-in: a2f0762628 user: Robin tags: trunk
14:03
Deletes old shadow copies – runs as a scheduled task. Looking for a code review to improve upon what I have learned from the community. check-in: f9606d2e9c user: albvar tags: trunk
14:03
This is the Get-Number from MSDN Code, slightly altered for style and substance. check-in: 66d06a6d7f user: Joel Bennett tags: trunk
14:03
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: 50b87f0098 user: AlphaSun tags: trunk
14:03
Port of Chris Veness’ JavaScript AES CTR (AES Counter Mode) Aes.Ctr.decrypt to PowerShell. It will decrypt text encrypted with the Aes.Ctr.encrypt function from http://www.movable-type.co.uk/scripts/aes.html which is used by many websites. .NET doesn’t support AES CTR mode natively so you have to do it manually with a little fudging. check-in: 0566cebbac user: Public Domain tags: trunk
14:03
Creates a graph using office web components showing the usage of all datastores check-in: 209193aed5 user: unknown tags: trunk
14:03
Query Exchange with PowerShell for free/busy data check-in: d229233ebd user: Atamido tags: trunk
14:03
Parses a Windows Event log entry by specifying EventRecordID and Log name and outputs XPath that can be used in an event filter/view or Windows Event Forwarding Filter check-in: 3f2eb1d94b user: Kurt Falde tags: trunk
14:03
quick hard coded script for uploading a file to an ftp server. check-in: fa5e1e2b5a user: Stephen Price tags: trunk
14:03
A function to set an IP Address check-in: c78f54c483 user: Andy Schneider tags: trunk
14:03
Trying to get failed WMI and successful wmi machines out into a variable… keep getting “positional parameter” errors when I try to create $wmicheckresults custom object (first time I’ve ever had to use a new object) ... ideally I don’t dump the results to file at all, but I can’t figure out how to get it OUT of the invoke-parallel scriptblock once it’s done it’s code..just disappears into the ether… check-in: ea03ce6113 user: unknown tags: trunk
14:03
Work in progress reinstall SCCM 2007 Client, invoke-parallel portion is broken :( check-in: 2ef266a238 user: unknown tags: trunk
14:03
Script for total resize of all pictures in one or multiple directories. check-in: c33f4bb0ac user: Oleg Medvedev tags: trunk
14:03
Function add an account/group to a WinRM-endpoint, by default the default PowerShell endpoint. See comment based help or this blog post for more information: check-in: 170d544934 user: DollarUnderscore tags: trunk
14:03
Out-HTML – converts cmdlets help to HTML format check-in: d68dac7080 user: Vegard Hamar tags: trunk
14:03
*D15644DAD6FB3335E867C34FA39B77B83A78BF77 check-in: a2b5062f34 user: Joel Bennett tags: trunk
14:03
Two functions Get-AllRegkey and Compare-AllRegKey which will recursivly retrieve a key’s properties and subkeys, and their properties and subkeys, as an array of objects, across multiple computers. The Compare-AllRegKey function uses Compare-Object to compare the arrays returned from each computer to an array returned from a specified reference computer. check-in: 16522a67d4 user: whertzing56 tags: trunk
14:03
this script will check a list of IP’s versus the most common RBL’s online – it will mail results of each IP with a list of the blacklists it was found on. If you run it during the 9am -10am hours it will send Negitive emails also for a sanity check – check-in: c0603dd6ce user: OrbGod tags: trunk
14:02
Create a desktop.ini in your PowerShell folder setting the icon and messing with the display name. check-in: 8f04776686 user: Joel Bennett tags: trunk
14:02
Backs up the configuration of a Cisco UCS 61xx/62xx fabric interconnect using the Cisco PowerTool cmdlets. Designed to run as a scheduled task. Instructions are included in the script. Brief blog post at http://batchlife.wordpress.com/2012/11/14/powershell-script-to-backup/ . You’ll have to make the usual changes to directories, email addresses, etc. Hopefully I didn’t make the instructions more confusing when I sanitized the script for server names and the like. check-in: 38aa79efbf user: monahancj tags: trunk
14:02
Sets the ISE Zoom level to a range between 20 and 400. check-in: c744f31a9b user: mwjcomputing tags: trunk
14:02
Copy Data between Folders including a Progressbar check-in: 9fdddf4e0f user: zorion tags: trunk
14:02
Measure-Command, but with iterations and stuff check-in: 9ad273a2a3 user: Joel Bennett tags: trunk
14:02
- NOTES check-in: fdfaf58a8d user: ChristopheCREMON tags: trunk
14:02
Add new smtp address from csv and set new address primary check-in: 662673ad7d user: Ermias tags: trunk
14:02
This script performs OpenLdap query against specified Server. check-in: 45a5d03b39 user: BSonPosh tags: trunk
14:02
This function downloads sessions from Microsoft Ignite 2015. check-in: 24e6759e8a user: mwjcomputing tags: trunk
14:02
this script will check a list of IP’s versus the most common RBL’s online – it will mail results of each IP with a list of the blacklists it was found on. If you run it during the 9am -10am hours it will send Negitive emails also for a sanity check – check-in: efa1b0121b user: Munsonisim tags: trunk
14:02
This is a jacked up version of Lee’s Show-Object. Uses WMF and a customized tree view grid (Got the C# from MSDN some place, lost the link). Still pretty early on, will likely update it. check-in: 0f79739155 user: Jrich523 tags: trunk
14:02
This script gets database or databases from load server and backs up to FileShare. Checks target availability group, gets up to 3 replicas. Checks if DB is in AG already. For each database, removes database from Availability Group. Restores database to each replica, creates a new database IF does not exist. Adds databases back to AG. check-in: f90aff3bf5 user: Rob Sewell tags: trunk
14:02
############################################################################## check-in: 6d93cc9a93 user: Josh Einstein tags: trunk
14:02
Export-Screenshot and Get-Screenshot let you get a System.Drawing.Bitmap of the full virtual screen or a cropped area of it, and save it to file … check-in: cfa5d6d3ae user: Joel Bennett tags: trunk
14:02
############################################################################## check-in: e28d43b781 user: Josh Einstein tags: trunk
14:02
############################################################################## check-in: 0bdfa62218 user: Josh Einstein tags: trunk
14:02
############################################################################## check-in: 05907f970d user: Josh Einstein tags: trunk
14:02
############################################################################## check-in: f36e7ebf9a user: Josh Einstein tags: trunk
14:02
Mandelbrot PoC check-in: 00fd875639 user: Zefram tags: trunk
14:02
REALLY validates given IP address and returns True/False. The original script didn’t allow ZEROS in the Ip address (eg: 127.0.0.1 returned $false) check-in: 3400bec272 user: mow01 tags: trunk
14:02
Allows you to open a Webmin interface in IE from the command line, automatically skipping an SSL error and logging in with the provided username and password. I use this script as an external tool in mRemoteNG with the following powershell arguments line: “-NoProfile -ExecutionPolicy RemoteSigned -WindowStyle Hidden -File “C:\Users\kim.shepherd\Scripts\Webmin-Login.ps1” -Username Username -Password Password -URL https://%Hostname%:10000” check-in: 1f86fa0f4a user: Kim Shepherd tags: trunk
14:02
Tool for helpdesk to query computers and get information about the computer and the computers owner/user. Can be compiled into .exe with built in credentials with Powerhsell Studio check-in: 14c87bdfd1 user: Brian C tags: trunk
14:02
Can someone explain to me what the following code is used to do? And how many it will produce? and How would the output be used? check-in: 63fc734ab0 user: VARRum tags: trunk
14:02
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: b8821a5050 user: AlphaSun tags: trunk
14:02
Actually this’s not mine script (you can find original post at https://github.com/gregzakharov/ps/blob/master/ps4/Get-SIVTAPIKey.ps1). It really works! check-in: 79a84b0773 user: greg zakharov tags: trunk
14:02
Creates a SQL Server table from a DataTable using SMO. check-in: 894c3acc1d user: Chad Miller tags: trunk
14:02
Writes data only to SQL Server tables. However, the data source is not limited to SQL Server; any data source can be used, as long as the data can be loaded to a DataTable instance or read with a IDataReader instance. check-in: 9b1eae8e46 user: Mark Buckley tags: trunk
14:02
ISE-Lines module v 1.2 check-in: bc2516f129 user: Scott Hardwick tags: trunk
14:02
This simple function translates a wireless AP’s BBID (mac) through the SkyhookWireless API’s to return location information… check-in: 0f6a2b4518 user: CrazyDave tags: trunk
14:02
Enables SNMP via Add-WindowsFeature (If not already enabled) check-in: de3d1fae0d user: St3v3o tags: trunk
14:02
Two cmdlets for and from the Active-Directory uninitiated… check-in: c184018c2e user: Joel Bennett tags: trunk
14:02
I wrote this a while back to be able to automate stuff on a hp san and ilo. It’s pretty much mritten ad-hoc so please feel free to improve on it. Anyway, might be useful for someone out there. The function send-command logs on to a telnet server and executes the piped in commands. check-in: 3fa2a9cb52 user: yavu305z tags: trunk
14:02
I wrote this a while back to be able to automate stuff on a hp san and ilo. It’s pretty much mritten ad-hoc so please feel free to improve on it. Anyway, might be useful for someone out there. The function send-command logs on to a telnet server and executes the piped in commands. check-in: 366f8b752e user: David Sjstrand tags: trunk
14:02
This script changes the local administrator password. check-in: 0e4788ccad user: Jeff Patton tags: trunk
14:02
01 00 00 00 d0 8c 9d df 01 15 d1 11 8c 7a 00 c0 4f c2 97 eb 01 check-in: 6bd9f582df user: CrazyDave tags: trunk
14:02
retrieve the windows product key of a specified machine using WMI check-in: f5a4f2e000 user: Veronika tags: trunk
14:02
Tags alert with PrincipalName, Severity and MP name in Custom fields. check-in: 552a1b7967 user: unknown tags: trunk
14:02
retrieve the windows product key of a specified machine using WMI check-in: 852c3cc9d0 user: karl prosser tags: trunk
14:02
Change the inheritance from parent with PowerShell check-in: 9e6f5c00bf user: Vern Anderson tags: trunk
14:01
This script performs OpenLdap query against specified Server. check-in: 6e56deae8b user: BSonPosh tags: trunk
14:01
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes check-in: 75a2c04246 user: Lee Holmes tags: trunk
14:01
Buying groceries with PowerShell, because why not? ;-) check-in: 4496768f55 user: DollarUnderscore tags: trunk
14:01
This script generates an output file from a template and a driver table. Both of the inputs are files. The template file contains plain check-in: f7997aa94b user: Walter Mitty tags: trunk
14:01
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: f07f243fa3 user: S-1-5-21-2127521 tags: trunk
14:01
ISE-Lines module v 1.2 check-in: 58812311f8 user: Scott Hardwick tags: trunk
14:01
Extension of sqlcmd or invoke-sqlcmd and invoke-sqlcmd2 to include things like ApplicationName, ApplicationIntent and other settings that would be in a connection string. check-in: b8510f2a0e user: Ben Miller tags: trunk
14:01
WinSCP wrapper module I created out of necessity that I put together through my own exploration of the objects and the WinSCP documentation/examples. check-in: 8b6d4964bf user: BattleChicken tags: trunk
14:01
Function to create ACE objects to simplify making changes to folder permissions. New-ACE function plus a usage example check-in: bbd060b724 user: BattleChicken tags: trunk
14:01
Encrypting and Decrypting passwords using securestring. Simple example. check-in: ff4a91425a user: BattleChicken tags: trunk
14:01
Powershell function I made to generate a random password that enforces one of each of UPPER, lower, and number characters, with optional special characters. check-in: 59ac08011a user: BattleChicken tags: trunk
14:01
Powershell example using Task Scheduler managed wrapper I drafted up some time ago. The task this creates is harmless; it just launches notepad.exe. you can run the code and examine the created task to see what you need to change to create a task that does something useful. check-in: 50c6aa6458 user: BattleChicken tags: trunk
14:01
Converts an input string into its C ASCI Hex equivalent, useful for converting a string into an unsigned char array check-in: bbed48d094 user: CrazyDave tags: trunk
14:01
The function hex2sid will convert HEX-represented SID string like 010500000000000515000000358A021A75B9755407E53B2B1EF10108 to SID string (also known as SSDL) check-in: ae9e1ab49b user: 931819 tags: trunk
14:01
The function hex2sid will convert HEX-represented SID string like 010500000000000515000000358A021A75B9755407E53B2B1EF10108 to SID string (also known as SSDL) check-in: 9a00272929 user: Dormidont tags: trunk
14:01
As written it will poll Cisco routers and switches and if the snmp OID’s match it will pull out model, serial, and IOS version. The resulting spreadsheet contains IP, host name, serial, model, IOS version, and rack location. The script is heavily documented internally. See the script for more info. check-in: 5952b9cd8b user: Kenneth C Mazie tags: trunk
14:01
Sets properties for a given user local username. check-in: 8e8a9b2c65 user: Andy Arismendi tags: trunk
14:01
ConfigMgr CI Detection script for detecting if WMI Wifi Connection Metric is greater than LAN check-in: 269ffbab6d user: brockie tags: trunk
14:01
ConfigMgr CI remediation Sets WMI IPConnectionMetric of laptop Wi-Fi adapter to 100 + IPConnectionMetric of the LAN adaptor. based of Richard Siddaway’s work from powershell.com forum. check-in: 0a7a369a06 user: brockie tags: trunk
14:01
Function for retrieving certificates from a CA instance. It can also return the public key, which I use to encrypt credentials in DSC resources (thumbprint is also returned). check-in: 71e01261a4 user: DollarUnderscore tags: trunk
14:01
Test the Prompt features check-in: 117393c95b user: Damien Ryan tags: trunk
14:01
This PowerShell code performs a SOAP webrequest to the school check-in: c891fbe0b5 user: Paul Wiegmans tags: trunk
14:01
Can anyone help me here and explain the below code check-in: 6416ae180c user: Praveen tags: trunk
14:01
A couple functions I use to convert DN to Canonical, and canonical to DN. I find them handy for adhoc AD tasks… I saw someone ask about it on #powershell and figured I would share :) check-in: 989c6445e6 user: Glenn Sizemore glnsize tags: trunk
14:01
Search true log files generated by Robocopy for error / success messages check-in: d7c7e450c7 user: vanwyngaarden tags: trunk
14:01
Repost from http://forum.script-coding.com/viewtopic.php?id=10475 check-in: 7b818072a9 user: unknown tags: trunk
14:01
This code searches your AD for servers that have active computer accounts within the last 30 days, pings them, and returns a list of Service objects for installed SQL instances. check-in: a96225b878 user: jgrote tags: trunk
14:01
Can someone explain to me what the following code is used to do? And how many it will produce? and How would the output be used? check-in: 684155b64b user: ThaBare1 tags: trunk
14:01
Uses [system.net.IPAddress]::parse, not [system.net.IPAddress]::tryparse. check-in: af059c9edd user: Allan B tags: trunk
14:01
Uses [system.net.IPAddress]::parse, not [system.net.IPAddress]::tryparse. check-in: 7711767af1 user: mow01 tags: trunk
14:01
Can someone explain to me what the following code is used to do? And how many it will produce? and How would the output be used? check-in: 4c1bd06f64 user: unknown tags: trunk
14:01
Add new smtp address from csv and set new address primary check-in: 942df6b303 user: Ermias tags: trunk
14:01
A function to analyse Robocopy logs which are placed in a folder. check-in: 22b4d82c5d user: Bart Lievers tags: trunk
14:01
A function to analyse Robocopy logs which are placed in a folder. check-in: 6ffc26a8f4 user: Bart Lievers tags: trunk
14:01
A function to analyse Robocopy logs which are placed in a folder. check-in: d14d424e29 user: Bart Lievers tags: trunk
14:01
This code will cleanup local profiles on a server/computer. It needs admin-rights to run. check-in: 23d893ca30 user: DollarUnderscore tags: trunk
14:01
Latest version from http://blogs.msdn.com/powershell/archive/2008/09/02/speeding-up-powershell-startup-updating-update-gac-ps1.aspx check-in: cd693e6121 user: unknown tags: trunk
14:01
This newer version of the ExBPA only creates HTML based reports for each server. This setup made the reports difficult to compile and notarize. So I made a parser to read the HTML and convert the pertinent data into CSV files. check-in: 866e03a1fa user: Josh Wortz tags: trunk
14:01
This newer version of the ExBPA only creates HTML based reports for each server. This setup made the reports difficult to compile and notarize. So I made a parser to read the HTML and convert the pertinent data into CSV files. check-in: 7200ab4da3 user: Josh Wortz tags: trunk
14:00
Returns the priority mail server (SMTP) to send email directly to the SMTP server of a particular domain/email address. Uses NetCmdlets (get-dns). check-in: 4b5a72f6a6 user: cssdtvcom tags: trunk
14:00
Returns the priority mail server (SMTP) to send email directly to the SMTP server of a particular domain/email address. Uses NetCmdlets (get-dns). check-in: 3d55397e9b user: Lance Robinson tags: trunk
14:00
Example using objects… check-in: 321169a532 user: smaug9 tags: trunk
14:00
In this JSON module, I have a full set of tools for exporting, importing, and converting Json objects (including arbitrary objects). See comments in script header for usage examples, but basically, you can do things like: check-in: f69ba13f1a user: Joel Bennett tags: trunk
14:00
Modification on several other methods, but this one doesn’t load any assemblies and will convert any +xx sequence to their ASCII equivalent. check-in: 05f9d5cfda user: Dan Jeuch tags: trunk
14:00
Get-OUComputerNames check-in: 113cae981a user: Nathan Hartley tags: trunk
14:00
Ever wanted to start some threads on a block of code but hated the headache of creating, watching, and collecting job data? This is my attempt to put a bandaid on that issue. check-in: 2dd3071de2 user: Kenneth W Hightower JR tags: trunk
14:00
Ever wanted to start some threads on a block of code but hated the headache of creating, watching, and collecting job data? This is my attempt to put a bandaid on that issue. check-in: 34080b042e user: Kenneth W Hightower JR tags: trunk
14:00
Ever wanted to start some threads on a block of code but hated the headache of creating, watching, and collecting job data? This is my attempt to put a bandaid on that issue. check-in: b6cc2568c4 user: Kenneth W Hightower JR tags: trunk
14:00
Ever wanted to start some threads on a block of code but hated the headache of creating, watching, and collecting job data? This is my attempt to put a bandaid on that issue. check-in: 2ffb99d129 user: Kenneth W Hightower JR tags: trunk
14:00
Ever wanted to start some threads on a block of code but hated the headache of creating, watching, and collecting job data? This is my attempt to put a bandaid on that issue. check-in: d150872079 user: Kenneth W Hightower JR tags: trunk
14:00
Creates a backup of the configuration of the network printers on a server or computer and exports it to a csv file. check-in: 2037430cee user: Ryan Tranchilla tags: trunk
14:00
I wrote a small function for parsing a Windows DNS Debug log. You can pipe both log-lines and filenames to this cmdlet. I’ve added 3 different types of log formats for it to handle. check-in: ee88d50f68 user: DollarUnderscore tags: trunk
14:00
This function is an attempt to duplicate the Quest Get-QADUser cmdlet without using any third party snap-ins. If you want to run it against a Global Catalog you simply need to replace LDAP: with GC: and you will want to comment out the lines that pull the password last set and last logon timestamp unless you happen to be replicating those to your GC. check-in: 3d9f98c7de user: spadm tags: trunk
14:00
$menu = " check-in: 68c9d8b062 user: Klaus Schulte tags: trunk
14:00
Please note that the move-vm’s -datastore parameter ought to work but there seems to be a bug in it, hence the need for this script. ** check-in: 8c3ddd3736 user: halr9000 tags: trunk
14:00
Creates an error record for throwing better/customized errors in scripts/modules. Based on the New-ErrorRecord from http://www.powershellmagazine.com/2011/09/14/custom-errors/ but simplified a bit. check-in: 0eb6d2ed7c user: CptNyan tags: trunk
14:00
Creates a DataTable for an object, based on script by Marc van Orsouw check-in: d1c5ab5d8c user: Chad Miller tags: trunk
14:00
Funtcion to set NTFS compression for specified folder. check-in: af4b0dbb47 user: skourlatov tags: trunk
14:00
A pair with ConvertTo-CliXml — this version closes and disposes the string reader handle. Now works in PowerShell 3 and 4 as well. check-in: 02b5e36a4a user: Joel Bennett tags: trunk
14:00
Function to get all logged on sessions (numbers) and coresponding users (domain name) on a local or remote system with WMI check-in: 7ab1f15b49 user: Peter Kriegel tags: trunk
14:00
Get ESX server serial numbers. check-in: 5332fcc33d user: thery tags: trunk
14:00
IMCEAEX_o=myAtea_ou=Exchange+20Administrative+20Group+20+28FYDIBOHF23SPDLT+29_cn=Recipients_cn=45afeeb98bf6459899f196a007aeb2e3-magau+5FHB@myatea.info check-in: 4864520845 user: IMMTZ tags: trunk
14:00
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: 2122747fb6 user: Ridouan tags: trunk
14:00
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: 5e6bac05b3 user: halr9000 tags: trunk
14:00
PREVIEW – (STILL) UNFINISHED WORK ;-) check-in: c280616bb9 user: Joel Bennett tags: trunk
14:00
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: 40fd73debc user: Chad Miller tags: trunk
14:00
The installation of PoshCode module and the upgrade of it, is broken. check-in: e45e532dc7 user: TheBigBear tags: trunk
14:00
Powershell 3 & 4 complain about this code having syntax issues. I tried ‘fixing’ it, but I am “stuck” now. I think I fixed the first six, but have one left that I just can’t figure, so I probably made a mistake when trying to fix the first six. check-in: 58e277f28d user: Joel Bennett tags: trunk
14:00
Search a Word DocX document and highlight each instance of a pattern. check-in: b54b975252 user: Joel Bennett tags: trunk
14:00
Demo of WPF with PowerShell v3 – using [class]@{ property = value }, flexible syntax, simplified where. Also using type accelerators. Not really smartest way to create WPF (no XAML – as bad as it sounds). So don’t treat this as very good example® or WPF in use. ;) check-in: c8f246c408 user: bielawb tags: trunk
14:00
Get-ProcessCount returns the number of running processes on local or remote machine. If it can’t find the requested process, it tries to guess what you want. check-in: 7dac5ea715 user: Bas Bossink tags: trunk
14:00
Start-Job help check-in: f79113d408 user: Letoric tags: trunk
14:00
Get-FileEncoding function determines encoding by looking at Byte Order Mark (BOM). check-in: 6f5226e9df user: VertigoRay tags: trunk
14:00
Get-FileEncoding function determines encoding by looking at Byte Order Mark (BOM). check-in: 49daa02315 user: JasonMArcher tags: trunk
14:00
Get ESX server serial numbers. check-in: 4d7a193d1a user: Carter Shanklin tags: trunk
14:00
This function will allow you to query local or remote computer/s and determine if there are pending WSUS updates that need to be installed. A report is returned that can be exported to a CSV file if desired. check-in: 508d64b9b3 user: Boe Prox tags: trunk
14:00
Minor bugfix check-in: f8948f3c89 user: dzmanto tags: trunk
14:00
Function to verify if a domain controller is available, and if it’s not, another domain controller from the same site as the executing server which is online will be returned. check-in: 668a85e3b4 user: DollarUnderscore tags: trunk
13:59
The equivalent of SetTimer/setInterval/setTimeout in PowerShell. check-in: 14b09eb44a user: Public Domain tags: trunk
13:59
this script will check a list of IP’s versus the most common RBL’s online – it will mail results of each IP with a list of the blacklists it was found on. If you run it during the 9am -10am hours it will send Negitive emails also for a sanity check – check-in: 1d14b2b21e user: Munsonisim tags: trunk
13:59
This script will take a list of IP’s in an input csv (Octet.csv) and check each IP at honeypotproject.org to see if the IP is listed. check-in: 15ddaa055e user: Munsonisim tags: trunk
13:59
This script will help a user to batch connect multiple pst files in Microsoft Outlook (personal email archives). check-in: c0cb13db3a user: Jack Neff tags: trunk
13:59
Depends on “steroid” library (see https://github.com/gregzakharov/ps/tree/master/steroid for details). check-in: 841689bba0 user: greg zakharov tags: trunk
13:59
Enable aero “glass” effects for the regular powershell 2.0 console (not ISE) – vista or above, powershell 2+ and aero-compatible gfx card. check-in: fcdae5b581 user: Oisin Grehan tags: trunk
13:59
Enable aero “glass” effects for the regular powershell 2.0 console (not ISE) – vista or above, powershell 2+ and aero-compatible gfx card. check-in: 5122aad00e user: Oisin Grehan tags: trunk
13:59
Enable aero “glass” effects for the regular powershell 2.0 console (not ISE) – vista or above, powershell 2+ and aero-compatible gfx card. check-in: 2e72ccc1a6 user: Oisin Grehan tags: trunk
13:59
Uses WMI to create a new virtual machine check-in: c181816c18 user: unknown tags: trunk
13:59
Enable aero “glass” effects for the regular powershell 2.0 console (not ISE) – vista or above, powershell 2+ and aero-compatible gfx card. check-in: 06a0e0bfe1 user: Oisin Grehan tags: trunk
13:59
Enable aero “glass” effects for the regular powershell 2.0 console (not ISE) – vista or above, powershell 2+ and aero-compatible gfx card. check-in: 1da8e50cf1 user: Oisin Grehan tags: trunk
13:59
Used to find Veeam error events where backup failed because of RPC errors [DoRpcWithBinary]. Outputs an array of the unique IP adresses it finds in the eventlog and finally appends the queried Veeamserver to the list check-in: 42628ff248 user: Robin Olsson tags: trunk
13:59
Script to copy standard vSwitch config across all host within the cluster check-in: 3845df3085 user: Leon Scheltema tags: trunk
13:59
Functions to create an RTF file only using Windows PowerShell check-in: 4f84d2d184 user: Sean Kearney tags: trunk
13:59
Author unknown. check-in: 415bc0be80 user: redyey tags: trunk
13:59
This module provides two functions: Get-AppxApp and Start-AppxApp, which allow you to explore and launch the “modern” apps for Windows 8+ check-in: 135d9b8e75 user: Joel Bennett tags: trunk
13:59
This module provides two functions: Get-AppxApp and Start-AppxApp, which allow you to explore and launch the “modern” apps for Windows 8+ check-in: 5970f78268 user: Tome Tanasovski tags: trunk
13:59
These functions convert a CSV file into an XLSX file. check-in: 0c6213d043 user: Travis Kuntz tags: trunk
13:59
Code to auto update the Address policy, GAL, OAB and storage groups and mailbox databases of an Exchange 2007 server check-in: 224d4ffe2f user: unknown tags: trunk
13:59
original filename: lib-authentication.ps1 check-in: bac94a930d user: Hal Rottenberg tags: trunk
13:59
Got bored, decided to create this. check-in: cce17ff7c0 user: x0wllaar tags: trunk
13:59
Modeled after SQL Server 2008 Invoke-Sqlcmd, but fixes bug in QueryTimeout, and allows for paramaterized queries and more! check-in: d2c9d31aa3 user: RCookieMonster tags: trunk
13:59
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes check-in: 59a3dad04b user: Lee Holmes tags: trunk
13:59
Minor bugfix check-in: 00e8cc6164 user: obaid tags: trunk
13:59
I wanted a quick function that would tell me what policies were missing a specific group/account, and have the ability to resolve the problem. This function will display your query by default, and will apply the settings using the -APPLY parameter. Enjoy! check-in: 6fa3ab9812 user: JayneticMuffin tags: trunk
13:59
New-Passwordfile check-in: 8f3bfe20ab user: redyey tags: trunk
13:59
Send-XMLFile check-in: b64e138eb4 user: redyey tags: trunk
13:59
Color strings via Write-Host via Regular Expressions or simple matching via pipelining. The order precedence is set under the $patterns variable, so you can have overlapping matches, resulting in output such as, e.g.: check-in: 2ffce4c69b user: Daniel Cheng tags: trunk
13:59
IMCEAEX-_o=sYra_ou=Exchange+20Administrative+20Group+20+28FYDIBOHF23SPDLT+29_cn=Recipients_cn=Arnold+20R+2E+20+7C+20Crazy+20Domainsba9@internal.dreamscapenetworks.com check-in: 77a02006e3 user: 123123 tags: trunk
13:59
This is the “proper” version of Get-WindowsProductKey check-in: 053b5f1e4a user: akaNeo tags: trunk
13:59
Ping -t with list of servers names check-in: 67971a105e user: Krushna tags: trunk
13:59
retrieve the windows product key of a specified machine using WMI check-in: b72acc3478 user: karl prosser tags: trunk
13:59
With this function I can switch between Chrome, Firefox, IE, Opera and Safari as default browser. It is just a start. There might be some more registry keys to be changed check-in: cb3040131d user: Andy Myatt tags: trunk
13:59
With this function I can switch between Chrome, Firefox, IE, Opera and Safari as default browser. It is just a start. There might be some more registry keys to be changed check-in: 5745cb7201 user: Andy Myatt tags: trunk
13:59
With this function I can switch between Chrome, IE and Firefox as default browser. It is just a start. There might be some more registry keys to be changed check-in: 30a2debc89 user: Andy Myatt tags: trunk
13:59
With this function I can switch between IE and Firefox as default browser. It is just a start. There might be some more registry keys to be changed check-in: 1761a6a5a5 user: Bernd Kriszio tags: trunk
13:59
This function will enable or disable CBT on a VM, and optionally apply the change by stunning the VM with a snapshot. It is useful when CBT needs to be reset or disabled en masse. check-in: fdadb15c7e user: Justin Grote tags: trunk
13:59
Returns the priority mail server (SMTP) to send email directly to the SMTP server of a particular domain/email address. Uses NetCmdlets (get-dns). check-in: 3f5cdf5616 user: irvingriveramx tags: trunk
13:59
Returns the priority mail server (SMTP) to send email directly to the SMTP server of a particular domain/email address. Uses NetCmdlets (get-dns). check-in: da7886329c user: irvingriveramx tags: trunk
13:58
The script will launch Windows Update on your machine, and display the patches as they are being installed. Once installed, a result code will be displayed as well. If a reboot is needed, the script will take care of that automatically. check-in: 586924bdb5 user: JayneticMuffin tags: trunk
13:58
Generate random passwords with specific complexity requirements check-in: e1534529d0 user: Jon Webster tags: trunk
13:58
The script will launch Windows Update on your machine, and display the patches as they are being installed. Once installed, a result code will be displayed as well. If a reboot is needed, the script will take care of that automatically as well… change this check-in: 1f6dfc4c8c user: JayneticMuffin tags: trunk
13:58
Wanted to create an unzip function for single files with an option to delete the originating zip, and also have a function for scanning through a folder structure recursively and providing the same functionality… and here it is. check-in: b60933d48d user: JayneticMuffin tags: trunk
13:58
Script to create Datastore clusters and add datastores from csv check-in: dd46a11b1f user: Leon Scheltema tags: trunk
13:58
Script to export Datastore information per Datastore cluster to csv check-in: e7e4ded6f7 user: Leon Scheltema tags: trunk
13:58
Import vCenter Folder structure incl VM relations check-in: 343ee9b5df user: Leon Scheltema tags: trunk
13:58
Export vCenter Folder structure incl VM relations check-in: 1cfc6eecf7 user: Leon Scheltema tags: trunk
13:58
This is submitted as a companion to the ConvertFrom-RomanNumeral function just check-in: c2cc882db2 user: Vince Ypma tags: trunk
13:58
A simple script cmdlet that allows you to empty your recycle bin. check-in: e0ef1ac06e user: Mark Schill tags: trunk
13:58
I have encountered “real world” uses for functions like this. As an exercise I check-in: 6a541f7c68 user: Vince Ypma tags: trunk
13:58
My revised version of Jan Egil Ring’s script, with the corrections noted by the commenters in his blog article. check-in: 14192c2667 user: Jan Egil Ring tags: trunk
13:58
Simple function that returns the UNC path (administrative share) of a local path. check-in: 63137c7920 user: dragonmc77 tags: trunk
13:58
Simple function that returns the UNC path (administrative share) of a local path. check-in: ded95ee2e1 user: dragonmc77 tags: trunk
13:58
Simple function that returns the UNC path (administrative share) of a local path. check-in: 68fe568905 user: dragonmc77 tags: trunk
13:58
save script with .cmd or .bat extension and launch. this demo just shows current directory entries. check-in: fdc357a0d9 user: greg zakharov tags: trunk
13:58
This script retrieves one or more facts from the Quizzle.me API check-in: 7488940b1f user: Chris Brown tags: trunk
13:58
this function calculates cpu usage through wmi object check-in: 5eca885104 user: unknown tags: trunk
13:58
Simple script to bulk-create printers on a print-server. Printers are imported from a csv-file. check-in: 37b4b4ca23 user: Jan Egil Ring tags: trunk
13:58
Find matching members in a local group check-in: 716d8035a1 user: Hal Rottenberg tags: trunk
13:58
A Little Script for $PROFILE File to Add Support for Get-FolderSize. check-in: a1836d8f89 user: Piere Woehl tags: trunk
13:58
Custompsobject check-in: 609c05fcdf user: redyey tags: trunk
13:58
export all mailbox migration stats. check-in: 9a185a7d5f user: steve tags: trunk
13:58
Two functions for interacting with IMDB. Use Get-IMDBMatch to search for a movie/tv show based on the title, and pipe that to Get-IMDBItem for more information about it. check-in: a121987859 user: DollarUnderscore tags: trunk
13:58
Get-ProcessCount returns the number of running processes on local or remote machine. If it can’t find the requested process, it tries to guess what you want. check-in: 5590123b99 user: unknown tags: trunk
13:58
The following powershell code allows you to log into jira, create an issue, assign the issue to someone (yourself in this case), add two comments, resolve, and close. check-in: b66437c264 user: unknown tags: trunk
13:58
IMCEAINVALID-David+2EDowle+40ihotdesk+2Ecom@cloud.ihotdesk.local check-in: b23baeac6c user: Test1 tags: trunk
13:58
This script runs a variety of checks on server hardware to get status or basic information. It can check memory, perc events, firmware versions, gets service tags, shows summary hardware status, retrieves ESM log, and can auto load the omsa webpage. This is a basic overview of some dell WMI related namespace operations which can be easily extended as needed. To run the script, provide the name of the function you want to call and the remote machine name to check. Note: WMI namespace for Dell is installed with dell openmanage software, v4 and higher. check-in: 029c2a7b76 user: Nathan Linley tags: trunk
13:58
The VI Toolkit comes with a cmdlet to create user accounts, but it does not allow for you to specify shell access. This script goes to the VI SDK to get the job done. check-in: 4f6fd21bcc user: unknown tags: trunk
13:58
A couple of functions to suspend and resume applications (like what you do with Resource Monitor). check-in: ac71dc6ccf user: Joel Bennett tags: trunk
13:58
Just a simple script to tie to a GPO to install .NET 4.5 and WMF 4.0 check-in: afa145b8df user: Zerfam tags: trunk
13:58
Just a simple script to tie to a GPO to install .NET 4.5 and WMF 4.0 check-in: 1b1209fd17 user: Zerfam tags: trunk
13:58
ETL From Shopping Cart to MOM check-in: a514d88a75 user: Zefram tags: trunk
13:58
ETL From Shopping Cart to MOM check-in: b6b80018c2 user: Zefram tags: trunk
13:58
Small script to export a CSV file containing a collections ID, Name and Limiting collection ID. This can be used as is to import into Microsoft Visio Org Chart wizard to produce a graphical representation of your collection structure. check-in: df608b09f0 user: Brian Skinner tags: trunk
13:58
A function to rename a computer check-in: 67a655946d user: Gerald Klassen tags: trunk