Quantcast
Channel: ::::::::: PowerShell :::::::::
Browsing index pages (25 articles)

Installing PowerShell with Unattended Windows CD

Here are some steps to include Windows PowerShell(for English Version of Windows XP w/ SP2) in an unattended Windows CD.First,I have copied Windows CD content to "C:\xpcd"Windows PowerShell...

View Article


Image may be NSFW.
Clik here to view.

While Creating a Simple EventLog PsProvider -Part 2

I was finally able to add EntryType dynamic parameter to Get-ChildItemBeen slacking off lately and finally made some time to extend Get-ChildItem cmdlet in EventLog provider.Now, in the following...

View Article


Image may be NSFW.
Clik here to view.

While Creating a Simple EventLog PsProvider (in C#)

 When PowerShell was still called Monad, there was a PDC05 Hands-On Lab document available with Monad distribution.  The document was about "Creating Monad Providers" for Access database.I have started...

View Article

Add-Member: Extended Example

Add-Member cmdlet provides a way to "Add(s) a user-defined custom member to an object"There are 3 examples on get-help add-member help file but they do not seem to quite reflect the real power of this...

View Article

Image may be NSFW.
Clik here to view.

Back up SQL Server database with SQL Server Objects(SMO) using PowerShell

It is easy to set up SQL Server Agent jobs to backup database in timely fashion.But why not in PowerShell while SMO is exposed in .NET assembly?Usage:Backup-Database -dbName [string] -deviceNames...

View Article


Re-inventing the wheel for fun.

I was going through Community-Submitted Scripts Center on Microsoft TechNet and came across a script named, "BackupFiles.ps1" by Greg Lyon.The script is functional and works.But I didn't like the fact...

View Article

Windows Desktop Search Powershell Cmdlet by Sean McLeod

Great stuff!A cmdlet, Get-WDS (in SnapIn) that searches WDS(Windows Desktop Search) indexes is born...Mr. Sean McLeod(the author) Newsgroup post on microsoft.public.windows.PowerShell can be found...

View Article

Extending TabExpansion function Part 3

EDIT*: According to /\/\o\/\/'s advice(refer to comment's section), i have modified the previous source to use Get-Help instead of Get-ChildItem to retrieve available about_ help file names. (BTW, i...

View Article


Domain Names

EDIT*: great, both domains are working properly~Uhm, Just bought two domain names.Here is how I will forward my new domains.PsObject.com: to this current blog...

View Article


Getting Services associated with a Process via PowerShell (.NET Type Extension)

On a recent Microsoft.Public.Windows.PowerShell NG (Newsgroup) posts, Andrew Watt has asked for an "Equivalent [cmdlet] for tasklist /svc".Luckily, Abhishek has posted a blog entry concerning that very...

View Article

Image may be NSFW.
Clik here to view.

"Prompt" function

EDIT2*:Well, That weird out-of-order registration of commands in history is not so funky any more after reading Bruce Payette's post on Microsoft.Public.Windows.PowerShell NG..."Command that's creating...

View Article

Extending TabExpansion function Part 2

EDIT2*:Pastebin.com site's been down for a while so pasted the colorized source on the bottom...EDIT*: Modified the source a bit but no functional changes madeSimply changed name of Script...

View Article

Image may be NSFW.
Clik here to view.

Extending TabExpansion function

EDIT:* Changed "new" to "New-Object"(Thanks Martin and Mow) in the source on PasteBin.com and jEdit IDE comments, "#{{{", "#}}}" are gone.Moreover, there is a little bit of change on Mow's tab...

View Article


PowerShell Del.icio.us bookmarks

I was fed up with all the favoriates I have about PowerShell links and decided to put'em all on my Windows Live Favoriates site but I had some difficulties managing/adding contents to the site.I just...

View Article

PowerShell RC1 Updates

Because of some issues discovered, PowerShell team has released an updated version of PowerShell RC1.The links to download sites can be found on the Windows PowerShell blog home pageTags :...

View Article


Option Explicit, I mean "Strict" switch...

I have been waiting for this feature for quite a while.Setting Visual Basic's "Option Explict" statement like switch in PowerShell.The Magic Word is..Set-PSDebug -StrictUpon executing the command,...

View Article

[MSH] Extending System.Security.SecureString

I was reading Monad Technology Blog about Base64 Encode/Decode a string, which deals with extending a .NET object System.String to include script properties (which you can also add in an interactive...

View Article


[MSH] How to change a Process's Priority

There are a lot of posts about how to get processes' name and priorities but I haven't been able to find ways to change a process's priority easily.Suppose that you are (un)zipping a large file and...

View Article

[MSH] display and extract zip contents

In the previous post, I have talked about how to display zip contents of a file.I have realized that ,while writing extraction script(out-ZipContent), it'd be better to convert the script into a snapin...

View Article

[MSH] Displaying Zip File contents

Let's have some fun with zip files.I have searched through MSDN document on whether .NET library but could not findddany C#/VB.net library that deals with Zip file content.I have been googling around...

View Article
Browsing index pages (25 articles)


Latest Images