ContributeMost Recent Contributions (feed)
- Read Gmail POP
- 10 hours ago
-
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.
- Invoke-Sql.ps1
- 16 hours ago
-
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.
- Add new smtp/set prmary
- 26 hours ago
-
Add new smtp address from csv and set new address primary
- sample format file
- 40 hours ago
-
I really am still working on this replacement for the WASP module ;-)
This version fixes some problems with PowerShell 2 vs PowerShell 3 changes (it works in both now).
- ListCmdletParameters
- 44 hours ago
-
Extract all Parameters for a cmdlet from GET-HELP, list them in a single column
- Get-HtmlHelp 3.0
- 44 hours ago
-
A script to convert MAML help to HTML.
Note: This is still very rough but good enough to share, and to be useful with ShowUI (see the “Cool Example” inline).
- Get-Software Function
- 2 days ago
-
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.
1. Open notepad and copy the below text exactly as shown into the document.<?xml version=“1.0”?>
<configuration> <startup useLegacyV2RuntimeActivationPolicy=“true”> <supportedRuntime version=“v4.0.30319”/> <supportedRuntime version=“v2.0.50727”/> </startup>
</configuration>2. Save this document as c:\windows\System32\WindowsPowerhsell\v1.0\Powershell.exe.config (or c:\windows\System32\WindowsPowerhsell\v1.0\Powershell_ise.exe.config)
3. Reload powershell and type the following command: $PsVersionTable.clrVersion (It should show Major version 4 if .Net 4 is supported.)Take note that this release does not contain error checking functions that my production version uses, I removed references to these functions in order to provide a good starting function for others to use. If you have any errors with this code, please contact me and I will resolve them as soon as possible.
- Debug Regex match
- 2 days ago
-
Debug Regex operation when matching any string
- Get-Head
- 2 days ago
-
Read the first few characters of a file … fast.
- Test-Server
- 3 days ago
-
A test that checks for hostname, ip, domain, ping, wsman (with credssp if you wish) remote reg RPC and RDP
PowerShell Code Repository