header image

Archive for June, 2011

Combining Output from Multiple Sources Webcast: Combining Output from Multiple Sources REGISTER NOW July 6, 2011, 12pm CST Presented by: Don Jones Learn how easy-to-make custom objects not only let you combine output from multiple sources, but also allow you to create calculated properties and columns, customize output formatting, and easily send your output to […]

under: PowerShellV2

My codeplex project publishing PowerShell Admin Modules (PAM) is discussed in this post http://blogs.technet.com/b/heyscriptingguy/archive/2011/06/29/don-t-write-wmi-scripts-use-a-powershell-module.aspx In particular the Get-OSInfo function from the PAMSysInfo module is heavily featured

under: Modules, PowerShell and WMI

As promised on the Live Meeting the slides and scripts are now available at https://skydrive.live.com/?wa=wsignin1.0&cid=43cfa46a74cf3e96#!/?cid=43cfa46a74cf3e96&sc=documents&uc=1&id=43CFA46A74CF3E96%212924!cid=43CFA46A74CF3E96&id=43CFA46A74CF3E96%212924

under: PowerShell User Group

The UK PowerShell group will be presenting a Live Meeting – Tuesday 26 July 2011 @ 7.30pm BST Subject – PowerShell Remoting More details to follow

under: PowerShell User Group

IE history to CSV

Posted by: | June 29, 2011 | 2 Comments |

Back in April last year I wrote a post about viewing IE history http://msmvps.com/blogs/richardsiddaway/archive/2010/04/13/ie-history.aspx I had a comment left asking how this could be put into a CSV file We’ll start by turning the script into an advanced function that outputs an object function get-iehistory { [CmdletBinding()] param () $shell = New-Object -ComObject Shell.Application $hist […]

under: COM, PowerShellV2

We saw how to create an AD security group here http://msmvps.com/blogs/richardsiddaway/archive/2011/06/28/creating-ad-security-groups.aspx   This is how we can give a user full control of that group function set-groupsecurity { [CmdletBinding()] param ( [string]$name ) $dom = [System.DirectoryServices.ActiveDirectory.Domain]::GetCurrentDomain() $root = $dom.GetDirectoryEntry() $search = [System.DirectoryServices.DirectorySearcher]$root $search.Filter = "(&(objectclass=group)(Name=$name))" $search.SizeLimit = 3000 $result = $search.FindOne() $object = $result.GetDirectoryEntry() $sec […]

under: Active Directory, PowerShell and Active Directory

The rescheduled UG session (via Live Meeting) on using Office products with PowerShell is tomorrow. Details from http://msmvps.com/blogs/richardsiddaway/archive/2011/06/21/rescheduled-ug-meeting.aspx

under: Office 2010, PowerShell User Group

Network Connection Ids

Posted by: | June 29, 2011 | No Comment |

Yesterday I was looking at changing a Network connection id (the name that shows in Network and Sharing Center when you look at the adapters). I kept getting an error – either COM or number of arguments depending if I was running locally or remotely. I eventually realised that I must be using a connection […]

under: PowerShell and WMI, Windows 7, Windows Server 2008 R2

Do you know which accounts are used to start the services running on your machines? if you need this information try: Get-WmiObject -Class Win32_Service | select Name, DisplayName, StartName For a remote machine this becomes Get-WmiObject -Class Win32_Service -ComputerName Win7 | select Name, DisplayName, StartName And for testing which services are started by a specific […]

under: PowerShell and WMI, PowerShell Basics

Continuing my AD excursion for a while. I saw a forum post about creating AD groups and came up with this function function new-securitygroup { [CmdletBinding()] param ( [string]$name, [string]$ou, [parameter(ParameterSetName="U")] [switch]$universal, [parameter(ParameterSetName="G")] [switch]$global, [parameter(ParameterSetName="DL")] [switch]$domainlocal ) $rootdse = [ADSI]"" $adpath = "$ou,$($rootdse.distinguishedName)" Write-Debug $adpath # set constants for group types $globalgroup = 0x00000002 $domainlocalgroup […]

under: Active Directory, PowerShell and Active Directory

Older Posts »