Monthly Archives: March 2008

Office offline

If you are looking for something to brighten part of your day – try http://blogs.msdn.com/officeoffline/default.aspx Some very amusing comments.  I particularly like this one http://blogs.msdn.com/officeoffline/archive/2008/03/25/a-modified-turing-test.aspx   Share this post :

Posted in IT Community | Leave a comment

Database Connection strings

When connecting to a database you need a connection string to use in your script.  I’ve documented SQL Server connection strings in previous posts but for other databases that I don’t know so well I look to http://www.connectionstrings.com/ for the … Continue reading

Posted in Powershell | Leave a comment

PowerShell books

On this post – http://blogs.msdn.com/powershell/archive/2008/03/27/tower-of-power-part-2.aspx – you can see most of the PowerShell books that are available.  A Frequent Question I get asked is what PowerShell books should I get. These are the ones I use the most at the … Continue reading

Posted in Powershell | 2 Comments

UserAccountControl

A recent discussion on the PowerShell newsgroup lead to Brandon Shell producing this script http://bsonposh.com/modules/wordpress/?p=102 for unravelling the meaning of the UserAccountControl attribute within Active Directory accounts. Well worth a look if you are working with Active Directory   Share … Continue reading

Posted in PowerShell and Active Directory | Leave a comment

NetCmdlets v2

/n software has released a beta of V2 of their NetCmdlets.  V2 includes their PowerShell remoting offering over SSH, Rexec or rshell.  Other goodies include access to Amazon S3 storage and retrieval; SNMP, TCP/IP utilities such as ping and traceroute … Continue reading

Posted in Powershell | Leave a comment

Start and End of week

Couple of ideas for finding the beginning and end of the week Start of week $s = get-date -hour 0 -minute 0 -second 0$s.AddDays(-($s).DayOfWeek.value__) End of week $e = get-date -hour 23 -minute 59 -second 59$e.AddDays(7-($s).DayOfWeek.value__) To find the start … Continue reading

Posted in Powershell | 2 Comments

UK IT Pro Community days

The UK IT Pro User Groups will be running two Community Days in April at the Microsoft offices in Reading. Agenda and registration can be found here – http://www.ukusergroups.co.uk/   Share this post :

Posted in IT Community | Leave a comment

Write-Progress

One cmdlet that I don’t see used very much is Write-Progress.  It is used to display a progress bar near the top of the PowerShell window.  It is surprisingly easy to use Write-Progress -Activity "Populating spreadsheet" -Status "Pecentage complete" -PercentComplete … Continue reading

Posted in Powershell | Leave a comment

Hash tables revisited

Browsing the script center I came across a number of articles dealing with VBScript Dictionary objects.  In PowerShell the analagous functionality is provided by a hash table.  The same examples in PowerShell are given below. Add elements to a hash … Continue reading

Posted in Powershell | Leave a comment

User Group March meeting

The techno-gremlins attacked again last night – causing audio to keep muting on Live Meeting.  Apologies for that to everyone who linked into the meeting. We had  very good presentations from Magnus of Special Operations Software on how their products … Continue reading

Posted in PowerShell User Group | 3 Comments