PoshCode Archive  Timeline

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

67 check-ins using file WinSCPPowershell-Module.ps1 version 91f07cd59b

2018-06-10
14:07
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: 7a32cf2673 user: AlphaSun tags: trunk
14:07
retrieve the windows product key of a specified machine using WMI check-in: dbab564bc6 user: jirka tags: trunk
14:07
Sets the system primary DNS suffix by p-invoking the Win32 API. Returns true for success, false for failure. check-in: 68b1a9d007 user: Andy Arismendi tags: trunk
14:06
Test the Prompt features check-in: b590649efa user: Anonymous tags: trunk
14:06
retrieve the windows product key of a specified machine using WMI check-in: 8929f10493 user: karl prosser tags: trunk
14:06
IMCEAEX-_O=CONTOSO_OU=First+20Administrative+20Group_cn=Recipients_cn=john+5Fjacob+2Esmith@contoso.com check-in: 9cecbef3b4 user: Test1 tags: trunk
14:06
Disable or Enable local user accounts based on csv or textfile. check-in: 4c5a39a62e user: Michael Wulff tags: trunk
14:06
Get local user accounts info in forms of a csv file with the following attributes: check-in: d9a731198a user: Michael Wulff tags: trunk
14:06
IMCEAEX-_O=EXCHANGELABS_OU=EXCHANGE+20ADMINISTRATIVE+20GROUP+20+28FYDIBOHF23SPDLT+29_CN=RECIPIENTS_CN=5db7eb6d37784f2eaccf09b2f90b75e8-katstewart+40coca-cola+2Ecom@namprd07.prod.outlook.com check-in: 38c9b82bbf user: Allison tags: trunk
14:06
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: 3a96cee944 user: Ben Miller tags: trunk
14:06
Compare files in multiple folders against a reference set to provide an early detection of Cryptolocker check-in: 1985b457d0 user: dfsdiag tags: trunk
14:06
#This script extracts the UNC paths from all login scripts associated to users. Can also be used to search ANY folder or files for UNC paths by tweaking the netlogonpath and netlogonfilestosearch arguments. check-in: 94919019e5 user: Justin Grote tags: trunk
14:06
Selects only objects containing a hostname that is pingable. check-in: 754425eacf user: dragonmc77 tags: trunk
14:06
This script retrieves the UNC paths from all group policies in the domain. Useful during file server cutovers and renaings. check-in: 1d14720044 user: Justin Grote tags: trunk
14:06
Add new smtp address from csv and set new address primary check-in: c1d78aa81f user: Ermias tags: trunk
14:06
Locks the workstation’s display. Locking a workstation protects it from unauthorized use. check-in: cc2873abed user: Mike Pfeiffer tags: trunk
14:06
A function to rename a computer check-in: c9f2d5004c user: steven tags: trunk
14:06
Minor bugfix check-in: 21a7c17ec6 user: fsadf tags: trunk
14:06
Fetches the per-datastore disk utilization of a virtual machine. Is thin-provisioning aware and reports only the thin provisioned used space for UsedGB. check-in: 60a5b27c0c user: Justin Grote tags: trunk
14:06
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: 19c2f98c33 user: halr9000 tags: trunk
14:06
A script to get site information from a large forest. check-in: 0d10d2e1d8 user: Geoff Guynn tags: trunk
14:06
Display the FSMO role holders of each domain in your forest. check-in: 31011a915c user: Geoff Guynn tags: trunk
14:06
I fixed a few major problems I noticed in the original version. check-in: 11d159c35f user: Geoff Guynn tags: trunk
14:06
PowerShell RoboCopy Wrapper example code check-in: d18b1d9ce8 user: unknown tags: trunk
14:06
I fixed a few major problems I noticed in the original version. check-in: 4ffeadc85f user: Geoff Guynn tags: trunk
14:06
I fixed a few major problems I noticed in the original version. check-in: 13269410fd user: Geoff Guynn tags: trunk
14:06
IMCEAEX-_O=BAYMAIL_OU=EXCHANGE+20ADMINISTRATIVE+20GROUP+20+28FYDIBOHF23SP DLT+29_CN=RECIPIENTS_CN=IMMTZ@bayer.cnb check-in: b3206c9164 user: IMMTZ tags: trunk
14:06
Gets the last logged on user of a workstation. check-in: 8b491a2b1f user: dotps1 tags: trunk
14:06
retrieve the windows product key of a specified machine using WMI check-in: a3985a5a16 user: David tags: trunk
14:06
retrieve the windows product key of a specified machine using WMI check-in: 1ea6074f93 user: David tags: trunk
14:06
retrieve the windows product key of a specified machine using WMI check-in: 68934cc9c1 user: David tags: trunk
14:06
retrieve the windows product key of a specified machine using WMI check-in: 77799dfbce user: David tags: trunk
14:06
retrieve the windows product key of a specified machine using WMI check-in: 9c9c185a9d user: David tags: trunk
14:06
Set the Send As permissions on an exchange 2007 mailbox. check-in: 80a184eded user: Jon Webster tags: trunk
14:06
retrieve the windows product key of a specified machine using WMI check-in: 9fdeee23b8 user: karl prosser tags: trunk
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