Search is not available for this dataset
filename
stringlengths
5
114
module_name
stringlengths
8
67
content
stringlengths
0
282M
0install.psd1
0install-2.25.12
@{ ModuleVersion = '2.25.12' GUID = '89e16ee9-f9dd-4efd-b7a2-e0374958f6c0' Author = 'Bastian Eicher' CompanyName = '0install.net' Copyright = 'Copyright Bastian Eicher et al.' Description = 'Zero Install is a decentralized cross-platform software-installation system.' PowerShellVersio...
1C.ParserLST.psd1
1C.ParserLST-1.0.22.1
# # Module manifest for module '1C.ParserLST' # # Generated by: Pavel Aivazov # # Generated on: 14.05.2024 # @{ # Script module or binary module file associated with this manifest. RootModule = '1C.ParserLST.dll' # Version number of this module. ModuleVersion = '1.0.22.1' # Supported PSEditions Com...
Load-ToBase1C.ps1
1C.Utils-0.4.0
. $PSScriptRoot\CommonUtils\CommonUtils.ps1 function Load-ToBase1C { <# .SYNOPSIS Загружает dt-файл в базу 1С. .DESCRIPTION Загружает dt-файл в базу 1С. dt-файл может быть задан как параметр или помещен в буфер обмена перед запуском скрипта. В случае если dt-файл расположен в л...
Stop-1C.ps1
1C.Utils-0.4.0
. $PSScriptRoot\CommonUtils\CommonUtils.ps1 New-Alias -Name 'Kill-1C' -Value 'Stop-1C' #---------------------------------------------------------------------------------------- # Завершает процессы платформы 1С function Stop-1C { <# .SYNOPSIS Завершает процессы платформы 1С. .DESCRIPTION ...
Common1C.ps1
1C.Utils-0.4.0
. $PSScriptRoot\CommonUtils\CommonUtils.ps1 #---------------------------------------------------------------------------------------- # Выделяет из переданной строки каталог установки, номер весрии платформы и путь к exe файлу function Get-VersionCatalogExe { <# .SYNOPSIS Из переданной строки выделя...
Designer1C.ps1
1C.Utils-0.4.0
. $PSScriptRoot\CommonUtils\classLog.ps1 . $PSScriptRoot\CommonUtils\CommonUtils.ps1 . $PSScriptRoot\Common1C.ps1 function New-Designer1C { <# .SYNOPSIS Возвращает экземпляр класса Designer1c. .DESCRIPTION Создает объект класса Designer1C позволяющий работать с командной строкой 1С...
Uninstall-1C.ps1
1C.Utils-0.4.0
#09.2017©willynilly . $PSScriptRoot\CommonUtils\CommonUtils.ps1 #---------------------------------------------------------------------------------------- # Запускает деинсталяцию установленных экземпляров 1С function Uninstall-1C { <# .SYNOPSIS Деинсталирует не используемые версии платформы 1С. ...
classLog.ps1
1C.Utils-0.4.0
function New-Log { <# .SYNOPSIS Возвращает экземпляр класса Log. .DESCRIPTION Создает объект класса Log позволяющий вести журнал действий. .PARAMETER FullName Полное имя файла журнала. .PARAMETER Append Если указан, то существующий файл журнала не будет очища...
1C.Utils.psd1
1C.Utils-0.4.0
# # Module manifest for module '1C.Utils' # # Generated by: agur # # Generated on: 31.10.2017 # @{ # Script module or binary module file associated with this manifest. RootModule = '1C.Utils.psm1' # Version number of this module. ModuleVersion = '0.4.0' # Supported PSEditions # CompatiblePSEditions...
Clear-Cache1C.ps1
1C.Utils-0.4.0
. $PSScriptRoot\CommonUtils\CommonUtils.ps1 . $PSScriptRoot\Read-iBases.ps1 $global:MaxSizeCache = 1MB*100 # выделять цветом папки с кэшом превышающий MaxSizeCache $global:MaxLengthName = 45 $global:MaxLengthSize = 13 $global:TotalCacheSize = 0 #------------------------------------------------------------...
Start-1C.ps1
1C.Utils-0.4.0
. $PSScriptRoot\CommonUtils\CommonUtils.ps1 . $PSScriptRoot\Common1C.ps1 New-Alias -Name 'RUN-1C' -Value 'Start-1C' #region Start-1C #---------------------------------------------------------------------------------------- # запускает платформу 1С с переданными ключами командной строки function Start-1C { ...
Read-iBases.ps1
1C.Utils-0.4.0
. $PSScriptRoot\CommonUtils\CommonUtils.ps1 New-Alias -Name 'Parse-iBases' -Value 'Read-iBases' #---------------------------------------------------------------------------------------- # возвращает путь к файлу iBases.v8i function Get-iBasesFullName { <# .SYNOPSIS Возвращает полный путь по умол...
CommonUtils.ps1
1C.Utils-0.4.0
#01.2018©willynilly #---------------------------------------------------------------------------------------- # Получает согласие пользователя на продолжение function Get-Permission { <# .Synopsis Получить разрешение от пользователя. .Description Задает вопрос пользователю и ожидает от...
Set-DebugServer1C.ps1
1C.Utils-0.4.0
. $PSScriptRoot\CommonUtils\CommonUtils.ps1 New-Alias -Name 'Dbg-Srv1C' -Value 'Set-DebugServer1C' #---------------------------------------------------------------------------------------- # запускает платформу 1С с переданными ключами командной строки function Set-DebugServer1C { <# .SYNOPSIS ...
1C.Utils.psm1
1C.Utils-0.4.0
. $PSScriptRoot\cmdlets\Clear-Cache1C.ps1 . $PSScriptRoot\cmdlets\Common1C.ps1 . $PSScriptRoot\cmdlets\CommonUtils\CommonUtils.ps1 . $PSScriptRoot\cmdlets\CommonUtils\classLog.ps1 . $PSScriptRoot\cmdlets\Designer1C.ps1 . $PSScriptRoot\cmdlets\Load-ToBase1C.ps1 . $PSScriptRoot\cmdlets\Set-DebugServer1C.ps1 . $P...
1Cv83_InfoBaseManagement.psm1
1Cv83_InfoBaseManagement-1.0.3
# Connect-1cCluster; Connect-1cWP # Connect-1cCluster 10.0.0.31; Connect-1cWP Function Connect-1cCluster { param( [string]$Server = 'localhost', [PSCredential]$Credential, [string]$ComObject = 'V83.COMConnector' ) $Global:1c = [ordered]@{ 'Server' = $Server ...
1Cv83_InfoBaseManagement.psd1
1Cv83_InfoBaseManagement-1.0.3
# # Module manifest for module 1Cv83_InfoBaseManagement # # Generated by: Saw-Friendship # # Generated on: 2017-03-29 # @{ # Script module or binary module file associated with this manifest. RootModule = '1Cv83_InfoBaseManagement.psm1' # Version number of this module. ModuleVersion = '1.0.3' # ID u...
lib.ps1
1Poshword-1.0.0
################ # Shared helpers ################ function epoch([uint64] $Seconds) { (New-Object DateTime @(1970,1,1,0,0,0,0,'Utc')).AddSeconds($seconds).ToLocalTime() } function SecureString2String([SecureString] $ss) { (New-Object PSCredential @('xyz', $ss)).GetNetworkCredential().Password } function Clip...
1Poshword.psm1
1Poshword-1.0.0
#Requires -Version 4 param([string] $DefaultVaultPath) Set-StrictMode -Version 2 $errorActionPreference = 'Stop' $defaultVaultPath = $defaultVaultPath,"$home/Dropbox/1Password/1Password.agilekeychain","$home/Dropbox/1Password/1Password.opvault" ` |? { $_ -and (Test-Path $_) } ` | Resolve-Path ` ...
1Poshword.psd1
1Poshword-1.0.0
@{ # Script module or binary module file associated with this manifest. RootModule = '1Poshword' # Version number of this module. ModuleVersion = '1.0.0' # ID used to uniquely identify this module GUID = '36a94a72-beaf-431f-aaaf-b102b1e37f8a' # Author of this module Author ...
1Pwd.psd1
1Pwd-2.0.1
@{ RootModule = '1Pwd.psm1' ModuleVersion = '2.0.1' GUID = '37ae3083-de56-4688-8504-6df789c6e388' Author = 'Darren J Robinson' CompanyName = 'Community' Copyright = '(c) 2023 Darren J Robinson. All rights reserved.' De...
1Pwd.psm1
1Pwd-2.0.1
$CommandsToExport = @() $Global:1PasswordConfiguration = $null $Global:Vault = $null $Global:SignInAddress = $null $Global:SignInAccount = $null $Global:SecretKey = $null $Global:MasterPassword = $null $Global:DefaultVault = $null $Global:CliLocation = $null # Ensure op.exe is in the directory on load. ...
2atCrm.psd1
2atCrm-1.0.6049
# # Module manifest for module 'PSGet_2atCrm' # # Generated by: 2AT B.V. # # Generated on: 14-Mar-18 # @{ # Script module or binary module file associated with this manifest. RootModule = '2atCrm.psm1' # Version number of this module. ModuleVersion = '1.0.6049' # Supported PSEditions # CompatiblePS...
2atCrm.psm1
2atCrm-1.0.6049
#Requires -Version 4.0 -Modules 2atGeneral $PSDefaultParameterValues.Clear() Set-StrictMode -Version 2.0 Import-Module (Join-Path -Path $PSScriptRoot -ChildPath Microsoft.Xrm.Sdk.dll) Import-Module (Join-Path -Path $PSScriptRoot -ChildPath Microsoft.Crm.Sdk.Proxy.dll) Import-Module 2atGeneral Function Get-O...
2atCrm9.psm1
2atCrm9-1.0.440
#Requires -Version 4.0 -Modules 2atGeneral $PSDefaultParameterValues.Clear() Set-StrictMode -Version 2.0 Import-Module (Join-Path -Path $PSScriptRoot -ChildPath Microsoft.Xrm.Sdk.dll) Import-Module (Join-Path -Path $PSScriptRoot -ChildPath Microsoft.Crm.Sdk.Proxy.dll) Import-Module 2atGeneral Function Get-O...
2atCrm9.psd1
2atCrm9-1.0.440
# # Module manifest for module 'PSGet_2atCrm9' # # Generated by: 2AT B.V. # # Generated on: 14-Mar-18 # @{ # Script module or binary module file associated with this manifest. RootModule = '2atCrm9.psm1' # Version number of this module. ModuleVersion = '1.0.440' # Supported PSEditions # CompatibleP...
2atGeneral.psd1
2atGeneral-1.0.277
# # Module manifest for module 'PSGet_2atGeneral' # # Generated by: 2AT B.V. # # Generated on: 14-Mar-18 # @{ # Script module or binary module file associated with this manifest. RootModule = '2atGeneral.psm1' # Version number of this module. ModuleVersion = '1.0.277' # Supported PSEditions # Compa...
2atGeneral.psm1
2atGeneral-1.0.277
#requires -Version 2.0 $PSDefaultParameterValues.Clear() Set-StrictMode -Version 2.0 Function Get-CallerPreference { <# .SYNOPSIS Fetches "Preference" variable values from the caller's scope. .DESCRIPTION Script module functions do not automatically inherit their caller's variables, but they can be ...
2atMonitoring.psm1
2atMonitoring-1.1.4824
#Requires -Version 4.0 -Modules 2atWeb,2atGeneral,2atSql $PSDefaultParameterValues.Clear() Set-StrictMode -Version 2.0 $ErrorActionPreference = 'Stop' Add-Type -Assembly System.Web Import-Module 2atGeneral Import-Module 2atWeb Import-Module 2atSql Import-Module (Join-Path -Path $PSScriptRoot -ChildPath ...
2atMonitoring.psd1
2atMonitoring-1.1.4824
# # Module manifest for module 'PSGet_2atMonitoring' # # Generated by: 2AT B.V. # # Generated on: 23-May-19 # @{ # Script module or binary module file associated with this manifest. RootModule = '2atMonitoring.psm1' # Version number of this module. ModuleVersion = '1.1.4824' # Supported PSEditions ...
2atSql.psd1
2atSql-1.0.278
# # Module manifest for module 'PSGet_2atSql' # # Generated by: 2AT B.V. # # Generated on: 14-Mar-18 # @{ # Script module or binary module file associated with this manifest. RootModule = '2atSql.psm1' # Version number of this module. ModuleVersion = '1.0.278' # Supported PSEditions # CompatiblePSE...
2atSql.psm1
2atSql-1.0.278
#Requires -Version 4.0 -Modules 2atGeneral $PSDefaultParameterValues.Clear() Set-StrictMode -Version 2.0 Import-Module 2atGeneral Function execSql { [CmdletBinding()] param ( [string] $ConnectionString, [Parameter(ValueFromPipeline)] [System.Data.SqlClie...
2atWeb.psd1
2atWeb-1.0.4825
# # Module manifest for module 'PSGet_2atWeb' # # Generated by: 2AT B.V. # # Generated on: 14-Mar-18 # @{ # Script module or binary module file associated with this manifest. RootModule = '2atWeb.psm1' # Version number of this module. ModuleVersion = '1.0.4825' # Supported PSEditions # CompatiblePS...
2atWeb.psm1
2atWeb-1.0.4825
#Requires -Version 4.0 -Modules 2atGeneral $PSDefaultParameterValues.Clear() Set-StrictMode -Version 2.0 $ErrorActionPreference = 'Stop' Add-Type -Assembly System.Net.Http Import-Module 2atGeneral Function HashTableToDictionary { Param( [Parameter(Mandatory=$true)] [HashTable]$HashTable ) $...
Watch-EOLMigrationStatus.ps1
365Admin-1.0.2.1
function Watch-EOLMigrationStatus { <# .SYNOPSIS Connects to Exchange Online and grabs the status of any pending migrations. .DESCRIPTION Connects to Exchange Online and grabs the status of any pending migrations. .EXAMPLE Watch-EOLMigrationStatus -SleepingMinutes 5 Connects to ...
Confirm-ExchangeOnlineConnection.ps1
365Admin-1.0.2.1
function Confirm-ExchangeOnlineConnection { <# .SYNOPSIS Confirms there is an active connection to Exchange Online. Connects if prompted. .DESCRIPTION Confirms there is an active connection to Exchange Online. Connects if prompted. .EXAMPLE Confirm-ExchangeOnlineConnection -ConnectIfDi...
Connect-ExchangeComplianceOnline.ps1
365Admin-1.0.2.1
Function Connect-ExchangeComplianceOnline { [CmdletBinding()] param ( [Parameter(Mandatory = $False)] [System.Management.Automation.PsCredential]$Credential = $Host.UI.PromptForCredential('Enter Global Admin Credential', 'Enter the username and password of an Exchange Online Global Administr...
Get-ExchangeOnlineConnectionState.ps1
365Admin-1.0.2.1
Function Get-ExchangeOnlineConnectionState { $ConnectionState = (Get-PSSession | ? {$_.ConfigurationName -eq 'Microsoft.Exchange' -and $_.State -eq 'Opened' -and $_.ComputerName -eq 'ps.outlook.com'}).count if ($ConnectionState -eq 0) { return 'Disconnected' } if ($ConnectionState -eq 1) { return ...
Connect-SPOL.ps1
365Admin-1.0.2.1
function Connect-SPOL { <# .SYNOPSIS Connects to SharePoint Online .DESCRIPTION Connects to SharePoint Online REF: https://technet.microsoft.com/library/fp161372%28v=office.15%29.aspx?f=255&MSPPError=-2147217396 REF: https://www.microsoft.com/en-us/download/confirmation.aspx?id=35588 ...
Get-DailyEmailCounts.ps1
365Admin-1.0.2.1
function Get-DailyEmailCounts { <# .SYNOPSIS Gathers a simple report of number/basic info of emails received by a certain Exchange Online address. .DESCRIPTION Connects to Exchange Online and gathers daily email counts for the last day ("Number of emails sent TO this email box from Midnight Yest...
Start-ExternalEmailTester.ps1
365Admin-1.0.2.1
Function Start-ExternalEmailTester { param( [Parameter(Mandatory=$true)] [System.Management.Automation.PsCredential] $Cred = $Host.UI.PromptForCredential('Enter Outlook.com Credential', 'Enter the username and password of your outlook.com account.', '', 'userCreds'), [String] ...
loader.psm1
365Admin-1.0.2.1
# DO NOT MODIFY THIS FILE! # THIS FILE WAS AUTOGENERATED BY ISESTEROIDS AND WILL BE OVERWRITTEN WHEN YOU EXPORT FUNCTIONS TO THIS MODULE. # USE THIS FILE FOR ADDITIONAL MODULE CODE. THIS FILE WILL NOT BE OVERWRITTEN # WHEN NEW CONTENT IS PUBLISHED TO THIS MODULE: . $PSScriptRoot\init.ps1 # LOADING ALL FUNCTI...
Start-DirSync.ps1
365Admin-1.0.2.1
function Start-DirSync { <# .SYNOPSIS Kicks off AD Connect Sync Cycle .DESCRIPTION Kicks off AD Connect Sync Cycle of specified type on specified server. .EXAMPLE Start-DirSync -SyncType Initial Starts Initial (Full) DirSync on AD Sync Server scrp-nettools01 (Default...
365Admin.psd1
365Admin-1.0.2.1
# # Module Manifest for Module '365Admin.psd1 # # This manifest file is a PowerShell hashtable with all technical requirements for this module # This module was autogenerated by ISESteroids (http://www.isesteroids.com) # # Generated: 2017-05-01 # @{ # Module Loader File RootModule = 'loader.psm1' # V...
init.ps1
365Admin-1.0.2.1
# use this file to define global variables on module scope # or perform other initialization procedures. # this file will not be touched when new functions are exported to # this module.
Add-FullAccessPermission.ps1
365Admin-1.0.2.1
function Add-FullAccessPermission { <# .SYNOPSIS Adds FullAccess to target user .EXAMPLE Add-FullAccessPermission -enduser steve -targetmailbox bob Adds SendAs permission on bob's mailbox for end user steve WITHOUT AutoMapping. .EXAMPLE Add-FullAccessPermission -...
Disconnect-ExchangeComplianceOnline.ps1
365Admin-1.0.2.1
Function Disconnect-ExchangeComplianceOnline { Get-PSSession | ?{$_.ComputerName -like '*ps.compliance.protection.outlook.com'} | Remove-PSSession }
Backup-Whitelist.ps1
365Admin-1.0.2.1
Function Backup-Whitelist { param( [System.Diagnostics.Switch] $Debugging, [Switch] $SendEmail, [Parameter(Mandatory = $False)] [String] $BackupPath = 'C:\scripts\powershell\EOL_WhitelistBackups\', [Parameter(Mandatory = $true)] [String] $EmailRecipient...
Get-Wasted365License.ps1
365Admin-1.0.2.1
function Get-Wasted365License { <# .SYNOPSIS Checks EOL for users with associated licenses who are also disabled in AD .DESCRIPTION This script is meant to find disabled users in Active Directory who are burning a 365 license. .EXAMPLE Get-Wasted365License -ProductType Ente...
Connect-ExchangeOnline.ps1
365Admin-1.0.2.1
Function Connect-ExchangeOnline { [CmdletBinding()] param ( [Parameter(Mandatory = $False)] [System.Management.Automation.PsCredential]$Credential = $Host.UI.PromptForCredential('Enter Global Admin Credential', 'Enter the username and password of an Exchange Online Global Administrator accou...
Disconnect-ExchangeOnline.ps1
365Admin-1.0.2.1
Function Disconnect-ExchangeOnline { Get-PSSession | ?{$_.ComputerName -like '*outlook.office365.com'} | Remove-PSSession }
Add-SendAsPermission.ps1
365Admin-1.0.2.1
function Add-SendAsPermission { <# .SYNOPSIS Adds SendAs Extended Right to target user .EXAMPLE Add-SendAsPermission -enduser steve -targetmailbox bob Adds SendAs permission on bob's mailbox for end user steve. #> param ( [String] [Parameter(Mandatory)] $en...
Invoke-365AutomatedCheck.ps1
365AutomatedCheck-0.0.11
<# .SYNOPSIS Invokes the 365AutomatedCheck function to perform automated checks on Microsoft 365 environments. .DESCRIPTION The Invoke-365AutomatedCheck function performs automated checks on Microsoft 365 environments by running Pester tests. It generates an HTML report from the test results, and optionally, a...
Test-365ACCountry.ps1
365AutomatedCheck-0.0.11
<# .SYNOPSIS Tests whether users in Microsoft 365 have a country assigned and optionally validates against a list of valid countries. .DESCRIPTION The Test-365ACCountry function checks if users in Microsoft 365 have a country assigned to their profile. It can also validate these countries against a provided list of va...
Test-365ACStreetAddress.ps1
365AutomatedCheck-0.0.11
<# .SYNOPSIS Tests whether users have a street address and generates a report. .DESCRIPTION The Test-365ACStreetAddress function tests whether users have a street address and generates a report. It takes a list of users as input and checks if each user has a street address. The function generates a r...
Test-365ACMailNickName.ps1
365AutomatedCheck-0.0.11
<# .SYNOPSIS Tests if users have a mail nickname assigned in their Microsoft 365 profiles. .DESCRIPTION The Test-365ACMailNickname function checks each user retrieved from Microsoft 365 for a mail nickname value. It processes a list of users, determining whether each user has a mail nickname assigned. The resu...
Test-365ACAddressBook.ps1
365AutomatedCheck-0.0.11
<# .SYNOPSIS Tests if users are hidden from the Address Book in their Microsoft 365 profiles. .DESCRIPTION The Test-365ACAddressBook function checks each user retrieved from Microsoft 365 to determine if they are hidden from the Address Book. It processes a list of users, checking the 'HiddenFromAddressListsEn...
Set-365ACDefaultOutputPath.ps1
365AutomatedCheck-0.0.11
<# .SYNOPSIS Sets the default output path for the 365ACReports. .DESCRIPTION This function sets the default output path for the 365ACReports. If a specific path is provided, it checks if it is an absolute path. If not, it appends it to the base reports path. If no path is provided, it creates a new path based on the c...
Get-365ACPesterConfiguration.ps1
365AutomatedCheck-0.0.11
<# .SYNOPSIS Retrieves the Pester configuration for the 365AutomatedCheck module. .DESCRIPTION The Get-365ACPesterConfiguration function retrieves the Pester configuration for the 365AutomatedCheck module. It allows you to customize the configuration by specifying various parameters such as the path to run the...
Test-365ACState.ps1
365AutomatedCheck-0.0.11
<# .SYNOPSIS Tests if users have a state assigned in their Microsoft 365 profiles. .DESCRIPTION The Test-365ACState function checks each user retrieved from Microsoft 365 for a state value. It processes a list of users, determining whether each user has a state assigned. The results can be exported to an Excel...
Test-365ACMobilePhone.ps1
365AutomatedCheck-0.0.11
<# .SYNOPSIS Tests whether users in Microsoft 365 have a valid mobile phone number. .DESCRIPTION The Test-365ACMobilePhone function checks if users in Microsoft 365 have a mobile phone number and optionally validates these numbers against a provided list of valid numbers. It supports outputting the results to ...
Test-365ACCompanyName.ps1
365AutomatedCheck-0.0.11
<# .SYNOPSIS Tests whether users in Microsoft 365 have a company name assigned and optionally validates against a list of valid company names. .DESCRIPTION The Test-365ACCompanyName function checks if users in Microsoft 365 have a company name assigned to their profile. It can also validate these company names...
365AutomatedCheck.psm1
365AutomatedCheck-0.0.11
$RootPath = Split-Path $MyInvocation.MyCommand.Path $FunctionFiles = $("$PSScriptRoot\functions\public\","$PSScriptRoot\functions\private\") | Get-Childitem -file -Recurse -Include "*.ps1" -ErrorAction SilentlyContinue $functions = @() foreach($FunctionFile in $FunctionFiles){ try { . $FunctionFile.FullNa...
Test-365ACFaxNumber.ps1
365AutomatedCheck-0.0.11
<# .SYNOPSIS Tests whether users in Microsoft 365 have a fax number assigned and exports the results. .DESCRIPTION The Test-365ACFaxNumber function checks if users in Microsoft 365 have a fax number by examining the FaxNumber property. It can validate fax numbers against a provided list of valid numbers. The r...
Test-365ACEmployeeID.ps1
365AutomatedCheck-0.0.11
<# .SYNOPSIS Tests if users have an Employee ID assigned in their Microsoft 365 profiles. .DESCRIPTION The Test-365ACEmployeeID function checks each user retrieved from Microsoft 365 for an Employee ID value. It processes a list of users, determining whether each user has an Employee ID assigned. The results can be ex...
Test-365ACJobTitle.ps1
365AutomatedCheck-0.0.11
<# .SYNOPSIS Tests if users have a job title assigned and exports the results. .DESCRIPTION The Test-365ACJobTitle function checks if users in Microsoft 365 have a job title assigned. It can validate job titles against a list of valid titles if provided. The results can be exported to Excel, HTML, or output to...
Test-365ACAccountEnabled.ps1
365AutomatedCheck-0.0.11
<# .SYNOPSIS Tests if users' accounts are enabled in their Microsoft 365 profiles. .DESCRIPTION The Test-365ACAccountEnabled function checks each user retrieved from Microsoft 365 to determine if their account is enabled. It processes a list of users, determining the enabled status of each user's account. The ...
Test-365ACCity.ps1
365AutomatedCheck-0.0.11
<# .SYNOPSIS Tests if users have a city property and generates test results. .DESCRIPTION The Test-365ACCity function tests if users have a city property and generates test results. It takes an array of users as input and checks if each user has a city property. The test results are stored in an array of custo...
Test-365ACPostalCode.ps1
365AutomatedCheck-0.0.11
<# .SYNOPSIS Tests if users have a postal code assigned in their Microsoft 365 profiles. .DESCRIPTION The Test-365ACPostalCode function checks each user retrieved from Microsoft 365 for a postal code value. It processes a list of users, determining whether each user has a postal code assigned. The results can ...
Test-365ACLastLogin.ps1
365AutomatedCheck-0.0.11
<# .SYNOPSIS Tests the last login activity of users in Microsoft 365. .DESCRIPTION The Test-365ACLastLogin function tests the last login activity of users in Microsoft 365. It retrieves the required properties of users, calculates the number of inactive days, and determines if a user has logged in within a spe...
Convert-365ACXmlToHtml.ps1
365AutomatedCheck-0.0.11
<# .SYNOPSIS Converts an XML file to an HTML file using an XSLT transformation. .DESCRIPTION The Convert-365ACXmlToHtml function takes an XML file, an XSLT file, and an output HTML file path as input parameters. It performs an XSLT transformation on the XML file using the specified XSLT file and generates an HTML repo...
365AutomatedCheck.psd1
365AutomatedCheck-0.0.11
# # Module manifest for module '365AutomatedCheck' # # Generated by: Clayton Tyger # # Generated on: 6/14/2024 # @{ # Script module or binary module file associated with this manifest. RootModule = '365AutomatedCheck.psm1' # Version number of this module. ModuleVersion = '0.0.11' # Supported PSEditions CompatiblePS...
Test-UserValidation.tests.ps1
365AutomatedCheck-0.0.11
<# .SYNOPSIS Validates user properties in Microsoft 365 using PowerShell Pester tests. .DESCRIPTION This script performs validation of user properties in Microsoft 365 by leveraging the Microsoft Graph API and Pester testing framework. It supports filtering users based on their type (members, guests, etc.), en...
Export-365ACResultToHtml.ps1
365AutomatedCheck-0.0.11
<# .SYNOPSIS Exports 365AutomatedCheck results to an HTML file. .DESCRIPTION The Export-365ACResultToHtml function takes an array of results, along with other parameters, and generates an HTML file that displays the results in a table format. The function calculates the total number of tests, the number of passed test...
Test-365ACDepartment.ps1
365AutomatedCheck-0.0.11
<# .SYNOPSIS Tests whether users in Microsoft 365 have a department assigned and optionally validates against a list of valid departments. .DESCRIPTION The Test-365ACDepartment function checks if users in Microsoft 365 have a department assigned and can validate these departments against a provided list of val...
Export-365ACResultToExcel.ps1
365AutomatedCheck-0.0.11
<# .SYNOPSIS Exports the 365AutomatedCheck results to an Excel file. .DESCRIPTION The Export-365ACResultToExcel function takes an array of results, along with other parameters, and exports the results to an Excel file. It applies formatting, adds summary information, and applies conditional formatting based on the tes...
New-CT365SharePointSite.ps1
365AutomatedLab-2.11.0
<# .SYNOPSIS Creates new SharePoint Online sites based on the data from an Excel file. .DESCRIPTION The `New-365CTSharePointSite` function connects to SharePoint Online(PnP) using the provided admin URL and imports site data from the specified Excel file. It then attempts to create each site based on the data. .PARAM...
Remove-CT365SharePointSite.ps1
365AutomatedLab-2.11.0
<# .SYNOPSIS Deletes SharePoint Online sites based on the data from an Excel file. .DESCRIPTION The `Remove-365CTSharePointSite` function connects to SharePoint Online(PnP) using the provided admin URL and imports site data from the specified Excel file. It then attempts to delete each site based on the data. .PARAME...
New-CT365SharePointSite.Tests.ps1
365AutomatedLab-2.11.0
BeforeAll { # Call Cmdlet $commandScriptPath = Join-Path -Path $PSScriptRoot -ChildPath '..\functions\public\New-CT365SharePointSite.ps1' . $commandScriptPath } Describe 'New-CT365SharePointSite Function' { Context 'When provided invalid parameters' { It 'Should throw an error for invalid doma...
Set-CT365SPDistinctNumber.Tests.ps1
365AutomatedLab-2.11.0
BeforeAll { # Call Cmdlet $commandScriptPath = Join-Path -Path $PSScriptRoot -ChildPath '..\functions\public\Set-CT365SPDistinctNumber.ps1' . $commandScriptPath } Describe 'Set-CT365SPDistinctNumber Function' { Context 'When provided invalid parameters' { It 'Should throw an error for invalid ...
New-CT365Group.Tests.ps1
365AutomatedLab-2.11.0
BeforeAll { # Call Cmdlet $commandScriptPath = Join-Path -Path $PSScriptRoot -ChildPath '..\functions\public\New-CT365Group.ps1' . $commandScriptPath } Describe 'New-CT365Group Function' { Context 'When provided invalid parameters' { It 'Should throw an error for invalid domain format' { ...
Remove-CT365Teams.ps1
365AutomatedLab-2.11.0
<# .SYNOPSIS Removes Microsoft 365 Teams based on the provided Excel data. .DESCRIPTION The Remove-CT365Teams function connects to SharePoint Online, reads a list of Teams from an Excel file, and then removes each team. The function provides feedback on the process using the Write-PSFMessage cmdlet. .PARAMETER FilePa...
New-CT365User.ps1
365AutomatedLab-2.11.0
<# .SYNOPSIS Creates a new user in Office 365. .DESCRIPTION The New-CT365User function creates a new user in Office 365 using the Microsoft Graph API. It imports user data from an Excel file and assigns licenses based on the user data. If the UseDeveloperPackE5 switch is set, it assigns the DEVELOPERPACK_E5 license ...
New-CT365GroupByUserRole.Tests.ps1
365AutomatedLab-2.11.0
BeforeAll { # Call Cmdlet $commandScriptPath = Join-Path -Path $PSScriptRoot -ChildPath '..\functions\public\New-CT365GroupByUserRole.ps1' . $commandScriptPath } Describe 'New-CT365GroupByUserRole Function' { Context 'When provided invalid parameters' { It 'Should throw an error for invalid do...
Remove-CT365AllDeletedM365Groups.Tests.ps1
365AutomatedLab-2.11.0
BeforeAll { # Call Cmdlet $commandScriptPath = Join-Path -Path $PSScriptRoot -ChildPath '..\functions\public\Remove-CT365AllDeletedM365Groups.ps1' . $commandScriptPath } Describe 'Remove-CT365AllDeletedM365Groups Function' { Context 'When provided invalid parameters' { It 'Should throw an erro...
Set-CT365SPDistinctNumber.ps1
365AutomatedLab-2.11.0
<# .SYNOPSIS Replaces specified numbers in an Excel worksheet, excluding certain columns. .DESCRIPTION The Set-CT365SPDistinctNumber function opens an Excel file and replaces occurrences of a specified number in a given worksheet. It excludes specific columns ("Template" and "TimeZone") from this operatio...
Remove-CT365Teams.Tests.ps1
365AutomatedLab-2.11.0
BeforeAll { # Call Cmdlet $commandScriptPath = Join-Path -Path $PSScriptRoot -ChildPath '..\functions\public\Remove-CT365Teams.ps1' . $commandScriptPath } Describe 'Remove-CT365Teams Function' { Context 'When provided invalid parameters' { It 'Should throw an error for invalid domain format' {...
Remove-CT365AllSitesFromRecycleBin.ps1
365AutomatedLab-2.11.0
<# .SYNOPSIS Removes all sites from the SharePoint Online recycle bin. .DESCRIPTION The Remove-CT365AllSitesFromRecycleBin function connects to SharePoint Online using the provided admin URL and then removes all sites from the SharePoint Online recycle bin. This function requires the PSFramework and PnP.PowerShell mod...
365AutomatedLab.psm1
365AutomatedLab-2.11.0
$FunctionFiles = $("$PSScriptRoot\Functions\Public\","$PSScriptRoot\Functions\Private\")| Get-Childitem -file -Recurse -Include "*.ps1" -ErrorAction SilentlyContinue foreach($FunctionFile in $FunctionFiles){ try { . $FunctionFile.FullName } catch { Write-Error -Message "Failed to import fun...
Remove-CT365Group.ps1
365AutomatedLab-2.11.0
<# .SYNOPSIS This function removes Office 365 groups based on information provided in an Excel file. .DESCRIPTION The Remove-CT365Group function is used to remove Office 365 groups. The function imports data from an Excel file and uses it to remove the Office 365 groups. The Excel file should contain a list of groups w...
Export-CT365ProdGroupToExcel.ps1
365AutomatedLab-2.11.0
<# .SYNOPSIS Exports Office 365 group data to an Excel file. .DESCRIPTION The Export-CT365ProdGroupToExcel function connects to Microsoft Graph, retrieves Office 365 group data based on specified filters, and exports the data to an Excel file. It supports limiting the number of groups to be retrieved. .PARAME...
Remove-CT365GroupByUserRole.Tests.ps1
365AutomatedLab-2.11.0
BeforeAll { # Call Cmdlet $commandScriptPath = Join-Path -Path $PSScriptRoot -ChildPath '..\functions\public\Remove-CT365GroupByUserRole.ps1' . $commandScriptPath } Describe 'Remove-CT365GroupByUserRole Function' { Context 'When provided invalid parameters' { It 'Should throw an error for inva...
Remove-CT365User.Tests.ps1
365AutomatedLab-2.11.0
BeforeAll { # Call Cmdlet $commandScriptPath = Join-Path -Path $PSScriptRoot -ChildPath '..\functions\public\Remove-CT365User.ps1' . $commandScriptPath } Describe 'Remove-CT365User Function' { Context 'When provided invalid parameters' { It 'Should throw an error for invalid domain format' { ...
Verify-CT365TeamsCreation.ps1
365AutomatedLab-2.11.0
function Verify-CT365TeamsCreation { param( [string]$teamName, [int]$retryCount = 5, [int]$delayInSeconds = 10 ) for ($i = 0; $i -lt $retryCount; $i++) { $existingTeam = Get-PnPTeamsTeam | Where-Object { $_.DisplayName -eq $teamName } if ($existingTeam) { ...
365AutomatedLab.psd1
365AutomatedLab-2.11.0
# # Module manifest for module '365AutomatedLab' # # Generated by: Clayton Tyger # # Generated on: 6/1/2023 # @{ # Script module or binary module file associated with this manifest. RootModule = '365AutomatedLab.psm1' # Version number of this module. ModuleVersion = '2.11.0' # Supported PSEditions CompatiblePSEditi...
Remove-CT365Group.Tests.ps1
365AutomatedLab-2.11.0
BeforeAll { # Call Cmdlet $commandScriptPath = Join-Path -Path $PSScriptRoot -ChildPath '..\functions\public\Remove-CT365Group.ps1' . $commandScriptPath } Describe 'Remove-CT365Group Function' { Context 'When provided invalid parameters' { It 'Should throw an error for invalid domain format' {...
New-CT365Teams.Tests.ps1
365AutomatedLab-2.11.0
BeforeAll { # Call Cmdlet $commandScriptPath = Join-Path -Path $PSScriptRoot -ChildPath '..\functions\public\New-CT365Teams.ps1' . $commandScriptPath } Describe 'New-CT365Teams Function' { Context 'When provided invalid parameters' { It 'Should throw an error for invalid domain format' { ...
Remove-CT365User.ps1
365AutomatedLab-2.11.0
<# .SYNOPSIS Removes a user from Microsoft 365 based on the provided Excel data. .DESCRIPTION The Remove-CT365User function connects to the Microsoft Graph, reads user data from the provided Excel file, and attempts to remove each user listed in the file from Microsoft 365. .PARAMETER FilePath Specifies the full pat...
Export-CT365ProdTeamstoExcel.ps1
365AutomatedLab-2.11.0
<# .SYNOPSIS Exports Microsoft Teams and their channels to an Excel file. .DESCRIPTION The Export-CT365ProdTeamsToExcel function connects to SharePoint Online and retrieves information about Microsoft Teams and their channels. It then exports this data to an Excel file. The function requires a valid SharePoint...
Remove-CT365AllDeletedM365Groups.ps1
365AutomatedLab-2.11.0
<# .SYNOPSIS Removes all deleted Microsoft 365 groups from the recycle bin. .DESCRIPTION The Remove-CT365AllDeletedM365Groups function connects to a Microsoft 365 tenant and removes all Microsoft 365 groups that have been deleted and are currently in the recycle bin. It requires the PnP.PowerShell module and u...