<# .Synopsis Creates a function to set PowerShell as GUI in Server 2012 .DESCRIPTION The function in this script sets PowerShell as the default shell in Server 2012. When the server is rebooted, ...
Posted to
Thomas Lee's PowerShell Scripts
by
PowerShell Scripts Blog
on
10-03-2012
Filed under:
Filed under: PowerShell Scripts, PowerShell, PowerShell V2, Server2012, Server 2012, Server Core, ServerCore, PowerShell V3, PowerShell as Server Core Shell, Shell, Server
In my PowerShell training, I spend time examining modules and how you can use them to manage code and avoid profile bloat. In the (forgive the pun) modules on modules, I do lots of demos where being able to quickly set your location to the personal or system modules folder is useful. One simple way I...
< # .SYNOPSIS This script displays all the namespaces withing a Windows system .DESCRIPTION This script uses Get-WMIObject to retreive the names of all the namespaces within a system. .NOTES ...
< # .SYNOPSIS This script displays details of a UmAlQura Calendar in PowerShell .DESCRIPTION This script shows the various aspects of this calendar including key properties, fields and selected methods. ...
< # .SYNOPSIS This script re-implements this MSDN Sample of multiplying a big integer. .DESCRIPTION This script first tries and fails to multiple a pair of large integers. The script...
Just over 2 years ago, I created a new blog, The PowerShell Scripts blog over at http://pshscripts.blogspot.com . The idea was simple – a blog with single function PowerShell scripts. Scripts that demonstrated one (or at least a very small number) of...
< # .SYNOPSIS This script gets and displays the description of a WMI Class. .DESCRIPTION This script takes a WMI Class name as a parameter. The script then gets the class 's description from the CIM repository...
< # .SYNOPSIS This script creates a file, then reads it and displays the output. .DESCRIPTION This script implements the MSDN sample for this page. It first creates a file (assuming the file does not already exist...
< # .SYNOPSIS This script displays service details .DESCRIPTION This script first enumerates all the service controllers (ie services) running on the local system. For each service, we look into WMI and ...
< # .SYNOPSIS This script uses XMLWriter to write an XML Element .DESCRIPTION This script creates and uses and XML writer to write an XML Element .NOTES File Name : Write...
< # .SYNOPSIS This script uses XMLWriter to write XML .DESCRIPTION This script creates and XML writer and writes some basic XML. .NOTES File Name : Write-XML.ps1 ...
< # .SYNOPSIS This script creates and starts a Process using .NET .DESCRIPTION This script Creates a process object and sets the executable to notepad. The script then starts the process...
< # .SYNOPSIS This script displays the virtual Memory assigned to Hyper-V VMs on a given host. .DESCRIPTION This script uses The Hyper-V module from Codeplex to first get all the VMs on...
< # .SYNOPSIS This script restarts the DNS Service on a Remote System .DESCRIPTION This script uses WMI to reach out and restart the DNS DNS service on a remote machine. in my home environment, ...
< # .SYNOPSIS This script creates then copies a file using System.IO.Fileinfo.CopyTo() .DESCRIPTION This script first creates a temporary file, then copies it to another file then deletes...