Community Blogs

Browse by Tags

Related Posts

  • Announcing EmailVerify.NET v3.0

    As the company lead developer, I'm proud to announce to my readers that our award winning e-mail verification and validation component for Microsoft .NET has reached version 3.0 today! This new version includes an improved disposable e-mail address validation algorithm and built-in Windows PowerShell support. Top features: E-mail syntax verification, according to RFC 2821 and RFC 2822 MX record lookup Disposable e-mail address (DEA) validation SMTP availability check Mailbox existence check, with greylisting support Catch-all test Windows PowerShell built-in support Batch verification capabilities (for multithreaded, parallel validations) Fully configurable in every setting, including network ones EmailVerify.NET can be used, of course,...


  • PowerShell For The .NET Developer

    Some time ago I needed to have the validationKey of the machineKey element of an ASP.NET application changed and found out that ASP.NET doesn’t provide a command-line tool (or any other) to do this. Looking around I found several applications and code samples to do it, but to have a system administrator do this I needed to test and document the application and it was to much work for such task. I’ve always been a supporter of the idea of PowerShell but I never used it my self. Just because I almost always have Visual Studio open and writing a simple console application is quicker and easier than learning PowerShell. This time I decide that I would do a PowerShell script instead. In C# I would have done something like this: class Program { private...


  • Beware: Group Policy DNS Settings

    I like to keep my posts targeted at more obscure topics (at least that's my excuse for not posting more often), and this one is no exception. We have started the process of integrating several disparate companies as part of a corporate acquisition. We chose a location similar to the corporate HQ for the first migration, believing that it would be the easiest location to roll over. We proceeded to migrate this location... Sure there were some bumps and headaches along the way, but everything had a straightforward solution. The kind of issues that you figure out by using the right combination of experience, tools, and kb searches. Using Active Directory Migration Tool (ADMT) (as we have many times in the past), we started to migrate the workstations...


  • Scott Hanselman's 2009 Ultimate Developer and Power Users Tool List for Windows

    TAX DEDUCTIBLE DONATIONS: If you enjoyed this post, or this blog, please make a secure tax-deductible donation directly to the American Diabetes Association . Please read my personal story about life as a diabetic and donate today . ALL PROCEEDS will Read More......( read more ) Read More...


  • Create Policies for Sharepoint and Powershell 1.0

    [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.Sharepoint") [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.Sharepoint.Publishing") $SiteURL = " http://www.example.com " $site = new-object Microsoft.SharePoint.SPSite($siteURL) $web = $site.OpenWeb() $list = $web.Lists["Cache Profiles"] $newitem = $list.items.Add() $newitem["Title"]= "AnonCachePolicy" $newitem["Display Name"]= "AnonCachePolicy" $newitem["Display Description"]= "AnonCachePolicy" $newitem["Perform ACL Check"] = $false $newitem["Enabled"] = $true $newitem["Duration"] = 60 $newitem["Check for Changes"] = $false $newitem...


  • When Add(ing)-Type, choose your method signatures wisely

      Powershell V2 has some great new features, in particular Add-Type and Remoting features are likely to be quite popular and work together without much issue. That said, there are edge cases which illustrate how the types returned from remoting calls. The following script demonstrates the issue $csCode = @" using System; using System.Collections.Generic; using System.Linq; namespace Demo { public static class D { public static int Add(int a, int b) { return a + b; } public static int AddArray(int[] ints) { return ints.Sum(); } public static int AddEnumerable(IEnumerable<object> ints) { return ints.Cast<int>().Sum(); } public static int AddEnumerable(IEnumerable<int> ints) { return ints.Sum(); } } } "@ Add-Type...


  • IPSWeb – Web Client for Windows PowerShell

    Yesterday, I published small application I developed called IPSWeb . This application is actually web client for Windows PowerShell. It’s very simple, to install this application you create new IIS website, copy the files to the website directory and then, you have web access to the Windows PowerShell on the server. In addition to execute commands and get the output, you can use all the great features of Windows PowerShell. There is also a built-in script editor (that will be better next versions) that gives the Server Administrator the option to create, edit and execute scripts on the server from the web client ( IPSWeb ), also when the ExecutionPolicy in the server doesn’t allow script execution. IPSWeb supports more than one user in the same...


  • R2: How Would You Manage Without It?

    As many of you know, Windows Server 2008 R2 Release Candidate (RC) is made available today to MSDN and TechNet subscribers, with broader availability from Microsoft.com on May 5th. As our final broad test milestone before RTM, this really is the best chance for you to download Windows Server 2008 R2 and put it through its paces while we continue our march to RTM. This week, I’m in the UK, meeting with enterprise customers to share our product roadmap and to discuss the investments we’ve made in R2...( read more ) Read More...


  • CPU Monitoring and Alerting via Performance counters, Coral8, and PowerShell

    The PowerShell team has a short post on using V2 cmdlets to Monitor performance counters. Building on that, and the prior work with the PoShAdapter, here’s a sample with Coral8 and PowerShell to alert you via SMS when the rolling 30 seconds average CPU hits a threshold. create VARIABLE float CPUThreashold = 70; create OUTPUT STREAM fakeout SCHEMA (x string); CREATE SCHEMA CPUSchema (cpu FLOAT); create INPUT STREAM inCPU SCHEMA CPUSchema; create OUTPUT STREAM highCPU SCHEMA CPUSchema; create local STREAM avgCPU SCHEMA CPUSchema; ATTACH OUTPUT ADAPTER smsAdapter TYPE PoShAdapter TO STREAM highCPU PROPERTIES BEGINBLOCK = [[ Add-Type -AssemblyName System.Security Add-Type -Path "C:\Program Files\Coral8\Server\bin\GmailHelper.dll" $pass...


  • Using Coral8 and PowerShell to receive eventing data

    I’ve updated the PowerShell Coral8 adapter so it can be used to receive input. Rather than demonstrate input from a database or an RSS stream, both of which can are supported by the native Coral8 adapters, I have a demo with WMI events. In this case allowing us to monitor process creation across a network. Using the same general template as before we have the following two script blocks BeginBlock $computers = &{$args} localhost ccs01 ccs02 $jobs = $computers | % ` { Register-WmiEvent -Class Win32_ProcessStartTrace -ComputerName $_ ` -Action { ` $res = @{} $res['ProcessName'] = $args[1].NewEvent.ProcessName $res['ComputerName'] = $args[0].scope.Path.Server return $res } } InputBlock while ($true) { Start-Sleep -Milliseconds...


Page 1 of 9 (83 items) 1 2 3 4 5 Next > ... Last »
Microsoft Communities