Generate random numbers in PowerShell with Get-Random — Parv The IT Geek

Generate random numbers in PowerShell with Get-Random Have you ever wanted to generate random numbers for passwords, test data…. and wondered how you could easily generate them? Well I was confronted by the same situation on one of our servers where I needed some random numbers for inputting wait times to test an application butContinue reading “Generate random numbers in PowerShell with Get-Random — Parv The IT Geek”

List Hotfixes installed with PowerShell with Get-Hotfix — Parv The IT Geek

Have you ever wondered what updates have been applied to your Windows operating system? Well a quick and easy way to do that is to use the PowerShell command Get-Hotfix. This will list out the description, the HotfixID and when it was installed. I used this on a few PCs where it appeared that updatesContinue reading “List Hotfixes installed with PowerShell with Get-Hotfix — Parv The IT Geek”

Output results from PowerShell to CSV or XML — Parv The IT Geek

Have you wanted to output results from PowerShell to CSV or XML? Well I am going to show you how. I have previously explained how to export results of PowerShell queries but did not include how to export the results to CSV or XML. The reason for that is that when you become familiar withContinue reading “Output results from PowerShell to CSV or XML — Parv The IT Geek”

Simple way to output results to a file using PowerShell — Parv The IT Geek

Have you ever wanted to send the output of a PowerShell command to a file? Well I am going to show you how. When you run a PowerShell command like Get-Process, Get-Host…. It will return useful information but sometimes you want to save that information for future reference. You could cut and paste or takeContinue reading “Simple way to output results to a file using PowerShell — Parv The IT Geek”

List active process running using PowerShell — Parv The IT Geek

Have you ever wanted to quickly find the processes running using Powershell? Wanted an alternate to Task Manager? Well I am going to show you how. Whenever I get a call from someone about a performance issue on any of our SQL Servers I always usually have a quick glance of Task Manager so thatContinue reading “List active process running using PowerShell — Parv The IT Geek”

Get the Operating System Properties via PowerShell — Parv The IT Geek

Have you ever wanted to get all the operating system properties of a computer? Well I am going to show you a short PowerShell script which can get loads of information about the operating system. One of my colleagues was googling around for information about how to find the windows directory, number of users, lastContinue reading “Get the Operating System Properties via PowerShell — Parv The IT Geek”

Search PowerShell help using wildcards — Parv The IT Geek

Have you ever wanted to search for new commands or have difficulty remember syntax? Well I recently found the wildcard search function within the help system and I am going to show you how to use it. You could use the commands feature which is below and can be accessed via Add-ons > Commands OrContinue reading “Search PowerShell help using wildcards — Parv The IT Geek”

Clearing the screen in PowerShell — Parv The IT Geek

A quick snippet for some newbie PowerShell developers whilst they start getting their teeth into the ISE is there are two easy ways of clearing the screen. I ahdnt thought about sharing this information but I saw a developer simply closing the ISE so that he could start afresh. I asked him why and heContinue reading “Clearing the screen in PowerShell — Parv The IT Geek”

Opening PowerShell Help in a window — Parv The IT Geek

Have you ever wanted to be able to easily read through the help system in PowerShell? Wanted to take advantage of your second screen whilst developing in PowerShell? Well I am going to show you how. Whenever I have used PowerShell I had a love-hate relationship with the help system. Whilst it helps me outContinue reading “Opening PowerShell Help in a window — Parv The IT Geek”

Update the PowerShell Help System — Parv The IT Geek

Have you ever wondered how to update the PowerShell help system? Wondered how to update it more than once in a 24 hour period? Needed to update the help file of a system not connected to the internet? Well I am going to show you how. Whenever I jump onto any new server the firstContinue reading “Update the PowerShell Help System — Parv The IT Geek”