Tuesday, September 1, 2015

SharePoint Search Service Application PowerShell

 

Check the crawl status of all content sources in your SSA where SSA is search service application.

Get-SPEnterpriseSearchCrawlContentSource -SearchApplication "Search Service Application" | select Name, CrawlStatus | format-table –autosize

image

Total number of list items in a SharePoint Web Application

https://blogs.technet.microsoft.com/nishants/2012/05/04/total-number-of-list-items-in-a-sharepoint-web-application/

Tuesday, May 12, 2015

PowerShell Tip #3 - Integrated Scripting Environment

 

There are several ISE or Integrated Scripting Environments available for PowerShell.  The cost runs from free to several hundred dollars on the high end.

Introducing the Windows PowerShell ISE

https://technet.microsoft.com/en-us/library/dd315244.aspx

ISESteroidsTM is new add-on for the Windows PowerShell ISE editor

http://www.powertheshell.com/isesteroids/

PowerShell Studio 2015

The premier Windows PowerShell integrated scripting and tool-making environment available.

https://www.sapien.com/software/powershell_studio

SharePoint

http://thecloudengineer.blogspot.com/2011/10/create-ise-enabled-for-sharepoint.html

Run as Administrator

http://powershell101.blogspot.com/2014/07/ise.html

PowerShell Tip: #2 – SharePoint PowerShell

I love using the ISE to make building your scripts easier and using F5 and F8 keys to help run your scripts.  But I need to use the ISE on SharePoint. No problem just add the snap-in.  But wait, the snap-in goes away when you close the ISE.  No problem just add the SharePoint snap-in to your profile.

http://thecloudengineer.blogspot.com/2011/10/create-ise-enabled-for-sharepoint.html

PowerShell Tip: #1 – PowerShell Demo Scripts

Use ISE to make building your scripts easier.  You can run the script line by line or the entire script by using the F5 and F8 keys to help run your scripts.  If you don’t like the built-in ISE from your OS you can use a free add-on from Idera called PowerShell Plus.

https://www.idera.com/productssolutions/freetools/powershellplus

But during demos you can accidently hit he wrong key, that is run the entire script that kills the demo.  So make sure to include a break at the top of the script

break

Thank you Ashley http://blogs.technet.com/b/ashleymcglone/

Wednesday, April 15, 2015

Active Directory PowerShell

Great question: Can I Create Active Directory Users Based On Excel Input

https://gallery.technet.microsoft.com/scriptcenter/PowerShell-Create-Active-7e6a3978

Great question:  How do I find all the attributes of my users in the Active Directory

First start by starting the Active Directory Module for Windows PowerShell

SNAGHTMLabcee102

Get-ADUser -filter *
image 

Problem is however if you get all the users using -filter * you are missing some attributes. So using a wildcard for the properties will return all.

image 
Using OGV (Out-Gridview) you get a quick view report





Get-ADUser -filter * -properties * | ogv




image



NOTE: You can use the same format above for ad users, ad groups or ad computers

Get-ADComputerUser -filter * -properties * | ogv

Get-ADGroup -filter * -properties * | ogv

Get-ADUser -filter * -properties * | ogv




SNAGHTMLabdebe56



Hope that Helps, Happy PowerShelling