PoshCode Archive  Timeline

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

89 check-ins using file WMI-Explorer.ps1 version b197ebf3fd

2018-06-10
13:46
This will send an SNMP trap to the specified manager (hostname). The script isn’t very flexible, but it’s a good example of how to build traps using SharpSNMPLib. External requirementss: check-in: 70a2ccfd4b user: halr9000 tags: trunk
13:46
This is the PowerShell 2.0 -only continuation of my Growl module — redesigned as a proper “module” that can be used by (many) other scripts. check-in: 8a3b6976e4 user: Joel Bennett tags: trunk
13:46
Dynamically creates a return of whatever type of file / directory is given. Covers CSV’s txt, log, or other Get-Content related files. check-in: a563549641 user: internetrush tags: trunk
13:46
Just a simple function to show how to query Office 365 via powershell check-in: cf0bf71c7e user: Jeremy D Pavleck tags: trunk
13:46
shows results of a command in different command shell window check-in: 9c90e85bc4 user: greg zakharov tags: trunk
13:46
Prints full path for each file in a directory check-in: fd195d3e59 user: greg zakharov tags: trunk
13:46
Just an idea for how to handle web requests in PowerShell check-in: 89d0871466 user: Joel Bennett tags: trunk
13:46
Put and get large files to and from a Hadoop cluster check-in: 9690d13436 user: Parul Jain tags: trunk
13:46
This is the PowerShell 2.0 -only continuation of my Growl module — redesigned as a proper “module” that can be used by (many) other scripts. check-in: e24309a007 user: Franck tags: trunk
13:46
A simple datastorage module for the #PowerShell IRC bot which serves as a simple example of how to use Beefarino’s SQLite Provider check-in: 190ba8c6e9 user: Joel Bennett tags: trunk
13:46
GPO replication status across Domain Controller. check-in: a8bd44247c user: Manuel TOUSSAINT tags: trunk
13:46
Simple function that executes a command (stored procedure) against an SQL database. check-in: ed59b3fe3c user: dragonmc77 tags: trunk
13:46
A function to return the Abuse Email address from arin.net with IPv6 support. check-in: 2c9d196090 user: Josh Wortz tags: trunk
13:46
A function to return the Abuse Email address from arin.net. check-in: be25e9a74b user: Josh Wortz tags: trunk
13:46
something like sigcheck check-in: dd05f111e1 user: greg zakharov tags: trunk
13:46
This is a very meaningless demo showing how to get and work with a html document in parsed form. The actual script gets a html-table from www.apk.se (listing cheap alcohol in sweden) and parses and converts that to a object and hands that of to the pipe. check-in: 5878202585 user: Daniel Srlv tags: trunk
13:46
A simple example of how to use Beefarino’s SQLite Provider check-in: 73561999ea user: Joel Bennett tags: trunk
13:46
incompleted check-in: 7e53d2874c user: greg zakharov tags: trunk
13:46
hey guys. why you duplicate ugly code for retrieving product key? everything can be done much easier. check-in: d977d38fd2 user: greg zakharov tags: trunk
13:46
imitates sysinternals sdelete tool check-in: a79390c17a user: greg zakharov tags: trunk
13:46
Simple function that executes a command (stored procedure) against an SQL database. check-in: 2da2a60210 user: dragonmc77 tags: trunk
13:45
A function to return the Abuse Email address from arin.net. check-in: d1df1b98c0 user: unknown tags: trunk
13:45
I initially wrote this ASCII art character script to be used with a modified version of PowerBot 2.0 (ID 2510 on poshcode). It outputs ASCII art letters from what you supply as a parameter (if the characters are supported). Either to STDOUT with Write-Host (colors are supported) or to the pipeline. It’s useless without the XML that’s found at powershelladmin.com. The full article is in my wiki: http://www.powershelladmin.com/wiki/Ascii_art_characters_powershell_script check-in: e1eec057e8 user: Joakim Svendsen, Svendsen Tech tags: trunk
13:45
This script takes the output from the “ls vdisk full xml > vdisks.xml” HP EVA/P6000 and parses it into a form that can be imported into XML for reporting purposes. check-in: 1747c8d7ad user: jgrote tags: trunk
13:45
Simple function that executes a command (stored procedure) against an SQL database. check-in: 84bea84b6c user: dragonmc77 tags: trunk
13:45
Measure-ScriptCode calculates some code metrics like the number of lines-of-code, comments, functions from script or module files it is fed. The script is PowerShell 3 or later only because of use of AST (Abstract Syntax Tree). check-in: f69f9e2c20 user: Victor Vogelpoel tags: trunk
13:45
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: 51ade8f40e user: mtown_nerd tags: trunk
13:45
A couple of helper functions to make comparing things easier… check-in: 2f63b3d0f5 user: Joel Bennett tags: trunk
13:45
Made some improvements check-in: 2bf9f18b5d user: tysonkopczynski tags: trunk
13:45
Get-PEManifest and Get-PEHeader some fixes check-in: b1690196bf user: greg zakharov tags: trunk
13:45
This PowerShell Script will compare all of the files in the same directory on two or more different computers. It will compute the MD5 hash of a file and use that to compare check-in: 375b250ede user: Brian tags: trunk
13:45
Simple function that returns the UNC path (administrative share) of a local path. check-in: 9eef76be4b user: dragonmc77 tags: trunk
13:45
This is script will first ask for a computername and then will scan the Win32_UserProfile WMI class and present the user with all of the possible user profiles to remove. After the profile has been deleted, the user has a choice to continue to remove another profile or quit. This script will only work against Vista and above client OS’s and Window 2008 and above server OS’s, but can be ran from any OS that has PowerShell installed. check-in: 4de0ca1967 user: Boe Prox tags: trunk
13:45
This is script will first ask for a computername and then will scan the Win32_UserProfile WMI class and present the user with all of the possible user profiles to remove. After the profile has been deleted, the user has a choice to continue to remove another profile or quit. This script will only work against Vista and above client OS’s and Window 2008 and above server OS’s, but can be ran from any OS that has PowerShell installed. check-in: ec2d00a07c user: Boe Prox tags: trunk
13:45
This is script will first ask for a computername and then will scan the Win32_UserProfile WMI class and present the user with all of the possible user profiles to remove. After the profile has been deleted, the user has a choice to continue to remove another profile or quit. This script will only work against Vista and above client OS’s and Window 2008 and above server OS’s, but can be ran from any OS that has PowerShell installed. check-in: a719ef66a6 user: Boe Prox tags: trunk
13:45
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes check-in: 0a23b15d50 user: Lee Holmes tags: trunk
13:45
The infamous ellipsis function lets you pick out a single property, rather like using Select -Expand … except it runs in about 2/3 the time. check-in: 022e2706c2 user: Joel Bennett tags: trunk
13:45
Returns the corresponding device path for each drive letter check-in: 3dff6bd2a6 user: Matthew Graeber tags: trunk
13:45
first fix for Expand-PEInfo (http://poshcode.org/4764) check-in: 6fe1874394 user: greg zakharov tags: trunk
13:45
this is just a preliminary version check-in: 142817f06e user: greg zakharov tags: trunk
13:45
Inspired from http://www.vtesseract.com/post/16203019395/more-powershell-fun-star-wars check-in: f82436d310 user: James Vahanian tags: trunk
13:45
this is simplest (and correct) way to dump mainifest of PE check-in: 79103eabd4 user: greg zakharov tags: trunk
13:45
i’m continuing to experiment with powershell :) check-in: 71f0009e5e user: greg zakharov tags: trunk
13:45
New-TypeAlias, Get-TypeAlias functions for adding and querying type accelerators. Compatible with powershell 3.0, 4.0 check-in: dea9c45290 user: Oisin Grehan tags: trunk
13:45
Set applications/windows on hide of TeamViewer windows check-in: 68b76c4cc8 user: quay776 tags: trunk
13:45
This script will take a Twitter User’s Screen name and get their RSS feed of posts check-in: 09243643ea user: CrazyDave tags: trunk
13:45
- NOTES check-in: f98a699723 user: ChristopheCREMON tags: trunk
13:45
I use this script to delete shadow copies older than 30 days from our file and print servers. I have it installed on Server 2012 Core Servers. check-in: a09f029b70 user: Wayne Johnson tags: trunk
13:45
Actually, this is only an idea and I’m not sure that it’ll be useful because I usually use Sysinternals ProcDump tool (hello, Mark!) check-in: 20e676ff03 user: greg zakharov tags: trunk
13:45
original filename: lib-authentication.ps1 check-in: e2023ec2ed user: Hal Rottenberg tags: trunk
13:45
Demo of different ways to split a text into lines. Sorry I have not yet another nice way to post code in my blog. http://pauerschell.blogspot.com/. Understanding TextToLines splitting is basic to ISE-Extensions. check-in: e1bb6f2efe user: Bernd Kriszio tags: trunk
13:45
Set applications/windows on hide of TeamViewer windows check-in: d0b8dd1621 user: Shay Levy tags: trunk
13:45
This script will create an inventory of all guests in the target Virtual Center and then create a csv check-in: 5b98ab38ae user: Omarr tags: trunk
13:45
This script will create an inventory of all guests in the target Virtual Center and then create a csv check-in: ae42e0d0ab user: Omarr tags: trunk
13:45
previous version of this script just builds a graph of processor utilization into powershell host, but how about something more dynamic and customizable, mmm? so i rewrote my Get-ProcessorGraph function. check-in: d6d609b625 user: greg zakharov tags: trunk
13:45
original filename: lib-authentication.ps1 check-in: c89bc58cea user: Hal Rottenberg tags: trunk
13:45
Updates group policy on remote domain computer,(Can be modified easily to include all computers or a list.). I wrote this for our field techs, simple but useful. check-in: 792893327c user: Johnny Reel tags: trunk
13:45
This script uses the Cisco IPSEC VPN client to connect to a VPN gateway and immediately RDP to a device. check-in: 303d53c441 user: Adam Bertram tags: trunk
13:45
Get and Set-WriteFilter to manage embedded write filters remotely check-in: 744eca7b5c user: Adam Bertram tags: trunk
13:44
original filename: lib-authentication.ps1 check-in: e821cc786e user: Hal Rottenberg tags: trunk
13:44
how can we zip and upload a file to a FTP cloud through powershell? check-in: 720525cacb user: Stephen Price tags: trunk
13:44
original filename: lib-authentication.ps1 check-in: 46afe2a334 user: Hal Rottenberg tags: trunk
13:44
Example of elementary keylogger. check-in: c36d8b80b9 user: greg zakharov tags: trunk
13:44
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: 416de07688 user: Joel Bennett tags: trunk
13:44
The Division check-in: eb540d6a78 user: 098Hill tags: trunk
13:44
Basic streaming binary hex dump viewer in powershell. check-in: e8f287e367 user: Public Domain tags: trunk
13:44
Screenshot at http://savepic.org/4840591.jpg check-in: 0293dbd688 user: greg zakharov tags: trunk
13:44
Script to put several machines into maintenance mode on your OpsMgr2012 instance. check-in: 6330b2c6f7 user: NinjaTechie tags: trunk
13:44
Powershell really needs lexical variables and automatic lexical closures. ScriptBlock.GetNewClosure is a heavyweight hack (it captures the entire scope chain every time you call it) around lexical variable capture so here is a lighter weight hack. check-in: c44c0c23f6 user: Public Domain tags: trunk
13:44
Shows CPU utilization till $host height size check-in: bd961cb63f user: greg zakharov tags: trunk
13:44
Retrives USB devices from HKLM:\SYSTEM\CurrentControlSet\Enum\USBSTOR check-in: 8ef0b0553a user: greg zakharov tags: trunk
13:44
retrieve the windows product key of a specified machine using WMI check-in: b32e99f0e1 user: karl prosser tags: trunk
13:44
Creates copy of existing group in Active Direcory domain with members and other properties. check-in: faabff79f3 user: Dalibor Zacek tags: trunk
13:44
This script queries WMI to find basic monitor size information. It then performs some math on these attributes to come up with the size of all monitors attached to a local or remote device. check-in: a213a38bcb user: Adam Bertram tags: trunk
13:44
If you’re a developer, installation packager or a ConfigMgr admin this script can be used to convert a product code to a GUID. This comes in handy when reverse engineering product installations. check-in: 42f135c149 user: Adam Bertram tags: trunk
13:44
Quickly pull files copied and size from robocopy log summary check-in: b4f2b15414 user: Steele Stenger tags: trunk
13:44
Automatically refreshes a webpage. Only works in Internet Explorer…sorry. check-in: bd21468b86 user: Jack Neff tags: trunk
13:44
A simple function that returns where a remote Windows device is a thin client or a desktop. check-in: 99f4d20439 user: Adam Bertram tags: trunk
13:44
The following changes were made: check-in: 9561578689 user: Peter Kriegel tags: trunk
13:44
This script queries the entire forest and a) dumps all GPO names with last modified and GUID to \All_GPOs and b) Compares the current run check-in: 9090946b30 user: Agnostracised tags: trunk
13:44
Enumerates mailbox folder permissions for all folders in all mailboxes check-in: 538d7fa8b9 user: themoblin tags: trunk
13:44
Output text to a new PowerPoint slide check-in: 9433b3cb08 user: Joel Bennett tags: trunk
13:44
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: 269f2a17e3 user: Public Domain tags: trunk
13:44
A concept for testing PowerShell’s regular expressions. See http://forum.script-coding.com/viewtopic.php?id=8973 for details. check-in: 34455db61c user: greg zakharov tags: trunk
13:44
Add new smtp address from csv and set new address primary check-in: b7276b7b77 user: unknown tags: trunk
13:44
script to wrap arround mstsc.exe and start multiple rdp sesions in one command check-in: 40444098bc user: AllanData tags: trunk
13:44
Sets properties for a given user local username. check-in: a0772d30e5 user: Andy Arismendi tags: trunk
13:44
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes check-in: 3ee41d4542 user: xxxxxx tags: trunk
13:44
Added “lazy” filter – Ctrl+F (just input one char at a time) and query tool (experimental feature)/See screenshots for the details http://savepic.org/4767656.jpg and http://savepic.org/4755368.jpg check-in: fff3e2e5c8 user: greg zakharov tags: trunk