Search is not available for this dataset
filename
stringlengths
5
114
module_name
stringlengths
8
67
content
stringlengths
0
282M
GetStats.ps1
7DWSM-1.4.0
#Set Local Directory Set-Location $PSScriptRoot # Update Uptime Data If(Test-Path "..\webroot\http\data\uptime.json") { # Read JSON From File $JSONArray += $(Get-Content "..\webroot\http\data\uptime.json" | ConvertFrom-JSON) # Get A Count And Only Keep The Last 24 - Keeps a 24 Hour By Hour Record $JSONA...
controlpanel.ps1
7DWSM-1.4.0
@" <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>7 Days To Die - Cindar's World</title> <!--STYLESHEET--> <!--=================================================--> <!--Open Sans Font [ ...
instance.ps1
7DWSM-1.4.0
Function Get-PublicIP { # I am defining website url in a variable $url = "http://checkip.dyndns.com" # Creating a new .Net Object names a System.Net.Webclient $webclient = New-Object System.Net.WebClient # In this new webdownlader object we are telling $webclient to download the # u...
serverlog.ps1
7DWSM-1.4.0
@" <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>7 Days To Die - Cindar's World</title> <!--STYLESHEET--> <!--=================================================--> <!--Open Sans Font [ ...
phpsecurityerror.ps1
7DaysToDieManager-1.0.0
# Copyright (C) 2014 Yusuf Ozturk # This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. # This program is distributed in the hope ...
config.ps1
7DaysToDieManager-1.0.0
# Copyright (C) 2014 Yusuf Ozturk # This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. # This program is distributed in the hope ...
index.ps1
7DaysToDieManager-1.0.0
@" <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Sample Web Site Template - PoSH Server</title> <meta name="author" content="Your Inspiration Web - Nando [php, xhtml, css], Sara [graphi...
7DaysToDieManager.psd1
7DaysToDieManager-1.0.0
# Copyright 2019 - Sean Davis # GNU General Public License v3 @{ Author = "Sean Davis" Description = "7 Days To Die Web Based Server Manager" Copyright = "Copyright (C) 2019 Sean Davis" ModuleVersion = "1.0" Guid = "a22be64d-117b-0a99-21c9-7dd0b2ead012" NestedModules = "7DaysToDieManager.ps1" }
7DaysToDieManager.ps1
7DaysToDieManager-1.0.0
# Copyright 2019 - Sean Davis # GNU General Public License v3 function Start-7DaysToDieManager { <# .SYNOPSIS Powershell Web Server to serve HTML and Powershell web contents. .DESCRIPTION Listens a port to serve web content. Supports HTML and Powershell. ....
phpcgierror.ps1
7DaysToDieManager-1.0.0
# Copyright (C) 2014 Yusuf Ozturk # This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. # This program is distributed in the hope ...
adminverification.ps1
7DaysToDieManager-1.0.0
# Copyright (C) 2014 Yusuf Ozturk # This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. # This program is distributed in the hope ...
contentfiltering.ps1
7DaysToDieManager-1.0.0
# Copyright (C) 2014 Yusuf Ozturk # This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. # This program is distributed in the hope ...
log.ps1
7DaysToDieManager-1.0.0
# Copyright (C) 2014 Yusuf Ozturk # This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. # This program is distributed in the hope ...
ipverification.ps1
7DaysToDieManager-1.0.0
# Copyright (C) 2014 Yusuf Ozturk # This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. # This program is distributed in the hope ...
example4.ps1
7DaysToDieManager-1.0.0
# You can also use html files as templates # Let's import one of them # But we only get content of html files, you can't execute Powershell in them. @" $(Write-Host Hello World Example4!) $(Get-Content "$HomeDirectory\index.htm") "@
functions.ps1
7DaysToDieManager-1.0.0
# Copyright (C) 2014 Yusuf Ozturk # This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. # This program is distributed in the hope ...
maps.ps1
7DaysToDieManager-1.0.0
@" <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>7 Days To Die - Cindar's World</title> <!--STYLESHEET--> <!--=================================================--> <!--Open Sans Font [ ...
example2.ps1
7DaysToDieManager-1.0.0
# Also you can put your commands before @""@ $(Write-Host Hello World Example2!) @" <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Sample Web Site Template - PoSH Server</title> <meta ...
notfound.ps1
7DaysToDieManager-1.0.0
# Copyright (C) 2014 Yusuf Ozturk # This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. # This program is distributed in the hope ...
GetStats.ps1
7DaysToDieManager-1.0.0
Start-transcript C:\Program Files\PoSHServer\jobs\test.txt #Read JSON From File $JSON = Get-Content 'C:\Program Files\PoSHServer\webroot\http\data\uptime.json' | ConvertFrom-JSON #Get A Count And Only Keep The Last 24 - Keeps a 24 Hour By Hour Record $JSON = $JSON | Select -Last 23 #Create New Object From Cu...
example3.ps1
7DaysToDieManager-1.0.0
# You can use ps1 files as templates # Let's import one of them @" $(Write-Host Hello World Example3!) $(. $HomeDirectory\index.ps1) "@
controlpanel.ps1
7DaysToDieManager-1.0.0
@" <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>7 Days To Die - Cindar's World</title> <!--STYLESHEET--> <!--=================================================--> <!--Open Sans Font [ ...
example1.ps1
7DaysToDieManager-1.0.0
# In this example, you see how to use Powershell commands # $(PSCommand) should work with html codes @" $(Write-Host Hello World!) <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Sample Web Si...
serverlog.ps1
7DaysToDieManager-1.0.0
@" <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>7 Days To Die - Cindar's World</title> <!--STYLESHEET--> <!--=================================================--> <!--Open Sans Font [ ...
example5.ps1
7DaysToDieManager-1.0.0
# You can post values to Powershell # Example: http://localhost:8080/example5.ps1?command=Date # But we only get content of html files, you can't execute Powershell in them. $cmd = $PoSHQuery.Command if ($cmd -eq "Date") { Write-Host (Get-Date) } @" $(Write-Host Hello World Example5!) <!DOCTYPE html PUBLIC "...
iprestriction.ps1
7DaysToDieManager-1.0.0
# Copyright (C) 2014 Yusuf Ozturk # This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. # This program is distributed in the hope ...
authentication.ps1
7DaysToDieManager-1.0.0
# Copyright (C) 2014 Yusuf Ozturk # This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. # This program is distributed in the hope ...
phpencoding.ps1
7DaysToDieManager-1.0.0
# Copyright (C) 2014 Yusuf Ozturk # This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. # This program is distributed in the hope ...
7Zip4Powershell.psd1
7Zip4Powershell-2.6.0
@{ GUID = 'bd4390dc-a8ad-4bce-8d69-f53ccf8e4163' Author = 'Thomas Freudenberg' Description = 'Powershell module for creating and extracting 7-Zip archives' CompanyName = 'N/A' Copyright = '2013-2021 Thomas Freudenberg' DotNetFrameworkVersion = '4.7.2' ModuleVersion = '2.6.0' PowerShellVersion = '5.0' PrivateDa...
7ZipArchiveDsc.psd1
7ZipArchiveDsc-2.0.0
@{ RootModule = '7ZipArchiveDsc.psm1' ModuleVersion = '2.0.0' GUID = '9c9688ed-1172-4d5a-9c80-772e086edda6' Author = 'mkht' CompanyName = '' Copyright = '(c) 2021 mkht. All rights reserved.' Description = 'Pow...
7ZipArchiveDsc.psm1
7ZipArchiveDsc-2.0.0
$modulePath = $PSScriptRoot $subModulePath = @( '\DSCResources\x7ZipArchive\x7ZipArchive.psm1' ) $subModulePath.ForEach( { Import-Module (Join-Path $modulePath $_) })
x7ZipArchive.ps1
7ZipArchiveDsc-2.0.0
$output = 'C:\Example\MOF' Configuration Example { Import-DscResource -ModuleName 7ZipArchiveDsc Node localhost { x7ZipArchive sample1 { Path = 'C:\sample.zip' Destination = 'C:\Destination' Validate = $true Checksum = 'Size' ...
x7ZipArchive.psm1
7ZipArchiveDsc-2.0.0
#Requires -Version 5 using namespace System.IO using namespace System.Collections.Generic $script:Crc16 = Join-Path (Split-Path (Split-Path $PSScriptRoot -Parent) -Parent) '\Libs\CRC16\CRC16.cs' $script:Crc32NET = Join-Path (Split-Path (Split-Path $PSScriptRoot -Parent) -Parent) '\Libs\Crc32.NET\Crc32.NET.dll' $...
Aliases.ps1
7zip-Archive-1.1.0
Set-Alias szr Read-ZipFile -Scope Global Set-Alias sza Add-ZipFileContent -Scope Global Set-Alias szrm Remove-ZipFileContent -Scope Global Set-Alias szt Test-ZipFileContent -Scope Global Set-Alias br Get-ZipFileContent -Scope Global Set-Alias szc New-ZipFile -Scope Global
Shared-Functions.ps1
7zip-Archive-1.1.0
function szShow-ConfirmPrompt { param ( [Parameter(Position = 0, ParameterSetName = 'Positional', ValueFromPipeline = $True)] [Alias("Question", "Description")] $text ="Would you like to continue?" ) $reply = Read-Host -Prompt "$text` [Y] Yes [N] No [S] Suspend(default i...
Functions.ps1
7zip-Archive-1.1.0
function _Initalize() { $script:_binDir = szGet-ProfileDir "7zip" "bin" Write-Debug "The 7-zip is dir set to $_binDir" $script:_7zWin = Join-Path $_binDir "7za.exe" $script:_7zWinDownloadDir='https://www.7-zip.org/a/7za920.zip' $script:_7zPath = $null; } ##Check if 7zip p7z are installed functio...
7zip-Archive.psm1
7zip-Archive-1.1.0
. $PSScriptRoot\Shared-Functions.ps1 . $PSScriptRoot\Functions.ps1 szCheckPsGalleryUpdate 7Zip "1.1.0" _Initalize Export-ModuleMember -Function: Read-ZipFile Export-ModuleMember -Function: Add-ZipFileContent Export-ModuleMember -Function: Remove-ZipFileContent Export-ModuleMember -Function: Test-ZipFil...
7zip-Archive.psd1
7zip-Archive-1.1.0
# # Module manifest for module '7zip-Archive' # # Generated by: Dmitry Stadub # # @{ # Script module or binary module file associated with this manifest. # RootModule = '' # Version number of this module. ModuleVersion = '1.1.0' # Supported PSEditions # CompatiblePSEd...
New-7zSFX.ps1
7zipWrapper-0.1.39
Function New-7zSfx { <# .SYNOPSIS Create a new 7-Zip self extracting archive .DESCRIPTION Create self-extracting archives using 7-Zip .EXAMPLE New-7zsfx app-sfx app.exe,app.exe.config app.exe Simply create a self-extracting exe from an executable file app.exe ...
Get-CurrentFileName.ps1
7zipWrapper-0.1.39
function Get-CurrentFileName { #Returns the name of the current PowerShell script file. $MyInvocation.ScriptName }
Expand-7zArchive.ps1
7zipWrapper-0.1.39
Function Expand-7zArchive { <# .SYNOPSIS Extract files fom a 7-Zip archive .DESCRIPTION Use this cmdlet to extract files from an existing 7-Zip archive Extracts files from an archive to the current directory or to the output directory. The output directory can be specified...
7zipWrapper.psd1
7zipWrapper-0.1.39
# # Module manifest for module '7zipWrapper' # # Generated by: David Tawater # # Generated on: 8/8/2021 # @{ # Script module or binary module file associated with this manifest. RootModule = '7zipWrapper.psm1' # Version number of this module. ModuleVersion = '0.1.39' # Supported PSEditions # Compat...
New-7zArchive.ps1
7zipWrapper-0.1.39
function New-7zArchive() { <# .SYNOPSIS Create a new 7-Zip archive .DESCRIPTION Use this cmdlet to create 7-Zip archives. Possible types are 7z (default) as well as zip, gzip, bzip2, tar, iso, udf archive formats. This needs testing...made usable The archive file is o...
Get-7zArchive.ps1
7zipWrapper-0.1.39
Function Get-7zArchive { <# .SYNOPSIS List files fom a 7-Zip archive .DESCRIPTION Use this cmdlet to examine the contents of 7-Zip archives. Output is a list of PSCustomObjects with properties [string]Mode, [DateTime]DateTime, [int]Length, [int]Compressed and [string]Name ...
Initialize-Module.ps1
7zipWrapper-0.1.39
<# .SYNOPSIS Performs initial module tasks and configurations .DESCRIPTION This is the landing script for the entry point of this module .EXAMPLE .\Initialize-Module.ps1 this is automatically called from the build task in the main module folder .NOTES T...
Update-7zArchive.ps1
7zipWrapper-0.1.39
function Update-7zArchive() { <# .SYNOPSIS Update files in a 7-Zip archive .DESCRIPTION Use this cmdlet to update files to an existing 7-Zip archive. If the archive does not exist, it is created. Update-7zArchive will update older files in the archive and ad...
Debug-ThrowException.ps1
7zipWrapper-0.1.39
function Debug-ThrowException { [CmdletBinding()] param ( [string]$Message, [string]$Verb, [string]$Path, [string]$Output, [string]$LineNumber, [string]$Filename, [string]$Executable, [Exception]$Exception ) begin { #...
Add-7zArchive.ps1
7zipWrapper-0.1.39
function Add-7zArchive() { <# .SYNOPSIS Create a new 7-Zip archive .DESCRIPTION Use this cmdlet to create 7-Zip archives. Possible types are 7z (default) as well as zip, gzip, bzip2, tar, iso, udf archive formats. This needs testing...made usable The archive file is o...
Get-CurrentLineNumber.ps1
7zipWrapper-0.1.39
function Get-CurrentLineNumber { #Returns the current line number in a PowerShell script file. $MyInvocation.ScriptLineNumber }
Invoke-7zInterop.ps1
7zipWrapper-0.1.39
function Invoke-7zInterop { [CmdletBinding()] #This (internal) function does the hard work: it calls 7-Zip with the appropriate arguments Param( # The operation to perform [Parameter(Mandatory)] [ValidateSet("New", "Add", "Update", "List", "Extract", "Test")] [string]$...
SevenZipException.ps1
7zipWrapper-0.1.39
class SevenZipException : Exception { <# .SYNOPSIS Constructs a new exception with the specified detail message and additionaldata. .DESCRIPTION This is the base exception of this module. The sub classes are to develop finer detailed exceptions to more accurately des...
Test-7zArchive.ps1
7zipWrapper-0.1.39
Function Test-7zArchive { <# .SYNOPSIS Test files a 7-Zip archive. .DESCRIPTION Use this cmdlet to test 7-Zip archives for errors .EXAMPLE Test-7zArchive c:\temp\test.7z Test the archive "c:\temp\test.7z". Throw an error if any errors are found .NOTES ...
7zipWrapper.psm1
7zipWrapper-0.1.39
<# .SYNOPSIS Powershell Module 7-Zip - 7-Zip commands for PowerShell .DESCRIPTION The functions in this module call 7za.exe, the standAlone version of 7-zip to perform various tasks on 7-zip archives. Place anywhere, together with 7za.exe and 7zsd.sfx. 7za.exe is required for all operations; 7zsd.sfx for creating self ...
AADB2C.psd1
AADB2C-1.0.7
# # Module manifest for module 'AADB2C' # # Generated by: Maatschap Fortigi # # Generated on: 25/09/2019 # @{ # Script module or binary module file associated with this manifest. RootModule = 'AADB2C.psm1' # Version number of this module. ModuleVersion = '1.0.7' # Supp...
AADB2C.psm1
AADB2C-1.0.7
<# MIT License Copyright (c) 2019 Fortigi. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, ...
Init.psm1
AADConnectDsc-0.3.1
if (-not (Get-Module -Name ADSync)) { Import-Module -Name ADSync }
DscResource.Common.strings.psd1
AADConnectDsc-0.3.1
# Localized English (en-US) strings. ConvertFrom-StringData @' TestIsNanoServerOperatingSystemSku = OperatingSystemSKU {0} was returned by Win32_OperatingSystem when detecting if operating system is Nano Server. (DRC0008) ModuleNotFound = Please ensure that the PowerShell module '{0}' is installed. (DRC0009) ...
AADConnectDsc.psm1
AADConnectDsc-0.3.1
#Region '.\Prefix.ps1' -1 $script:dscResourceCommonModulePath = Join-Path -Path $PSScriptRoot -ChildPath 'Modules/DscResource.Common' Import-Module -Name $script:dscResourceCommonModulePath #EndRegion '.\Prefix.ps1' 3 #Region '.\Enum\AttributeMappingFlowType.ps1' -1 enum AttributeMappingFlowType { Direct ...
DscResource.Common.psd1
AADConnectDsc-0.3.1
@{ # Script module or binary module file associated with this manifest. RootModule = 'DscResource.Common.psm1' # Version number of this module. ModuleVersion = '0.19.0' # ID used to uniquely identify this module GUID = '9c9daa5b-5c00-472d-a588-c96e8e498450' # Autho...
DscResource.Common.psm1
AADConnectDsc-0.3.1
#Region './prefix.ps1' -1 $script:modulesFolderPath = Split-Path -Path $PSScriptRoot -Parent #EndRegion './prefix.ps1' 2 #Region './Private/Assert-RequiredCommandParameter.ps1' -1 <# .SYNOPSIS Assert that required parameters has been specified. .DESCRIPTION Assert that required parameters has...
AADConnectDsc.psd1
AADConnectDsc-0.3.1
# # Module manifest for module 'AADConnectDsc' # # Generated by: DscCommunity # # Generated on: 1/11/2024 # @{ # Script module or binary module file associated with this manifest. RootModule = 'AADConnectDsc.psm1' # Version number of this module. ModuleVersion = '0.3.1'...
AADDeviceTrust.Client.psm1
AADDeviceTrust.Client-1.0.0
<# .SYNOPSIS Script that initiates the AADDeviceTrust.Client module .NOTES Author: Nickolaj Andersen Contact: @NickolajA Website: https://www.msendpointmgr.com #> [CmdletBinding()] Param() Process { # Locate all the public and private function specific files $PublicFun...
Test-AzureADDeviceRegistration.ps1
AADDeviceTrust.Client-1.0.0
function Test-AzureADDeviceRegistration { <# .SYNOPSIS Determine if the device conforms to the requirement of being either Azure AD joined or Hybrid Azure AD joined. .DESCRIPTION Determine if the device conforms to the requirement of being either Azure AD joined or Hybrid Azure AD...
Get-AzureADRegistrationCertificateThumbprint.ps1
AADDeviceTrust.Client-1.0.0
function Get-AzureADRegistrationCertificateThumbprint { <# .SYNOPSIS Get the thumbprint of the certificate used for Azure AD device registration. .DESCRIPTION Get the thumbprint of the certificate used for Azure AD device registration. .NOTES Author: Nicko...
AADDeviceTrust.Client.psd1
AADDeviceTrust.Client-1.0.0
# # Module manifest for module 'AADDeviceTrust.Client' # # Generated by: Nickolaj Andersen @NickolajA # # Generated on: 2022-01-01 # @{ # Script module or binary module file associated with this manifest. RootModule = 'AADDeviceTrust.Client.psm1' # Version number of this module. Modul...
Get-PublicKeyBytesEncodedString.ps1
AADDeviceTrust.Client-1.0.0
function Get-PublicKeyBytesEncodedString { <# .SYNOPSIS Returns the public key byte array encoded as a Base64 string, of the certificate where the thumbprint passed as parameter input is a match. .DESCRIPTION Returns the public key byte array encoded as a Base64 string, of the cer...
New-RSACertificateSignature.ps1
AADDeviceTrust.Client-1.0.0
function New-RSACertificateSignature { <# .SYNOPSIS Creates a new signature based on content passed as parameter input using the private key of a certificate determined by it's thumbprint, to sign the computed hash of the content. .DESCRIPTION Creates a new signature based on cont...
Get-AzureADDeviceID.ps1
AADDeviceTrust.Client-1.0.0
function Get-AzureADDeviceID { <# .SYNOPSIS Get the Azure AD device ID from the local device. .DESCRIPTION Get the Azure AD device ID from the local device. .NOTES Author: Nickolaj Andersen Contact: @NickolajA Created: 2021-05-26 ...
New-AADDeviceTrustBody.ps1
AADDeviceTrust.Client-1.0.0
function New-AADDeviceTrustBody { <# .SYNOPSIS Construct the body with the elements for a sucessful device trust validation required by a Function App that's leveraging the AADDeviceTrust.FunctionApp module. .DESCRIPTION Construct the body with the elements for a sucessful device trus...
Test-Encryption.ps1
AADDeviceTrust.FunctionApp-1.0.0
function Test-Encryption { <# .SYNOPSIS Test the signature created with the private key by using the public key. .DESCRIPTION Test the signature created with the private key by using the public key. .PARAMETER PublicKeyEncoded Specify the Base64 encoded string repr...
Test-AzureADDeviceAlternativeSecurityIds.ps1
AADDeviceTrust.FunctionApp-1.0.0
function Test-AzureADDeviceAlternativeSecurityIds { <# .SYNOPSIS Validate the thumbprint and publickeyhash property values of the alternativeSecurityIds property from the Azure AD device record. .DESCRIPTION Validate the thumbprint and publickeyhash property values of the alternat...
AADDeviceTrust.FunctionApp.psd1
AADDeviceTrust.FunctionApp-1.0.0
# # Module manifest for module 'AADDeviceTrust.FunctionApp' # # Generated by: Nickolaj Andersen @NickolajA # # Generated on: 2022-01-01 # @{ # Script module or binary module file associated with this manifest. RootModule = 'AADDeviceTrust.FunctionApp.psm1' # Version number of this module. ...
AADDeviceTrust.FunctionApp.psm1
AADDeviceTrust.FunctionApp-1.0.0
<# .SYNOPSIS Script that initiates the AADDeviceTrust.FunctionApp module .NOTES Author: Nickolaj Andersen Contact: @NickolajA Website: https://www.msendpointmgr.com #> [CmdletBinding()] Param() Process { # Locate all the public and private function specific files $Publ...
Get-AzureADDeviceAlternativeSecurityIds.ps1
AADDeviceTrust.FunctionApp-1.0.0
function Get-AzureADDeviceAlternativeSecurityIds { <# .SYNOPSIS Decodes Key property of an Azure AD device record into prefix, thumbprint and publickeyhash values. .DESCRIPTION Decodes Key property of an Azure AD device record into prefix, thumbprint and publickeyhash values. ...
Get-AzureADDeviceRecord.ps1
AADDeviceTrust.FunctionApp-1.0.0
function Get-AzureADDeviceRecord { <# .SYNOPSIS Retrieve an Azure AD device record. .DESCRIPTION Retrieve an Azure AD device record. .PARAMETER DeviceID Specify the Device ID of an Azure AD device record. .PARAMETER AuthToken Specify a hash table co...
New-HashString.ps1
AADDeviceTrust.FunctionApp-1.0.0
function New-HashString { <# .SYNOPSIS Compute has from input value and return encoded Base64 string. .DESCRIPTION Compute has from input value and return encoded Base64 string. .PARAMETER Value Specify a Base64 encoded value for which a hash will be computed. ...
ActiveSync_utils.ps1
AADInternals-0.9.4
# Utilities for ActiveSync # Checks whether the mail is Base64 encoded function Get-MessageAsBase64 { Param( [Parameter(Mandatory=$True)] [String]$Message ) Process { # Let's assume message is Base64 encoded $retVal = $Message try { ...
DCaaS_utils.ps1
AADInternals-0.9.4
# Decrypts the given ADAuthInfo BLOB with the given certificate # Dec 22nd 2022 function Unprotect-ADAuthInfo { [CmdletBinding()] param( [Parameter(Mandatory=$true)] [byte[]]$Data, [Parameter(Mandatory=$true)] [System.Security.Cryptography.X509Certificates.X509Certificat...
OfficeApps.ps1
AADInternals-0.9.4
# This script contains functions for OfficeApps # https://office.microsoft.com/Config15 # Get user Office connections function Get-UserConnections { <# .SYNOPSIS Returns user's office connections .DESCRIPTION Returns user's office connections .Example $cred=Get-Credential ...
AdminAPI.ps1
AADInternals-0.9.4
# This file contains functions utilising https://admin.microsoft.com API # Approves the delegated admin request # Sep 22nd 2021 function Approve-MSPartnerDelegatedAdminRequest { <# .SYNOPSIS Assigns Delegated Admin Permissions (DAP) for the given partner organisation. .DESCRIPTION Assigns D...
AMQP.ps1
AADInternals-0.9.4
# This file contains functions for AMQP and relay messaging # http://docs.oasis-open.org/amqp/core/v1.0/os/amqp-core-transport-v1.0-os.html # Parses Bus message from the given byte array function Parse-BusMessage { [cmdletbinding()] Param( [Parameter(Mandatory=$True)] [byte[]]$Bytes ...
AccessToken.ps1
AADInternals-0.9.4
# This contains functions for getting Azure AD access tokens # Tries to get access token from cache unless provided as parameter # Refactored Jun 8th 2020 function Get-AccessTokenFromCache { [cmdletbinding()] Param( [Parameter(Mandatory=$False)] [String]$AccessToken, [Paramete...
ADFS.ps1
AADInternals-0.9.4
# Apr 21st 2021 # Exports ADFS Certificates function Export-ADFSCertificates { <# .SYNOPSIS Exports ADFS certificates .DESCRIPTION Exports current and additional (next) ADFS token signing and encryption certificates to local directory. The exported certificates do not have passwords. ...
AccessToken_utils.ps1
AADInternals-0.9.4
# This script contains functions for handling access tokens # and some utility functions # VARIABLES # Unix epoch time (1.1.1970) $epoch = Get-Date -Day 1 -Month 1 -Year 1970 -Hour 0 -Minute 0 -Second 0 -Millisecond 0 # FOCI client ids # Ref: https://github.com/secureworks/family-of-client-ids-research/blob...
Kerberos_utils.ps1
AADInternals-0.9.4
# Gets sids from AD or AAD function Get-Sids{ Param( [Parameter(Mandatory=$False)] [String]$AccessToken, [Parameter(Mandatory=$False)] [String]$SearchString, [Parameter(Mandatory=$False)] [String]$UserPrincipalName ) Process { # If we g...
SARA.ps1
AADInternals-0.9.4
# This script contains functions used in Microsoft Support and Recovery Assistant (SARA) # Sep 23rd 2021 function Get-SARAUserInfo { <# .SYNOPSIS Gets user information using SARA API .DESCRIPTION Gets user information using Microsoft Support and Recovery Assistant (SARA) API .Para...
GraphAPI_utils.ps1
AADInternals-0.9.4
# This script contains utility functions for Graph API at https://graph.windows.net # Office 365 / Azure AD v2, a.k.a. AzureAD module uses this API # Calls the provisioning SOAP API function Call-GraphAPI { [cmdletbinding()] Param( [Parameter(Mandatory=$True)] [String]$AccessToken,...
PRT.ps1
AADInternals-0.9.4
# This file contains functions for Persistent Refresh Token and related device operations # Get the PRT token from the current user # Aug 19th 2020 function Get-UserPRTToken { <# .SYNOPSIS Gets user's PRT token from the Azure AD joined or Hybrid joined computer. .DESCRIPTION Gets user's PRT...
SPO.ps1
AADInternals-0.9.4
# Functions for SharePoint Online # Jul 17th 2019 function Get-SPOSiteGroups { <# .SYNOPSIS Gets list of groups of SharePoint Online site .DESCRIPTION Gets list of groups of SharePoint Online site the user has access to. .Parameter Site Url of the SharePoint site .Parame...
CloudShell.ps1
AADInternals-0.9.4
# Starts Azure Cloud Shell session # Sep 8th 2020 function Start-CloudShell { <# .SYNOPSIS Starts an Azure Cloud Shell session. .DESCRIPTION Starts an Azure Cloud Shell session for the given user. Note: Does not work with VSCode or ISE. .Parameter AccessToken The access token ...
AccessPackages.ps1
AADInternals-0.9.4
# This file contains functions for accessing access packages # Gets access packages # Apr 24 2023 function Get-AccessPackages { <# .SYNOPSIS Returns access packages. .DESCRIPTION Returns access packages. .Parameter AccessToken Access token for the target tenant. .Exam...
AzureManagementAPI_utils.ps1
AADInternals-0.9.4
# Creates a web session with given cookie header function Create-WebSession { [cmdletbinding()] Param( [Parameter(Mandatory=$True)] [string]$SetCookieHeader, [Parameter(Mandatory=$True)] [string]$Domain ) Process { $session...
Teams.ps1
AADInternals-0.9.4
# This file contains functions for Teams # Gets a skype token using Teams accesstoken # Oct 3rd 2020 function Get-SkypeToken { <# .SYNOPSIS Gets SkypeToken. .DESCRIPTION Gets SkypeToken. .Parameter AccessToken The access token used to get the token .EXAMPLE PS\:>Get-...
CBA.ps1
AADInternals-0.9.4
# Get's tokens using CBA # May 24th 2022 function Get-AdminPortalAccessTokenUsingCBA { <# .SYNOPSIS Gets Access Tokens using CBA .DESCRIPTION Gets Access Tokens using Certificate Based Authentication (CBA). Returns tokens for Portal and Business Store. Assumes that CN of the give...
MDM.ps1
AADInternals-0.9.4
# This file contains functions for Intune MDM # Enroll device to Intune MDM # Aug 29th function Join-DeviceToIntune { <# .SYNOPSIS Registers (enrolls) the given device to Intune. .DESCRIPTION Enrolls the given device to Intune and generates a corresponding certificate. After enrollme...
ComplianceAPI_utils.ps1
AADInternals-0.9.4
# This file contains utility functions for Compliance API # Invokes request for the given compliance API call # Aug 31st 2021 function Invoke-ComplianceAPIRequest { [cmdletbinding()] Param( [Parameter(Mandatory=$True)] [psobject]$Cookies, [Parameter(Mandatory=$True)] ...
MFA_utils.ps1
AADInternals-0.9.4
# Creates an Oath counter # Jun 26th 2020 function Get-OathCounter { [cmdletbinding()] Param() Process { $OathCounter = [int](((Get-Date).ToUniversalTime() - $epoch).TotalSeconds / 30) return $OathCounter } } # Generates a new time-based OTP for MFA # Jun 26th 2020 ...
KillChain_utils.ps1
AADInternals-0.9.4
# Checks whether the domain has MX records pointing to MS cloud # Jun 16th 2020 # Aug 30th 2022: Fixed by maxgrim function HasCloudMX { [cmdletbinding()] Param( [Parameter(Mandatory=$True)] [String]$Domain, [Parameter(Mandatory=$False)] [String]$SubScope ) Pro...
ADFS_utils.ps1
AADInternals-0.9.4
# Updated Apr 22nd 2021 #May 24th 2019 function New-ADFSSelfSignedCertificates { <# .SYNOPSIS Creates new self-signed Token Signing and Token Decrypt certificates for ADFSService .Description Disables auto rollover and creates new self-signed Token Signing and Token Decrypt certificates fo...
MSAppProxy.ps1
AADInternals-0.9.4
# This file contains functions for Microsoft App Proxy Add-Type -AssemblyName System.Web # Registers App proxy agent to the Azure AD # Apr 2nd 2020 # May 5th 2022: Added UpdateTrust function Register-ProxyAgent { <# .SYNOPSIS Registers a new MS App Proxy agent to Azure AD .DESCRIPTION ...