Save list as template sharepoint 2019 powershell

Most of the cases end user or site owner who actually own the sharepoint site for production server, create list using out of box UI to create sharepoint list. There are certain cases where requirement is to save list as template and create another list using the saved template. Here i will share how to Save list as template sharepoint 2019 powershell. Creating powershell is very fast, easy, less performance issues compared to UI method.

I have a custom sharepoint list “Name: Report 2019”. The number of list items crossed the limit of listview threshold 5000. You got a request to create another list of similar template without including content. This case Save list as template sharepoint 2019 powershell would be helpful. Please find the script below.

Save list as template sharepoint 2019 powershell
#Configuration parameters
$WebURL="http://win-7uqhlrcrq7g:40331/sites/SpTechSupport/"
$ListName="Report 2019"
$TemplateName="Report 2019 Template"
$TemplateFileName="Report2019Template"
$TemplateDescription="Report 2019 List Template"
$SaveData = $true

#Get the Web and List objects
$Web = Get-SPWeb $WebURL
$List = $Web.Lists[$ListName]

#Save List as Template
$List.SaveAsTemplate($TemplateFileName, $TemplateName, $TemplateDescription, $SaveData)
Write-Host "List Saved as Template!"
Advertisements
Advertisements
Save list as template sharepoint 2019 powershell-2
Save list as template sharepoint 2019 powershell-2

Navigate to “List Template” and see, we save list as template.

Save list as template sharepoint 2019 powershell -3
Advertisements
check powershell version in windows server with powershell command

check powershell version in windows server with powershell command

This post describes how to check powershell version in windows server with powershell command. Many time we face issue while writing powershell script and facing powershell version compatibility issue. Powershell version check required at this moment.

$PSVersionTable
check powershell version in windows server with powershell command
Get template id sharepoint site with powershell

Get template id sharepoint site with powershell

There are many situations or tickets we are getting where we need to Get template id sharepoint site that are currently using. I mean template id of one site currently user is using. Here i am sharing how to Get template id sharepoint site with powershell.

$web = Get-SPWeb http://win-7uqhlrcrq7g:40331/sites/SpTechSupport
$web.WebTemplate + " " + $web.WebTemplateId
$web.close()
Get template id sharepoint site with powershell
Jagannath Bhajan | Bhaba Lagana Lagana ମିଛ ଦୁନିଆ | Odia Bhajan | #JagannathBhajan#OldOdiaBhajan

start stop manage services in windows server with powershell

This post is all about how to start stop manage services in windows server with powershell. We will discuss the start service powershell command, stop service powershell command, Killing Windows Service that Hangs on Stopping or Not Responding command, how to get service powershell command, how to set service startup type powershell command.

Get Service powershell command windows server

This command will display all service on computer. Default display will be status, service name, and display name each service

Get-Service

Get service begin with search string

Get service begin with Display services that include search string “sp”

Get-Service "sp*" | Sort-Object status
Get service begin with Display services that include search

Display services that include search string

Display services that include search string “sharepoint”

Get-Service -Displayname "*sharepoint*"
Display services that include search string

Get services begin with search string and an exclusion

Get services begin with search string “sp” and an exclusion “spo”

Get-Service -Name "sp*" -Exclude "spooler","sppsvc"
Get services begin with search string and an exclusion

Get object details for service

Get-Service SPAdminV4 | Select-Object *
Get service begin with Display services that include search

Display services that are running

Display services with status Running

Get-Service | Where-Object {$_.Status -eq "Running"}
Display services that are running

Display services that are Stopped

Display services with status “Stopped”

Get-Service | Where-Object {$_.Status -eq "Stopped"}
Display services stopped

Start Service powershell command

Below command returns how to start a particular service using powershell.

Start-Service ServiceName
example: ServiceName = SPAdminV4
Start-Service SPAdminV4

Stop Service powershell command

Below command returns how to stop a particular service using powershell.

Stop-Service ServiceName
example: ServiceName = OSearch16
Stop-Service OSearch16
how to stop a particular service using powershell

Disable Service powershell command

Below command returns how to disable a particular service using powershell.

Set-Service ServiceName -StartupType Disabled
or
Set-Service -Name ServiceName -StartupType Disabled
example: ServiceName = OSearch16
Set-Service -Name OSearch16 -StartupType Disabled
how to disable a particular service using powershell

Start Service with status stopped

Start service whose status is stopped bu running below command.

Get-Service Wsearch | Where {$_.status –eq 'Stopped'} | Start-Service
Krishna Bhajan | O Kanha Ab To Murli Ki Madhur | Old Hindi Bhajan | #KrishnaBhajan#OldHindiBhajan
New feature Per-machine install of sync client

New feature Per-machine install of sync client

OneDrive sync client installs per user by default means OneDrive.exe installed for each user account in system under the folder %localappdata%. By introduction of the New feature Per-machine install of sync client, you can install OneDrive under the “Program Files (x86)” directory, means all profiles on the machine will use the same OneDrive.exe binary. There will be a single version of OneDrive on the machine and a single update to download. Other than where the sync client is installed, everything else stays the same.

New per-machine sync client provides:

  • Automatic transitioning from the previous OneDrive sync client (Groove.exe)
  • Automatic conversion from per-user to per-machine
  • Automatic updates when a new version is available

It supports syncing OneDrive and SharePoint files in Microsoft 365 and SharePoint Server 2019

System Requirements OneDrive Desktop Sync App

OneDrive desktop sync app (Download page OneDrive website) requires following

Operating system

  • 32-bit or 64-bit version of Windows 10, Windows 8/8.1, or Windows 7
  • Windows Server 2016, Windows Server 2012 (including R2), Windows Server 2008 R2, or Windows Server 2008 with Service Pack 2 and the Platform Update for Windows Server 2008
  • Mac OS X 10.12 or later

Processor

1.6 GHz or higher, or Intel-based Mac computer

Memory

1 GB of RAM or higher

Resolution

1024 × 576 minimum

Internet connection

High-speed Internet access is recommended

File systems

NTFS or HFS+ (case insensitive) or APFS (case insensitive)

OneDrive mobile app

  • A phone or tablet with Android 5.0 or later
  • An iPhone, iPad, or iPod touch with iOS 11.3 or later
  • A phone running Windows Phone 7.5 or later
Advertisements

Install OneDrive Sync Client

  • Download OneDriveSetup.exe.
  • Run “OneDriveSetup.exe /allusers” from a command prompt window (will result in a UAC prompt) or by using SCCM. This will install the sync client under “Program Files (x86)\Microsoft OneDrive” directory. Once setup completes, OneDrive will start. If accounts were added on the computer, they’ll be migrated automatically.

Related Information

  • Its helpful especially for multi-user computers and when you don’t want .exe files running from the user profile. Over time, Microsoft recommend customers switch to per-machine installation.
  • Although a single version of OneDrive.exe is installed, a new process is created for every OneDrive account syncing on the computer.
  • Per-machine sync client will auto-update on the same cadence as the per-user sync client and the same rings are supported. The release notes are the same. More info about the sync client update process.
  • User intervention is not required for the per-machine sync client to update itself. Elevation is required when you first set it up. During setup, it installs a scheduled task and a Windows service, which are used to perform the updates silently without user intervention since they run in elevated mode.