Archive for April, 2010

PowerGUI Pro Technical Brief

Darin posted a quick document describing the major features of the PowerGUI Pro version (which are MobileShell, script version control, and technical support) here.

He provides pretty detailed information on what each of them actually means so it should help you figure out whether you want to download the trial of the Pro version (which I obviously highly recommend) or stick to the free version (by the way, they can run side-by-side).

Download the PowerGUI Pro Technical Brief here (registration required.)

SharePoint 2010 PowerShell Cheat Sheet Updated

SharePoint 2010 PowerShell Quick Start GuideI’ve just posted version 2.0 of our quick reference for PowerShell in SharePoint 2010.

The changes include a much improved layout (kudos to Ekaterina Burmistrova and Andrey Tsarkov!), one fixed code sample, and a whole new section on SharePoint backup (contributed by Ravi.

Download the updated guide here and add your suggestions as comments on the cheat sheet page.

SharePoint PowerShell Forum

Now that SharePoint 2010 is available for download you are probably getting started with all the PowerShell goodness shipped with it, and I bet once you go beyond the first few commands you can easily get stuck with something not so obvious.

To help you get the most out of your SharePoint Server, we have set up a new discussison forum at PowerGUI.org specifically around PowerShell and SharePoint. Get all you SharePoint PowerShell questions answered here!

More Amazon S3 cmdlets and PowerPack

Folks at CloudBerry Lab have just updated their PowerShell snapin for Amazon and posted a PowerPack at PowerGUI.org.

I have blogged about S3 cmdlets before, but it looks like in the past year CloudBerry Lab has been busy adding a lot more functionality! Some of the new cmdlets are strikingly cool. 🙂

For example, Copy-CloudSyncFolders allows you to schedule synchronization between your local computer and S3.

Get-CloudUrl generates temporary protected URLs for both Amazon S3 and CloudFront. I can imagine using this cmdlet to bulk-produce temporary links for your website or set of resources.

You can find full info about the snapin here.

But wait, there is more! They have also created a PowerPack for PowerGUI!

Looks like so far the PowerPack is mostly limited to browsing S3 but you can obviously use CloudBerry’s cmdlets to add more actions or submit your feedback/requests by posting comments to the PowerPack’s page.

Read more about the PowerPack here, download it here.

Import file to change group membership

Say, you get a list of groups and users which need to be in them, how do you quickly add the users to the groups?

For example, Andriy had to import group membership from files like:
Orgname Username
OP-420-HO-S-00 net1111
RB-430-AD-A-12 net2222
AC-200-RL-B-10 net1234

In which Orgname is indeed the name of the group.

In such cases, Import-CSV and Add-QADGroupMember are your friends. Just don’t forget to properly specif the column numbers and the delimiter used in the files you get:

Import-Csv C:\list.csv -Delimiter ' ' | 
 ForEach-Object {
  Add-QADGroupMember -Identity $_.Orgname -Member $_.Username 
 }

SharePoint 2010 PowerShell Cheat Sheet

I’ve just posted a quick reference card / getting started manual on PowerShell for SharePoint 2010.

If you are managing SharePoint 2010 and want to quickly get started with PowerShell – this should be a good document to print out and pin to the wall of your office / cubicle.

It covers all the major topic from installation and required permissions, to setting up remote connections to the SharePoint servers, managing site collections, sites, lists, documents, jobs, workflows, Recycle Bin, and so on. We have even included troubleshooting tips for the main gotchas you can experience!

Huge thanks to Konstantin Vlasenko, Mike Plavsky, and Ravikanth Chaganti for contributing to the manual.

Download the SharePoint 2010 PowerShell Cheat Sheet and post your feedback so we can make it even better!

PowerPack for VHD/VDI/VMDK Inventory

If you like myself have a bunch of virtual machine on your laptop you are going to love the Virtual Disk Inventory PowerPack which Kenneth Bell has just posted.

The pack quickly gives you a list of the VHD, VDI, and VMDK files you have on the computer, and for each machine provides information on the computer name and operating system:

Now if only this was integrated with the VMware and Hyper-V PowerPacks, as well as Virtu-Al’s masterpiece so I could actually start the machines and perform other actions with them… Anyone? 😉

Get Enabled or Disabled Computer Accounts

Here’s a quick workaround for the lack of -Enabled switch for Get-QADComputer. Unlike Get-QADUser it does not currently have the switch, however, so these two oneliners will come handy should you want to efficiently filter computers by their enabled/disabled status:

# Only disabled computer accounts
Get-QADComputer -ldapFilter (userAccountControl:1.2.840.113556.1.4.803:=2)

# Only enabled computer accounts
Get-QADComputer -ldapFilter (!(userAccountControl:1.2.840.113556.1.4.803:=2))

Subversion (SVN) Source-Control for PowerShell Scripts

I’ve already blogged about the use of PowerGUI Pro Script Editor with Team Foundation Server (TFS), now it’s time to check out integration with another popular source control solution – Subversion.

As with any other revision control system, to integrate PowerGUI needs you to install an MSSCCI provider for the system (this is the API which Microsoft Visual Studio is using). For Subversion there is a bunch of clients available – so use whichever you like as long as MSSCCI is one of its features.

For this post I used TamTam SVN SCC. It seems to be a great client however you would need to pay the author $14.99 unless you enjoy seeing their “Buy now” prompts every few minutes. 😉

(If you really want to save the $14.99 there is also a free SCC client for Subversion: TortoiseSVN – however, you would have to spend a few minutes to make it work because the SCC provider is only supported by a fairly old version of the client – 1.3.5. If you want to go that route, download version 1.3.5 of the client here, and install it along with the TortoiseSVNSCC provider found in Documents & Files section here. You might also have to apply some registry keys on Vista and later.)

Anyway, I went the easy way:

1. Downloaded and installed Subversion v1.4.3 and TamTam SVN SCC .

2. In PowerGUI Pro Script Editor, went to Tools / Options / Version Control, selected TamTam as the Current provider and browsed to the svn.exe file.

3. Now I can add files to Subversion, check out, check in, and so on by using the Version Control menu in the editor:

Password properties for AD accounts

Get-QADUser username | Format-List *Password* – provides a handy list of password properties for an Active Directory user account including the age and expiration date.

Here’s what I got for one of the accounts in my domain:

Get-QADUser username | Format-List *Password*

PasswordLastSet : 2/5/2010 7:31:16 PM
PasswordAge : 60.21:51:12.2086957
PasswordExpires : 5/6/2010 7:31:16 PM
PasswordNeverExpires : False
UserMustChangePassword : False
PasswordIsExpired : False
PasswordStatus : Expires at: Thursday, May 06, 2010

This can obviously used across multiple accounts to create handy reports, let users know in advance that their passwords are about to expire, and so on.


My Recent Tweets

Legal

The posts on this blog are provided “as is” with no warranties and confer no rights. The opinions expressed on this site are mine and mine alone, and do not necessarily represent those of my employer - WSO2 or anyone else for that matter. All trademarks acknowledged.

© 2007-2014 Dmitry Sotnikov

April 2010
M T W T F S S
 1234
567891011
12131415161718
19202122232425
2627282930  

%d bloggers like this: