Service Token Failure
--
cls
# This command loads the Microsoft.SharePoint.PowerShell DLL.
# This DLL is required if you are using Windows PowerShell.
[string]$Snapin="Microsoft.SharePoint.PowerShell"
if ((Get-PSSnapin $Snapin -ErrorAction SilentlyContinue) -eq $null)
{
Write-Host "Loading Snapin: $Snapin";
Add-PSSnapin $Snapin
}
else
{
Write-Host "Snapin already loaded: $Snapin";
}
$h = Get-SPServiceHostconfig
$h.Provision()
$services = Get-SPServiceApplication
foreach ($service in $services) { $service.provision();
write-host $service.name}
--
cls
# This command loads the Microsoft.SharePoint.PowerShell DLL.
# This DLL is required if you are using Windows PowerShell.
[string]$Snapin="Microsoft.SharePoint.PowerShell"
if ((Get-PSSnapin $Snapin -ErrorAction SilentlyContinue) -eq $null)
{
Write-Host "Loading Snapin: $Snapin";
Add-PSSnapin $Snapin
}
else
{
Write-Host "Snapin already loaded: $Snapin";
}
$h = Get-SPServiceHostconfig
$h.Provision()
$services = Get-SPServiceApplication
foreach ($service in $services) { $service.provision();
write-host $service.name}
No comments:
Post a Comment