Commands to start windows Power Shell

Asked By 30 points N/A Posted on -
qa-featured

Hi friends,

When I install the Windows PowerShell, I see something like old MS-DOS command shell. What are the commands used to know my IP Address?

Windows Powershell
PS C:W> Import-Module ServerManager

Thanks.

SHARE
Best Answer by Johnstoon Leen
Answered By 5 points N/A #110559

Commands to start windows Power Shell

qa-featured

Hi Howell,

After PowerShell is launched you can just type "ipconfig" like what we did in the command prompt. PowerShell equivalent to that is :

  • Get-WmiObject win32_networkadapterconfiguration | Where-Objecct {$.IPAddress} | Format-List

This command yields more readable format than "ipconfig" displays. PowerShell uses Windows Management Instrumentation objects to access network subsystem.

For more information about the command visit this site below:

I hope it helps.

Best Answer
Best Answer
Answered By 0 points N/A #195538

Commands to start windows Power Shell

qa-featured

 

Hi Howel Dinh,

The Windows PowerShell is quite similar to command prompt and also some of their commands are common too.

What you need to get IP address of your system from PowerShell is to just follow some simple commands

1.   “ipconfig” It’ll show you the basic information about your IP address

2.   “ipconfig /all” it’ll show you all the information related to your IP address.

3.   “ipconfig /release” It’ll release an IP address of your system

4.   “ipconfig /renew” where you can renew your IP address after releasing

5.   “ipconfig /flushdns” it’ll flush the DNS resolver cache of your system

You can also use vb scripts to run on PowerShell which will execute multiple commands in the script.

I hope you’ll get your solution now.

 

Regards,

Johnstoon Leen

 

Related Questions