.NET Logo
Welcome Guest Search | Active Topics | Members | Log In | Register

powershell ครั้งที่ 19 Options · View
paedotnet
Posted: Thursday, February 21, 2008 3:43:02 AM

Rank: มือเทพ
Groups: Member

Joined: 12/6/2007
Posts: 344
Location: bkk

การใช้งาน Registry Provider
เราสามารถ ใช้ registry provider ในการจัดการกับ registry ได้โดยสามารถค้นหาหรือสร้าง registry keys ได้
ในการเข้าถึง registry สามารถทำได้ดังนี้


 Get-PSDrive | Where{$_.Provider -like "*Registry*"}

ผลลัพธ์นี้เราจะมีรายชื่อของ Registry ออกมา คือ HKCU , HKLM
เราสามารถแสดงรายละเอียดของ HKLM:\ ได้โดยเขียนโค้ดดังนี้


Get-ChildItem  -Path HKLM:\Software

ในการค้นหา Hotfixes
เขียนได้ดังนี้


Get-ChildItem -Path 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion\HotFix'
ผลลัพธ์จะแสดงรายชื่อ hotfix ออกมา

 



[With great power comes great responsibility]
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Powered by Yet Another Forum.net version 1.9.1.8 (NET v2.0) - 3/29/2008
Copyright © 2003-2008 Yet Another Forum.net. All rights reserved.


Sponsored by