Tag: PowerShell
-
Error The update is not applicable to your computer When Installing PowerShell V3
PowerShell V3 and PowerShell ISE V3 is not a port of Windows 7 and Windows Server 2008 R2. However, you can download it from here. You might receive following error when you install the msu file The update is not applicable to your computer Solution Installed Windows 7 and Windows Server 2008 R2 Service Pack…
-
Install PowerShell and Powershell ISE on Windows Server
Windows Server 2003 For Windows server 2003, PowerShell V1 was released as KB ( hotfix). Download and install KB926139 – Windows PowerShell 1.0 English-Language Installation Package for Windows Server 2003 If you need PowerShell V2, make sure you have SP2 installed and then install Windows Management Framework from http://support.microsoft.com/kb/968929 Windows Server 2008 For Windows Server…
-
Using SCVMM 2012 Cmdlets in PowerShell
SCVMM Cmdlets allow SCVMM admin/users to do everything they can do in SCVMM AdminConsole in windows PowerShell command line. In SCVMM 2008 R2, you can run following command in PowerShell to run SCVMM cmdlets. Add-PSSnapin Microsoft.SystemCenter.VirtualMachineManager But this does not work in SCVMM 2012 as SCVMM 2012 uses PowerShell module. For SCVMM 2012 now you…
-
Configure PowerShell to use DotNet 4.0
You might get following error when you load a snap-in that is written by DotNet 4.0. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded. This is because by default, PowerShell uses DotNet version 2.0 CLR. To use powershell load DotNet 4.0 assemblies, the following settings need…
-
How to run ps1 scripts
PowerShell scripts are text files with ".ps1" extensions that contain PowerShell commands. Starting with Windows Server 2008, PowerShell is built into the OS. For earlier OS versions, you will need to download PowerShell at Microsoft PowerShell Site and install it. To run ps1 scripts, you first need to enable scripts by running: Set-ExecutionPolicy RemoteSigned Otherwise,…
-
Install PowerShell From Command Line
To install PowerShell on Windows Server 2008 R2 or Hyper-V Server 2008 R2, following features needs to be installed. NetFx2-ServerCore NetFx3-ServerCore MicrosoftWindowsPowerShell Because Powershell is built on DotNet framework, DotNet 2.0 and 3.5 has to be installed prior to PowerShell installation. To install PowerShell from command line, run following from elevated command prompt DISM.exe /online…