-
< # .SYNOPSIS This script sets options on a SQL Server using SMO .DESCRIPTION This script first loads the SQL cmdlet and provider snapin and displays information about the SQL Server. The script then sets ...
-
< # .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 demonstrates the Assembly.GetType method. .DESCRIPTION This script creates an int32, then calls into .NET to find the assembly that the int32 class comes from. The assembly ...
-
< # .SYNOPSIS This script uses the Speech API to say "Hello World" .DESCRIPTION This script first loads the Speech API, then creates a SpeechSynthesiser object. It uses this object's Speak...
-
< # .SYNOPSIS This script displays the installed Speech Synthesiser voices .DESCRIPTION This script first loads the System.Speech DLL, then creates a new SpeechSynthesizer object. It uses this ...
-
< # .SYNOPSIS This script adds an attribute to an XML node .DESCRIPTION This script creates a simple XML document and sets an attribute on a node. The script displays the before and after results, and ...
-
Technorati Tags: PowerShell , Code , Script , System.XML.XMLDocument , RemoveAttribute < # .SYNOPSIS This script removes an an attribute from an XML element. .DESCRIPTION This script creates an XML document, then removes an ...
-
< # .SYNOPSIS This script retrieves an attribute from an XML Element .DESCRIPTION This script first creates an in -memory XML document, then used the HasAttribute and GetAttribute to retrieve an attribute...
-
Just when you think we’ve seen all that the (awesome) PowerShell community can do, along comes another cool development. The latest coolness comes from Oisin Grehan in the form of a PowerShell Script provider. This is a tool, which you can download from...
-
In some enterprise environments, signing PowerShell scripts and setting an execution policy to only run signed scripts is a useful control mechanism. It can avoid less skilled admins ‘fixing’ a script almost correctly and can avoid untested scripts from...
-
< # .SYNOPSIS This script implements an MSDN sample in PowerShell .DESCRIPTION This script uses the String Replace method to replace all occurances of one char in a string to another. .NOTES ...
-
< # .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 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 demonstrates the constructors for system.net.mail.mailaddress .DESCRIPTION This script uses the three constructors for new objects of the type system.net.mail.mailaddress using PowerShell...