Remote LogCollector (Powershell GUI Tool made using Powershell Studio 2015)

Here’s another tool that i have made using Powershell Studio, the purpose of the tool is to collect Event log data from local computer and from remote computer as well.

Once you run the tool you will see there are two tabs Local and Remote. Local tab will only fetch data from local system on which it is running, once the tool is connected to local server using “Connect” button it will auto populate the query section with all the types of available logs.

Select the type of log that you would like to view and say load, it will then populate the data in the white space below step 2.

If you would like to export the results in CSV or HTM format you can select the radio button at the same time you can select “Open Results Automatically” and it will open result for you.

Similarly you can produce same result with steps mentioned above for Remote system, just click on Remote tab, connect to remote system (Powershell required) and it should fetch all the logs details.

Download link:

https://dl.dropboxusercontent.com/u/69201487/EventLogCollector/EventLogCollector.zip

Thanks

Hardeep

PowerAdmin (A Powershell GUI Tool Made Using Powershell STudio 2015)

For quite some time i have been working on Powershell and i always wanted to have a GUI available for the powershell scripts that i have prepared, there are different ways you can do it, however i find Powershell Studio 2015 as the best way to have a GUI for Powershell.

So here’s the first version of PowerAdmin (beta), the documentation will take some time, but a small description is as below:

1. Local Computer Tab, all the button available on Local Computer tab will execute on local machine, for eg: If you click the Service button you will get only local services.

2. Remote Computer Tab, as the name says, you can fetch information from remote computer, however to do so, you will have to first establish a remote session with the computer.

3. Azure cloud, with limited feature available on PowerAdmin about Azure, you can login to Azure and create VM, get VM info, Delete VM, Get Images, you can even have session with individual computer and find out their process. ( I intend to add more to this as time permits).

4. Security, you can fetch all local LAN info from security tab, for eg: if you click Sweep LAN button, it will go and sweep Lan for IP addresses and find out which service is active on which port.

5. RDP, as the name says, you can create RDP session here.

DOWNLOAD PowerAdmin. https://dl.dropboxusercontent.com/u/69201487/PowerAdmin(beta)/PowerAdmin.zip

Try out, its not completely ready yet, it’s in beta version, but worth trying.

Happy Powershelling.

Hardeep

Making of Sitecore Community Project Templates

Writing this blog post is like sharing an experience about Making a Hollywood movie or talking about behind the scenes for a Hollywood movie, working with Sitecore is a different experience and that is what I am sharing here and as the title says “Making of Sitecore Community Project Templates” is what this post is all about.

This all started with one bright idea from Varun Shringarpure and he was the lone warrior while he initiated his idea into a working copy. I saw him working on this great idea and suggested to help, Varun had some different idea and wanted to work alone. A couple of weeks later Varun wanted me to be part of it and he shared his experience and findings with me. Finally working together for another couple of weeks we were able to release it for Sitecore Community.

Varun started creating the various projects and their structure he followed the approach suggested at Side Waffel. There were lot of configuration needed to be done for us to get the templates generated based on Side Waffel. Later on digging into further it was discovered that there is much easier way to create the visual studio templates and we completely dropped the idea of using Side Waffel.

The approach we followed was to export each visual studio project as a template, zip the exported template and add them to the VSIX project solution. A manual task but much simpler and easier task as compared to Side Waffel configuration. Also it was difficult to troubleshoot the configurations that we created for Side Waffel.

Varun announced the release of Sitecore Community Project Templates, more on the documentation and source can be found by following the link.

If you are interested in knowing more about how it is all setup and few tips if you want to come up with your own visual studio templates keeping reading further as this will help to get you kick-started.

How is it all setup?

Currently we have setup three solutions,

1)      Sitecore.Community.Templates.VSIX

Solution for creating the VSIX file that references templates from other projects.

2)      SitecoreMVCStarterKit

Solution containing a bunch of projects required to setup a Sitecore MVC solution.

3)      SitecoreWebformsStarterKit

Solution containing a bunch of projects required to setup a Sitecore Webforms solution.

Projects

Projects

Creating Visual Studio Project Templates

Firstly we created projects structure for all projects Sitecore.MVC.Extension, Sitecore.MVC.IOC, Sitecore.MVC.Models, Sitecore.MVC.Services, Sitecore.MVC.TDS.Core, Sitecore.MVC.TDS.Master, Sitecore.MVC.Web and Sitecore.MVC.Web.UnitTest. For the projects we Added and removed files, installed nugets and such kind of stuff.

Solution Structure

Solution Structure

Once we had our projects setup correctly we did Export Template for each of the projects in the solution which in the background created a .zip file for being used as a visual studio project template.

 

Export Template

Export Template

Export Template Wizard

Export Template Wizard

Creating VSIX Project

Next step was to create a VSIX project that would help us to deliver the Sitecore Community Project Templates.

 

Creating VSIX Project

Creating VSIX Project

This is how we setup the VSIX project,

 

VSIX project setup

VSIX project setup

You might think why did we created the structure ProjectTemplates/CSharp/Sitecore Community and then added all our project template zips. There’s a reason to do so as we wanted the templates to appear under Templates-> Visual C# and just above Sitecore Rocks.

New Project Dialog

New Project Dialog

Why it’s named Sitecore Community Project Templates?

We discussed few different names like Sitecore Templates (we dropped this name as would like Sitecore owns it), Sitecore R&D Templates, Sitecore Project Templates then came the final name Sitecore Community Project Templates as it was dedicated to the so awesome and vibrant Sitecore Community and anyone can contribute to it.

Releasing Sitecore Community Project Templates

Few things that Varun worked upon for releasing it to the Visual Studio Gallery were creating Readme.txt and it’s content, License.txt, Icons, pushing to github, Adding to Sitecore Marketplace and finally sending it to Visual Studio Gallery.

Tips

1)      Amending project zip files with $safeprojectname$ helped us to achieve the custom project name that one can specify during new project creation.

$projectname$

$projectname$

Watch out this link for more token replacements at Template Parameters

2)      For your project template to appear at a required location in the New Project Dialogue, the VSIX project should reflect the same folder structure and the zip of the project template should then be added to the required folder.

3)      In order to support your VSIX for different versions of Visual Studio, open .vsixmanifest file -> Install Targets and Edit or Add New entry for the Visual Studio Version.

More details for inclusion and exclusion of visual studio versions can be found at VSIX Manifest Designer

Install Targets

Install Targets

4)      MyTemplate.vstemplate

5)      Unzip exported template and rename project with $safeprojectname$

Nice Reads

–          How to Create a Visual Studio 2012 Project Template: Introduction

–          Visual Studio Templates

–          Creating Project and Item Templates

–          Custom Visual Studio Project Templates

What a nice journey to cherish for, Thanks Varun for this endeavor and Pranav Geria for helping out with the Sitecore Icons.