You can subscribe to the powershell tag micro-feed.

Poking Around Services Using Commands

Important Note! These commands for Windows Services work if you run Command Prompt as Administrator. List All Services SC QUERY state=all > “C:\Temp\Services.txt” This will drop a text file (because you’re likely to have more information than your command buffer) into the temp folder for your perusal. Start / Stop a Service Start a service… […]

Intermittent Replication Issue – Distribution Agent Failed to Create Temporary Files

This will seem like a strange issue, because everything will work perfectly well for a period of time – but then it will all go wrong and you’ll get an error such as: Error messages: The distribution agent failed to create temporary files in ‘C:\Program Files\Microsoft SQL Server\110\COM’ directory. System returned errorcode 5. (Source: MSSQL_REPL, […]

Unable to Rebuild Performance Counter Setting from System Backup Store

I was attempting to rebuild performance counters on a Windows Server 2012 machine, using the following command in PowerShell (with elevated rights): lodctr /r But kept getting the error: Error: Unable to rebuild performance counter setting from system backup store, error code is 5PS The simple answer… running the same command in an elevated command […]

Reconfigure Octopus Deploy on a Cloned VM

If you clone a VM that has an existing Octopus Deploy tentacle running, you’ll find that you’ll have a problem with a thumbprint clash. All you need to do is generate a new thumprint using tentacle.exe. You can do this using a command window, or PowerShell… cd “c:\Program Files\Octopus Deploy\Tentacle” .\tentacle.exe new-certificate This command will […]

Restore Private NuGet Feed Packages During Visual Studio Team Services Build

Update! As of February 2016, you should be able to use the standard “NuGet Installer” vNext build task. The New Way Add the Nuget Installer build task, which can be found under “Add build step” -> “Package”. You will need to supply a NuGet.config file with the address of your custom feed: <?xml version=”1.0″ encoding=”utf-8″?> […]