Archive for the ‘PowerShell’ Category

Create user account in active directory using PowerShell

Following commands are used to manage user accounts via PowerShell.

How to assign IP address in Windows

Every operating system will assign IP address at the time of OS installation. If we want to set IP address as your wish, follow the below steps. To check current IP address of your machine open Command prompt or PowerShell, then run ipconfig

Convert Windows Core to Windows Server GUI

From Windows 2008, installations are two types: Server with GUI(full installation) and Server Core. From Windows 2012, it is also possible to convert Windows Server GUI to Core and Windows Server Core to GUI. Windows Core version had less features than Windows GUI(full installation). To change GUI to core or Core to GUI, user should […]

Convert Windows Server GUI to Core

From Windows 2008, installations are two types: Server with GUI(full installation) and Server Core. From Windows 2012, it is also possible to convert Windows Server GUI to Core and Windows Server Core to GUI. Windows Core version had less features than Windows GUI(full installation). To change GUI to core or Core to GUI, user should […]

How to get the Syntax of PowerShell Cmdlet

To view the syntax of a PowerShell Cmdlet, use get-command or help command. Get Syntax using Get-Command Cmdlet: Get-Command Get-Process -Syntax Output:

Difference between PowerShell and command prompt

Both allow the creation of scripts. Both provides command-line environment. cmd.exe works in PowerShell. But, PowerShell cmdlets wont work in Cmd.exe Cmd provides very limited set of functionality. cmd is text based scripting environment. cmd does not provide access to many aspects of the OS and applications.

How to get the Version of PowerShell

We have installed PowerShell and started creating scripts. Before executing script on current PowerShell version, we should get the Powershell version. Following are ways to get version. If we want to get the Version of PowerShell, use $PSVersionTable PS C:\> $PSVersionTable Name Value —- —– PSVersion 4.0 WSManStackVersion 3.0 SerializationVersion 1.1.0.1 CLRVersion 4.0.30319.42000 BuildVersion 6.3.9600.16406 […]

Powered by k2schools