PoshCode Archive  Timeline

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

84 check-ins using file Set-LocalUserAccount.ps1 version abbc207299

2018-06-10
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
13:44
Simple one liner that emails the status of a service(s) to a recipient. check-in: 8ab9f5ab7e user: Johnny Reel tags: trunk
13:44
Migrates users settings roaming profiles and home directories to another server. check-in: 3d9f9f72a7 user: themoblin tags: trunk
13:44
forthebetterr check-in: fe70f4e236 user: forthebetterr tags: trunk
13:44
The Division check-in: cee47d7aef user: 098Hill tags: trunk
13:44
When moving very large mailboxes, the connection can time out. check-in: 4c76fa95f3 user: dethompson71 tags: trunk
13:44
VERSION 1.4 — The default cert setting must be put in an external .PSD1 file! check-in: cc78b0b6b8 user: Joel Bennett tags: trunk
13:44
Fixed issues with namespaces/Methods and properties of classes now are placed at one ListView for quick navigation/Now it do not use Get-WmiObject cmdlet to access wmi objects/See screenshot at http://savepic.org/4765709.jpg check-in: 900fbb670b user: greg zakharov tags: trunk
13:44
Invoke generic method definitions (including static methods) from PowerShell. check-in: 9e80060b0f user: Joel Bennett tags: trunk
13:44
Using netsh.exe to loop through each WLAN on the system and export the settings to the user-provided output-file. check-in: e8f7eda4be user: Jan Egil Ring tags: trunk
13:43
Show weather information in the lower right corner of the desktop. check-in: bcefda9bdb user: Mosser Lee tags: trunk
13:43
Sends an email on event trigger ID 21 and 23 (logon and logoff). Useful for auditing access to a server. check-in: 8faee206e4 user: Justin Grote tags: trunk
13:43
Creates ramdom file with null length. Just for fun. check-in: 1a759dd176 user: greg zakharov tags: trunk
13:43
Now it looks like http://savepic.org/4783435.jpg check-in: 951eee5b95 user: greg zakharov tags: trunk
13:43
Copies shared folders from one server to another. Run on the new server (as administrator). check-in: 40018f1020 user: themoblin tags: trunk
13:43
Resolves aliases and parameter shortcuts in scripts to make them more portable. Now resolves parameter aliases, and resolves ‘?’ to Where-Object correctly. check-in: 365c614111 user: Joel Bennett tags: trunk
13:43
Function to update a property value within a Java properties file check-in: c11aab4b3e user: Michael Craig tags: trunk
13:43
Make a phone call from Powershell and pass TextToSpeech variables like ComputerName, DiskFreeSpace. check-in: ac5a8cd4a1 user: Sunny Chakrabort tags: trunk
13:43
Search Exchange tracking logs using jobs and remoting. check-in: 355adc2e9d user: evetsleep tags: trunk
13:43
All bugs are mine. check-in: 145794bd44 user: greg zakharov tags: trunk
13:43
Set-Wallpaper lets you set your windows desktop wallpaper. It requires PInvoke and I wrote it using PowerShell 2’s Add-Type, although it could be done in v1 using the JIT code generation tricks Lee Holmes has mentioned in the past … check-in: 1473535daa user: Joel Bennett tags: trunk
13:43
Creates random file with extension which has assosiation (just for fun). check-in: 163693626f user: greg zakharov tags: trunk
13:43
If you use the dark color scheme in VS, you’ll find that the powershell tools syntax highlighting is unusable. While it is possible to update the colors by hand in visual studio’s options, this is a pain in the ass. Here’s a script to run in the NuGet console that will set the token colors to something usable. The scheme is persistent. check-in: 53da4015a1 user: Oisin Grehan tags: trunk
13:43
Some helper functions for getting/setting the output buffer and command history size in PowerShell.exe native. check-in: c5470146c4 user: Joel Bennett tags: trunk
13:43
i would like group my ad obj report scripts to one file. i started with some functions about users and computers. i have a request to check my code to poit errors and what i could write better. thx for any tip and info! check-in: d542b12359 user: Voytas tags: trunk
13:43
The Division check-in: 42ebc1cf1f user: haegar2013 tags: trunk
13:43
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes check-in: 94767fd093 user: Lee Holmes tags: trunk
13:43
An example of a client/server that works in PowerShell check-in: 3e0bfc339c user: Joel Bennett tags: trunk
13:43
Fixed some issues check-in: 477399ce5b user: greg zakharov tags: trunk
13:43
retrieve the windows product key of a specified machine using WMI check-in: 508a9591c4 user: karl prosser tags: trunk
13:43
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: 922aa197fa user: Jason B tags: trunk
13:43
This script will allow you to query a web site and retrieve information about the web site and whether it is available or not. check-in: 0e9dfe4d8f user: Boe Prox tags: trunk
13:43
Fixed check-in: 90f19a1017 user: greg zakharov tags: trunk
13:43
Compare files in multiple folders against a reference set to provide an early detection of Cryptolocker check-in: b3ae84c0de user: dfsdiag tags: trunk
13:43
Windows Server Backup Script. Backs up to NAS location, include facility for rotation and email notification check-in: edfd9a227d user: James Day tags: trunk
13:43
Combines two technics to get last boot system uptime check-in: 36bc41777c user: greg zakharov tags: trunk
13:43
Creates hex dump of a file check-in: 684b38a12f user: greg zakharov tags: trunk
13:43
Set-Wallpaper lets you set your windows desktop wallpaper. It requires PInvoke and I wrote it using CTP2’s Add-Type, although it could be done in v1 using the JIT code generation tricks Lee Holmes has mentioned in the past … check-in: 220caf000b user: Joel Bennett tags: trunk
13:43
Prints “human-readable” information for specified drive check-in: c4e8281673 user: greg zakharov tags: trunk
13:43
This script “copies” shares and share permissions from one computer to another. The drive letter can change between computers, but the path(s) on the drive may not. This script does not copy the data; for that you will need another solution, such as xcopy or a decent SAN that can do it for you. It works on OSes as old as Windows 2000, and at least as new as Server 2008 R2. It probably has a hundred possible improvements. check-in: 9cdf4fe5a6 user: Sysiphus tags: trunk
13:43
App-V 5.0, create friendly folder names for packages. Requires PowerShell Community Extensions. check-in: 1059c6d716 user: unknown tags: trunk
13:43
Enables SNMP via Add-WindowsFeature (If not already enabled) check-in: 394caa82d8 user: St3v3o tags: trunk
13:43
Create a Sharepoint 2010 farm check-in: 0fd45836cb user: Jos Verlinde tags: trunk
13:43
Adding Group Policy Preferences printer with SDM GPAE (Group Policy Automation Engine) including Item-Level targeting check-in: fff351fe50 user: Bobsys tags: trunk
13:43
This script will take a Twitter User’s Screen name and get their RSS feed of posts check-in: 10ae1b965b user: jsamuel12 tags: trunk
13:43
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: 749c2bd9db user: AlphaSun tags: trunk
13:43
As you know PowerShell v3 has [accelerators] type but PowerShell v2 has not this feature. So why do I have to endure this omission in PowerShell v2? check-in: 0bf8c72619 user: greg zakharov tags: trunk
13:43
See http://msdn.microsoft.com/en-us/library/windows/desktop/ms646302(v=vs.85).aspx and http://msdn.microsoft.com/en-us/library/windows/desktop/ms646272(v=vs.85).aspx check-in: 0a37c9e748 user: greg zakharov tags: trunk
13:43
Get the capacity of your installed RAM with the Win32_PhysicalMemory WMI class. check-in: cc5e18dbb4 user: Florian Frank tags: trunk
13:43
Get the capacity of your installed RAM with the Win32_PhysicalMemory WMI class. check-in: fa7ec44704 user: Florian Frank tags: trunk
13:43
Three ways (that I personally know) how to check if user has admin rights. check-in: 24a7a2d91d user: greg zakharov tags: trunk
13:43
Old bash script… check-in: c00891f291 user: greg zakharov tags: trunk
13:43
If ‘tree’ pocket has not been installed that you can use next script but note that it gets only directories. check-in: 961b0e96f8 user: greg zakharov tags: trunk
13:42
Sometimes I have to deal with Bash, so… check-in: 84fd6ea798 user: greg zakharov tags: trunk
13:42
VERSION 1.3 check-in: ddab94cbe3 user: Joel Bennett tags: trunk
13:42
See http://msdn.microsoft.com/en-us/library/system.security.principal.wellknownsidtype.aspx check-in: ba487f8238 user: greg zakharov tags: trunk
13:42
This is a little script I wrote to logoff all users on the box except for myself. Clearly it can be cleaned up a little, making it more flexible, but thought I would share anyways. check-in: e09dc4868e user: Nigel Stuke tags: trunk
13:42
Why? WHY IT NEED USE WIN32_PROCESS TO CHECK PARENT PROCESS FOR ANOTHER PROCESS??? There is PerformanceCounter class in the System.Diagnostics namespace which can help you determine parent process for a process easily. check-in: d5a1b22fcd user: greg zakharov tags: trunk
13:42
The Install-ISPackage script installs an Dtsx file to a SQL Server store using the command-line utility dtutil. check-in: 0f366bf725 user: Chad Miller tags: trunk
13:42
A pair with ConvertTo-CliXml — this version closes and disposes the string reader handle. Now works in PowerShell 3 and 4 as well. check-in: eb1a0a62eb user: Poshoholic tags: trunk
13:42
Export-CliXml and Import-CliXml only work with files. This is an implementation for sending CliXML directly to the pipeline. Requires PowerShell 2+ (now works in 3.0 and 4.0) check-in: 067c93a183 user: Poshoholic tags: trunk
13:42
quick way to do processes a ton of jobs, for example ping 100 boxes at once check-in: 8a6e1b3f96 user: Justin tags: trunk
13:42
quick way to do processes a ton of jobs, for example ping 100 boxes at once check-in: ab07c8336f user: Justin tags: trunk
13:42
Standalone script adapted from SQL Server Powershell Extensions (sqlpsx) http://sqlpsx.codeplex.com. Defines SQL Server backup and restore functions. check-in: 646e152f6a user: Chad Miller tags: trunk
13:42
Fixed and redesigned check-in: 26b89759ba user: greg zakharov tags: trunk
13:42
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes check-in: 81278e5da5 user: Lee Holmes tags: trunk
13:42
Just concept of PowerShell GUI quick guide. Consists from cmdlets help info and ‘about’ pages. Please, report about bugs. check-in: dc0ae62510 user: greg zakharov tags: trunk
13:42
Actually, Start-Process cmdlet with -Verb RunAs can help you run process with admin’s rights, but… I do not like this cmdlet. I wanna something useable, so I wrote a prototype of something that looks like runas in cmd (or sudo in bash). check-in: 7ea16fa99b user: greg zakharov tags: trunk
13:42
Another password generating function. This one will always include all the character types you want, and the password will always be random. check-in: afd0191020 user: DollarUnderscore tags: trunk
13:42
Returns a shuffled / randomised / randomized version of an input string check-in: dec79bbf82 user: David Johnson tags: trunk
13:42
Let me know about bugs. Oh! and follow me on twitter @gregzakharov=) check-in: 6bf5e59eeb user: greg zakharov tags: trunk
13:42
This demo looks for files in PATH variable (extensions are from PATHEXT) and presents path for a file in two ways: full path (which mode) and only path for a file (where mode). For example, enter in TextBox field something like ‘notepad’ and click ‘Search’. check-in: d03f051cb9 user: greg zakharov tags: trunk
13:42
Active Directory, bulk create OU’s with defined sub OU’s check-in: fde08b15d5 user: chriskenis tags: trunk
13:42
Uses QAD cmdlets to retrieve distribution list restriction attributes and then provides a list of users which can send email messages to the group. check-in: 945636365c user: Dmitry Sotnikov tags: trunk
13:42
Prints calendar for specified month of year. Please, let me know about bugs. check-in: 23e3aba465 user: greg zakharov tags: trunk
13:42
Not for regular use, this is just a demo with using COM object to check new letters on gmail. check-in: 04b6a9a2ad user: greg zakharov tags: trunk
13:42
a configuration management script for when changes occur to a vmware view environment. Change the color codes to suit your needs. check-in: e6f4ae5746 user: Lubinski tags: trunk
13:42
Uses netsh command to get all the computer’s wifi profiles (including clear text passwords) check-in: f6d0e7360a user: CrazyDave tags: trunk
13:42
Resolves aliases and parameter shortcuts in scripts to make them more portable. check-in: 655f372d04 user: Joel Bennett tags: trunk
13:42
This code will cleanup local profiles on a server/computer. It needs admin-rights to run. check-in: aad7ad9ebc user: DollarUnderscore tags: trunk
13:42
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: 7ed6cf7dff user: chris seiter tags: trunk
13:42
UNIX which and whatis tools analog. check-in: dc05543776 user: greg zakharov tags: trunk
13:42
Sets properties for a given user local username. check-in: 406033ff6b user: Andy Arismendi tags: trunk