PowerShell

Powershell Tips : Use Only Powershell V2 cmdlets , with PowershellV3 Installed.

I use Windows 7 (64 bit) with Powershell V3 installed on it. Most of our users are still on PowerShell v2, Sometime when I am writing scripts for them i use some PowerShell v3 cmdlets accidently. Normally I write the initially version of all scripts on PowerShell console and I do test my all script… Continue reading Powershell Tips : Use Only Powershell V2 cmdlets , with PowershellV3 Installed.

PowerShell

Getting Last Installation Success Date and Last Search Success date of Windows Updates using Powershell.

  Everyday is a new day , with new problems and new issues, sometime at users side and sometime at Server side. The life in IT is quite happening. These new issues and problems leads to new solutions and new scripts. In my environment I asked few users to run their windows updates, but as… Continue reading Getting Last Installation Success Date and Last Search Success date of Windows Updates using Powershell.

PowerShell

Powershell Techniques : Lock Your Workstation using Powershell.

In my previous post, I created test button on Login Screen changer GUI,  when you clicked on them it lock your workstation. I got few queries that which code I used behind the above Test button.  I used the below code to lock the workstation.  $shell = New-Object -com “Wscript.Shell”  $shell.Run(“%windir%\System32\rundll32.exe user32.dll,LockWorkStation”) Just shoot the… Continue reading Powershell Techniques : Lock Your Workstation using Powershell.

PowerShell

PowerShell Techniques : Alias v/s Full Cmdlets usage.

Hi Everyone, I hope you are enjoying your weekend. This is my another post on Powershell techniques. We all love Powershell alias’s they are good and they handy and saved lots of key strokes.  I use Powershell alias a lot. But i have seen few Powershell scripter and they do use Powershell alias in their… Continue reading PowerShell Techniques : Alias v/s Full Cmdlets usage.

PowerShell

PowerShell Techniques : Commenting Scripts, it’s always helpful.

Hi, I hope you are enjoying my Powershell Techniques series of web post. I always mention in most of my blog posts that, learning or memorizing what cmdlets do is really easy , but it is bit difficult to find techniques. In my opinion these tips and trick or we can say techniques are universal,… Continue reading PowerShell Techniques : Commenting Scripts, it’s always helpful.

PowerShell

Powershell Techniques : Use While loop for rebooting laptop after 30 seconds with a informative message .

Hi, I hope you all are doing well, I am in Italy for this week and enjoying Italian coffee. Anyway. In few of my scripts, before rebooting the laptop, I use Start-Sleep cmdlet to give a pause for 30-60 seconds. We can do this easily using Start-Sleep 30.But, it is always good to show informative… Continue reading Powershell Techniques : Use While loop for rebooting laptop after 30 seconds with a informative message .