Category Archives: Windows 7

Transferring modules from Windows 8 or 8.1 to Windows 7

Windows 7 shipped with PowerShell 2.0 installed.  Windows 8 brought PowerShell 3.0 and Windows 8.1 brings PowerShell 4.0. Windows 8 and 8.1 also have a lot of modules installed. This extra functionality widens PowerShell reach immensely – the networking modules … Continue reading

Posted in CDXML, CIM, PowerShell and WMI, PowerShell V3, PowerShell v4, Windows 7, Windows 8, Windows 8.1 | Leave a comment

PowerShell v3 installed modules

This is the list of installed modules in PowerShell v3 on Windows 8 AppLockerAppxBitLockerBitsTransferBranchCacheCimCmdletsDirectAccessClientComponentsDismDnsClientInternationaliSCSIISEKdsMicrosoft.PowerShell.DiagnosticsMicrosoft.PowerShell.HostMicrosoft.PowerShell.ManagementMicrosoft.PowerShell.SecurityMicrosoft.PowerShell.UtilityMicrosoft.WSMan.ManagementMMAgentMsDtcNetAdapterNetConnectionNetLbfoNetQosNetSecurityNetSwitchTeamNetTCPIPNetworkConnectivityStatusNetworkTransitionPKIPrintManagementPSDiagnosticsPSScheduledJobPSWorkflowPSWorkflowUtilityScheduledTasksSecureBootSmbShareSmbWitnessStorageTroubleshootingPackTrustedPlatformModuleVpnClientWdacWebAdministrationWindowsDeveloperLicenseWindowsErrorReporting This is the corresponding list on PowerShell v3 installed on Windows 7 AppLockerBitsTransferCimCmdletsISEMicrosoft.PowerShell.DiagnosticsMicrosoft.PowerShell.HostMicrosoft.PowerShell.ManagementMicrosoft.PowerShell.SecurityMicrosoft.PowerShell.UtilityMicrosoft.WSMan.ManagementPSDiagnosticsPSScheduledJobPSWorkflowPSWorkflowUtilityTroubleshootingPack As you can see there is quite a difference! All of the Windows … Continue reading

Posted in PowerShell V3, Windows 7, Windows 8 | 3 Comments

PowerShell 3 and Word

  This is a common scenario $word = New-Object -ComObject “Word.application” $word.visible = $true $doc = $word.Documents.Add() $doc.Activate() $word.Selection.Font.Name = “Cambria” $word.Selection.Font.Size = “20” $word.Selection.TypeText(“PowerShell”) $word.Selection.TypeParagraph() $word.Selection.Font.Name = “Calibri” $word.Selection.Font.Size = “12” $word.Selection.TypeText(“The best scripting language in the world!”) $word.Selection.TypeParagraph() … Continue reading

Posted in Office 2010, Office 2013, PowerShell V3, Windows 7, Windows 8 | 8 Comments

Remoting between PowerShell v3 CTP 2 and PowerShell v2

One of the questions on tonight’s Live Meeting concerned the compatibility between remoting on PowerShell v2 and PowerShell v3 CTP 2 The difference is that v3 uses a WSMAN 3.0 stack but v2 uses 2.0 I used two machines: Windows … Continue reading

Posted in PowerShell V2, PowerShell V3, Windows 7, Windows Server 2008 R2 | 6 Comments

Outlook: deleting mail items

As promised here is the function to delete mail items in a specific folder function remove-mailitem { [CmdletBinding(SupportsShouldProcess=$true)] param ( [parameter(Mandatory=$true)] [string]$mailfolder, [datetime]$start, [datetime]$finish ) if ($start -and $finish){ if ($start -ge $finish){Throw “Finish $($finish) before Start $($start)”} } $outlook … Continue reading

Posted in Office 2010, Outlook, PowerShell V2, Windows 7 | 1 Comment

Outlook: Viewing mail items

Continuing our perambulation around Outlook when used with multiple hotmail accounts its time to look at the other folders and the mail items they contain. This post will show how to view the mail items and a future post will … Continue reading

Posted in Office 2010, Outlook, PowerShell V2, Windows 7 | Leave a comment

Clearing junk mail

Getting back to looking at working with Outlook we can adapt the function used to deleted the contents of the Deleted Items folder to work with the Junk mail folders function clear-junkmail { $outlook = New-Object -ComObject Outlook.Application get-mailitemcount -junk … Continue reading

Posted in Office 2010, Outlook, PowerShell V2, Windows 7 | Leave a comment

Outlook folder item count revisited

I started this series http://msmvps.com/blogs/richardsiddaway/archive/2011/07/30/outlook-connector-amp-mail-folder-item-count.aspx by looking at how we could enumerate the mail folders in Outlook 2010 when I had had four hotmail accounts open.  The function has been modified since then function get-mailitemcount { param ( [parameter(ParameterSetName=”All”)] [switch]$all, … Continue reading

Posted in Office 2010, Outlook, PowerShell V2, Windows 7 | Leave a comment

Emptying the Deleted folders–version 2

The original version of this function only did one pass at deleting and had to iterate through all of the folders to find the Deleted Items folder.  This time we use the collection of folders we created using the get-mailfolders … Continue reading

Posted in Office 2010, Outlook, PowerShell V2, Windows 7 | Leave a comment

Outlook folders

The functions we’ve seen so far have involved iterating through the whole set of Outlook folders. That’s a lot of folders (I have 4 email accounts with lost of folders). The trick is to do this just once and then … Continue reading

Posted in Office 2010, Outlook, PowerShell V2, Windows 7 | Leave a comment