PowerShell

Delete Offline OST files from login users account using PowerShell.

  Hi,   Yesterday I was surfing the TECHNET Script repository and see that one user is requested for a script which can delete offline email file {ost} from login users.   This seems simple to me and I wrote a 3line script which can accomplish this task.   Download the script from : http://gallery.technet.microsoft.com/scriptcenter/Delete-OST-from-User-App-22df1c88 1. … Continue reading Delete Offline OST files from login users account using PowerShell.

PowerShell

Automate “Remote Server Administration Tools (RSAT)” Deployment using PowerShell.

  HI,   These days I am working on a script which does few “Active directory” task for us. This was seems simple so for but then I have found a major hurdle comes.   Problem:   The script on which I am working will be run on newly formatted system which is having Windows7… Continue reading Automate “Remote Server Administration Tools (RSAT)” Deployment using PowerShell.

PowerShell

Part-6: Text Manipulation in PowerShell using .ToCharArray(),.PadLeft(), and .PadRight() methods

  Part-1: Text Manipulation in PowerShell using Trim, TrimStart , TrimEnd methodsPart-2: Text Manipulation in PowerShell using .ToLower and .ToUpper methodPart-3: Text Manipulation in PowerShell using .StartsWith() and EndsWith() methodsPart-4: Text Manipulation in PowerShell using .Replace(), and .Remove() methods.Part-5: Text Manipulation in PowerShell using .Contains() and .Equals() methods Hi, Today we are going to see… Continue reading Part-6: Text Manipulation in PowerShell using .ToCharArray(),.PadLeft(), and .PadRight() methods

PowerShell

Accessing Windows Environment Variables using PowerShell.

  Hi, Before working on script i always thought that these windows “Environment Variables” are not so important, but as i start working on PowerShell and start working on script i realise that these windows “Environment Variables” are very useful. I uses these windows “Environment Variables” in most of my scripts. Why these windows “Environment… Continue reading Accessing Windows Environment Variables using PowerShell.

PowerShell

Part-5: Text Manipulation in PowerShell using .Contains() and .Equals() methods

  Part-1: Text Manipulation in PowerShell using Trim, TrimStart , TrimEnd methodsPart-2: Text Manipulation in PowerShell using .ToLower and .ToUpper methodPart-3: Text Manipulation in PowerShell using .StartsWith() and EndsWith() methodsPart-4: Text Manipulation in PowerShell using .Replace(), and .Remove() methods.   Hi, today we are using .Contains() and .Equals() method on our text. The output of… Continue reading Part-5: Text Manipulation in PowerShell using .Contains() and .Equals() methods

PowerShell

Part-4: Text Manipulation in PowerShell using .Replace(), and .Remove() methods.

Part-1: Text Manipulation in PowerShell using Trim, TrimStart , TrimEnd methodsPart-2: Text Manipulation in PowerShell using .ToLower and .ToUpper methodPart-3: Text Manipulation in PowerShell using .StartsWith() and EndsWith() methods Hi, Today we are using .replace and .remove methods to play with the string. Lets start. Today i am using some fake email id as text.… Continue reading Part-4: Text Manipulation in PowerShell using .Replace(), and .Remove() methods.

PowerShell

Get the list of all windows “System Restore Points” using PowerShell.

  Hi, if you remember yesterday we created a windows “System Restore Point” using Poweshell. Today we are going to check the list of all “System restore points” created by windows. The cmdlet which we are going to use is “Get-ComputerRestorePoint” Note: Make sure that you run PowerShell as “Administrator” Lets run the cmdlet Here… Continue reading Get the list of all windows “System Restore Points” using PowerShell.