PoshCode Archive  Timeline

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

33 check-ins using file Set-Computername.ps1 version d0341e067b

2018-06-10
12:58
Performs the functional equivalent of a Hyper-V Quick Migration by suspending a VM, moving it to a new host, and resuming it. This does not require vMotion licensing. It works by providing required VM objects via the pipeline or the second argument, and specifying the Destination host in the first argument, so you can use whatever query you want to build a list of VM’s to send to the command. check-in: 60e2abf045 user: Justin Grote tags: trunk
12:58
###ESXi Configuration Backup Script check-in: df12ee4ebc user: jgrote tags: trunk
12:58
Convert and import from delimited text files. Includes two functions: Convert-Delimiter and Import-Delimited. check-in: c349628477 user: Joel Bennett tags: trunk
12:58
Connects with VMRC to an ESX Farm. Now with option to allow multiple connections to one vm check-in: fbe9c4b6dc user: Patrick tags: trunk
12:58
Execute methods on vimService ESXi w/o using VMware assemblies. check-in: e20cc35e97 user: waldo tags: trunk
12:58
Execute methods on vimService ESXi w/o using VMware assemblies. check-in: ae7f443bfd user: unknown tags: trunk
12:58
Interface with vimService on ESXi. check-in: 77d3a9493c user: waldo tags: trunk
12:58
Set-PSObjectDefaultProperties sets the default properties for a PSObject. This is for PowerShell V2 to work around a bug with V2. check-in: 4064869c88 user: unknown tags: trunk
12:58
Interface with vimService on ESXi. check-in: 9793b28be2 user: unknown tags: trunk
12:58
Script which creates a new Mail Enabled user with the Email address Policy disabled and a SINGLE custom email address attached to the account. Designed for new Powershell users. check-in: 81efb22da0 user: Sean Kearney tags: trunk
12:58
Given a user and a vSphere object, this code determins the specific privileges that user has on that object (a.k.a. the resultant privilege set). check-in: ad5c68e565 user: Carter Shanklin tags: trunk
12:58
Description: State Changes for specified OpsMgr Monitor check-in: d1fb72768c user: Stefan Stranger tags: trunk
12:58
Create a VIAccount object suitable for use with New-VIPermission, Get-VIPermission, etc. from PowerCLI. check-in: 6b5760f6c3 user: unknown tags: trunk
12:58
Whois Lookup information returning an OBJECT!!! save as Whois.ps1 and run at your leisure check-in: d5a74f6fa9 user: CrazyDave tags: trunk
12:57
Version 1.0 of my JSON module. I has 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: 4442b13859 user: Joel Bennett tags: trunk
12:57
Json.psm1 is a first draft of a JSON module. I has a full set of tools for exporting, importing, and converting Json objects. For instance, this actually works (it round trips a bunch of FileInfo objects through JSON, XML, JSON, and back to objects). check-in: bff9f881af user: Joel Bennett tags: trunk
12:57
Multiple string parameters check-in: dff0576eb7 user: unknown tags: trunk
12:57
Requires Powershell 2.0 & the grouppolicy module. check-in: ac47575b41 user: Clint tags: trunk
12:57
Are you sick and tired of switching the VMWare virtual network adapters from the public network profile to a private network profile each time you reboot or do something else that causes Vista/Win2008 to forget what you told it to do ten minutes ago? check-in: 37c9fcd97f user: Oisin Grehan tags: trunk
12:57
Improves over the built-in Select-XML by leveraging Remove-XmlNamespace to provide a -RemoveNamespace parameter — if it’s supplied, all of the namespace declarations and prefixes are removed from all XML nodes (by an XSL transform) before searching. Note that this means that the returned results will not have namespaces in them, even if the input XML did. check-in: 9e5cba0353 user: Joel Bennett tags: trunk
12:57
Improves over the built-in Select-XML by leveraging Remove-XmlNamespace to provide a -RemoveNamespace parameter — if it’s supplied, all of the namespace declarations and prefixes are removed from all XML nodes (by an XSL transform) before searching. Note that this means that the returned results will not have namespaces in them, even if the input XML did. check-in: 92a2b55fc2 user: Joel Bennett tags: trunk
12:57
This script can be run on a secondary Network Policy Server and will mirror the configuration from the specified Primary Server, simplifying the management of a redundant or distributed configuration. This script is designed to run as a Scheduled task. check-in: 48216cfe1d user: JGrote tags: trunk
12:57
Start-Transcript and Stop-Transcript will start and stop a file-based transcription log. However, there is no way to tell (afaik) if the current host is actually transcribing. Test-Transcribing will return $true if we are transcribing, $false if not. check-in: c666376488 user: Oisin Grehan tags: trunk
12:57
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: 10f28130cc user: Joel Bennett tags: trunk
12:57
This code determines the IP address of a virtual ESXi VM in what might just be the dumbest way possible, namely by taking a screenshot of it, OCRing the results and extracting the IP. For educational purposes only. Unfortunately it’s pretty slow due to some cmdlet slowness. Requires PowerCLI 4.0 U1, PowerShell v2, and Microsoft Office Document Imaging (MODI) to be installed and configured. check-in: 2d8a1c1ea9 user: unknown tags: trunk
12:57
Windows PowerShell script to map a network printer based on Active Directory group membership. check-in: 1f149bbe35 user: Jan Egil Ring tags: trunk
12:57
Removes namespace definitions and prefixes from xml documents check-in: a4896b4e56 user: Joel Bennett tags: trunk
12:57
A Powershell Script meant for a novice to understand how to work with Variables. I use it daily. Creates a user via Exchange 2007 and automatically populates the email address by defined policy. Using supplied scriptlets (referenced in PS1 file) it also populates the Users’ info in OCS 2007 R2 standard as well as populates all fields in A/D with pertinent info. It also sets up the Display name in a Lastname, Firstname format and creates the users home folder with permissions allocated to the user only. The only information it requests is Firstname, Lastname and Password. It is easy to modify to make it a bulk user setup. Thank you Jeffrey Snover and Microsoft for Powershell! The Manna to Administrators Everywhere check-in: fbebc90452 user: Sean Kearney tags: trunk
12:57
A quick demonstration of using the MapPoint (aka Bing Maps?) web services to get addresses from Lat,Long pairs and vice-versa. Requires you to sign up for (at least) the free developer account in order to use the API. check-in: c064e6c645 user: Joel Bennett tags: trunk
12:57
Create a Sharepoint 2010 farm check-in: 0a395a57e0 user: Jos Verlinde tags: trunk
12:57
Replaces Get-Credential, with options to set the dialog title and message, as well as defaulting the domain and username, and offering the option to prompt in-line in the console, and to get generic (non-domain) credentials (without a leading “\”). Better in every way than the built-in Get-Credential ;) check-in: 3aa21446ed user: Joel Bennett tags: trunk
12:57
Function to list all clients in a Microsoft DHCP server database. The script Uses P/Invoke function signatures, structs & ports the DhcpEnumSubnetClients() C# code example to PowerShell from PInvoke.net. There is no other (nice!) way to get this information in an object form, other than scraping the output from netsh.exe. check-in: 2097d45839 user: christian bellee tags: trunk
12:57
A function to rename a computer check-in: b4320efb30 user: Gerald Klassen tags: trunk