Scripts

January 27th, 2010 Leave a comment Go to comments

Active-Directory

Get-AD.ps1

This Script gets Information About Objects in Active-Directory. It’s got a few Parameters and Switches that allows us to specify what to search for and how to Return the objects found. You can choose which information to return through the Property parameter, you can Save the Information to a Csv file, You can return a System.DirectoryServices.DirectoryEntry Object that you can work with through PowerShell.. you can do lots of things.
Read more about it here >>

SharePoint 2010

Add-SharePointAnnouncement

This Script adds a new announcement to SharePoint 2010.
Read more about it here

Sharepoint

Get-SPSite.ps1

This Script Connects to a ShrePoint Site Collection.
Read more about it here

Get-SPWeb.ps1

This Script Connects to a SharePoint Web Site
Read more about it here

Get-SPList.ps1

This Script Gets a SharePoint List
Read more about it here

Get-SPField.ps1

This Script Gets a SharePoint Field
Read more about it here

Get-SPView.ps1

This Script Gets a SharePoint View
Read more about it here

Get-SPItem.ps1

This Script Gets a SharePoint Item
Read more about it here

Add-SPAnnouncement.ps1

This Script Creates a New Announcement
Read more about it here

Add-SPCalendar.ps1

This Script Creates a New Calendar Entry
Read more about it here

Add-SPLink.ps1

This Script Creates a New SharePoint Link Item
Read more about it here

Set-SPImageWebPart.ps1

This Script Sets a New Image to a Image WebPart
Read more about it here

Set-SPTheme.ps1

This Script Changes Site Theme
Read more about it here

Upload-SPDocument.ps1

This Script Uploads a Document to a Document Library
Read more about it here

Add-SPFolder.ps1

This Script adds a Folder to a Document Library
Read more about it here

Add-SPTextField.ps1

This Script adds a Text Field to a List
Read more about it here

Add-SPChoiceField.ps1

This Script adds a Choice Field to a List
Read more about it here

Add-SPFieldToView.ps1

This Script adds a Field to a View in SharePoint
Read more about it here

Set-SPItem.ps1

This Script Creates a New Item Or Modifies an existing Item in a SharePoint List
Read more about it here

Add-SPList.ps1

This Script Creates a new SharePoint List
Read more about it here

Add-SPListToQuickLaunch.ps1

This Script adds a List to the QuickLaunch.
Read more about it here

Set-SPQuickLaunchOrder.ps1

This Script adds a List to the Top of the QuickLaunch Bar.
Read more about it here

Add-SPCurrencyField.ps1

This Script adds a Currency Field to a List
Read more about it here

Add-SPDateTimeField.ps1

This Script adds a DateTime Field to a List
Read more about it here

Add-SPNoteField.ps1

This Script adds a Notes Field to a List
Read more about it here

Add-SPNumberField.ps1

This Script adds a Numeric Field to a List
Read more about it here

Add-SPYesNoField.ps1

This Script adds a Boolean Yes/No Field to a List
Read more about it here

Add-SPUserField.ps1

This Script adds a User/Group Field to a List
Read more about it here

Add-SPMultipleUserField.ps1

This Script adds a Multiple User/Group Field to a List
Read more about it here

Add-SPMultiChoiceField.ps1

This Script adds a Multiple Choice Field to a List
Read more about it here

Add-SPLookupField.ps1

This Script adds a Lookup Field to a List
Read more about it here

Add-SPMultiLookupField.ps1

This Script adds a Multiple Lookup Field to a List
Read more about it here

Add-SPURLField.ps1

This Script adds a URL Field to a List
Read more about it here

Set-SPView.ps1

This Script Modifies a View Based on a View Query in SharePoint
Read more about it here

Add-SPSpite.ps1

This Script Creates a New Site in SharePoint
Read more about it here

Add-SPGroup.ps1

This Script adds a New Group to SharePoint
Read more about it here

Add-SPUser.ps1

This Script adds a New User to a Group in SharePoint
Read more about it here

Add-SPSitePermission.ps1

This Script Sets Permissions for a Group on a SharePoint Site
Read more about it here

Add-SPImageWebPart.ps1

This Script adds a new Image WebPart to a Site
Read more about it here

Add-SPListViewWebPart.ps1

This Script adds a New List View WebPart to a Site
Read more about it here

Remove-SPField.ps1

This Script Removes a Field in a SharePoint List
Read more about it here

Remove-SPItem.ps1

This Script Removes an Item in a SharePoint List
Read more about it here

Remove-SPList.ps1

This Script Removes a List in SharePoint
Read more about it here

Remove-SPSite.ps1

This Script Removes SharePoint Site
Read more about it here

Export-SPSite.ps1

This Script Takes a Backup of a SharePoint Site Collection
Read more about it here

Import-SPSite.ps1

This Script Restores a Backup of a SharePoint Site Collection
Read more about it here

Check-SiteDirectory.ps1

This Sctipt Checks The SiteDirectory for Approved Sites and creates them if they do not exist
Read more about it here

Get-Siteinformation.ps1

The script gathers information from SharePoint SiteCollection and retrieves the information to the host or to a Csv file.
Read more about it here >>

Remove-SPuser.ps1

This is a script that Removes a User from a SiteCollection if the User exists.
Read more about it here >>

Create-Sites.ps1

This Script adds Sites to Sharepoint based on a Csv file.
Read more about it here >>

SQL

Get-SQL.ps1

This Script lets you Query an SQL Database and get the information returned in a HashTable Array.
Read more about it here >>

Set-SQL.ps1

This Script Let’s you Modify SQL databases through PowerShell.
Read more about it here >>

Client Management

Set.LocalGroup.ps1

This script Adds or Removes Local or Domain Users to a Local Group.
Read more about it here >>

Set-LocalAccount.ps1

This script Adds or Removes Local Accounts.
Read more about it here >>

Get-PrinterInformation.ps1

This script Retrieves printer information from a local or remote client.
Read more about it here >>

Set-Folderpermission.ps1

This script sets the permissions on a folder.
Read more about it here >>

Get-Inventory.ps1

This script retrieves client information through WMI..
Read more about it here >>

Get-ComputersOnline.ps1

This Script Pings through a List of Computers and returns IP, ComputerName and Status to a HashTable Array, It contains a switch that handles Windows7 Computers.

Office

Insert-PageBreak.ps1

This Script Inserts a Page Break after Paragraphs or Headings.
Read more about it here >>

Replace-Word.ps1

This Script Replaces text in a Word document through the Word.Application COM Object
Read more about it here >>

Other

Rss-Read.ps1

This script Gets the latest posts from www.PowerShell.nu and presents the information in the PowerShell host. The Script also uses the COM Object Sapi.SPVoice to Read the Headline for each post.
.
Read more about it here >>

  1. Michael
    April 6th, 2011 at 03:40 | #1

    You are a GOD! Thank you for this site.

  2. Ofer Gal
    May 26th, 2011 at 15:18 | #2

    I used Set-SPQuickLaunchOrder.ps1
    but I get “Property ‘OnQuickLaunch’ cannot be found on this object”
    Any idea why?

  3. Shyam
    November 25th, 2011 at 10:07 | #3

    Hi,
    if you will try to set this property while you are creating a list than it will give you that error.
    so instead of that try putting the update code in another function and call it once you are done with creating part.

    i mean i am not sure whether thats the reason behind that , but i got it working in that way, so please correct me if i am wrong.

    function UpdateList
    {
    $spweb = Get-SPWeb “http://xyz:444″
    $list = $spweb.Lists[$listName]
    $list.OnQuickLaunch = $true
    $list.Update()
    $spweb.Update()
    }

    Thanks.

  1. No trackbacks yet.

Comment Spam Protection by WP-SpamFree