Updating...
Code
Plex
Project Hosting for Open Source Software
Register
Sign In
Windows7Library for Powershell
RSS
Subscribe to Project
All Project Updates
Issue Tracker
Releases
Reviews
Source Code
Wiki & Documentation
RSS
Subscribe to Project
home
downloads
documentation
issue tracker
source code
people
license
Release 0.5
Rating:
No reviews yet
Downloads:
184
Released:
Jun 22 2011
Updated:
Jun 22 2011
by
rharper
Dev status:
Beta
Recommended Download
Windows7Library.zip
source code, 142K, uploaded
Jun 22 2011
- 184 downloads
Release Notes
Updated with comment based help -and based on feedback.
Release Notes
Short install guide:
(Extract to one of your folders given in $ENV:PSModulePath to simplify usage.)
Steps to install to your Modules folder:
Extract content from zip file to
~/documents/windowspowershell/modules/Windows7Library
If you don`t have the Modules folder in your WindowsPowershell folder, just create it.
From inside your Powershell session type the following command:
Import-Module Windows7Library
PLEASE NOTE
If this fails, please check that you allow scripts to run. If you demand Signed scripts, this script is not signed.
Also note that you might have to Unblock the file (as the file is downloaded from the Internet).
This should be done on the file Windows7Library.psm1 that you just extracted. (Right-Click the file, Properties and Unblock)
The commands inside the module is:
*Get-Library
*Add-Library
*Get-LibraryFolder
*Set-LibraryFolder
*Add-LibraryFolder
*Remove-LibraryFolder
*Get-KnownFolder
How to use?
Get-KnownFolder
To see all the knownfolders:
Get-KnownFolder -list
To get the path to the Documents Library
(Get-KnownFolder "DocumentsLibrary").Path
Get-Library
To read the Documents Library object:
$library=Get-Library -LibraryName Documents
Your could now play with the Library object:
$library | get-member
Get-LibraryFolder
Returns a list of the defined library folders
Get-LibraryFolder -LibraryName Documents
Add-LibraryFolder
Adds an folder to the library
Add-LibraryFolder -LibraryName Documents -FolderPath "\\server\share\folder"
Remove-LibraryFolder
Removes an defined library folder
Remove-LibraryFolder -LibraryName Documents -FolderPath "\\server\share\folder"
Set-LibraryFolder
Set-LibraryFolder lets you define the default save folder for the library (note that the folder must be included in the library)
Set-LibraryFolder -LibraryName Documents -DefaultSaveFolder "c:\docs"
Add-Library
With Add-Library you could create your own Libraries
Add-Library -Name "My Own Library"
Have fun
Reviews for this release
No reviews yet for this release.
To download the file you must agree to the following license.
X
Microsoft Public License (Ms-PL) This license governs use of the accompanying software. If you use the software, you accept this license. If you do not accept the license, do not use the software. 1. Definitions The terms "reproduce," "reproduction," "derivative works," and "distribution" have the same meaning here as under U.S. copyright law. A "contribution" is the original software, or any additions or changes to the software. A "contributor" is any person that distributes its contribution under this license. "Licensed patents" are a contributor's patent claims that read directly on its contribution. 2. Grant of Rights (A) Copyright Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free copyright license to reproduce its contribution, prepare derivative works of its contribution, and distribute its contribution or any derivative works that you create. (B) Patent Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free license under its licensed patents to make, have made, use, sell, offer for sale, import, and/or otherwise dispose of its contribution in the software or derivative works of the contribution in the software. 3. Conditions and Limitations (A) No Trademark License- This license does not grant you rights to use any contributors' name, logo, or trademarks. (B) If you bring a patent claim against any contributor over patents that you claim are infringed by the software, your patent license from such contributor to the software ends automatically. (C) If you distribute any portion of the software, you must retain all copyright, patent, trademark, and attribution notices that are present in the software. (D) If you distribute any portion of the software in source code form, you may do so only under this license by including a complete copy of this license with your distribution. If you distribute any portion of the software in compiled or object code form, you may only do so under a license that complies with this license. (E) The software is licensed "as-is." You bear the risk of using it. The contributors give no express warranties, guarantees or conditions. You may have additional consumer rights under your local laws which this license cannot change. To the extent permitted under your local laws, the contributors exclude the implied warranties of merchantability, fitness for a particular purpose and non-infringement.
Opera does not support ClickOnce
X
To install this application, save it and then open it. Opening it directly from Opera will not work correctly.
Other Downloads
Released
|
Planned
Release 0.5
Jun 22 2011
, Beta
0.1
Sep 2 2009
, Beta
There are no Planned releases for this project.
e-mail icon
Release notifications
Sign in
to display notification settings.
X
Email me
(change e-mail address)
Unsubscribe
Also stop notifications for
individual
issue(s) I subscribed to.