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
function Get-MonitorInfo { | |
<# | |
.SYNOPSIS | |
Gets computer and monitor information | |
.DESCRIPTION | |
Gets computer information and monitor information for all | |
connected monitors. Each monitor is numbered for as many | |
monitors as you have connected |
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
function Get-ComputerStats { | |
<# | |
.SYNOPSIS | |
Gets computer and disk information | |
.DESCRIPTION | |
Gets computer information and disk information for all | |
logical disks. Each disk is added as part of the other | |
properties for as many type 3 disks that exist |
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
function Invoke-ScanState { | |
[cmdletbinding(DefaultParameterSetName = 'StorePath')] | |
param( | |
[Parameter(ParameterSetName = 'StorePath', | |
Position = 0)] | |
[string] $StorePath = 'C:\Backup', | |
[Parameter(ParameterSetName = 'StorePath')] |
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
Function New-DynamicParameter { | |
[cmdletbinding()] | |
param( | |
[Parameter(Mandatory)] | |
[ValidateNotNullOrEmpty()] | |
[string] $Name, | |
[string[]] $ValidateSet, | |
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
'<VulnDiscussion>Inadequate physical protection can undermine all | |
other security precautions utilized to protect the system. This can | |
jeopardize the confidentiality, availability, and integrity of the | |
system. Physical security is the first line of protection of any syst | |
em.</VulnDiscussion><FalsePositives></FalsePositives><FalseNegatives>< | |
/FalseNegatives><Documentable>false</Documentable><Mitigations></Mitig | |
ations><SeverityOverrideGuidance></SeverityOverrideGuidance><Potential | |
Impacts></PotentialImpacts><ThirdPartyTools></ThirdPartyTools><Mitigat | |
ionControl></MitigationControl><Responsibility></Responsibility><IACon | |
trols></IAControls>' |
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
$Description = '<root>' + $xml.benchmark.group[0].rule.description + '</root>' |
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
$crypto = @" | |
P k T r 2 s z 2 * c F - | |
r a z 7 G u D 4 w 6 U # | |
g c t K 3 E @ B t 1 a Y | |
Q P i c % 7 0 5 Z v A e | |
W 6 j e P R f p m I ) H | |
y ^ L o o w C n b J d O | |
S i 9 M b e r # ) i e U | |
* f 2 Z 6 M S h 7 V u D | |
5 a ( h s v 8 e l 1 o W |
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
$files = gci -Recurse -File | |
$files | measure -Property length -Sum -Average | select @{n = 'ComputerName'; e = {$env:COMPUTERNAME}}, Count, Sum, Average, @{n = 'Date'; e = {Get-Date}} |
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
{"lastUpload":"2021-05-16T18:32:28.935Z","extensionVersion":"v3.4.3"} |
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
PS D:\Powershell\Modules\PowerLFM> gitversion /diag | |
INFO [02/06/24 5:36:17:88] Dumping commit graph: | |
INFO [02/06/24 5:36:17:95] ERROR: error: inflate: data stream error (incorrect data check) | |
ERROR: error: Could not read 6432925b2fd72618db2c6bb67422a21680bcba00 | |
ERROR: fatal: revision walk setup failed | |
INFO [02/06/24 5:36:17:95] Working directory: D:\Powershell\Modules\PowerLFM | |
INFO [02/06/24 5:36:17:95] Project root is: D:\Powershell\Modules\PowerLFM\ | |
INFO [02/06/24 5:36:17:95] DotGit directory is: D:\Powershell\Modules\PowerLFM\.git | |
INFO [02/06/24 5:36:17:95] Branch from build environment: |