By David Wiseman (Administrator)published 06 Feb 2008, modified 05 Nov 2009
My Rating:
Vote
Rating:
Not Rated
Views:8321

PowerShell Introduction

What is PowerShell?

PowerShell is a new scripting language built on the .NET framework and designed specifically for system administrators.  PowerShell is supported on Windows XP (SP2), Windows 2003 Server (SP1), Windows 2003 Server R2 and Windows Vista.  Although it is supported on the aforementioned operating systems it is a separate download that must be installed.  Windows 2008 will be the first operating system that ships with PowerShell already installed.

How do I create a PowerShell Script?

PowerShell scripts are text files saved with a "ps1" file extension.  This means that you can create PowerShell scripts using Notepad.  When you save a PowerShell script in notepad be sure to enclose the name in double quotes. e.g. "MyScript.ps1".  The double quotes will ensure that the file gets saved with the right extension (instead of MyScript.ps1.txt).

Although you can use notepad to develop PowerShell scripts, programs like NotePad++ can help with PowerShell script development.  NotePad++ can highlight syntax and displays the line number, both of which can be useful when developing scripts.  PowerShell is available as a user defined language in the current version of NotePad++.

How Do I Run a PowerShell Script?

To run a PowerShell script you need to have the .NET framework 2.0 installed as a prerequisite.  You will also need to download and install PowerShell.  The default security policy does not allow you to run PowerShell scripts so you will need to modify this policy to allow your scripts to run.  Open a PowerShell console (you should have a shortcut in your start menu after the installation).  Type the following command to view your current setting:

get-executionpolicy
 
You use the set-executionpolicy command to change your security setting.  Use the following command for more information and a list of available options.:

set-executionpolicy -?
 
To turn off security completely, you can run the following command:
 
set-executionpolicy unrestricted

To run your powershell script, set the current directory to the folder containing your PowerShell script.  You can use the normal MS-DOS commands to change the current folder.  If your script was called "MyScript.ps1" you would execute the script by typing the following command:

.\MyScript

Note that you can ommit the "ps1" file extension but you must type ".\" before the filename to run the script.

Further Reading

This has been a very breif introduction to PowerShell so I would suggest some additional reading.  Microsoft's website is a good place to start:

Windows PowerShell 

Find a PowerShell Script 




  Post Comment
Order By:  
User Comments
      
BarbaraHopkins
Posted On: 3/3/2019 6:00:36 PM

Powershell is one of the best article, but I think that it needs some refinement from https://customessaysreviews.com/freshessays-com-review . It will be great.

daisyjane2018
Posted On: 4/20/2019 1:07:30 AM

michael kors rea
cheap nfl authentic jerseys
todo camisetas futbol
equipacion atletico de madrid 2019
camisetas retro futbol
comprar camisetas de futbol baratas
borse michael kors outlet
michael kors borse prezzi
michael kors borse outlet
nbaplus horarios
cfb3camisetas
michael kors borse prezzi
mel ouvert caen
heure de priere strasbourg 67200
cheap authentic jerseys
coach crossbody bags on sale
coach outlet online clearance
cheap custom shirts
cheap custom t shirts no minimum
custom shirts online
cheap authentic nfl jerseys
19.99 nfl jerseys
american girl doll wigs
american girl doll wigs cheap
cheap custom phone cases
stubhub miami heat
cheap wigs online
cheap nfl jerseys
cheap nhl jerseys
cheap ralph lauren shirts online
flannel bridesmaid shirts
coach purses on clearance
coach factory online sale invitation
coach factory outlet online login
official coach factory outlet online
coach bags factory outlet
camisetas de marca baratas originais
bounty camisetas de fútbol
2siteweb
cheap custom phone cases
lg tribute phone case
zte zmax pro custom case
cheap lace front wigs
cell phone cases wholesale
cheap coach purses
coach outlet online
coach factory outlet online
peakmill wigs
rosewholesale wigs
infoclick anm
prefisso 045
cheap human hair wigs
nba sportando
nfl shop jerseys
nfl jerseys wholesale
maillot boca junior
maillot asse pas cher
cheap best friend shirts
calciomercatonapoli24
borse michael kors outlet
michael kors väska rea
borse michael kors saldi
polo ralph lauren outlet online
polo ralph lauren factory store
michael kors plånbok
napolicalcio24
coach outlet online
coach handbags clearance
coach purses on clearance
coach factory outlet online login
www coachoutlet com
coach outlet coupon
official coach factory outlet online
nba store eu
polo outlet
polo ralph lauren outlet online
retro nba jerseys cheap
michael kors plånbok
borse michael kors outlet
pochette michael kors prezzo
cheap nfl jerseys
nba sportando
michael kors väska rea
nba replay
coach outlet online store

xiaoou
Posted On: 4/25/2019 9:32:14 AM

guess clothing
cheap jordans
ferragamo outlet store
true religion jeans
ed hardy
pandora jewelry outlet
prada handbags
giants jerseys
nike air max 90
oakley sunglasses outlet
seahawks jerseys
kobe shoes
birkenstock outlet
michael kors outlet clearance
rolex replica watches for sale
yeezy shoes
hermes bags
nobis jackets
red bottoms
yeezy shoes
uggs outlet
louis vuitton purses
michael kors outlet
air jordan shoes
air max 97
coach factorty outlet store
maui jim sunglasses
nike factory store
salvatore ferragamo shoes
patriots jerseys
nike outlet online
air jordan uk
ralph lauren outlet
air max plus
barcelona jersey
oakley sunglasses outlet
columbia outlet store
ralph lauren uk
prada sunglasses
coach outlet store
cheap jordan shoes
jimmy choo shoes
ed hardy shoes
birkin handbags
nike factory store
coach outlet online
revolution 3
coach outlet store
valentino shoes
adidas superstars
tigers jerseys
curry 5 shoes
coach outlet canada
coach outlet store
ubiq shoes
nike outlet online
salomon shoes
hydro flask lids
coach outlet store online
mbt shoes
birkenstocks
canada goose
pandora charms
converse shoes
bathing ape
asics outlet
moncler pas cher
louboutin shoes
pandora jewelry outlet
jaguars jersey
true religion jeans
chaussures christian louboutin
adidas outlet online
nba jerseys
true religion jeans
mcm handbags
adidas yeezy boost 350
stone island sale
air max 2017
ed hardy outlet
discount oakley sunglasses
canada goose coats
adidas outlet
michael kors outlet clearance
supra shoes
broncos jerseys
adidas ultra boost
michael kors outlet online
air max 2017
true religion outlet
giuseppe zanotti shoes
adidas uk
david yurman bracelet
mont blanc
pandora charms
coach outlet clearance
coach bags
michael kors outlet online
pittsburgh steelers jersey
coach outlet online
kate spade outlet
jets jersey
cincinnati bengals jersey
lions jerseys
birkenstock sandals
jordans
air jordan
pandora outlet
fred perry
uggs
cheap mbt shoes
nike outlet store
converse????
pandora jewelry canada
canada goose outlet store
pandora jewelry outlet
maui jim
moncler jacken
toms
superdry clothing
hydro flask cup
fitflops outlet
north face jackets
louis vuitton
pandora sale clearance
pandora rings
coach outlet
kate spade outlet store
christian louboutin sale
persol
kate spade outlet online
ugg outlet sale
yankees jerseys
louboutin outlet
uggs outlet
fitflops outlet
raiders jerseys
ugg boots clearance
indianapolis colts jerseys
adidas outlet online
coach bags
ray ban sunglasses
moncler jacka
ugg boots
cheap jordans
fitflops
adidas outlet store
jordan 12
oakley sunglasses outlet
balenciaga shoes
ralph lauren outlet online
gymshark clothing
converse????
coach factory outlet online
nike sneakers
christian louboutin
christian louboutin shoes
fitflops sale clearance
prada outlet
cheap handbags
yeezy shoes
nike hyperdunk
moncler jackets
oakley sunglasses wholesale
coach purse
fitflops
curry 4 shoes
true religion outlet store
ralph lauren polo
yeezy boost 350
cheap jordans
adidas nmd r1
gucci outlet online
uggs canada
air jordan 4
pandora jewelry canada
ugg italia
tods outlet online
coach outlet online
puma shoes
michael kors outlet clearance
off-white clothing
under armour shoes
coach outlet online
coach factory outlet
adidas neo shoes
dolce & gabbana Outlet
coach factory outlet
pandora jewelry outlet
mulberry bags sale
coach factory outlet online
coach factory outlet
fjallraven kanken
eagles jersey
nhl jerseys
coach outlet online
lebron 13
rolex replica watches
timberland boots
kate spade outlet
true religion outlet store
adidas shoes
off white clothing
canada goose outlet store
soccer jerseys
snapback hats
miu miu shoes
rolex watches
cheap nike shoes
coach outlet store online
instyler ionic styler
michael kors outlet clearance
polo ralph lauren outlet online
christian louboutin sale
coach outlet store online
hydro flask sale
miu miu handbags
clarks shoes
coach outlet sale
converse shoes
coach outlet online
ugg outlet
nike kd 10
falcons jerseys
true religion jeans sale
christian louboutin outlet
air max
ralph lauren outlet
coach factory outlet
polo ralph lauren outlet online
air max 2015
canada goose coats
pandora jewelry outlet
nike basketball shoes
titans jersey
coach factory outlet online
louboutin outlet
coach outlet online
nba jerseys for sale
michael kors outlet clearance
air jordan retro
moncler outlet online
pandora jewelry outlet
bape hoodie
lacoste outlet
ralph lauren outlet
nike air force
valentino outlet
christian louboutin shoes
moncler outlet online
polo outlet store
kate spade
persol sunglasses sale
coach factory outlet online
philipp plein outlet
canada goose coats
christian louboutin shoes
fitflop sale
coach outlet online
michael kors outlet
coach factory outlet
air max outlet
coach outlet online
adidas nmd runner
mcm outlet
michael kors outlet online
nike outlet store online
coach outlet online
jordan shoes
air jordan
coach factory outlet online
pandora charms
cheap snapbacks
david yurman
ugg outlet clearance
gucci bags
coach factory outlet online
kevin durant shoes
fitflops
ralph lauren pas cher
ugg boots sale
ralph lauren polo
true religion outlet
converse shoes
michael kors factory outlet
coach factory outlet
birkenstocks
nike roshe
cazal outlet
coach handbags clearance
polo ralph lauren outlet online
coach factory outlet online
ugg
yeezy shoes
air jordan retro
coach outlet store online clearance
yeti tumbler
canada goose jackets
uggs outlet
true religion outlet store
camisetas futbol baratas
adidas sneakers
ugg boots
canada goose sale
off white clothing
coach factory outlet online
polo outlet
pandora outlet
michael kors outlet online
coach outlet
adidas slides
malone souliers shoes
pandora canada
y3 shoes
pandora charms outlet
chrome hearts outlet store
cheap mlb jerseys
ferragamo outlet
parajumpers jacket
nike outlet store
coach outlet clearance
jordan pas cher
ralph lauren polo
coach factory outlet
cheap jordan shoes
cnaada goose outlet store
nike sneakers
coach factorty outlet online
true religion
moncler jackets
toms
coach outlet store
pandora charms sale clearance
michael kors outlet store
coach outlet online
celine outlet
valentino
coach factory outlet online
ed hardy
jimmy choo shoes
ugg outlet
uggs outlet online
patriots jerseys
mcm outlet store
nike outlet store
north face outlet
adidas outlet online
true religion jeans
christian louboutin outlet
coach outlet store
mac cosmetics
vans shoes
kobe shoes
kate spade outlet online
swarovski jewelry outlet
uggs outlet
air jordan 14
coach outlet online
nike outlet store
jordan 31
cheap oakley sunglasses
kate spade outlet
coach outlet online
cowboys jerseys
coach outlet online
fred perry
michael kors outlet canada
christian louboutin shoes
adidas shoes
polo outlet store
coach outlet online
birkenstock outlet store
pandora charms
coach outlet online
louis vuitton outlet online
ysl outlet
uboutin shoes
toms outlet online
marc jacobs handbags
louboutin outlet
off white shirt
louboutin outlet
coach outlet online
stone island sale
hermes
polo ralph lauren outlet
cheap jordan shoes
michael kors outlet online
coach outlet online
moncler sito ufficiale
fitflops sale clearance
christian louboutin outlet
louboutin outlet
cheap ugg boots
ferragamo outlet
louboutin outlet
canada goose
coach outlet store online
coach outlet online
fjallraven backpack
coach factory outlet online
air max
ed hardy outlet
seattle seahawks jersey
ferragamo belts
true religion outlet
kate spade outlet
uggs outlet
cheap soccer jerseys
asics running shoes
cardinals jerseys
fitflops
david yurman
coach outlet online
mac makeup
cubs jerseys
durant shoes
coach outlet online
costa sunglasses sale
fitflops outlet
mlb jerseys
coach outlet online
adidas nmd
christian louboutin outlet
toms outlet store
ugg pas cher
jordan shoes
manolo blahnik outlet
pandora charms sale
ralph lauren uk
prada outlet online
kendra scott
valentino outlet store
north face outlet store
mbt shoes
polo ralph lauren outlet
prada outlet
phillies jerseys
michael kors bags
gymshark sale
ecco outlet
asics shoes
coach outlet online
true religion jeans outlet
fitflops sale clearance
coach outlet
pandora charms sale clearance
pandora charms sale
adidas yeezy shoes
coach handbags outlet
coach factory outlet online
supreme clothing
kate spade outlet sale
air jordan shoes
north face outlet
cardinals jerseys
nike outlet store
nike shoes
browns jerseys
fivefingers shoes
jordans
air huarache
gucci outlet online
kobe 12
ugg outlet
lacoste polo shirts
coach outlet clearance
air max
nike outlet online
coach factorty outlet online
kate spade handbags
pandora charms outlet
pandora charms
canada goose coats
polo ralph lauren outlet
christian louboutin outlet
michael kors outlet clearance
coach outlet store online
david yurman jewelry
pandora jewelry
ugg boots
pandora jewelry outlet
gucci outlet online
air max 2017
coach factory outlet
yeti
cheap jordans for sale
le coq sportif
cheap air jordans
coach outlet online
fitflops sale clearance
louis vuitton outlet store
kobe 11
uggs outlet
suicoke sandals
kate spade outlet online
adidas yeezy boost
coach factory outlet online
louboutin outlet
cheap maui jim sunglasses
the north face jackets
coach outlet store
vans sneakers
minnesota vikings jersey
ralph lauren outlet online
david yurman
coach outlet store
coach outlet canada
chelsea jersey
juicy couture
valentino outlet
nike max
coach outlet online
michael kors outlet canada
adidas nmd
ralph lauren outlet online
canada goose
true religion outlet store
cincinnati reds jerseys
michael kors outlet store
pandora charms
coach outlet store
michael kors outlet clearance
air jordan 3
ed hardy
coach factory outlet store
pandora charms outlet
celine outlet
cheap jordan shoes
gymshark sale
ed hardy
canada goose outlet
north face outlet store
coach factory outlet
coach factory outlet
true religion jeans
giuseppe zanotti outlet store
san diego chargers jerseys
mbt shoes outlet
ugg outlet store
coach outlet clearance
nike flip-flops
nike shoes
ralph lauren polo
prada outlet
adidas store
coach handbags
coach factory outlet online
michael kors outlet online
nike free flyknit
gucci outlet store
ray ban sunglasses outlet
pandora charms sale clearance
miu miu shoes
coach outlet online
coach outlet online
coach outlet store
kate spade outlet online
dolce & gabbana sunglasses
kate spade outlet online
coach factorty outlet store
nike air max 2018
louboutin outlet
air max pas cher
christian louboutin outlet
nike shoes
cheap ray ban sunglasses
converse shoes
canada goose outlet
kappa clothing
red sox jerseys
soccer shoes
cheap air jordans
hermes bags
pandora jewelry store
nike blazer
coach outlet online
nike free run
fila shoes
cheap snapbacks
yeezy shoes
nike outlet
ralph lauren uk
coach outlet online
nike air force 1
ronaldo jerseys
fjallraven kanken
ugg boots outlet
air max 270
ugg boots
coach factory outlet online
oakley sunglasses outlet
cheap jordan shoes
converse shoes
chi flat iron
coach outlet online
asics shoes
nike outlet store
north face outlet online
polo ralph lauren outlet
canada goose coats
air max shoes
michael kors handbags outlet
coach factory outlet
coach outlet
jordan shoes for sale
nike tn
michael kors outlet online
nike outlet
kate spade outlet online
suicoke sandals
hermes belt
nike outlet
twins jerseys
canada goose coats
nike outlet online
nike roshe run
kate spade outlet online
fitflops
yeti cup
true religion outlet
nike air max schweiz
coach outlet sale
cheap air max
christian louboutin outlet
pandora jewelry
juicy couture
coach handbags
adidas yeezy boost
coach outlet canada
ralph lauren outlet
coach outlet online
versace clothing
pandora charms
pandora charms
coach canada outlet
polo ralph lauren outlet online
kendra scott
coach factory outlet online
mulberry handbags
ralph lauren outlet
coach outlet online
converse????
jordan retro 11
pandora charms sale clearance
coach handbags
coach outlet store
coach outlet online
nike tn
ugg italia
mont blanc pen
air jordan shoes
true religion outlet
mbt shoes
toms shoes
coach outlet online
air jordan shoes
cheap mlb jerseys
denver broncos jersey
costa sunglasses sale
prada outlet
kate spade handbags
kate spade handbags
hydro flask sale
kyrie 2
cheap jordans free shipping
coach outlet store
true religion
coach outlet store
louis vuitton outlet online
true religion outlet store
coach outlet
canada goose outlet store
gucci outlet online
moncler
coach outlet online
retro 11
givenchy handbags
nike blazer
nike factory store
cheap snapbacks
foamposite shoe
coach outlet store online
kendra scott
houston texans jerseys
fitflops sale clearance
air max
adidas ultra boost
vibram fivefingers outlet
adidas wings shoes
packers jersey
birkenstock shoes
louboutin pas cher
canada goose outlet
persol sunglasses
coach outlet online
moncler outlet online
coach outlet store online
toms shoes
stone island hoodie
pandora outlet
hermes outlet store
coach outlet online
ralph lauren sale clearance uk
christian louboutin shoes
buffalo bills jersey
ravens jerseys
yolo

davidjohn
Posted On: 5/26/2019 3:53:27 PM

So many people are trying to purchase forskolin extract products after it was proved that they help a lot in loosing weight. search engine placement service Loosing weight was never as easy as taking supplements.