PoshCode Archive  Timeline

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

39 check-ins using file get-windows-product-key.ps1 version eb1246167a

2018-06-10
14:06
Gets the last logged on user of a workstation. check-in: 1a6731dd86 user: dotps1 tags: trunk
14:06
This code is from a web scrape guide I’ve written on my blog. check-in: 487e946e03 user: DollarUnderscore tags: trunk
14:06
############################################################################################# check-in: cb1b2fb2df user: Rob Sewell tags: trunk
14:06
This code will cleanup local profiles on a server/computer. It needs admin-rights to run. check-in: 810a855875 user: DollarUnderscore tags: trunk
14:06
New-TextIcon allows you to create an icon made of text. This was useful for me when creating a NotifyIcon that contained the used percentage of memory on a VM host. Output to actual file optional using $Path. check-in: 01a35a4a54 user: chrissylemaire tags: trunk
14:06
A first draft at a logging function that can rotate log files as they “fill up” (that is, not by date, but by size). check-in: f2d491526a user: Tim Christin tags: trunk
14:05
So many holla dollas check-in: c03bcee436 user: unknown tags: trunk
14:05
Selects only objects containing a hostname that is pingable. check-in: 960df5300b user: unknown tags: trunk
14:05
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: c501d971bf user: Daniel Srlv tags: trunk
14:05
Simple script to join multiple text files into one long string with delimiters ready to be split out again. Split-TextFile scrip still under development! check-in: 8bcd57fe94 user: RobertTheBruce tags: trunk
14:05
I saved Joel Bennett’s Read-Choice function as a module and wrote this function. I wanted to make it useful (especially to beginners) so it doesn’t look like a “normal” menu script, but Bennett’s function is so friendly that you could write a “normal” menu script without using variables at all. To create the module save Read-Choice in a file named ReadChoice.psm1 and save it in $PSModulePath\ReadChoice. check-in: a24a5753e4 user: Vince Ypma tags: trunk
14:05
A function to set an IP Address check-in: 884ea91eb3 user: Andy Schneider tags: trunk
14:05
Selects a random element from the collection either passed as a parameter or input via the pipeline. check-in: 39b5baf902 user: unknown tags: trunk
14:05
A pure console screen saver in the vein of the popular CMatrix x-term screensaver. PowerShell 2.0 module, see blog post: http://goo.gl/5QkI5 check-in: 98b98f0619 user: Oisin Grehan tags: trunk
14:05
The following changes were made: check-in: 9378188373 user: Peter Kriegel tags: trunk
14:05
Function to do a regex replace of all matches with an expression per match that has local variables check-in: d96be5e896 user: karl prosser tags: trunk
14:05
All descriptions on the web which show how to do this so far have left the email attachment open which means if the script is continuing after the email and you wish to use the file you have attached you will not be able to as it will show as locked, use this example to close the attached file correctly using .Dispose() check-in: d73c0ae3ec user: Richard van Erk tags: trunk
14:05
All descriptions on the web which show how to do this so far have left the email attachment open which means if the script is continuing after the email and you wish to use the file you have attached you will not be able to as it will show as locked, use this example to close the attached file correctly using .Dispose() check-in: 9f1a069536 user: Richard van Erk tags: trunk
14:05
All descriptions on the web which show how to do this so far have left the email attachment open which means if the script is continuing after the email and you wish to use the file you have attached you will not be able to as it will show as locked, use this example to close the attached file correctly using .Dispose() check-in: 424ef5bd5d user: Richard van Erk tags: trunk
14:05
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: 8695d1a474 user: AlphaSun tags: trunk
14:05
Sets device volume to 10% if run between 22:00 and 07:00. check-in: 6c6bace1cd user: jpruskin tags: trunk
14:05
Send an email via the GMail SMTP server (or any server, really, but there’s some extra code in here and defaults that will make it work with Gmail so you won’t have to do research). NOTE: there’s a Send-SmtpMail in PSCX, but as far as I can tell, there’s no way to convince it to use SSL so I can’t get it to work with Gmail at all. check-in: 7f678a352f user: Joel Bennett tags: trunk
14:05
Simple function that pings a host and returns a boolean. check-in: c4978fca4f user: dragonmc77 tags: trunk
14:05
This advanced function will return information about the estimated token size and group memberships of the specified user. check-in: 140714d52e user: DollarUnderscore tags: trunk
14:05
This is an enhancement on top of the [Environment]::GetFolderPath to add support for additional folders like QuickLaunch and the “Common” folders (CommonStartMenu, etc) by using the WshShell SpecialFolders enum from COM... check-in: e0ac23f921 user: Joel Bennett tags: trunk
14:05
(A;OICIIOID;GA;;;CO)(A;OICIID;0×1200a9;;;BU)(A;CIID;LC;;;BU)(A;CIID;DC;;;BU) check-in: 7fa96f35c5 user: Matthew Graeber tags: trunk
14:05
O:BAG:DUD:AI(A;;FA;;;BA)(A;OICI;CC;;;S-1-5-21-3077527487-3191769811-4249184243-1112)(A;OICIID;FA;;;BA)(A;OICIID;FA;;;SY)(A;OICIIOID;GA;;;CO)(A;OICIID;0×1200a9;;;BU)(A;CIID;LC;;;BU)(A;CIID;DC;;;BU) check-in: b7b77d712a user: Matthew Graeber tags: trunk
14:05
A;OICI;CC;;;S-1-5-21-3077527487-3191769811-4249184243-111 check-in: 1e048da051 user: Matthew Graeber tags: trunk
14:05
############################################################################################# check-in: 9f91081510 user: Rob Sewell tags: trunk
14:05
Using netsh.exe to loop through each WLAN on the system and export the settings to the user-provided output-file. check-in: f2236afd43 user: Jan Egil Ring tags: trunk
14:05
This will display a slideshow and prevent the monitor from sleeping (which may be useful for other purposes). Change the $folder variable to where pictures are located, and change $wait to the time between picture changes. You can move it to another monitor using windows hotkeys (win+shift+arrow). The SetThreadExecutionState p/invoke function with a parameter of (2) causes the display sleep timer to reset, so must be called in a loop to keep the screen active. check-in: 07d7c12008 user: james gentile tags: trunk
14:05
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: d77951c867 user: BattleChicken tags: trunk
14:05
This is a modified version of the script included with the Clean Software Update Groups console extension for SCCM 2012R2 check-in: e34b6a6e35 user: Neighborgeek tags: trunk
14:05
This script produces report for McAfee AntiVirus on a set of remote computers. Writes output object containing Server, Product Version, Engine Version, and Virus Definition Version. check-in: 70c307bdff user: halr9000 tags: trunk
14:05
This will display a slideshow and prevent the monitor from sleeping (which may be useful for other purposes). Change the $folder variable to where pictures are located, and change $wait to the time between picture changes. You can move it to another monitor using windows hotkeys (win+shift+arrow). The SetThreadExecutionState p/invoke function with a parameter of (2) causes the display sleep timer to reset, so must be called in a loop to keep the screen active. check-in: ea49468731 user: james gentile tags: trunk
14:05
I need help using the greater than and less than symbol, and it needs to compare two different variables within the code. check-in: 04af99cfb7 user: Steven Leise tags: trunk
14:05
I need help using the greater than and less than symbol, and it needs to compare two different variables within the code. check-in: e542d76397 user: Steven Leise tags: trunk
14:05
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes check-in: b4f1db4ee4 user: Lee Holmes tags: trunk
14:05
retrieve the windows product key of a specified machine using WMI check-in: d770f1f5a8 user: karl prosser tags: trunk