This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
modules: | |
- docassemble.base.util | |
- .discovery | |
--- | |
mandatory: True | |
need: all_answer_variables | |
code: | | |
other_ints.there_are_any = False | |
other_drq.there_are_any = False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$numLen = 7 | |
$prefix= "GBLS-" | |
$ComputerModel = (Get-WmiObject -Class Win32_ComputerSystem | Select-Object Model).Model | |
$SerialNumber = (Get-WmiObject -Class Win32_BIOS | Select-Object SerialNumber).SerialNumber | |
if ($serialNumber.length -ge 7) { | |
$shortSerial = $serialNumber.substring($serialNumber.length - $numLen,$numLen) | |
} else { | |
$shortSerial = $serialNumber | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Return a single score for the selected text | |
* @param {string} text text to evaluate, can include HTML elements | |
* @return {object} object -- has the index (score) and a list of suggestions | |
*/ | |
function getTextEvaluation() { | |
var selection = DocumentApp.getActiveDocument().getSelection(); | |
if(selection) { | |
var textArray = getSelectedText(); | |
} else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Create GPOs that set the Administrative Template for "Default SharePoint Lists" as specified in a CSV. | |
The CSV can update (or create) multiple GPOs based on the column "gpoName". | |
.DESCRIPTION | |
The input CSV has 5 mandatory columns: | |
gpoName : Name of the GPO to update | |
ou : the name of the OU to link the GPO to | |
siteName : Site name on Sharepoint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Updates lists with "Contacts" in the name, replacing any empty "Last Name" fields | |
with the company name, to prepare for migration to SharePoint Online. | |
Syntax: fix_missing_lastname.ps1 -url "https://my.sharepoint.site" or update parameter below | |
.DESCRIPTION | |
Will scan one-level deep for sub-sites that have a list with 'Contacts' in the title. | |
.NOTES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Generates the STSSyncURLs for a Sharepoint Online Site using CSOM. Should be run from a SharePoint server. | |
TODO: identify which DLL contains the microsoft.sharepoint.utilities.spencode method to allow running without a SharePoint install. | |
.DESCRIPTION | |
This script is useful for generating a long list of STSSYNC urls without tediously connecting dozens of lists to Outlook, sharing them, and extracting | |
the URL in that fashion. The output is a PSOBject which can be piped to a CSV for further manipulation, or to a separate script that creates appropriate GPOs | |
or .REG files for further automation. | |
Requires load-csomproperties.ps1 from: https://gist.github.com/glapointe/cc75574a1d4a225f401b | |
.EXAMPLE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
Removes the specified Sharepoint Lists from Outlook. | |
Uses Outlook MAPI and must run on each user's workstation. Deploy as a script with GPO or System Center | |
Author: Quinten Steenhuis, 9/26/2016 | |
#> | |
<# | |
# Uncomment this section and update with your own lists to remove. If left | |
# unspecified, this script will rely on the default list set via GPO for SP 2013 | |
# Please note you'll need to update the GPO before next refresh cycle if relying on |
NewerOlder