SlideShare ist ein Scribd-Unternehmen logo
1 von 15
Downloaden Sie, um offline zu lesen
Lab Windows Server 2008

Lab # 22

WINDOWS POWERSHELL
I.

Giới thiệu Windows PowerShell

·

Windows PowerShell là một môi trường tương tác mới của hệ điều hành Windows, đặc biệt
thích hợp với nhiệm vụ quản trị hệ thống. PowerShell này gồm có một công cụ tương tác
trên dòng lệnh và một môi trường để thực thi script.

·

PowerShell đòi hỏi NET Framework 2.0, phiên bản hiện tại là PowerShell 2.0 được tích hợp
sẵn trong phiên bản Windows Server 2008 R2.

·

Windows PowerShell bao gồm một khái niệm mới là cmdlet, là một tập hợp các công cụ
đơn giản và hữu hiệu được tích hợp trên PowerShell. PowerShell bao gồm hơn 100 cmdlet
cơ bản.

·

PowerShell còn có khả năng truy cập các file system, registry và các kho lưu trữ khác trên
hệ thống.

II.

Cài đặt Windows PowerShell

Mở cửa sổ Server Manager. Trong khung Features Summary bên phải chọn Add Features.
Tiếp đến màn hình Select Features -> Windows PowerShell -> Next

LiveClub Hoa Sen
www.liveclubhoasen.net
Lab Windows Server 2008

Lab # 22

Tương tự, bạn thử chạy những lệnh khác rồi gán nó vào tập tin để xem thử.
Ngoài các lệnh quen thuộc bạn còn có thể thực hiện các nhiệm vụ quản trị hệ thống thông thường một cách
dễ dàng và nhanh chóng bằng những cmdlet. Ví dụ để khắc phục một sự cố trên máy chủ , bạn thường mở
cửa sổ Task Manager để xem tiến trình nào đang chạy, ai sử dụng chúng, mỗi tiến trình bao nhiêu RAM và
những thông tin liên quan khác. Với PowerShell, bạn chỉ cần sử dụng cmdlet Get-Process.

LiveClub Hoa Sen
www.liveclubhoasen.net
Lab Windows Server 2008

Lab # 22

Để theo dõi, giám sát các services đang chạy trên hệ thống ta có thể sử dụng lệnh Get-Service

LiveClub Hoa Sen
www.liveclubhoasen.net
Lab Windows Server 2008

Lab # 22

Xem thông tin về hệ điều hành
Bạn gõ lệnh: get-wmiobject -class win32_operatingsystem

Xem thông tin về ổ đĩa :
Bạn gõ lệnh: get-wmiobject -class win32_logicaldisk

LiveClub Hoa Sen
www.liveclubhoasen.net
Lab 22 windows power shell
Lab 22 windows power shell
Lab 22 windows power shell

Weitere ähnliche Inhalte

Was ist angesagt?

cai dat va quan tri Zpanel
cai dat va quan tri Zpanelcai dat va quan tri Zpanel
cai dat va quan tri Zpanellaonap166
 
Cấu hình chống spam mail exim trên cpanel
Cấu hình chống spam mail exim trên cpanelCấu hình chống spam mail exim trên cpanel
Cấu hình chống spam mail exim trên cpanellaonap166
 
Lab 2 nâng cấp windows server 2003 lên windows server 2008 .pdf
Lab 2 nâng cấp windows server 2003 lên windows server 2008 .pdfLab 2 nâng cấp windows server 2003 lên windows server 2008 .pdf
Lab 2 nâng cấp windows server 2003 lên windows server 2008 .pdfPham Viet Dung
 
Hướng dẫn backup exchange 2010 với windows server backup của windows server 2...
Hướng dẫn backup exchange 2010 với windows server backup của windows server 2...Hướng dẫn backup exchange 2010 với windows server backup của windows server 2...
Hướng dẫn backup exchange 2010 với windows server backup của windows server 2...laonap166
 
Project name
Project nameProject name
Project namethom Tomu
 
Cài đặt web server (linux)-Pham Hoang Phuc-Athena
Cài đặt web server (linux)-Pham Hoang Phuc-AthenaCài đặt web server (linux)-Pham Hoang Phuc-Athena
Cài đặt web server (linux)-Pham Hoang Phuc-AthenaHoàng Phúc Phạm
 
Hệ điều hành
Hệ điều hànhHệ điều hành
Hệ điều hànhĐấy Vợ
 
6 quan ly-tien_trinh
6 quan ly-tien_trinh6 quan ly-tien_trinh
6 quan ly-tien_trinhvantinhkhuc
 

Was ist angesagt? (11)

cai dat va quan tri Zpanel
cai dat va quan tri Zpanelcai dat va quan tri Zpanel
cai dat va quan tri Zpanel
 
Cấu hình chống spam mail exim trên cpanel
Cấu hình chống spam mail exim trên cpanelCấu hình chống spam mail exim trên cpanel
Cấu hình chống spam mail exim trên cpanel
 
Lab 2 nâng cấp windows server 2003 lên windows server 2008 .pdf
Lab 2 nâng cấp windows server 2003 lên windows server 2008 .pdfLab 2 nâng cấp windows server 2003 lên windows server 2008 .pdf
Lab 2 nâng cấp windows server 2003 lên windows server 2008 .pdf
 
Hướng dẫn backup exchange 2010 với windows server backup của windows server 2...
Hướng dẫn backup exchange 2010 với windows server backup của windows server 2...Hướng dẫn backup exchange 2010 với windows server backup của windows server 2...
Hướng dẫn backup exchange 2010 với windows server backup của windows server 2...
 
Project name
Project nameProject name
Project name
 
Install ssl xampp
Install ssl xamppInstall ssl xampp
Install ssl xampp
 
Cài đặt web server (linux)-Pham Hoang Phuc-Athena
Cài đặt web server (linux)-Pham Hoang Phuc-AthenaCài đặt web server (linux)-Pham Hoang Phuc-Athena
Cài đặt web server (linux)-Pham Hoang Phuc-Athena
 
Linux+04
Linux+04Linux+04
Linux+04
 
Servermanager
ServermanagerServermanager
Servermanager
 
Hệ điều hành
Hệ điều hànhHệ điều hành
Hệ điều hành
 
6 quan ly-tien_trinh
6 quan ly-tien_trinh6 quan ly-tien_trinh
6 quan ly-tien_trinh
 

Ähnlich wie Lab 22 windows power shell

Bao cao tuan 123
Bao cao tuan 123Bao cao tuan 123
Bao cao tuan 123vu1008
 
Chương 5. Phân tích các chương trình độc hại trên Window.pdf
Chương 5. Phân tích các chương trình độc hại trên Window.pdfChương 5. Phân tích các chương trình độc hại trên Window.pdf
Chương 5. Phân tích các chương trình độc hại trên Window.pdfdong55
 
Tài Liệu Học Quản Trị Mạng MCSA 2008 - ATHENA
Tài Liệu Học Quản Trị Mạng MCSA 2008 - ATHENATài Liệu Học Quản Trị Mạng MCSA 2008 - ATHENA
Tài Liệu Học Quản Trị Mạng MCSA 2008 - ATHENAnataliej4
 
Bài 1: Làm quen với SQL Server 2008 - Giáo trình FPT
Bài 1: Làm quen với SQL Server 2008 - Giáo trình FPTBài 1: Làm quen với SQL Server 2008 - Giáo trình FPT
Bài 1: Làm quen với SQL Server 2008 - Giáo trình FPTMasterCode.vn
 
Bai 1 lam quen voi sql 2008
Bai 1 lam quen voi sql 2008Bai 1 lam quen voi sql 2008
Bai 1 lam quen voi sql 2008Phương Nhung
 
Lab 5 read only domain controller
Lab 5 read only domain controller  Lab 5 read only domain controller
Lab 5 read only domain controller Pham Viet Dung
 
Lab 5 read only domain controller
Lab 5 read only domain controller  Lab 5 read only domain controller
Lab 5 read only domain controller tinhban269
 
Linux Network Administration (LPI-1,LPI-2)
Linux Network Administration (LPI-1,LPI-2)Linux Network Administration (LPI-1,LPI-2)
Linux Network Administration (LPI-1,LPI-2)laonap166
 
1.+tai+lieu+thiet+ke
1.+tai+lieu+thiet+ke1.+tai+lieu+thiet+ke
1.+tai+lieu+thiet+keLinh Hoang
 
Part 33 hacking - windows server update service - wsus -www.key4_vip.info
Part 33   hacking - windows server update service - wsus -www.key4_vip.infoPart 33   hacking - windows server update service - wsus -www.key4_vip.info
Part 33 hacking - windows server update service - wsus -www.key4_vip.infolaonap166
 
Bao cao hash injection
Bao cao hash injectionBao cao hash injection
Bao cao hash injectionphanleson
 
01.1-Quy trinh phat trien phan mem.pptx
01.1-Quy trinh phat trien phan mem.pptx01.1-Quy trinh phat trien phan mem.pptx
01.1-Quy trinh phat trien phan mem.pptxTunTrung15
 
Bao cao thuc tap tuan 1 Athena Tran Dang Khoa
Bao cao thuc tap tuan 1 Athena Tran Dang KhoaBao cao thuc tap tuan 1 Athena Tran Dang Khoa
Bao cao thuc tap tuan 1 Athena Tran Dang KhoaÂu Dương Bình
 
Bao cao thuc tap athena chinh sua
Bao cao thuc tap athena chinh suaBao cao thuc tap athena chinh sua
Bao cao thuc tap athena chinh suaHình Vô
 
Bao cao thuc tap
Bao cao thuc tapBao cao thuc tap
Bao cao thuc tapHình Vô
 
Giam sat-switch-bằng-phần-mềm-prtg
Giam sat-switch-bằng-phần-mềm-prtgGiam sat-switch-bằng-phần-mềm-prtg
Giam sat-switch-bằng-phần-mềm-prtglaonap166
 
Cấu trúc hệ điều hành
Cấu trúc hệ điều hànhCấu trúc hệ điều hành
Cấu trúc hệ điều hànhPhamTuanKhiem
 

Ähnlich wie Lab 22 windows power shell (20)

Bao cao tuan 123
Bao cao tuan 123Bao cao tuan 123
Bao cao tuan 123
 
Chương 5. Phân tích các chương trình độc hại trên Window.pdf
Chương 5. Phân tích các chương trình độc hại trên Window.pdfChương 5. Phân tích các chương trình độc hại trên Window.pdf
Chương 5. Phân tích các chương trình độc hại trên Window.pdf
 
Tài Liệu Học Quản Trị Mạng MCSA 2008 - ATHENA
Tài Liệu Học Quản Trị Mạng MCSA 2008 - ATHENATài Liệu Học Quản Trị Mạng MCSA 2008 - ATHENA
Tài Liệu Học Quản Trị Mạng MCSA 2008 - ATHENA
 
Servermanager
ServermanagerServermanager
Servermanager
 
Bài 1: Làm quen với SQL Server 2008 - Giáo trình FPT
Bài 1: Làm quen với SQL Server 2008 - Giáo trình FPTBài 1: Làm quen với SQL Server 2008 - Giáo trình FPT
Bài 1: Làm quen với SQL Server 2008 - Giáo trình FPT
 
Bai 1 lam quen voi sql 2008
Bai 1 lam quen voi sql 2008Bai 1 lam quen voi sql 2008
Bai 1 lam quen voi sql 2008
 
Lab 5 read only domain controller
Lab 5 read only domain controller  Lab 5 read only domain controller
Lab 5 read only domain controller
 
Lab 5 read only domain controller
Lab 5 read only domain controller  Lab 5 read only domain controller
Lab 5 read only domain controller
 
Linux Network Administration (LPI-1,LPI-2)
Linux Network Administration (LPI-1,LPI-2)Linux Network Administration (LPI-1,LPI-2)
Linux Network Administration (LPI-1,LPI-2)
 
1.+tai+lieu+thiet+ke
1.+tai+lieu+thiet+ke1.+tai+lieu+thiet+ke
1.+tai+lieu+thiet+ke
 
Part 33 hacking - windows server update service - wsus -www.key4_vip.info
Part 33   hacking - windows server update service - wsus -www.key4_vip.infoPart 33   hacking - windows server update service - wsus -www.key4_vip.info
Part 33 hacking - windows server update service - wsus -www.key4_vip.info
 
Bao cao hash injection
Bao cao hash injectionBao cao hash injection
Bao cao hash injection
 
Linux+02
Linux+02Linux+02
Linux+02
 
3250
32503250
3250
 
01.1-Quy trinh phat trien phan mem.pptx
01.1-Quy trinh phat trien phan mem.pptx01.1-Quy trinh phat trien phan mem.pptx
01.1-Quy trinh phat trien phan mem.pptx
 
Bao cao thuc tap tuan 1 Athena Tran Dang Khoa
Bao cao thuc tap tuan 1 Athena Tran Dang KhoaBao cao thuc tap tuan 1 Athena Tran Dang Khoa
Bao cao thuc tap tuan 1 Athena Tran Dang Khoa
 
Bao cao thuc tap athena chinh sua
Bao cao thuc tap athena chinh suaBao cao thuc tap athena chinh sua
Bao cao thuc tap athena chinh sua
 
Bao cao thuc tap
Bao cao thuc tapBao cao thuc tap
Bao cao thuc tap
 
Giam sat-switch-bằng-phần-mềm-prtg
Giam sat-switch-bằng-phần-mềm-prtgGiam sat-switch-bằng-phần-mềm-prtg
Giam sat-switch-bằng-phần-mềm-prtg
 
Cấu trúc hệ điều hành
Cấu trúc hệ điều hànhCấu trúc hệ điều hành
Cấu trúc hệ điều hành
 

Mehr von Pham Viet Dung

Triển khai phần mềm trên domain
Triển khai phần mềm trên domainTriển khai phần mềm trên domain
Triển khai phần mềm trên domainPham Viet Dung
 
Lab 26 netwok load balancing
Lab 26 netwok load balancingLab 26 netwok load balancing
Lab 26 netwok load balancingPham Viet Dung
 
Lab 25 additional domain
Lab 25 additional domain Lab 25 additional domain
Lab 25 additional domain Pham Viet Dung
 
Lab 24 distribute file system
Lab 24 distribute file system  Lab 24 distribute file system
Lab 24 distribute file system Pham Viet Dung
 
Lab 23 ảo hóa hyper v .pdf
Lab 23 ảo hóa hyper v .pdfLab 23 ảo hóa hyper v .pdf
Lab 23 ảo hóa hyper v .pdfPham Viet Dung
 
Lab 21 windows firewall with advanced security
Lab 21 windows firewall with advanced security  Lab 21 windows firewall with advanced security
Lab 21 windows firewall with advanced security Pham Viet Dung
 
Lab 20 active directory right managment services (ad rms)
Lab 20 active directory right managment services (ad rms)     Lab 20 active directory right managment services (ad rms)
Lab 20 active directory right managment services (ad rms) Pham Viet Dung
 
Lab 19 network access protection
Lab 19 network access protection Lab 19 network access protection
Lab 19 network access protection Pham Viet Dung
 
Lab 16 terminal services
Lab 16 terminal services  Lab 16 terminal services
Lab 16 terminal services Pham Viet Dung
 
Lab 18 active directory certificate services
Lab 18 active directory certificate services Lab 18 active directory certificate services
Lab 18 active directory certificate services Pham Viet Dung
 
Lab 17 windows deployment services
Lab 17 windows deployment servicesLab 17 windows deployment services
Lab 17 windows deployment servicesPham Viet Dung
 
Lab 1 cài đặt windows server 2008.pdf
Lab 1 cài đặt windows server 2008.pdfLab 1 cài đặt windows server 2008.pdf
Lab 1 cài đặt windows server 2008.pdfPham Viet Dung
 
Lab 4 active directory domain services
Lab 4 active directory domain services Lab 4 active directory domain services
Lab 4 active directory domain services Pham Viet Dung
 
Lab 3 công cụ quản trị server manager .pdf
Lab 3 công cụ quản trị server manager  .pdfLab 3 công cụ quản trị server manager  .pdf
Lab 3 công cụ quản trị server manager .pdfPham Viet Dung
 
Windows deployment services
Windows deployment servicesWindows deployment services
Windows deployment servicesPham Viet Dung
 

Mehr von Pham Viet Dung (20)

Triển khai phần mềm trên domain
Triển khai phần mềm trên domainTriển khai phần mềm trên domain
Triển khai phần mềm trên domain
 
Lab 26 netwok load balancing
Lab 26 netwok load balancingLab 26 netwok load balancing
Lab 26 netwok load balancing
 
Lab 25 additional domain
Lab 25 additional domain Lab 25 additional domain
Lab 25 additional domain
 
Lab 24 distribute file system
Lab 24 distribute file system  Lab 24 distribute file system
Lab 24 distribute file system
 
Lab 23 ảo hóa hyper v .pdf
Lab 23 ảo hóa hyper v .pdfLab 23 ảo hóa hyper v .pdf
Lab 23 ảo hóa hyper v .pdf
 
Lab 21 windows firewall with advanced security
Lab 21 windows firewall with advanced security  Lab 21 windows firewall with advanced security
Lab 21 windows firewall with advanced security
 
Lab 20 active directory right managment services (ad rms)
Lab 20 active directory right managment services (ad rms)     Lab 20 active directory right managment services (ad rms)
Lab 20 active directory right managment services (ad rms)
 
Lab 19 network access protection
Lab 19 network access protection Lab 19 network access protection
Lab 19 network access protection
 
Lab 16 terminal services
Lab 16 terminal services  Lab 16 terminal services
Lab 16 terminal services
 
Lab 18 active directory certificate services
Lab 18 active directory certificate services Lab 18 active directory certificate services
Lab 18 active directory certificate services
 
Lab 17 windows deployment services
Lab 17 windows deployment servicesLab 17 windows deployment services
Lab 17 windows deployment services
 
Lab 14 group policy
Lab 14 group policy Lab 14 group policy
Lab 14 group policy
 
Lab 12 print server
Lab 12 print server   Lab 12 print server
Lab 12 print server
 
Lab 11 ftp server
Lab 11 ftp server  Lab 11 ftp server
Lab 11 ftp server
 
Lab 10 web server
Lab 10 web server Lab 10 web server
Lab 10 web server
 
Lab 8 dhcp server
Lab 8 dhcp server Lab 8 dhcp server
Lab 8 dhcp server
 
Lab 1 cài đặt windows server 2008.pdf
Lab 1 cài đặt windows server 2008.pdfLab 1 cài đặt windows server 2008.pdf
Lab 1 cài đặt windows server 2008.pdf
 
Lab 4 active directory domain services
Lab 4 active directory domain services Lab 4 active directory domain services
Lab 4 active directory domain services
 
Lab 3 công cụ quản trị server manager .pdf
Lab 3 công cụ quản trị server manager  .pdfLab 3 công cụ quản trị server manager  .pdf
Lab 3 công cụ quản trị server manager .pdf
 
Windows deployment services
Windows deployment servicesWindows deployment services
Windows deployment services
 

Lab 22 windows power shell

  • 1. Lab Windows Server 2008 Lab # 22 WINDOWS POWERSHELL I. Giới thiệu Windows PowerShell · Windows PowerShell là một môi trường tương tác mới của hệ điều hành Windows, đặc biệt thích hợp với nhiệm vụ quản trị hệ thống. PowerShell này gồm có một công cụ tương tác trên dòng lệnh và một môi trường để thực thi script. · PowerShell đòi hỏi NET Framework 2.0, phiên bản hiện tại là PowerShell 2.0 được tích hợp sẵn trong phiên bản Windows Server 2008 R2. · Windows PowerShell bao gồm một khái niệm mới là cmdlet, là một tập hợp các công cụ đơn giản và hữu hiệu được tích hợp trên PowerShell. PowerShell bao gồm hơn 100 cmdlet cơ bản. · PowerShell còn có khả năng truy cập các file system, registry và các kho lưu trữ khác trên hệ thống. II. Cài đặt Windows PowerShell Mở cửa sổ Server Manager. Trong khung Features Summary bên phải chọn Add Features. Tiếp đến màn hình Select Features -> Windows PowerShell -> Next LiveClub Hoa Sen www.liveclubhoasen.net
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7. Lab Windows Server 2008 Lab # 22 Tương tự, bạn thử chạy những lệnh khác rồi gán nó vào tập tin để xem thử. Ngoài các lệnh quen thuộc bạn còn có thể thực hiện các nhiệm vụ quản trị hệ thống thông thường một cách dễ dàng và nhanh chóng bằng những cmdlet. Ví dụ để khắc phục một sự cố trên máy chủ , bạn thường mở cửa sổ Task Manager để xem tiến trình nào đang chạy, ai sử dụng chúng, mỗi tiến trình bao nhiêu RAM và những thông tin liên quan khác. Với PowerShell, bạn chỉ cần sử dụng cmdlet Get-Process. LiveClub Hoa Sen www.liveclubhoasen.net
  • 8.
  • 9. Lab Windows Server 2008 Lab # 22 Để theo dõi, giám sát các services đang chạy trên hệ thống ta có thể sử dụng lệnh Get-Service LiveClub Hoa Sen www.liveclubhoasen.net
  • 10.
  • 11.
  • 12. Lab Windows Server 2008 Lab # 22 Xem thông tin về hệ điều hành Bạn gõ lệnh: get-wmiobject -class win32_operatingsystem Xem thông tin về ổ đĩa : Bạn gõ lệnh: get-wmiobject -class win32_logicaldisk LiveClub Hoa Sen www.liveclubhoasen.net