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.

PowerShell

Script to reset “Hidden files and folders” to normal using PowerShell

  Hi, yesterday one of my users laptop get infected with virus. After removal of virus i saw that “Virus” hide every file and folder in the laptop.  It was quite a pain to “Choose file and folder” right click on it, choose properties and un-tick the hidden option. Then i decide to write a… Continue reading Script to reset “Hidden files and folders” to normal using PowerShell

PowerShell

Part-3: Text Manipulation in PowerShell using .StartsWith() and EndsWith() methods

  Part-1: http://newdelhipowershellusergroup.blogspot.com/2012/01/part-1-text-manipulation-in-powershell.html | using Trim(),TrimEnd(),TrimStart() Part-2: http://newdelhipowershellusergroup.blogspot.com/2012/01/part-2-text-manipulation-in-powershell.html | ToUpper(),ToLower() Hi, Today we are going to use .StartsWith() and .EndsWith() methods to play with our text. we are using the same text which we used in previous posts and saving the text in a variable $text $text = “The Quick brown fox jumps over the lazy dog”… Continue reading Part-3: Text Manipulation in PowerShell using .StartsWith() and EndsWith() methods

PowerShell

Part-2: Text Manipulation in PowerShell using .ToLower and .ToUpper method

  Part-1: http://newdelhipowershellusergroup.blogspot.com/2012/01/part-1-text-manipulation-in-powershell.html Hi, In part-1 of text manipulation we saw how to use .Trim(),.TrimStart() and TrimEnd() method. Today we will see how to use .ToLower and ToUpper() Method. Lets start we are using the same text which we used in part-1 and saving the text in a variable $text $text = “The Quick brown… Continue reading Part-2: Text Manipulation in PowerShell using .ToLower and .ToUpper method