Skip to content

Instantly share code, notes, and snippets.

View hansgafriedzal's full-sized avatar

Hans hansgafriedzal

View GitHub Profile
Get-SPTimerJob | where { $_.DisplayName -match "Health Analysis Job"} | % { Start-SPTimerJob $_ ; Write-Host "Runing Job:" $_.displayName }
git commit --allow-empty -m "empty"
(</?.*?) [^<>]*?(>)
cd C:\Users\hans.XTREMAX\Desktop\xsharepoint\script\farm-management
$modules = Get-ChildItem *.ps1
foreach ($module in $modules)
{
"$module"
Import-Module "$module" -Force
}
=LEFT($A2,SEARCH("|",SUBSTITUTE($A2,"/","|",LEN($A2)-LEN(SUBSTITUTE($A2,"/",""))))-1)
<style >
tr:first-child td {
background-color: #ACB9CA;
}
table {
border-collapse: collapse;
}
table, th, td {
$svc = get-service | where displayname -like sql*
$svc | select name | foreach {stop-service $_}
$svc
Get-AzRoleDefinition | `
%{
$a = $_
$_.Actions | select `
@{n="Role";e={$a.Name}},
@{n="Type";e={"Actions"}},
@{n="Definition";e={$_}}
$_.DataActions | select `
@{n="Role";e={$a.Name}},
@{n="Type";e={"DataActions"}},