Display: Cloud | List
Most Popular Tags
Results (38 total) All > com (x)
<#.SYNOPSIS This script displays a message box and then processes it .DESCRIPTION This script firsts creates a wscript.shell object and invokes the popup method to display a message. The script then processes the response to the geroup (timeout, yes, no)..NOTES File Name : Show-MessageBox.ps1 Author : Thomas Lee - tfl@psp.co.uk Requires : PowerShell Version 2.0.LINK
Last modified by Thomas Lee on 12/30/2011 3:38:43 PM
Opening a word document using PowerShell (Application Object [Word 2007 Developer Reference])
<#.SYNOPSIS This script opens a word document using PowerShell.DESCRIPTION This script re-implments a simple MSDN script to open a word document using VBA. IT Pros using PowerShell might also make use of to create rich documents as output from a script..NOTES File Name : Open-WordDocument.ps1 Author : Thomas Lee - tfl@psp.co.uk Requires : PowerShell Version 2.0.LI
Last modified by Thomas Lee on 11/9/2011 6:25:29 PM
Ribbon Extensibility (Welcome to the OneNote 2010 Developer Reference)
To create a OneNote Add-In that 'lives' in the ribbon:Create a class library that is visible, and registered for COM InteropCreate a ribbon xml file with the customizationsImplement IDTExtensibility2 and IRibbonExtensibility. Fill the method stubs (e.g. GetCustomUI, etc.)Create a setup project with the required registry changesMore information: http://www.malteahrens.com/blog/howto-onenote-dev/
Last modified by Malte Ahrens on 1/28/2011 7:43:46 AM
Non-64 bit COM Servers (Troubleshooting Exceptions: System.Runtime.InteropServices.COMException)
The specific COM exception that arises from HRESULT 0x80040154 (Class not registered) can occur when a .NET application running on a 64-bit platform attempts to create an instance of a COM coclass that is not 64-bits. Here is an example in C# : Object newObj = Activator.CreateInstance(Type.GetTypeFromProgID("MyCOMServer.MyCOMClass")); If the COM server (that houses the COM coclass with
Last modified by Tailor on 1/19/2012 6:04:02 AM
SAFEARRAYs for COM Interop (Default Marshaling for Arrays)
1. If one directly references a COM type library for a .NET (C# say) project, the Visual Studio IDE internally uses tlbimp.exe (the type library importer) to import the COM Type Library and create an Interop Assembly for it.1.1 The crucial point is that the IDE will use the tlbimp /sysarray option.1.2 This means that every SAFEARRAY is converted to a .NET System.Array type.2. If the .NET System.Ar
Last modified by Lim Bio Liong on 9/26/2010 6:07:21 AM
Tags:  com  interop  safearray
Time Trigger Sample - Using PowerShell (Time Trigger Example (Scripting) (Windows))
<#.SYNOPSIS This script creates a scheduled task object..DESCRIPTION This script reimplements an MSDN sample using PowerShelll.NOTES File Name : New-Task.ps1 Author : Thomas Lee - tfl@psp.co.uk Requires : PowerShell Version 2.0.LINK This script posted to: http://www.pshscripts.blogspot.com MSDN sample posted tot: http://msdn.microsoft.com/en-us/library/
Last modified by Thomas Lee on 9/24/2010 11:49:58 AM
Instantiate object in PowerShell (IX509EnrollmentPolicyServer interface (Windows))
$CEP = New-Object -ComObject X509enrollment.CX509EnrollmentPolicyWebService
Last modified by Thomas Lee on 5/2/2010 7:10:08 PM
Tags:  code  com  contentbug  powershell
Can find. (Visual Studio Samples)
"Ironic." "You keep using that word. I do not think it means what you think it means."The samples are here...http://code.msdn.microsoft.com/csharpsamples-Thomas
Last modified by Hemit on 4/15/2010 8:56:37 AM
Tags:  com  port  samples
Sample Using PowerShell (Verifying Windows Firewall is Enabled (Windows))
<#.SYNOPSIS This script gets the status of the host firewall and ensures the firewall IS running!.DESCRIPTION This script gets the status and displays it to the console. The script also turns on the firewall if it's currently off. It's a simpler script than in MSDN for VBScript!.NOTES File Name : Get-FirewallStatus.ps1 Author : Thomas Lee - tfl@psp.co.uk Requires : Powe
Last modified by markspansel on 3/6/2011 6:04:22 PM
Sample Using PowerShell (Adding an Application (Windows))
<#.SYNOPSIS This script adds a program to the firewall..DESCRIPTION This script used the firewall com object to add a new application to the firewall. .NOTES File Name : Add-FirewallApplication.ps1 Author : Thomas Lee - tfl@psp.co.uk Requires : PowerShell Version 2.0.LINK This script posted to: http://www.pshscripts.blogspot.com MSDN Sample posted at
Last modified by Thomas Lee on 3/21/2010 3:01:27 PM
Page view tracker