Tuesday, December 2, 2014

PowerShell Tips : The F7 key.

 

Hello, you must be wondering where I have been from past few months?

I was busy with some of my life’s awesomeness. Hopefully I will blog about that soon too.

Let’s talk about PowerShell, as we spent lots of our time on PowerShell console and the knowledge of some handy “Keyboard Shortcuts & Tricks” are always helpful and time savers.

If you are using PowerShell from long time, you may be already knew these shortcuts, if not, then at-least you know them now.

F-7 Key

On PowerShell Console, if you want to see the history of the cmdlet’s or commands which you have run, and you want to re-run again, then hit the F7 key of your keyboard, and you will see the list of cmdlet and command which you have run on the PowerShell console.

1

Cool ! Isn’t.

 

PowerShell TIPs

Thanks.


 

Aman Dhally

If you like, you can follow me on Twitter and Facebook. You can also check my “You Tube” channel for PowerShell video tutorials. You can download all of my scripts from “Microsoft TechNet Gallery”.

 


Murky_ana

Sunday, October 26, 2014

Tech-Meet by Delhi User Groups | 01-Nov-2014 | Gurgaon

Delhi User Group

Saturday, November 1, 2014 from 9:00 AM to 1:30 PM (IST)

Gurgaon, HR

Hi friends!

Delhi User Group presents Tech-Meet, your chance to learn Hot technologies from Industry experts.

The half-day free event for professionals in Delhi NCR includes a great line-up of industry-recognized speakers.


I am giving an 45 minutes of Session on "PowerShell and Automation".
Come and join me and let's talk about PowerShell.

Register here : http://www.eventbrite.com/e/tech-meet-by-delhi-user-group-01-nov-2014-gurgaon-tickets-13902090527 

Refer the attached Image for complete Agenda:




Register here : http://www.eventbrite.com/e/tech-meet-by-delhi-user-group-01-nov-2014-gurgaon-tickets-13902090527 


Thanks.



 Aman Dhally

If you like, you can follow me on Twitter and Facebook. You can also check my “You Tube” channel for PowerShell video tutorials. You can download all of my scripts from “Microsoft TechNet Gallery”.

Thursday, August 21, 2014

Part - 8 : PowerShell and Hyper-V : Mounting ISOs to the Hyper-V Virtual Machine's DVD Drives

 

Yesterday, we have seen that how can we add a virtual disk to the Hyper-V virtual machine.

When I was writing that blog, I was also thinking about to write a article on that how can we add a ISO file to the DVD drive of the Virtual machine.

It's cool to know if you able to directly mount as ISO file to the virtual machine by using our lovely blue coloured PowerShell console.

You want to know how to do that? YES ? Great. let's started.

In the Below screenshot you can see that, currently there is no "CD / DVD Disk" mounted on the DVD Drive of my Virtual Machine "Windows 2008 R2".

1

I am hoping that by now, you already know how to get the list of all virtual machines.,

We can use the "Get-VM" cmdlet for that, and you can see that "Windows 2008 R2" virtual machine is up and running.

2

In the below screen shot, you can see a list of my all ISO files located in F:\ISO_Image folder.

I am choosing the "Windows2008R2_all_edition.ISO" file to mount to the my "Windows 2008 R2" virtual machine's DVD Drive.

4

We use the Set-VMDvdDrive cmdlet to mount the ISO file to the DVD drive of the virtual machines.

Set-VMDvdDrive -VMName 'Windows 2008 R2' -Path 
"F:\ISO_Image\Win2008R2_all_editions.iso"
In the above command, we are using  Set-VMDvdDrivecmdlet , -VMName  parameter we are providing the name of the virtual machine on which we want to mount the ISO file, and in -Path parameters we are providing the path of the ISO file which we want to mount.
In the below screenshot, you can see that command has been completed successfully.

3


and if you check the virtual machine, you can see that our ISO is mounted successfully.


5


Come-on.. Believe me Winking smile 


6


That's all for today. See you in my next blog post. Keep Smiling.


tumblr_mfxux9bqN61qzmvsio6_250

Thanks.

Aman Dhally

If you like, you can follow me on Twitter and Facebook. You can also check my “You Tube” channel for PowerShell video tutorials. You can download all of my scripts from “Microsoft TechNet Gallery”.