Presentation is loading. Please wait.

Presentation is loading. Please wait.

What is Windows PowerShell? The 6 things you must learn.

Similar presentations


Presentation on theme: "What is Windows PowerShell? The 6 things you must learn."— Presentation transcript:

1

2

3

4

5

6 What is Windows PowerShell?

7

8

9

10

11 The 6 things you must learn

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26 $dash = [Microsoft.SharePoint.Administration.SPWebService]:: ContentService.DeveloperDashboardSettings; $dash.DisplayLevel = 'On'; $dash.TraceEnabled = $true; $dash.Update()

27 Get-SPLogEvent -StartTime (Get-Date).addminutes(-10) –Directory e:\logs | Where-Object {$_.correlation -eq "dc07834b-9982-4eaf- aacf-d62a6b398f87"}

28 $web = Get-SPWeb http://sharepoint $web.CustomMasterUrl = "/_catalogs/masterpage/nightandday.master" $web.MasterUrl = "/_catalogs/masterpage/nightandday.master" $web.Update()

29 Get-SPDatabase | Sort-Object disksizerequired -desc | Format- Table Name, @{Label ="Size in MB"; Expression = {$_.disksizerequired/1mb}} Get-SPDatabase | ForEach-Object {$db=0} {$db +=$_.disksizerequired; $_.name + " - " + $_.disksizerequired/1mb} {Write-Host "`nTotal Storage (in MB) =" ("{0:n0}" -f ($db/1mb))}

30

31

32 Sponsored by

33


Download ppt "What is Windows PowerShell? The 6 things you must learn."

Similar presentations


Ads by Google