Silent IIS UrlRewrite, ARR and FARM provisioning by #PowerShell

Recently, I had the task to run several fitnesse instances in on the single AWS EC2 instance. The requirement was what each fitnesse instance should be accessible trough port 80 (HTTP). IIS as reverse proxy came to the rescue. But there were one more requirement – IIS Reverse Proxy configuration should be automated. Here >> konstantinvlasenko/IISContinue reading “Silent IIS UrlRewrite, ARR and FARM provisioning by #PowerShell”

#PowerShell script to wait while any MSI process is running

while($true) { try { $mutex = [System.Threading.Mutex]::OpenExisting(‘Global\_MSIExecute’) $mutex = $null Sleep 10 ‘MSI running…’ | Out-Default } catch [System.Threading.WaitHandleCannotBeOpenedException] { # Mutex not found; MSI isn’t running break } }

Disable the option to check for server certificate revocation on Internet Explorer

We are doing an extensive acceptance testing against SharePoint Online by using PowerSlim (PowerShell). Unfortunately sometimes our automated tests are blocked by popup below: As we truly believe that our DNS is not spoiled an we know exactly what we are looking for (pre-created data) – this verification doesn’t make any sense for us. SoContinue reading “Disable the option to check for server certificate revocation on Internet Explorer”

Enable SQL protocol by using PowerShell

A stand-alone installation of SharePoint usually utilizes SQL Server Express. The instance name is SHAREPOINT. (This is true for SharePoint 2013). You must enable TCP protocol to access the SharePoint back-end. PS> function EnableSQLProtocol($instance, $proto) { [reflection.assembly]::LoadWithPartialName(“Microsoft.SqlServer.Smo”) | out-null [reflection.assembly]::LoadWithPartialName(“Microsoft.SqlServer.SqlWmiManagement”) | out-null $smo = ‘Microsoft.SqlServer.Management.Smo.’ $wmi = new-object ($smo + ‘Wmi.ManagedComputer’). $uri = “ManagedComputer[@Name=’$(hostname)’]/ServerInstance[@Name=’$instance’]/ServerProtocol[@Name=’$proto’]” $pContinue reading “Enable SQL protocol by using PowerShell”

PowerSlim vs Fitnesse vs SpecFlow

PowerSlim Fitnesse (SLIM) SpecFlow Web Access Test In/Out WYSIWYG WYSIWYG Gherkin scripts are used to generate test fixtures. Actual test results you can view by using Visual Studio Test View interface. Verification Code Verification done by framework itself. You just need to provide the results. Verification done by framework itself. You just need to provideContinue reading “PowerSlim vs Fitnesse vs SpecFlow”

New-ASLaunchConfiguration with IAM Role

This post is good addition to my previous post Schedule your Amazon EC2 spot instance startup time. You can slightly modify call to New-ASLaunchConfiguration cmdlet to use the powerfull IAM roles feature. New-ASLaunchConfiguration Fitnesse -ImageId ami-00000000 -IamInstanceProfile Fitnesse -SecurityGroups Fitnesse -InstanceType t1.micro -SpotPrice 0.011

Installing AWS Tools for Windows PowerShell through PowerShell

AWS Tools for Windows PowerShell (new-object System.Net.WebClient).DownloadFile(‘http://sdk-for-net.amazonwebservices.com/latest/AWSToolsAndSDKForNet.msi’, ‘c:\downloads\AWSToolsAndSDKForNet.msi’) (start c:\downloads\AWSToolsAndSDKForNet.msi ‘/qn’ -wait -PassThru).ExitCode