PoshCode Archive  Timeline

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

209 check-ins using file Set-Computername.ps1 version f1d6c084af

2018-06-10
13:18
Create a computer login on a SQL server, optionally forcing the issue by removing any pre-existing account. For some reason, we run into this all the time with renamed computers… check-in: b9ab241fd5 user: Joel Bennett tags: trunk
13:18
A bunch of AD-related functions … I’m only pasting this because I can’t find another Get-ADComputer or Get-NTAccountName check-in: f20dd4a1e1 user: Joel Bennett tags: trunk
13:18
A bunch of AD-related functions … I’m only pasting this because I can’t find another Get-ADComputer or Get-NTAccountName check-in: ea9c36ba1a user: Joel Bennett tags: trunk
13:18
A bunch of AD-related functions … I’m only pasting this because I can’t find another Get-ADComputer check-in: 6e47adfac8 user: Joel Bennett tags: trunk
13:18
Demonstration script for getting file names and last update times into a SQL Server table. check-in: fd68fd37a9 user: Chad Miller tags: trunk
13:18
quick hard coded script for uploading a file to an ftp server. check-in: 56aeba2927 user: Stephen Price tags: trunk
13:18
Windows Script to collect Hardware information on a local system and Convert it to a JSON String and Upload that to a CouchDB Database check-in: a70202d76b user: VulcanX tags: trunk
13:18
Get-OUComputerNames check-in: b98b97d219 user: Admin tags: trunk
13:18
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: ffdada57a9 user: Jonathan Walz tags: trunk
13:18
Here is a Microsoft.PowerShellISE_profile.ps1 that causes PowerShell_ISE to save all files in ASCII encoding instead of Unicode Big Endian. Adapted from Oisin Grehan’s script at http://www.nivot.org/nivot2/post/2010/05/21/PowerShellISEHackingChangeDefaultSaveEncodingToASCII.aspx#comment. check-in: 06e3380fdf user: Richard Vantreas tags: trunk
13:18
R.Vantrease ver 1.0 – The source control I use does not understand the default encoding that PowerShell_ISE saves scripts in (Unicode Big Endian), so I wanted a way to quickly convert my scripts to a friendlier encoding. I wrote the following little ditty to convert all the PowerShell scripts and module files to ASCII encoding. check-in: 5e48338c3b user: Richard Vantreas tags: trunk
13:18
Email list of AD Accounts with PasswordNeverExpires Set check-in: fa9b707856 user: VulcanX tags: trunk
13:18
Based on functions in SQLPSX. SqlProxy.psm1 module is used for administering SQL Server logins, users, and roles. Designed to be used with PS Remoting. All actions audited to a custom Eventlog. See Write-SqlProxyLog for log setup details check-in: ff093d06da user: Chad Miller tags: trunk
13:18
Ever wonder what kind of chassis your computer thinks it’s running on? Have a need to know if you’re RDP’d into a physical or virtual system? This script can probably answer the question for you. This script was adapted to PowerShell from a VBScript I’ve had for a while. It uses WMI to determine the Chassis type and translates the reported numerical code into decipherable text. – Thought i would rewrite this code using the switch function rather than elseif. Easier to read and less code to write. check-in: 44ffe95c83 user: AlphaSun tags: trunk
13:18
A couple of functions to suspend and resume applications (like what you do with Resource Monitor). check-in: c2360ee6f8 user: Joel Bennett tags: trunk
13:18
Splits files and combines them. Nowhere near ready for use though. Just a toy I was working on. check-in: 17c4d41aa0 user: HughS tags: trunk
13:18
Split a file into smaller files. check-in: f6f37927be user: tojo2000 tags: trunk
13:18
Strips off the ’1-’ prefix from phone numbers stored in Active Directory. check-in: 6ba7345604 user: David Retherford tags: trunk
13:18
A function to make it easier (in PowerShell 2) to enforce rules about variables (without making them parameters). check-in: ef0e8f1d3b user: Joel Bennett tags: trunk
13:18
For PowerShell 3: Export and Import DefaultParameterValues, optionally overwrite existing ones check-in: e7333dee85 user: Joel Bennett tags: trunk
13:18
Set a printer as default for any user who has ever logged onto any given computer in a domain. check-in: 5f985a25d2 user: Brad Blaylock tags: trunk
13:18
Set a printer as default for any user who has ever logged onto any given computer in a domain. check-in: c3a5e25d4e user: Brad Blaylock tags: trunk
13:18
Set a printer as default for any user who has ever logged onto any given computer in a domain. check-in: eeb9d5242f user: Brad Blaylock tags: trunk
13:18
This script, given a root path, will start a transcript with a unique and standardized file name. You can throw a call to this at the end of your profile, and you’ll always have a transcript of every session (if the host you’re using supports starting a transcript). check-in: 86dbb023b8 user: Scott Percy tags: trunk
13:18
This script gets all pc’s or servers from a OU and runs GPUpdate /force on these machines. check-in: e8fa231359 user: afokkema tags: trunk
13:18
Function to retrieve selected information about all SQL Server Instances on a given server. Will work remotely if the Server supports integrated security and the user has rights on the SQL Instance. check-in: d1e253e998 user: Richard Vantreas tags: trunk
13:18
The Test-EmptyFolder function tests if a specified folder is empty by checking if it check-in: 356a639142 user: Rich Kusak tags: trunk
13:18
This code does the same thing as Sysinternals AutoLogon.exe. However this allows for automation of the task. check-in: 244abb880e user: Andy Arismendi tags: trunk
13:18
This code does the same thing as Sysinternals AutoLogon.exe. However this allows for automation of the task. check-in: 3b35a37f2a user: Andy Arismendi tags: trunk
13:18
Converts aliases and parameter shortcuts in scripts to make them more portable. Now resolves command names to include the module (make sure you load modules you need), resolves parameter aliases, etc. (Works in PowerShell 3 CTP1 too). check-in: d73f90707e user: Joel Bennett tags: trunk
13:18
Emails a report of Exchange 2010 mailboxes over their size limit. check-in: 305335b131 user: Chris Brown tags: trunk
13:18
This is a sample script to read emails from an Inbox using Exchange Web Services. The code is a basic port of the C# found here: http://omegacoder.com/?p=454. The EWS SDK is a dependency: http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=c3342fb3-fbcc-4127-becf-872c746840e1 check-in: 98ff8057c5 user: halr9000 tags: trunk
13:18
This function returns information about disk volumes, works on Win2K, WinXP, Win2003, Win2008, WinVista, Win7. Can be used in a pipeline with -Raw switch or stand-alone. check-in: 2614a3e0a7 user: Richard Vantreas tags: trunk
13:18
This function returns information about disk volumes, works on Win2K, WinXP, Win2003, Win2008, WinVista, Win7. Can be used in a pipeline with -Raw switch or stand-alone. check-in: 16be16f540 user: Richard Vantreas tags: trunk
13:17
This will perform a basic netstat.exe command and “objectize” its output. check-in: a93774c24f user: Richard Vantreas tags: trunk
13:17
This will perform a basic netstat.exe command and “objectize” its output. check-in: eaabbf7972 user: glnsize tags: trunk
13:17
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: ad000ec04b user: S-1-5-21-2398571 tags: trunk
13:17
Helpers for working with .Net classes: Get-Constructor, Get-Assembly, Add-Assembly, Get-Type check-in: 5a0f410d3a user: Joel Bennett tags: trunk
13:17
This script will take a Twitter User’s Screen name and get their RSS feed of posts check-in: 77121aec04 user: Charlie tags: trunk
13:17
Enable LegacyV2RuntimeActivation so that BitsTransfer and SQLPS will work in the new .Net 4 PowerShell ISE (this config file is REQUIRED for PowerShell 3 CTP1 to work with those modules and other down-level .Net 2 modules). Save as C:\Windows\System32\WindowsPowerShell\v1.0\powershell_ise.exe.config check-in: b0f5ac34e4 user: Joel Bennett tags: trunk
13:17
This script will take a Twitter User’s Screen name and get their RSS feed of posts check-in: 9fb6bb9564 user: CrazyDave tags: trunk
13:17
Requires the ShowUI module available to download from here: http://showui.codeplex.com/releases/view/73603 check-in: 3b0db04517 user: Boe Prox tags: trunk
13:17
Requires the ShowUI module available to download from here: http://showui.codeplex.com/releases/view/73603 check-in: cc94d1a844 user: Boe Prox tags: trunk
13:17
This script will copy the group membership from an existing user account to a new user account. This script relies on functions that I source in, so you’ll need to grab my code from http://scripts.patton-tech.com/browser/powershell/production/includes/ActiveDirectoryManagement.ps1 check-in: cc2aa13ae3 user: Jeff Patton tags: trunk
13:17
Function may be useful for people who want to play with CTP1 for PowerShell 3 but need to use v2 scripts (and prefer ISE over PowerShell.exe) check-in: 2052014833 user: BartekB tags: trunk
13:17
Get the Free RAM from a system check-in: 53025af1c6 user: Joel Bennett tags: trunk
13:17
Get the Windows Experience Rating check-in: 321907318e user: Joel Bennett tags: trunk
13:17
Download and install Google Chromium if there is a newer version available. check-in: 882d37f05c user: MJWJ1 tags: trunk
13:17
Sets the system primary DNS suffix by p-invoking the Win32 API. Returns true for success, false for failure. check-in: 0f279c76c2 user: Andy Arismendi tags: trunk
13:17
This function converts FSP’s to sAMAccountName’s check-in: bf1972c95b user: Jeff Patton tags: trunk
13:17
Sets the system primary DNS suffix by p-invoking the Win32 API. Returns true for success, false for failure. check-in: 3c09d567c1 user: Andy Arismendi tags: trunk
13:17
Creates a DataTable for an object, based on script by Marc van Orsouw check-in: fad282b8a4 user: Chad Miller tags: trunk
13:17
I’ve been doing some work lately with PowerShell Add-ons and figured I’d add a couple that I’ve been working on. check-in: 748af32620 user: Jeff Patton tags: trunk
13:17
This script will create an inventory of all guests in the target Virtual Center and then create a csv check-in: 4727faf879 user: Omarr tags: trunk
13:17
The Get-TheVillageChurchPodcast function returns objects of all the available sermon podcasts from The Village Church. The objects can be filtered by speaker, series, title, or date and optionally downloaded to a specified folder. check-in: 06518b3d1c user: Rich Kusak tags: trunk
13:17
Modeled after SQL Server 2008 Invoke-Sqlcmd, but fixes bug in QueryTimeout, and allows for paramaterized queries. check-in: acf8515f02 user: Chad Miller tags: trunk
13:17
The Convert-MacAddress function takes a valid hex MAC address and converts it to another valid hex format. check-in: aa9ba264a0 user: Rich Kusak tags: trunk
13:17
The Reset-OutlookLivePassword function resets an Outlook Live (Live@edu) acccount password. check-in: 540531c226 user: Rich Kusak tags: trunk
13:17
The Get-MacAddressOui function retrieves the MAC address OUI reference list maintained by the IEEE standards website and check-in: 65ef5c4898 user: Rich Kusak tags: trunk
13:17
Get-WifiNetwork – return the parsed output of netsh wlan show network mode=bssid in psobject form. Does exactly what it says on the tin. Requires Vista/2008 or higher, or XP SP3 with a hotfix (I can’t recall which one, sorry.) check-in: c0a924a3c2 user: Oisin Grehan tags: trunk
13:17
The Get-MacAddressOui function retrieves the MAC address OUI reference list maintained by the IEEE standards website and check-in: 37b6a509f2 user: Rich Kusak tags: trunk
13:17
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: 2b1a6d107a user: Chad Miller tags: trunk
13:17
Ever wonder what kind of chassis your computer thinks it’s running on? Have a need to know if you’re RDP’d into a physical or virtual system? This script can probably answer the question for you. This script was adapted to PowerShell from a VBScript I’ve had for a while. It uses WMI to determine the Chassis type and translates the reported numerical code into decipherable text. check-in: e87bfd48cc user: AlphaSun tags: trunk
13:17
This script will create (using COM) an MS Excel spreadsheet of all the software installed on the local machine. Basic information about the software, as provided in the registry, is also included. When the script has completed the data collection, all columns are set to “Auto Fit” for width and blank rows in the spreadsheet are removed. check-in: 906ef2479a user: AlphaSun tags: trunk
13:17
This is a function that queries the domain for the password policies that are set via Group Policy. Output objects include Min Password Length, Min Password Age, Max Password Age, number of passwords remembered (for password history restrictions), Lockout Threshold, Lockout Duration, and the Lockout Counter Reset time. check-in: ee08c1a464 user: AlphaSun tags: trunk
13:17
This script will delete all Active Directory User accounts that have not logged in within the number of days specified in the $NumDays variable. The script only deletes the Active Directory user accounts, not any associated Exchange mailboxes. The script also includes the Delete-ADUser function, which can be used separately from this script. All accounts that are deleted are logged in the “Removed-User-Accounts.log” file found in the local directory. The format of the log file is very basic, but effective. check-in: 197ab8718a user: AlphaSun tags: trunk
13:17
This script will disable all Active Directory User accounts that have not logged in within the number of days specified by the $NumDays variable. All accounts that are disabled are logged in the “Disabled-User-Accounts.log” file created in the local directory. The formatting of the log file is very basic, but effective. check-in: aa6c8c83a0 user: AlphaSun tags: trunk
13:17
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: 997668c4c1 user: AlphaSun tags: trunk
13:17
This script will list all computer objects (and some information about them) into a CSV file. The Ping Status and various information items are determined through WMI. Some filtering is done for special characters that regularly appear in the Operating System Caption entry and the hardware Vendor entry. This is largely the same as the List AD Computers XLS script, but is intended for use on systems that do not have Excel installed. The CSV file that is produced can easily be imported into Excel and re-saved as an XLS at a later time if required. check-in: 3d9244bb91 user: AlphaSun tags: trunk
13:17
This is essentially a snap-in for an existing script that leverages Active Directory. Typically, you’ll be working with AD objects in your own domain; however, in some instances you may need to work with AD objects that are in a different domain within your forest. This code snippet allows the flexibility to drop in an existing domain-based script and either run it on all domains in the forest (no command line arguments) or a single domain in the forest that matches a command line argument placed into a Where-Object filter. check-in: 8eae27c97e user: AlphaSun tags: trunk
13:17
Add to top of your scripts and the script will automatically create a log file called <script name>.log to the AppData folder check-in: 8731ef0559 user: shauncroucher tags: trunk
13:17
The first couple of functions for sending data to Paraimpu from PowerShell. It’s the first step in letting PowerShell participate in a network of things… check-in: e065d569c3 user: Joel Bennett tags: trunk
13:17
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: 575fe22812 user: Joel Bennett tags: trunk
13:17
Creates a random password with the specified length and number of non-alphanumeric characters. Returns clear text or a secure string depending on whether switch AsSecureString is specified. check-in: 898666f303 user: Andy Arismendi tags: trunk
13:17
A Script that demonstrates how to create a Microsoft Access database in powershell without Microsoft Access installed. It works in 32 and 64 bit instances of powershell. check-in: 6f24701c6b user: Justin Dearing tags: trunk
13:17
A function to test a user’s credentials. Return true/false. Works for local or domain user accounts. check-in: 925ce200e7 user: Andy Arismendi tags: trunk
13:17
A function to test a user’s credentials. Return true/false. Works for local or domain user accounts. check-in: a4d21b5290 user: Andy Arismendi tags: trunk
13:17
A function to test a user’s credentials. Return true/false. Works for local or domain user accounts. check-in: 5ec204eb4d user: Andy Arismendi tags: trunk
13:17
A function to test a user’s credentials. Return true/false. Works for local or domain user accounts. check-in: 81efbe2fbf user: Andy Arismendi tags: trunk
13:16
A function to test a user’s credentials. Return true/false. Works for local or domain user accounts. check-in: 02916f5f8c user: Andy Arismendi tags: trunk
13:16
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: 602ebb2ada user: Boe Prox tags: trunk
13:16
Check md5/sha1/etc hashes check-in: 7704ac09d5 user: Joel Bennett tags: trunk
13:16
This script gets a list of all Group Policy Objects in the domain filtered on the value of GPOSettingName. For each GPO if the Extension Name matches GPOSettingName the Extensions are then reported back. check-in: 1aa504ccd8 user: Jeff Patton tags: trunk
13:16
This is to demonstrate how to shutdown the machines you started while be reading the sample 2. check-in: 6db6d20e70 user: Alexander Petrovskiy tags: trunk
13:16
This script works in conjunction with an Event Trigger on the PrintService event on our print servers. This script queries the Microsoft-Windows-PrintService/Operational log for EventID 307, and returns the drive letter from the most recent event. check-in: 48566b2051 user: Jeff Patton tags: trunk
13:16
Added the ability to retrieve (Default) values for keys. check-in: db382e8bb7 user: Joel Bennett tags: trunk
13:16
This sample register all the virtual machines laying as folders on a ESXi host. check-in: dd8c388ab9 user: Alexander Petrovskiy tags: trunk
13:16
Heres a function to quickly look up the latest version of the bogon list maintained by Team Cymru from within PowerShell. check-in: f725f9be72 user: Rich Kusak tags: trunk
13:16
A complete set of XML functionality (especially if you don’t have PSCX), including reading and writing xml files (import-xml, export-xml), selecting (via xpath), updating, transforming and creating new xml documents. check-in: 371e9dd006 user: Joel Bennett tags: trunk
13:16
How can you automate your ESXi tasks having only bare ESXi software? May cmdlets in such case don’t work or work with serious limitations. To fulfill though partially the lack of ‘bare ESXi’ management tools, the ESXiMgmt module has been written and tested. check-in: 00e804b745 user: Alexander Petrovskiy tags: trunk
13:16
Simulate user activity to prevent desktop lock or screensaver for specified period of time check-in: bf42beb9d4 user: 129RQW tags: trunk
13:16
Simulate user activity to prevent desktop lock or screensaver for specified period of time check-in: aaf865c51f user: Dmitry Sotnikov tags: trunk
13:16
Shows a vertical “menu” in the console and allows you to pick numeric items from it. check-in: 6f0a9c711a user: Joel Bennett tags: trunk
13:16
Added a useful Show-ConsoleMenu (which is also usable outside the buffer box), but this one is coded for 10 items or less. check-in: 5d62c113b7 user: Joel Bennett tags: trunk
13:16
Immediately toggle the current user’s Internet Explorer proxy settings on/off. Uses a ‘hidden’ Internet Explorer process to trigger the application of the new proxy setting once its been changed in the registry. Accepts a single command line parameter “disable”. If no parameter is given, the proxy is “enabled”. check-in: 7e71ce2905 user: Dan Smith tags: trunk
13:16
Immediately toggle the current user’s Internet Explorer proxy settings on/off. Uses a ‘hidden’ Internet Explorer process to trigger the application of the new proxy setting once its been changed in the registry. Accepts a single command line parameter “disable”. If no parameter is given, the proxy is “enabled”. check-in: a407d85bf0 user: Dan Smith tags: trunk
13:16
Immediately toggle the current user’s Internet Explorer proxy settings on/off. Uses a ‘hidden’ Internet Explorer process to trigger the application of the new proxy setting once its been changed in the registry. Accepts a single command line parameter “disable”. If no parameter is given, the proxy is “enabled”. check-in: be5e334995 user: Dan Smith tags: trunk
13:16
Just a little wrapper for PromptForChoice check-in: c51e95499e user: Joel Bennett tags: trunk
13:16
This script takes an IPv4 address (optionally with subnet mask or mask length) and searches the subnets in active directory from most significant to least significant. Which ever subnet matches the IP address first will be returned in distinguished name format. If no subnets match, the script will return Subnet_not_assigned check-in: 5af26aa968 user: Nathan Linley tags: trunk
13:16
Returns the directory that current script is running in. check-in: 343217e918 user: Andy Arismendi tags: trunk
13:16
Although Windows Server 2008 R2/Powershell 2.0 includes a FailoverClusters module, it only works on a machine running cluster service and NOT against Windows 2003/2008 clusters. This script provides a library functions for working with Microsft Cluster Services (MSCS) using the WMI MSCluster* class. Base class properties are extended with additional info from association classes. check-in: 103f41e04c user: Chad Miller tags: trunk
13:16
The Write-Output in the function Get-AccessRecordSetStructure, doesn’t return anything for me. Replacing Write-Output by return fixes the problem. check-in: cca27bc265 user: Matt Wilson tags: trunk
13:16
A very simple example of reading and writing from and to a SQLite DB using Powershell. check-in: 51213fe4b2 user: foureight84 tags: trunk
13:16
A very simple example of reading and writing from and to a SQLite DB using Powershell. check-in: 751bf69042 user: foureight84 tags: trunk
13:16
Write multiline overwriting messages, typically for iterating through long file names. check-in: 38a7a635d8 user: James Gentile tags: trunk
13:16
ChkHash.ps1 – ChkHash.ps1 can create a .XML database of files and their SHA-512 hashes and check files against the database, in order to detect corrupt or hacked files. check-in: 3d1533e17f user: James Gentile tags: trunk
13:16
Return a list of computers with their serial numbers. For Dell computers the Win32_BIOS.SerialNumber property is the service tag of the computer. This identifies the computer on the Dell support site, and with it you can get the proper drivers/manuals and warranty information. check-in: d1f1ba281a user: Jeff Patton tags: trunk
13:16
This script searches ActiveDirectory for computers. It then queries each computer for the list of users who are in the local Administrators group. check-in: 1907eff01b user: Jeff Patton tags: trunk
13:16
This script searches ActiveDirectory for computer accounts, for each computer account it removes the specified user account. check-in: 101127f68c user: Jeff Patton tags: trunk
13:16
Gets local group memebers check-in: 2636112c8a user: BSonPosh tags: trunk
13:16
Gets local group memebers check-in: e051c4db6f user: BSonPosh tags: trunk
13:16
anand@xx.com check-in: 26907e434f user: Ermias tags: trunk
13:16
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: ea52b0e69c user: whertzing56 tags: trunk
13:16
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: f8fa583145 user: hclarke tags: trunk
13:16
It’s silly, it’s stupid, it’s fun check-in: a59bcb9475 user: Sean Kearney tags: trunk
13:16
This script will take a Twitter User’s Screen name and get their RSS feed of posts check-in: d4e4e48d1b user: CrazyDave tags: trunk
13:16
An interactive graphical filter for pipeline objects for ShowUI check-in: e04a9abea6 user: Joel Bennett tags: trunk
13:16
My updated version of my original binary clock. check-in: c93c24b5db user: Boe Prox tags: trunk
13:16
My updated version of my original binary clock. check-in: d83b71b4e9 user: Boe Prox tags: trunk
13:16
Add entries to the Windows hosts file. The function checks first to see if the entry exists in the file. If the entry does not exist, the function adds the entry and verifies it was added. Please feel free to add improvements. The function Utility.Time-Stamp is another helper function I use to denote the current Time. It can be found here: http://poshcode.org/2795. check-in: b0f93363a1 user: Will Steele tags: trunk
13:16
Add entries to the Windows hosts file. The function checks first to see if the entry exists in the file. If the entry does not exist, the function adds the entry and verifies it was added. Please feel free to add improvements. check-in: c60bab14af user: Will Steele tags: trunk
13:16
This is another Must Have upgrade, because I screwed up the last one ;-) check-in: e3282ec24e user: JasonMArcher tags: trunk
13:16
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: 6b7c417fb4 user: Will Steele tags: trunk
13:16
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: a65191a482 user: Andy Arismendi tags: trunk
13:16
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: 7c35927875 user: Jeff Patton tags: trunk
13:15
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: 1c3e295873 user: Joel Bennett tags: trunk
13:15
cls check-in: 306fd13498 user: Joel Bennett tags: trunk
13:15
This is a little tweak of Ravikanth’s Script to generate a dialog for adding menu items in PowerShell ISE. All I did was just clean it up a little bit following a few guidelines: check-in: 5997764e47 user: Joel Bennett tags: trunk
13:15
This is a little tweak of Ravikanth’s Script to generate a dialog for adding menu items in PowerShell ISE. All I did was just clean it up a little bit following a few guidelines: check-in: 910f49a8e5 user: Joel Bennett tags: trunk
13:15
This is a very simple function that returns a DateTime time stamp. I use it in scripts for noting times when actions occur like this Write-Host “$(Time-Stamp): Attempting to create directory.”; It’s a lot shorter than writing out the whole thing. You can also alias it to simplify the process: New-Alias -Name ts -Value Time-Stamp;. This way I use Write-Host “$(ts): Attempting to create directory.”; It outputs: 2011.07.17 05:01:10: Attempting to create directory. You can alter the value in the ToString to change the way the time stamp is formatted. check-in: 32c218cf20 user: Will Steele tags: trunk
13:15
Update to original password generator form (http://gallery.technet.microsoft.com/scriptcenter/54c3832a-4d20-4d6e-81ac-2d6f7bc10bfe). Uses WPF as opposed to Windows Forms to create the front end UI. Able to generate passwords and allows printing of the form or just display the password. Password is copied to clipboard so you can paste it into a password reset dialog. Password is also cleared from clipboard when form is closed. check-in: c904d8fe52 user: Boe Prox tags: trunk
13:15
This Exchange 2010 MailboxImportRequest cmdlet is to help identify imports that may never complete successfully or are taking a long time to complete so they can be suspended and other imports in the queued can complete in a timely manner. This version fixes pipeline input support and improves type handling. check-in: 8ef406fc64 user: Jon Webster tags: trunk
13:15
Test-Port creates a TCP connection to specified port. By default it connects to port 135 with a timeout of 3secs. check-in: a443f7427f user: BSonPosh tags: trunk
13:15
Open the sln file in the given directory hierarchy. Present a list if there is more than one. check-in: 31539d790f user: George Mauer tags: trunk
13:15
Start up the .Net 4.0 Cassini Webserver. Useful for those of us who like to avoid opening visual studio check-in: 4ee1afeef3 user: George Mauer tags: trunk
13:15
This is the log backup script to be used with the Async Backup Script http://poshcode.org/2787 check-in: eee5c67dba user: Justin tags: trunk
13:15
This will run multiple backup jobs at the same time. This script IS cluster aware. check-in: cca56f3119 user: Justin tags: trunk
13:15
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: d78e12b9f0 user: Jonathan Walz tags: trunk
13:15
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: 5ec6fdb39c user: Jonathan Walz tags: trunk
13:15
Add-SharePointLibraryFile – Uploads a file to a SharePoint library via HTTP PUT. check-in: 5f2d98b3ba user: Andy Arismendi tags: trunk
13:15
This Exchange 2010 MailboxImportRequest cmdlet is to help identify imports that may never complete successfully or are taking a long time to complete so they can be suspended and other imports in the queued can complete in a timly manner. check-in: 6e825b697f user: Jon Webster tags: trunk
13:15
A first attempt at a generic graphing function using commands from WPFToolkit’s DataVisualization dll check-in: 03259b354e user: Joel Bennett tags: trunk
13:15
Uses ShowUI to display a binary clock. Hotkeys H, T and D toggle Help, Time and Date text and +/- keys resize. Click and drag anywhere to move. Double-Click to close. This was inspired by Boe Prox’s post at: http://learn-powershell.net/2011/07/06/building-a-binary-clock-with-powershell/ and the release of ShowUI 1.1 check-in: c7943818d8 user: Ryan Grant tags: trunk
13:15
Extended version of Hal’s original “dirtoday” script via twitter https://twitter.com/#!/halr9000/status/88211937720156160 check-in: 8c7379cc33 user: bmorriso tags: trunk
13:15
Extended version of Hal’s original “dirtoday” script via twitter https://twitter.com/#!/halr9000/status/88211937720156160 check-in: ba1fb990ba user: bmorriso tags: trunk
13:15
Fix for redirect loops check-in: 3d68b781c3 user: Joel Bennett tags: trunk
13:15
Install and run BGInfo at startup using registry method check-in: 1bca9bc6fa user: Chad Miller tags: trunk
13:15
Converts Image Files to icon files check-in: 3292638469 user: Chad Miller tags: trunk
13:15
Add-PrinterDriver is a PowerShell function to install all printer drivers from a specified print server. The function is primarily targeted at Remote Desktop Services (formerly Terminal Services) Session Host servers. check-in: 083fc9d936 user: Jan Egil Ring tags: trunk
13:15
Get the MAC Address of an existing IP using SendARP request. check-in: c13ddbc9f3 user: bar971it tags: trunk
13:15
Force $duds to be an array so for small documents exceptions aren’t thrown. check-in: fa197b7bfc user: unknown tags: trunk
13:15
3014c106d0704f92677d34a02c29cc96 check-in: 1014582848 user: Joel Bennett tags: trunk
13:15
Check if all the services with StartMode AUTOMATIC are actually Running check-in: 7ac3c57558 user: LazyWinAdmincom tags: trunk
13:15
Check if all the services with StartMode AUTOMATIC are actually Running check-in: 2084a1394a user: Xavier C tags: trunk
13:15
There are a couple scripts that parse netsh commands. I didn’t see this one already done, so I couldn’t steal it. I suppose I could use some regex or something simple to cut the whitespace, so feel free to “fix her up”, but this got the job done (of putting the netsh output into an object). This is a snip from a larger script I wrote as a looping, recording monitor. I used this guy’s script for inspiration: http://poshcode.org/1731 check-in: 4138e035f3 user: Josh Popp tags: trunk
13:15
List active directory attributes from schema check-in: 297f1f9e58 user: BSonPosh tags: trunk
13:15
List active directory attributes from schema check-in: 6536c752e7 user: BSonPosh tags: trunk
13:15
List active directory attributes from schema check-in: 5c3835c78a user: BSonPosh tags: trunk
13:15
This module allows you to Get, Enable and Disable the software rollback settings on your computer or computers. This is useful when working with certain patches and software installations that require the software rollback to be enabled. check-in: d86fe4a7b6 user: Boe Prox tags: trunk
13:15
A function for creating tied variables using Robert Robelo’s idea to create breakpoints that update the variable values. check-in: e8b1c89c4e user: Joel Bennett tags: trunk
13:15
Download and install Google Chromium if there is a newer version available. check-in: 15a03b0338 user: MJWJ1 tags: trunk
13:15
Version: 0.1 check-in: 3658976898 user: Stefan Stranger tags: trunk
13:15
Version: 0.1 check-in: 7b5c748a05 user: Stefan Stranger tags: trunk
13:15
Version: 0.1 check-in: a8e8b13dd0 user: Stefan Stranger tags: trunk
13:15
This script will take a Twitter User’s Screen name and get their RSS feed of posts check-in: 0d9897862e user: CrazyDave tags: trunk
13:15
A script for ShowUI 1.0 — using Quest’s active directory cmdlets to retrieve user information and allow you to select one of the groups they’re a member of. Could be extended to populate a bunch of form fields from active directory and even allow updating them… check-in: e7bd27003a user: Joel Bennett tags: trunk
13:15
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: 54dbd0b3fe user: Jonathan Walz tags: trunk
13:15
Mounts a NFS datastore to several vSphere 4.X hosts with PowerCLI. The script assumes you are already connected to a VI server. check-in: 1d2ebcd501 user: eprich tags: trunk
13:15
Get-Path converts relative paths to drive or PSProvider -qualified paths. check-in: ad529fefa0 user: Joel Bennett tags: trunk
13:15
kyletboat3 check-in: 4c0a2d1cfc user: kyletboat3 tags: trunk
13:14
A series of functions to verify Agent, SQL, SSIS, SMB, WMI services or connections. Useful when troubleshooting data center firewall configuration. check-in: 6b5ecc9aee user: Chad Miller tags: trunk
13:14
A script that makes an encrypted Powershell script. check-in: 97f847be8a user: RYBAT tags: trunk
13:14
This function backs up eventlogs on a remote computer, where the recordcount for a given log is greater than zero. check-in: 3712439e28 user: Jeff Patton tags: trunk
13:14
This advanced function allows you to transfer or seize the FSMO roles to a specified Domain Controller. Has support for -Whatif and -Confirm to avoid making a mistake with transferring the roles. Also can display the current owners after the action has completed using -PassThru. check-in: 6e212063db user: Boe Prox tags: trunk
13:14
This advanced function will get all FSMO role owners for each domain in a forest. Returns an object that contains the collection of FSMO role owners. check-in: b30db51c4b user: Boe Prox tags: trunk
13:14
This advanced function will get all FSMO role owners for each domain in a forest. Returns an object that contains the collection of FSMO role owners. check-in: b9b4f77ed8 user: Boe Prox tags: trunk
13:14
This function backs up eventlogs on a remote computer, where the recordcount for a given log is greater than zero. check-in: 32ca21866e user: Jeff Patton tags: trunk
13:14
This advanced function will get all FSMO role owners for each domain in a forest. Returns an object that contains the collection of FSMO role owners. check-in: d6da8a2b5f user: Boe Prox tags: trunk
13:14
A series functions to verify Agent, SQL, SSIS, SMB, WMI services or connections. Useful when troubleshooting data center firewall configuration. check-in: 7baf5499c5 user: Chad Miller tags: trunk
13:14
The beginnings of a function for handling ETS exceptions thrown by types which are not CLS Compliant when you try to output them. check-in: 23aeee80ad user: Joel Bennett tags: trunk
13:14
Build a SQL Connection String using specified parameters check-in: 7569a72090 user: Joel Bennett tags: trunk
13:14
After connecting to your VI server, we get a list of virtual switches on the datacenter and from that we pull out the VHostID that matches the server we passed in at the command-line. Using the VHostID we return a list of networks objects on that server. check-in: e00f37f44b user: Jeff Patton tags: trunk
13:14
quick hard coded script for uploading a file to an ftp server. check-in: d0c02d2874 user: Stephen Price tags: trunk
13:14
This script pingscan a subnet for running machines (full parallel) and executes (full parallel) any command on these machines check-in: ef28ec561a user: Carsten Krueger tags: trunk
13:14
Helpers for working with .Net classes: Get-Constructor, Get-Assembly, Add-Assembly, Get-Type check-in: 8f614e9064 user: Joel Bennett tags: trunk
13:14
This script will take a Twitter User’s Screen name and get their RSS feed of posts check-in: 735ae7975d user: CrazyDave tags: trunk
13:14
Displays active TCP connections and includes the process ID (PID) and Name for each connection. check-in: 68a7e19306 user: Shay Levy tags: trunk
13:14
Creates new self-signed code signing certificate and installs it to current user’s personal store. Supports Windows XP and higher. check-in: 84a95785d5 user: vpodans tags: trunk
13:14
This is a template intended for creating a wizard with PowerShell code from scratch. The sample consists of two sections, the template itself and the wxample of its use. check-in: 7ac65ae6e0 user: Alexander Petrovskiy tags: trunk
13:14
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes check-in: 27f914d640 user: SddrCErrR tags: trunk
13:14
hashtable to object function. check-in: 9ef0d2dd60 user: nQPuDDji tags: trunk
13:14
My first contribution. I am crazily thinking of doing a “Powershell Only” day. The first task is to figure out how to manipulate Outlook through PowerShell. The submitted script hits my Outlook inbox and goes through the inbox and each subfolder and retrieves the unread emails from it. It then goes through my task list and gets all the incomplete tasks. This was my first time using a status bar and definitely the first for making anything outside the scripting games public. I’d hate to get finished with the Outlook “module” and find out I could have saved myself a lot of time, so I through the script as it is now on the mercy of the court. Proceed with your red pens… check-in: 403ad4ed4d user: chris seiter tags: trunk
13:14
This will perform a basic netstat.exe command and “objectize” its output. check-in: 2ca0df4224 user: Ivan F tags: trunk
13:14
This is the file you need to load Quest’s Active Directory snap-in as a module. Just put this in a folder with all the dlls … check-in: cbb03c0a43 user: Joel Bennett tags: trunk
13:14
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: 5bfd8d46f1 user: halr9000 tags: trunk
13:14
WPF GUI to watch TechED 2011, NA sessions check-in: 06a50eb3ff user: Ravikanth tags: trunk
13:14
This module uses PSexec,vbscript and PowerShell to install patches on local or remote systems. This does require PSexec to be in the same directory as where you are running the function within this module. Save as a .psm1 file. check-in: b5fbe3dade user: Boe Prox tags: trunk
13:14
This is the sister script to a bigger project. I will have the full script and uses on my blog vnoob.com soon check-in: e8125ee623 user: unknown tags: trunk
13:14
This script will take a Twitter User’s Screen name and get their RSS feed of posts check-in: b2a812053e user: CrazyDave tags: trunk
13:14
How to add a SSL Certificate to IIS with Powershell as well as set the SSL Binding for the site that’s using the certificate. check-in: bffd24dc9f user: Brian H Madsen tags: trunk
13:14
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: 2a66cac1ac user: David Sjstrand tags: trunk
13:14
Downloads the current sysinternals from \\live.sysinternals.com\tools and then updates your path environment variable to include the location saved to. Along with that it sorts, and removes duplicate entries in the path variable. If you call get-sysinternals without any args the local directory will be systemroot\Sysinternals\ Otherwise, the files will be put in the specified path. check-in: 0f38c009f5 user: vbjay tags: trunk
13:14
Downloads the current sysinternals from \\live.sysinternsals.com\tools and then updates your path environment variable to include the location saved to. Along with that it sorts, and removes duplicate entries in the path variable. If you call get-sysinternals without any args the local directory will be systemroot\Sysinternals\ Otherwise, the files will be put in the specified path. check-in: 6eb9bb8e2d user: vbjay tags: trunk
13:14
Downloads the current sysinternals from \\live.sysinternsals.com\tools and then updates your path environment variable to include the location saved to. Along with that it sorts, and removes duplicate entries in the path variable. If you call get-sysinternals without any args the local directory will be systemroot\Sysinternals\ Otherwise, the files will be put in the specified path. check-in: 9a34cb677e user: vbjay tags: trunk
13:14
This script is pretty simple, it connects to a remote computer and grabs the BIOS class. It then connects to the Dell support page for the remote computer’s ServiceTag. If the computer is a Dell, it grabs the BIOS revision listed on the page. The inspiration came from reading the Scripting Guy blog about comments. (http://blogs.technet.com/b/heyscriptingguy/archive/2011/05/16/add-excellent-comments-to-your-powershell-script.aspx) check-in: ff534b88b7 user: Jeff Patton tags: trunk
13:14
This script is pretty simple, it connects to a remote computer and grabs the BIOS class. It then connects to the Dell support page for the remote computer’s ServiceTag. If the computer is a Dell, it grabs the BIOS revision listed on the page. The inspiration came from reading the Scripting Guy blog about comments. (http://blogs.technet.com/b/heyscriptingguy/archive/2011/05/16/add-excellent-comments-to-your-powershell-script.aspx) check-in: 554a091fa1 user: Jeff Patton tags: trunk
13:14
This script is pretty simple, it connects to a remote computer and grabs the BIOS class. It then connects to the Dell support page for the remote computer’s ServiceTag. If the computer is a Dell, it grabs the BIOS revision listed on the page. The inspiration came from reading the Scripting Guy blog about comments. (http://blogs.technet.com/b/heyscriptingguy/archive/2011/05/16/add-excellent-comments-to-your-powershell-script.aspx) check-in: 0bdf7befed user: Jeff Patton tags: trunk
13:14
This script uses current Show-UI and SQLite to query a copy of your Firefox Bookmark Database for Bookmarks tagged with combinations of 1 to 3 keywords. It uses the WPF 4.0 Datagrid. (Improvements in Eventhandling of Hyperlinks are welcome) check-in: 9335fb6eef user: Bernd Kriszio tags: trunk
13:14
A function to rename a computer check-in: 9d909157bc user: Gerald Klassen tags: trunk