Description
To create a new Windows PowerShell drive, you must supply three parameters:
· A name for the drive (you can use any valid Windows PowerShell name)
· The PSProvider (use "FileSystem" for file system locations and "Registry" for registry locations)
· The root, that is, the path to the root of the new drive
Source Code
New-PSDrive -Name Startup -PSProvider Registry -Root HKLM\Software\Microsoft\Windows\CurrentVersion\Run
Now we can use cd Startup:
Source Code and Samples
Monday, 5 February 2007
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment