Friday, December 3, 2010

Set Execution Policy within PowerShell

By default, PowerShell will allow individual commands but will not execute scripts.  To set the execution policy, use the Set-ExecutionPolicy commandlet.  The commandlet has four different execution policies available:

  • Restricted - No scripts can be run. Windows PowerShell can be used only in interactive mode.

  • AllSigned - Only scripts signed by a trusted publisher can be run.

  • RemoteSigned - Downloaded scripts must be signed by a trusted publisher before they can be run.

  • Unrestricted - No restrictions; all Windows PowerShell scripts can be run.

The PowerShell prompt or ISE must be launched with local administrative authority for the change to be made.  The Get-ExecutionPolicy can be used to verify the existing setting.

executionpolicy

mRemoteNG

mRemoteNG is a fork of mRemote, an open source, tabbed, multi-protocol, remote connections manager.  mRemoteNG adds bug fixes and new features to mRemote.

mRemoteNG supports the following protocols:

  • RDP (Remote Desktop/Terminal Server)
  • VNC (Virtual Network Computing)
  • ICA (Citrix Independent Computing Architecture)
  • SSH (Secure Shell)
  • Telnet (TELecommunication NETwork)
  • HTTP/HTTPS (Hypertext Transfer Protocol)
  • rlogin
  • Raw Socket Connections

http://www.mremoteng.org/

Thursday, December 2, 2010

SSDLife

SSDLife is an application that will let you know how many times your drive has been powered on, written to, what its health and S.M.A.R.T. status is, and even give you an estimated lifespan of the drive.

http://ssd-life.com/

Wednesday, December 1, 2010

Introduction to PowerCLI

PowerCLI is a snapin for PowerShell that is intended for use with a VMware environment.  It can be found at:

http://communities.vmware.com/community/vmtn/vsphere/automationtools/powercli

Once launched, help can be found using the Get-VICommand commandlet or the Get-PowerCLIHelp commandlet.

powercli_3

To connect to a ESX/ESXi host, use the Connect-VIServer commandlet.  An example would be:

Connect-VIServer –Server IP address –Protocol https –User root –Password passwordvalue

Once connected, a message should be displayed:

powercli_1

Once connected to a host, commandlets such as Get-VM and Get-VMHost can be used.

powercli_2

The | format-list option can provide additional details.

powercli_4

powercli_5

More details can be displayed using the | Select-Object * option as well.

powercli_9

The Get-VMGuest commandlet will offer some additional details on a particular VM:

powercli_6

The Get-HardDisk commandlet pulls storage information:

powercli_7

The Get-DataStore commandlet can offer details on items such as free disk space available.

powercli_10

The Disconnect-VIServer commandlet will remove the connection to the host:

powercli_8