14
Powershell & Dell Command | Powershell Provider Arti Srivastava

Powershell dcpp

Embed Size (px)

Citation preview

Page 1: Powershell dcpp

Powershell&

Dell Command | Powershell Provider

Arti Srivastava

Page 2: Powershell dcpp

Agenda

2

• Powershell Introduction• Dell Command | Powershell Provider

Page 3: Powershell dcpp

History

3

Powershell Version Release Date

OS Supported .Net framework version supported

Powershell1.0 2006 Windows2003, XP .Net 2.0

Powershell 2.0 2009 Windows 2008 R2 .Net 2.0

Powershell 3.0 2012 Windows 2012, Windows 8

.Net 4.0

Powershell 4.0 2013 Wwindows 2012 R2, Windows 8.1

.Net 4.5

Powershell 5.0 2014 NA .Net 4.5

Page 4: Powershell dcpp

Determine Power shell Version

4

• Windows Management Framework

• Download MSU file

• RT is for tablet

• $PSVersionTable

• $PSVersionTable.PSVersion

Page 5: Powershell dcpp

How to get Help

5

• Help

• Get-help

• Get-help get-date -showwindow

• Gcm is alias

• Gcm event*

• Gcm –verb get

• Gcm –noun even*

• Update-help(Update all the help files)

• Save-help

Page 6: Powershell dcpp

ISE

6

• Integrated Scripting Environment

• IDE -> Integrated Development Environment

Page 7: Powershell dcpp

Cmdlet structure

7

• Verb-Noun –parameter value switch

• Parameter– Positional

– Named

• switch-> whatif,

• Get-log –logname Application –computername dc1 –newest 3

Page 8: Powershell dcpp

8

Alias cat -> Get-Content

Alias cd -> Set-Location

Alias copy -> Copy-Item

Alias ls -> Get-ChildItem

Alias echo -> Write-Output

Alias history -> Get-History

Alias kill -> Stop-Process

Alias man -> help

Alias mount -> New-PSDrive

Alias mv -> Move-Item

Alias ps -> Get-Process

Alias wget -> Invoke-WebRequest

Get-alias(Some of the linux commands in Powershell)

Page 9: Powershell dcpp

Cmdlet structure

9

• Verb-Noun –parameter value switch

• Parameter– Positional

– Named

• switch-> whatif,

• Get-log –logname Application –computername dc1 –newest 3

Page 10: Powershell dcpp

Dell Command | Powershell Provider

DCPP can configure the BIOS settings on Precision, Latitude, Optiplex and Venue line of client systems. 

10

Page 11: Powershell dcpp

DCPP Installation

11

• DCPP can be installed in 2 ways– Zip/Self Extractable file available in techcenter

– Using Powershell Gallery

Page 12: Powershell dcpp

DCPP Installation(Zip/Self Extractable file)

12

• DCPP Zip/Self Extractable file - link

• Refer this link for detailed instructions

Page 13: Powershell dcpp

DCPP Installation(Powershell Gallery)

13

• PowerShell 5.0 required to deploy DCPP using Powershell gallery

• Set-ExecutionPolicy RemoteSigned• Check if dellbiosprovider is already available -> Get-module -listavailable

• Find-module dell*

• Install-module dellbiosprovider

• Import-module dellbiosprovider

• gdr

• cd dellsmbios:

• dir

• Get-item .Adaptersettings | select *

• set-item .Adaptersettings