Get Deleted TFS folders

This post applies to TFS (on-prem) TFSVC version control system. Even after deleting a TFS branch or folder it will remain in TFS unless it is destroyed. So assuming you have deleted one or more folders, if you need to get the TFS path of the deleted folders then tf.exe can help. So first we […]

Read more "Get Deleted TFS folders"

Getting SID of an user account

With PowerShell if you want to find the SID of an AD user the below script will help. $objUser = New-Object System.Security.Principal.NTAccount(“fabrikam”, “kenmyer”) $strSID = $objUser.Translate([System.Security.Principal.SecurityIdentifier]) $strSID.Value This is as mentioned in Microsoft’s Technet: Get-SID

Read more "Getting SID of an user account"

Show executed cmdlet in PowerShell

Let’s assume you want to execute a cmdlet in PowerShell and you also want to know what cmdlet was executed. To achieve this you can set to run in debug mode. Execute the below statement. Set-PSDebug -Trace 1 Any command you execute will now be shown as well, as well as its results. Advertisements

Read more "Show executed cmdlet in PowerShell"

Update app pool, IIS app setting with PowerShell

Recently I had the below requirement. For a website which hosts multiple applications, there is an app pool set for each app. For all the app pools it was required that the Start Mode should be “AlwaysRunning” and “Idle Time-out Action” should be “Suspend”. And each for each app “Preload Enabled” should be “True”. This […]

Read more "Update app pool, IIS app setting with PowerShell"

View the contents of a dll

In a developer command prompt type ildasm and open the dll in the window opened. Advertisements

Read more "View the contents of a dll"

Get IIS details from PowerShell

Often I need a way to see all app pools, websites, applications inside a website and app pool associated with an app in IIS. The below PowerShell script does it and it can be used as part of TFS Release as well. ********************************************************************************* import-module webadministration $sitename = “SIRIUS” $appName = “Signature” ## GET App pool […]

Read more "Get IIS details from PowerShell"

Multiple instances of a windows service in a server

There is a windows service configured to install multiple instances of it in a single server (steps for that will be given in another post). With C:\Windows\Microsoft.Net\Framework64\v4.0.30319 installed the windows service with installutil.exe. The first instance worked fine. Upon trying to install a second instance of the service (with a different physical path) got the […]

Read more "Multiple instances of a windows service in a server"