I have created an alert in Performance Monitor (Windows Server 2008 R2) that should be triggered whenever \Processor(_Total)\% Processor Time is Above 10 (a small value just to guarantee that the condition for sending the alert is always met). You ca…
Powershell script to get site Title, Site Owner, Site user count and usage Add-PSSnapin microsoft.sharepoint.powershell -ErrorAction SilentlyContinue $wburl = Read-Host "Enter Web application URL " $webApp = Get-SPWebApplication $wburl $outputPa…
In this post I will introduce a way how to run a script for backing up SharePoint data which could be scheduled to run automatically. Step 1:Create a PowerShell Script for Backing up a site collection param([string] $site,[string] $dir,[string] $type…
Below is the example to convert the ps script into userdata for terraform to create instance and auto join domain. But to make it work, we need to create a new DHCP options set for related VPC and have the domain-name= domain.com and domain-name-ser…
Since I need to deploy, start, stop and remove many virtual machines created from a common image I created (you know, Tabular is not part of the standard images provided by Microsoft-), I wanted to minimize the time required to execute every operatio…
My testing environment: Windows Server 2012 R2 Essentials: With AD and standalone DC in one single box. Ubuntu: ubuntu-12.04.1-desktop-amd64 Basically, I was following Jack's awsome blog to do it: https://www.linux.com/learn/tutorials/336477:how-to-j…
Posted by Jianpeng Mo / January 20, 2014 Monitoring and maintaining large-scale, complex, highly distributed and interconnected systems can be extremely challenging for network administrators. Traditional IT management approaches are ill-equipped to…
打开SharePoint 2013 Management Shell, and then run as administrator.执行如下命令 1. 添加wsp和安装Add-SPSolution -LiteralPath "C:\DeployResource\WSP\test.wsp"Install-SPSolution -Identity "test.wsp" -WebApplication "http://domain:port/" -GA…
function 怎么执行: http://www.cnblogs.com/bradwarden/p/3370260.html PowerShell script can be used in: 1. copy dll automatically form source location to target location; 2. run migration sql scripts automatically(); 3. start window service;…
Foreword When we do some test that need several VMs, we can use PowerShell script or CmdLets to implement what we want. Keywords PowerShell, New-AzureVMConfig, New-AzureProvisioningConfig, New-AzureVM, Get-AzureVM, Add-AzureDataDisk, Update-AzureVM S…
http://techibee.com/powershell/check-if-a-string-is-null-or-empty-using-powershell/1889 Check if a string is NULL or EMPTY using PowerShellby TECHIBEE on OCTOBER 10, 2012 In this post, I will show you how to verify if a string is empty, null or havin…
One of the new changes that you will see in XenDesktop 5 is the configuration of hypervisor connectionsand hosts. In order to create the “pooled”, “dedicated”, or “existing” catalog types in XenDesktop 5, XenDesktop needs to know details of the hyper…
1. Here is the code: Add WebPart in Publish Site Example : AddWebPartPublish http://localhost "/Pages/Publish.aspx" "Shared Documents" "Header" "0" ##################################################################…