SlideShare a Scribd company logo
1 of 3
Download to read offline
 
SharePoint	
  Object	
  Model	
  Compared	
  to	
  a	
  School	
  System	
  
(IIS	
  website)	
  
(Site	
  Collection)	
  
SPFarm	
  
• Farm	
  is	
  the	
  top	
  level	
  in	
  the	
  object	
  model.	
  
• Managed	
  via	
  Central	
  Admin	
  
• A	
  farm	
  will	
  have	
  one	
  or	
  more	
  Web	
  
Applications	
  
	
  
SPWebApplication	
  
• Found	
  in	
  IIS	
  as	
  an	
  IIS	
  website	
  
• Determines	
  the	
  Base	
  URL	
  of	
  the	
  site	
  
• Contains	
  1	
  ore	
  more	
  Site	
  Collections	
  
	
  
SPSite	
  	
  
• Same	
  as	
  “Site	
  Collection”	
  
• An	
  Organizational	
  unit	
  
• Can	
  easily	
  move	
  a	
  whole	
  SPSite	
  
between	
  Databases	
  
• Each	
  SPSite	
  contains	
  1	
  ore	
  more	
  
SPWEB’s	
  	
  
SPWeb	
  
• Where	
  real	
  work	
  happens	
  
• Contains	
  Lists,	
  libraries,	
  Pages,	
  
etc..	
  
	
  
	
  
SharePoint	
  PowerShell	
  Cheat	
  Sheet	
  
SharePointJack.com	
  
School	
  District	
  
• School	
  District	
  oversees	
  all	
  schools	
  in	
  the	
  
district.	
  
• Address	
  of	
  Office	
  ≠	
  Address	
  of	
  School(s)	
  
• A	
  School	
  District	
  will	
  have	
  1	
  or	
  more	
  Schools	
  
School	
  
• Found	
  within	
  the	
  physical	
  boundaries	
  of	
  
the	
  taxing	
  school	
  districts	
  geographical	
  
area	
  
• Has	
  a	
  physical	
  address	
  people	
  go	
  to.	
  
• Has	
  1	
  or	
  more	
  Departments	
  	
  
	
  
Department	
  	
  	
  	
  
• A	
  way	
  to	
  organize	
  teachers	
  and	
  
classes	
  by	
  purpose	
  
• Math	
  Department	
  
• Athletic	
  Department	
  etc.	
  
	
  
Classroom	
  
• Where	
  learning	
  happens	
  
• Contains	
  books,	
  supplies,	
  
whiteboards,	
  etc.	
  	
  
	
  
Load	
  the	
  SharePoint	
  Snap	
  In	
  as	
  part	
  of	
  your	
  scripts	
  
Load	
  a	
  Snap	
  in	
  for	
  added	
  functionality,	
  supressing	
  error	
  info	
  if	
  the	
  snap	
  in	
  is	
  already	
  loaded.	
  
Add-PSSnapin microsoft.sharepoint.powershell -ErrorAction SilentlyContinue
Finding	
  Out	
  more…	
  
Get	
  a	
  list	
  of	
  all	
  SharePoint	
  related	
  commands	
  
Get-Command *-SP*
Get	
  information	
  about	
  any	
  Command	
  
Get-Help Get-SPSite -full
 
SharePoint	
  Object	
  Model	
  Useful	
  PowerShell	
  Commands	
  
Farm	
  Commands	
  
Get	
  the	
  Farm	
  object	
  
$Farm = Get-SPFarm
List	
  Alternate	
  Access	
  Mappings	
  
$(Get-SPFarm).AlternateUrlCollections
List	
  Servers	
  in	
  Farm	
  
$(Get-SPFarm).Servers
	
  
Web	
  Application	
  (IIS	
  Site)	
  Commands:	
  	
  	
  	
  
Get	
  a	
  single	
  web	
  application	
  
Get-SPWebApplication http://your.url
Get	
  all	
  web	
  applications	
  in	
  the	
  Farm	
  
Get-SPWebApplication
	
  
Site	
  Collection	
  Commands	
  
Get	
  a	
  specific	
  site	
  collection	
  
Get-SPSite http://your.url
All	
  Site	
  Collections	
  in	
  a	
  Web	
  Application	
  
Get-SPSite –webapplication http://your.url -limit all
All	
  site	
  Collections	
  in	
  the	
  Farm	
  
Get-SPSite –Limit All
Get	
  Sitecollections	
  from	
  a	
  Web	
  Application	
  Object	
  
$webapp = get-spwebapplication http://your.url
$webapp.sites
	
  
Web	
  Commands	
  
Get	
  a	
  specific	
  web	
  
Get-SPWeb http://your.url/sites/SiteCollection/yourweb
Get	
  all	
  webs	
  in	
  a	
  single	
  site	
  collection	
  
Get-SPWeb –site http://your.url/sites/SiteCollection
Get	
  all	
  webs	
  in	
  a	
  single	
  site	
  collection,	
  from	
  a	
  site	
  collection	
  object	
  
$SC = Get-SPSite http://your.url
$SC.AllWebs
Get	
  all	
  webs	
  in	
  a	
  Web	
  Application	
  
$SITES = Get-SPSite –WebApplication http://your.url -Limit all
foreach ($oneSite in $sites) { $OneSite.AllWebs }
Get	
  all	
  webs	
  in	
  the	
  farm	
  
$webApps = Get-SPWebApplication
foreach ($webApp in $webApps)
{
foreach ($site in $webApp.Sites)
{
$site.allwebs
}
}
 
ULS	
  commands…	
  
Close	
  the	
  current	
  ULS	
  log	
  on	
  the	
  current	
  machine	
  and	
  start	
  a	
  new	
  one.	
  
New-SPLogFile
Combine	
  ULS	
  logs	
  from	
  all	
  machines	
  in	
  the	
  farm	
  
Merge-SPLogFile -Path "C:LogsFarmMergedLog.log" -Overwrite -StartTime
"06/09/2008 16:00" - EndTime	
  "06/09/2008	
  16:15"	
  
	
  
Scripts…	
  
	
  
A	
  simple	
  example	
  of	
  a	
  logging	
  function	
  for	
  your	
  scripts:	
  
http://sharepointjack.com/2013/simple-­‐powershell-­‐script-­‐logging/	
  
Send	
  Email	
  from	
  your	
  scripts:	
  
http://sharepointjack.com/2013/send-­‐an-­‐email-­‐from-­‐powershell/	
  
Report	
  SSL	
  certificates	
  about	
  to	
  expire:	
  
http://sharepointjack.com/2013/powershell-­‐to-­‐check-­‐ssl-­‐certificates-­‐expiration-­‐dates/	
  
Simple	
  WSP	
  redeployment	
  Script:	
  
http://sharepointjack.com/2013/a-­‐simple-­‐powershell-­‐script-­‐for-­‐redeploying-­‐a-­‐sharepoint-­‐wsp-­‐solution-­‐file/	
  
More	
  Sophisticated	
  WSP	
  redeployment	
  Script:	
  
http://nikpatel.net/2011/11/12/automated-­‐sharepoint-­‐2010-­‐farm-­‐level-­‐solution-­‐deployment-­‐and-­‐retraction-­‐
process-­‐basics/	
  
See	
  Running	
  Workflows	
  on	
  your	
  Farm:	
  
http://sharepointjack.com/2013/sharepoint-­‐server-­‐wfe-­‐high-­‐cpu-­‐caused-­‐by-­‐workflow/	
  
Copy/Move	
  users	
  from	
  one	
  SP	
  group	
  to	
  another:	
  
http://sharepointjack.com/2013/simple-­‐ps-­‐script-­‐to-­‐move-­‐users-­‐between-­‐sharepoint-­‐security-­‐groups/	
  
Get	
  the	
  size	
  of	
  folders	
  subsites,	
  etc…	
  
http://get-­‐spscripts.com/2010/08/check-­‐size-­‐of-­‐sharepoint-­‐2010-­‐sites.html	
  
Enable	
  Versioning	
  on	
  every	
  library	
  on	
  your	
  farm:	
  
http://sharepointjack.com/2012/enable-­‐versions-­‐on-­‐every-­‐sharepoint-­‐site/	
  
Record	
  Site	
  and	
  group	
  permissions	
  to	
  a	
  log	
  file:	
  
http://sharepointjack.com/2012/get-­‐all-­‐users-­‐in-­‐the-­‐farm-­‐sort-­‐of/	
  
Grant	
  yourself	
  admin	
  rights	
  to	
  every	
  Site	
  Collection:	
  
http://sharepointjack.com/2012/powershell-­‐script-­‐to-­‐add-­‐a-­‐list-­‐of-­‐users-­‐to-­‐the-­‐site-­‐collection-­‐administrators-­‐
group-­‐of-­‐every-­‐site-­‐on-­‐your-­‐sharepoint-­‐2010-­‐farm/	
  
	
  

More Related Content

Similar to Share point powershell-cheat-sheet

Power Shell and Sharepoint 2013
Power Shell and Sharepoint 2013Power Shell and Sharepoint 2013
Power Shell and Sharepoint 2013Mohan Arumugam
 
Powershell to the People #suguk
Powershell to the People #sugukPowershell to the People #suguk
Powershell to the People #sugukChris McKinley
 
Tutorial, Part 2: SharePoint 101: Jump-Starting the Developer by Rob Windsor ...
Tutorial, Part 2: SharePoint 101: Jump-Starting the Developer by Rob Windsor ...Tutorial, Part 2: SharePoint 101: Jump-Starting the Developer by Rob Windsor ...
Tutorial, Part 2: SharePoint 101: Jump-Starting the Developer by Rob Windsor ...SPTechCon
 
Share point development 101
Share point development 101Share point development 101
Share point development 101Becky Bertram
 
Monitoring and Maintaining SharePoint 2013 Server
Monitoring and Maintaining SharePoint 2013 ServerMonitoring and Maintaining SharePoint 2013 Server
Monitoring and Maintaining SharePoint 2013 ServerLearning SharePoint
 
NZ Code Camp 2011 PowerShell + SharePoint
NZ Code Camp 2011 PowerShell + SharePointNZ Code Camp 2011 PowerShell + SharePoint
NZ Code Camp 2011 PowerShell + SharePointNick Hadlee
 
SPSTC - PowerShell - Through the SharePoint Looking Glass
SPSTC - PowerShell - Through the SharePoint Looking GlassSPSTC - PowerShell - Through the SharePoint Looking Glass
SPSTC - PowerShell - Through the SharePoint Looking GlassBrian Caauwe
 
Skillwise - Advanced web application development
Skillwise - Advanced web application developmentSkillwise - Advanced web application development
Skillwise - Advanced web application developmentSkillwise Group
 
Making Life Easier with PowerShell - SPSRIC
Making Life Easier with PowerShell - SPSRICMaking Life Easier with PowerShell - SPSRIC
Making Life Easier with PowerShell - SPSRICMichael Greene
 
Sharepoint Saturday India Online best practice for developing share point sol...
Sharepoint Saturday India Online best practice for developing share point sol...Sharepoint Saturday India Online best practice for developing share point sol...
Sharepoint Saturday India Online best practice for developing share point sol...Shakir Majeed Khan
 
Wss Object Model
Wss Object ModelWss Object Model
Wss Object Modelmaddinapudi
 
How To Use Host-Named Site Collections
How To Use Host-Named Site CollectionsHow To Use Host-Named Site Collections
How To Use Host-Named Site CollectionsAndré Vala
 
PowerShell: Through the SharePoint Looking Glass
PowerShell: Through the SharePoint Looking GlassPowerShell: Through the SharePoint Looking Glass
PowerShell: Through the SharePoint Looking GlassBrian Caauwe
 
SPSSTL - PowerShell - Through the SharePoint Looking Glass
SPSSTL - PowerShell - Through the SharePoint Looking GlassSPSSTL - PowerShell - Through the SharePoint Looking Glass
SPSSTL - PowerShell - Through the SharePoint Looking GlassBrian Caauwe
 
Power shell for sp admins
Power shell for sp adminsPower shell for sp admins
Power shell for sp adminsRick Taylor
 

Similar to Share point powershell-cheat-sheet (20)

Power Shell and Sharepoint 2013
Power Shell and Sharepoint 2013Power Shell and Sharepoint 2013
Power Shell and Sharepoint 2013
 
Powershell to the People #suguk
Powershell to the People #sugukPowershell to the People #suguk
Powershell to the People #suguk
 
Share Point Object Model
Share Point Object ModelShare Point Object Model
Share Point Object Model
 
Tutorial, Part 2: SharePoint 101: Jump-Starting the Developer by Rob Windsor ...
Tutorial, Part 2: SharePoint 101: Jump-Starting the Developer by Rob Windsor ...Tutorial, Part 2: SharePoint 101: Jump-Starting the Developer by Rob Windsor ...
Tutorial, Part 2: SharePoint 101: Jump-Starting the Developer by Rob Windsor ...
 
Share point development 101
Share point development 101Share point development 101
Share point development 101
 
Monitoring and Maintaining SharePoint 2013 Server
Monitoring and Maintaining SharePoint 2013 ServerMonitoring and Maintaining SharePoint 2013 Server
Monitoring and Maintaining SharePoint 2013 Server
 
NZ Code Camp 2011 PowerShell + SharePoint
NZ Code Camp 2011 PowerShell + SharePointNZ Code Camp 2011 PowerShell + SharePoint
NZ Code Camp 2011 PowerShell + SharePoint
 
SPSTC - PowerShell - Through the SharePoint Looking Glass
SPSTC - PowerShell - Through the SharePoint Looking GlassSPSTC - PowerShell - Through the SharePoint Looking Glass
SPSTC - PowerShell - Through the SharePoint Looking Glass
 
Skillwise - Advanced web application development
Skillwise - Advanced web application developmentSkillwise - Advanced web application development
Skillwise - Advanced web application development
 
Making Life Easier with PowerShell - SPSRIC
Making Life Easier with PowerShell - SPSRICMaking Life Easier with PowerShell - SPSRIC
Making Life Easier with PowerShell - SPSRIC
 
Sharepoint Saturday India Online best practice for developing share point sol...
Sharepoint Saturday India Online best practice for developing share point sol...Sharepoint Saturday India Online best practice for developing share point sol...
Sharepoint Saturday India Online best practice for developing share point sol...
 
Wss Object Model
Wss Object ModelWss Object Model
Wss Object Model
 
How To Use Host-Named Site Collections
How To Use Host-Named Site CollectionsHow To Use Host-Named Site Collections
How To Use Host-Named Site Collections
 
PowerShell: Through the SharePoint Looking Glass
PowerShell: Through the SharePoint Looking GlassPowerShell: Through the SharePoint Looking Glass
PowerShell: Through the SharePoint Looking Glass
 
SPSSTL - PowerShell - Through the SharePoint Looking Glass
SPSSTL - PowerShell - Through the SharePoint Looking GlassSPSSTL - PowerShell - Through the SharePoint Looking Glass
SPSSTL - PowerShell - Through the SharePoint Looking Glass
 
Spring introduction
Spring introductionSpring introduction
Spring introduction
 
Power shell
Power shellPower shell
Power shell
 
DEVICE CHANNELS
DEVICE CHANNELSDEVICE CHANNELS
DEVICE CHANNELS
 
Power shell for sp admins
Power shell for sp adminsPower shell for sp admins
Power shell for sp admins
 
Admin SharePoint 2010 with PowerShell
Admin SharePoint 2010 with PowerShellAdmin SharePoint 2010 with PowerShell
Admin SharePoint 2010 with PowerShell
 

Recently uploaded

Pune Airport ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...
Pune Airport ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...Pune Airport ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...
Pune Airport ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...tanu pandey
 
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...Sheetaleventcompany
 
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...Diya Sharma
 
Hot Service (+9316020077 ) Goa Call Girls Real Photos and Genuine Service
Hot Service (+9316020077 ) Goa  Call Girls Real Photos and Genuine ServiceHot Service (+9316020077 ) Goa  Call Girls Real Photos and Genuine Service
Hot Service (+9316020077 ) Goa Call Girls Real Photos and Genuine Servicesexy call girls service in goa
 
VIP Call Girls Kolkata Ananya 🤌 8250192130 🚀 Vip Call Girls Kolkata
VIP Call Girls Kolkata Ananya 🤌  8250192130 🚀 Vip Call Girls KolkataVIP Call Girls Kolkata Ananya 🤌  8250192130 🚀 Vip Call Girls Kolkata
VIP Call Girls Kolkata Ananya 🤌 8250192130 🚀 Vip Call Girls Kolkataanamikaraghav4
 
Russian Call Girls in Kolkata Samaira 🤌 8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Samaira 🤌  8250192130 🚀 Vip Call Girls KolkataRussian Call Girls in Kolkata Samaira 🤌  8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Samaira 🤌 8250192130 🚀 Vip Call Girls Kolkataanamikaraghav4
 
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts serviceChennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts servicevipmodelshub1
 
Russian Call girl in Ajman +971563133746 Ajman Call girl Service
Russian Call girl in Ajman +971563133746 Ajman Call girl ServiceRussian Call girl in Ajman +971563133746 Ajman Call girl Service
Russian Call girl in Ajman +971563133746 Ajman Call girl Servicegwenoracqe6
 
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024APNIC
 
AWS Community DAY Albertini-Ellan Cloud Security (1).pptx
AWS Community DAY Albertini-Ellan Cloud Security (1).pptxAWS Community DAY Albertini-Ellan Cloud Security (1).pptx
AWS Community DAY Albertini-Ellan Cloud Security (1).pptxellan12
 
Challengers I Told Ya ShirtChallengers I Told Ya Shirt
Challengers I Told Ya ShirtChallengers I Told Ya ShirtChallengers I Told Ya ShirtChallengers I Told Ya Shirt
Challengers I Told Ya ShirtChallengers I Told Ya Shirtrahman018755
 
VIP Kolkata Call Girl Kestopur 👉 8250192130 Available With Room
VIP Kolkata Call Girl Kestopur 👉 8250192130  Available With RoomVIP Kolkata Call Girl Kestopur 👉 8250192130  Available With Room
VIP Kolkata Call Girl Kestopur 👉 8250192130 Available With Roomdivyansh0kumar0
 
VIP Kolkata Call Girl Dum Dum 👉 8250192130 Available With Room
VIP Kolkata Call Girl Dum Dum 👉 8250192130  Available With RoomVIP Kolkata Call Girl Dum Dum 👉 8250192130  Available With Room
VIP Kolkata Call Girl Dum Dum 👉 8250192130 Available With Roomdivyansh0kumar0
 
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.soniya singh
 
VIP Kolkata Call Girl Salt Lake 👉 8250192130 Available With Room
VIP Kolkata Call Girl Salt Lake 👉 8250192130  Available With RoomVIP Kolkata Call Girl Salt Lake 👉 8250192130  Available With Room
VIP Kolkata Call Girl Salt Lake 👉 8250192130 Available With Roomishabajaj13
 
On Starlink, presented by Geoff Huston at NZNOG 2024
On Starlink, presented by Geoff Huston at NZNOG 2024On Starlink, presented by Geoff Huston at NZNOG 2024
On Starlink, presented by Geoff Huston at NZNOG 2024APNIC
 
VIP Kolkata Call Girl Alambazar 👉 8250192130 Available With Room
VIP Kolkata Call Girl Alambazar 👉 8250192130  Available With RoomVIP Kolkata Call Girl Alambazar 👉 8250192130  Available With Room
VIP Kolkata Call Girl Alambazar 👉 8250192130 Available With Roomdivyansh0kumar0
 
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort ServiceEnjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort ServiceDelhi Call girls
 

Recently uploaded (20)

Pune Airport ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...
Pune Airport ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...Pune Airport ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...
Pune Airport ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...
 
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
 
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
 
Hot Service (+9316020077 ) Goa Call Girls Real Photos and Genuine Service
Hot Service (+9316020077 ) Goa  Call Girls Real Photos and Genuine ServiceHot Service (+9316020077 ) Goa  Call Girls Real Photos and Genuine Service
Hot Service (+9316020077 ) Goa Call Girls Real Photos and Genuine Service
 
VIP Call Girls Kolkata Ananya 🤌 8250192130 🚀 Vip Call Girls Kolkata
VIP Call Girls Kolkata Ananya 🤌  8250192130 🚀 Vip Call Girls KolkataVIP Call Girls Kolkata Ananya 🤌  8250192130 🚀 Vip Call Girls Kolkata
VIP Call Girls Kolkata Ananya 🤌 8250192130 🚀 Vip Call Girls Kolkata
 
Russian Call Girls in Kolkata Samaira 🤌 8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Samaira 🤌  8250192130 🚀 Vip Call Girls KolkataRussian Call Girls in Kolkata Samaira 🤌  8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Samaira 🤌 8250192130 🚀 Vip Call Girls Kolkata
 
Rohini Sector 22 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 22 Call Girls Delhi 9999965857 @Sabina Saikh No AdvanceRohini Sector 22 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 22 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
 
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts serviceChennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
 
Russian Call girl in Ajman +971563133746 Ajman Call girl Service
Russian Call girl in Ajman +971563133746 Ajman Call girl ServiceRussian Call girl in Ajman +971563133746 Ajman Call girl Service
Russian Call girl in Ajman +971563133746 Ajman Call girl Service
 
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
 
AWS Community DAY Albertini-Ellan Cloud Security (1).pptx
AWS Community DAY Albertini-Ellan Cloud Security (1).pptxAWS Community DAY Albertini-Ellan Cloud Security (1).pptx
AWS Community DAY Albertini-Ellan Cloud Security (1).pptx
 
Challengers I Told Ya ShirtChallengers I Told Ya Shirt
Challengers I Told Ya ShirtChallengers I Told Ya ShirtChallengers I Told Ya ShirtChallengers I Told Ya Shirt
Challengers I Told Ya ShirtChallengers I Told Ya Shirt
 
VIP Kolkata Call Girl Kestopur 👉 8250192130 Available With Room
VIP Kolkata Call Girl Kestopur 👉 8250192130  Available With RoomVIP Kolkata Call Girl Kestopur 👉 8250192130  Available With Room
VIP Kolkata Call Girl Kestopur 👉 8250192130 Available With Room
 
VIP Kolkata Call Girl Dum Dum 👉 8250192130 Available With Room
VIP Kolkata Call Girl Dum Dum 👉 8250192130  Available With RoomVIP Kolkata Call Girl Dum Dum 👉 8250192130  Available With Room
VIP Kolkata Call Girl Dum Dum 👉 8250192130 Available With Room
 
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝
 
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
 
VIP Kolkata Call Girl Salt Lake 👉 8250192130 Available With Room
VIP Kolkata Call Girl Salt Lake 👉 8250192130  Available With RoomVIP Kolkata Call Girl Salt Lake 👉 8250192130  Available With Room
VIP Kolkata Call Girl Salt Lake 👉 8250192130 Available With Room
 
On Starlink, presented by Geoff Huston at NZNOG 2024
On Starlink, presented by Geoff Huston at NZNOG 2024On Starlink, presented by Geoff Huston at NZNOG 2024
On Starlink, presented by Geoff Huston at NZNOG 2024
 
VIP Kolkata Call Girl Alambazar 👉 8250192130 Available With Room
VIP Kolkata Call Girl Alambazar 👉 8250192130  Available With RoomVIP Kolkata Call Girl Alambazar 👉 8250192130  Available With Room
VIP Kolkata Call Girl Alambazar 👉 8250192130 Available With Room
 
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort ServiceEnjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
 

Share point powershell-cheat-sheet

  • 1.   SharePoint  Object  Model  Compared  to  a  School  System   (IIS  website)   (Site  Collection)   SPFarm   • Farm  is  the  top  level  in  the  object  model.   • Managed  via  Central  Admin   • A  farm  will  have  one  or  more  Web   Applications     SPWebApplication   • Found  in  IIS  as  an  IIS  website   • Determines  the  Base  URL  of  the  site   • Contains  1  ore  more  Site  Collections     SPSite     • Same  as  “Site  Collection”   • An  Organizational  unit   • Can  easily  move  a  whole  SPSite   between  Databases   • Each  SPSite  contains  1  ore  more   SPWEB’s     SPWeb   • Where  real  work  happens   • Contains  Lists,  libraries,  Pages,   etc..       SharePoint  PowerShell  Cheat  Sheet   SharePointJack.com   School  District   • School  District  oversees  all  schools  in  the   district.   • Address  of  Office  ≠  Address  of  School(s)   • A  School  District  will  have  1  or  more  Schools   School   • Found  within  the  physical  boundaries  of   the  taxing  school  districts  geographical   area   • Has  a  physical  address  people  go  to.   • Has  1  or  more  Departments       Department         • A  way  to  organize  teachers  and   classes  by  purpose   • Math  Department   • Athletic  Department  etc.     Classroom   • Where  learning  happens   • Contains  books,  supplies,   whiteboards,  etc.       Load  the  SharePoint  Snap  In  as  part  of  your  scripts   Load  a  Snap  in  for  added  functionality,  supressing  error  info  if  the  snap  in  is  already  loaded.   Add-PSSnapin microsoft.sharepoint.powershell -ErrorAction SilentlyContinue Finding  Out  more…   Get  a  list  of  all  SharePoint  related  commands   Get-Command *-SP* Get  information  about  any  Command   Get-Help Get-SPSite -full
  • 2.   SharePoint  Object  Model  Useful  PowerShell  Commands   Farm  Commands   Get  the  Farm  object   $Farm = Get-SPFarm List  Alternate  Access  Mappings   $(Get-SPFarm).AlternateUrlCollections List  Servers  in  Farm   $(Get-SPFarm).Servers   Web  Application  (IIS  Site)  Commands:         Get  a  single  web  application   Get-SPWebApplication http://your.url Get  all  web  applications  in  the  Farm   Get-SPWebApplication   Site  Collection  Commands   Get  a  specific  site  collection   Get-SPSite http://your.url All  Site  Collections  in  a  Web  Application   Get-SPSite –webapplication http://your.url -limit all All  site  Collections  in  the  Farm   Get-SPSite –Limit All Get  Sitecollections  from  a  Web  Application  Object   $webapp = get-spwebapplication http://your.url $webapp.sites   Web  Commands   Get  a  specific  web   Get-SPWeb http://your.url/sites/SiteCollection/yourweb Get  all  webs  in  a  single  site  collection   Get-SPWeb –site http://your.url/sites/SiteCollection Get  all  webs  in  a  single  site  collection,  from  a  site  collection  object   $SC = Get-SPSite http://your.url $SC.AllWebs Get  all  webs  in  a  Web  Application   $SITES = Get-SPSite –WebApplication http://your.url -Limit all foreach ($oneSite in $sites) { $OneSite.AllWebs } Get  all  webs  in  the  farm   $webApps = Get-SPWebApplication foreach ($webApp in $webApps) { foreach ($site in $webApp.Sites) { $site.allwebs } }
  • 3.   ULS  commands…   Close  the  current  ULS  log  on  the  current  machine  and  start  a  new  one.   New-SPLogFile Combine  ULS  logs  from  all  machines  in  the  farm   Merge-SPLogFile -Path "C:LogsFarmMergedLog.log" -Overwrite -StartTime "06/09/2008 16:00" - EndTime  "06/09/2008  16:15"     Scripts…     A  simple  example  of  a  logging  function  for  your  scripts:   http://sharepointjack.com/2013/simple-­‐powershell-­‐script-­‐logging/   Send  Email  from  your  scripts:   http://sharepointjack.com/2013/send-­‐an-­‐email-­‐from-­‐powershell/   Report  SSL  certificates  about  to  expire:   http://sharepointjack.com/2013/powershell-­‐to-­‐check-­‐ssl-­‐certificates-­‐expiration-­‐dates/   Simple  WSP  redeployment  Script:   http://sharepointjack.com/2013/a-­‐simple-­‐powershell-­‐script-­‐for-­‐redeploying-­‐a-­‐sharepoint-­‐wsp-­‐solution-­‐file/   More  Sophisticated  WSP  redeployment  Script:   http://nikpatel.net/2011/11/12/automated-­‐sharepoint-­‐2010-­‐farm-­‐level-­‐solution-­‐deployment-­‐and-­‐retraction-­‐ process-­‐basics/   See  Running  Workflows  on  your  Farm:   http://sharepointjack.com/2013/sharepoint-­‐server-­‐wfe-­‐high-­‐cpu-­‐caused-­‐by-­‐workflow/   Copy/Move  users  from  one  SP  group  to  another:   http://sharepointjack.com/2013/simple-­‐ps-­‐script-­‐to-­‐move-­‐users-­‐between-­‐sharepoint-­‐security-­‐groups/   Get  the  size  of  folders  subsites,  etc…   http://get-­‐spscripts.com/2010/08/check-­‐size-­‐of-­‐sharepoint-­‐2010-­‐sites.html   Enable  Versioning  on  every  library  on  your  farm:   http://sharepointjack.com/2012/enable-­‐versions-­‐on-­‐every-­‐sharepoint-­‐site/   Record  Site  and  group  permissions  to  a  log  file:   http://sharepointjack.com/2012/get-­‐all-­‐users-­‐in-­‐the-­‐farm-­‐sort-­‐of/   Grant  yourself  admin  rights  to  every  Site  Collection:   http://sharepointjack.com/2012/powershell-­‐script-­‐to-­‐add-­‐a-­‐list-­‐of-­‐users-­‐to-­‐the-­‐site-­‐collection-­‐administrators-­‐ group-­‐of-­‐every-­‐site-­‐on-­‐your-­‐sharepoint-­‐2010-­‐farm/