PowerShell Tip #12 - Create a file with time stamp

by rahul 3/13/2013 2:22:47 PM
While working with PowerShell scripts, quite frequently you may find a need to create a file to store information. The following lines can help you in creating a file name with TimeStamp. "MyLogFile-$(get-date -uformat '%Y-%m-%d-%H-%M-%S-%p').log" The output is something like... ... [More]


PowerShell Tip #11 - Restart a service on a bunch of servers from a PowerShell script

by rahul 2/14/2013 11:56:03 AM
Restarting a service is not fun. Especially if you have to do it every now and then for "that" service which is giving you a lot of headache. Since services do not have an automatic recycle option out of the box... you may like to use the following PowerShell script to make your life easie... [More]


Powershell Tip #7 - How to find which sites use a specific webpart in SharePoint

by rahul 9/21/2012 1:14:29 PM
Problem Scenario You are experiencing a bunch of performance issues in SharePoint. After some analysis, you figure out that it is happening due to a specific web part – call it The_Big_BAD_Webpart. How would you find out which sites use this web part? Solution Try the following, during non-peak t... [More]


Missing SQL Server Profiler from SSMS [SQL Server 2008 R2]

by rahul 8/31/2012 6:11:03 PM
This one was tricky [at least from my perspective, since I am not a SQL expert ]. I wasted a lot of my time today, and hence documenting this effort so that it might help a poor soul some day. Your mileage may vary. Please take all cautions that you normally would while dealing with SQL. Problem Sc... [More]


Powershell Tip #5 - Migrate users from one domain to another

by rahul 7/11/2012 6:21:30 PM
In your SharePoint environment, have you found users migrating from one domain to another? Or the domain structure changing due to any reason? What if there are bulk migrations of users? Here is the PowerShell script to help you out in doing just that. This script is to automate the following comma... [More]


Tata Photon automatic redirection to Tataindicom.com and yahoo

by rahul 6/5/2012 2:50:45 PM
Pardon my colorful language in this post. But I have a reason! I am pissed off Just plugged in my Tata Photon USB dongle and got totally frustrated by this image. I mean, why the fu** is Yahoo and Tata Photon having this as home page in the middle of my presentation. I decided to fix this fu**ing a... [More]


Create a Shortcut in the Startup Folder using C# without Interop

by rahul 4/23/2012 6:29:02 PM
While writing a utility, I needed a feature that it would run at startup. I also wanted to ensure that it is a configurable setting. Seemed like a pretty easy thing to do… and went for it, only to realize that it is not as easy as it looks initially. First up, creating a shortcut itself tends to be ... [More]


Assembly redirection in .NET

by rahul 11/5/2011 5:30:16 PM
In this blog post, I'll discuss some of the techniques that you can use for loading the assemblies in .NET and troubleshoot the loading process in case you get stuck. Basically, you will learn… How to rename an assembly and still be able to load it How to redirect to a specific version H... [More]


Did you know - Visual Studio 2010 Feature Pack 2

by rahul 9/8/2011 9:35:31 AM
The extensibility of Visual Studio keeps surprising me. Did you know that there is an extension called Visual Studio 2010 Feature Pack 2? Well, I discovered it not very long ago. Here is how you can get it, and others…     Select Tools -> Extension Manager…  &#... [More]


Get rid of (use Blank ringtone for) Junk calls in Windows Phone 7 or iPhone

by rahul 8/18/2011 12:02:00 AM
You can reject the calls with one touch on smart phones, but if you live in a country where you keep getting pesky marketing calls throughout the day, here is what may help you. If you get those Junk calls from a specific number or numbers, save it as the name Junk (or anything you prefer). Once sa... [More]


Rahul Soni

Rahul Soni  Twitter

 LinkedIn

 Facebook

 Email me



Vivek Kumbhar

Vivek Kumbhar  Twitter

 LinkedIn

 Facebook

 Email me


Stack Exchange

profile for Vivek at Server Fault, Q&A for system administrators and IT professionals

profile for Rahul Soni at Stack Overflow, Q&A for professional and enthusiast programmers

Calendar

<<  May 2013  >>
MoTuWeThFrSaSu
293012345
6789101112
13141516171819
20212223242526
272829303112
3456789

View posts in large calendar

All Items
Sign in

Visit Microsoft's Site

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
© Copyright 2013, Rahul Soni

Powered by BlogEngine.NET 1.4.5.0