├── Docs
├── HTML
│ ├── Add-FileAttribute.html
│ ├── Compare-ObjectProperty.html
│ ├── Compare-ObjectSetComplement.html
│ ├── Compare-ObjectSetDifference.html
│ ├── Compare-ObjectSetIntersection.html
│ ├── Compare-ObjectSetUnion.html
│ ├── Compare-PSGalleryObject.html
│ ├── Convert-HexToRGB.html
│ ├── Convert-Int32ToUint32.html
│ ├── Convert-Int64ToText.html
│ ├── Convert-Int64ToUint64.html
│ ├── Convert-ObjectToHashtable.html
│ ├── Convert-RGBToHex.html
│ ├── Convert-SecureStringToString.html
│ ├── Convert-UserFlag.html
│ ├── ConvertFrom-Base64.html
│ ├── ConvertFrom-Binary.html
│ ├── ConvertFrom-DateTime.html
│ ├── ConvertFrom-FsRight.html
│ ├── ConvertFrom-Hex.html
│ ├── ConvertFrom-HexString.html
│ ├── ConvertFrom-HtmlEncode.html
│ ├── ConvertFrom-RomanNumeral.html
│ ├── ConvertFrom-UTC.html
│ ├── ConvertFrom-UrlEncode.html
│ ├── ConvertFrom-XML.html
│ ├── ConvertTo-Base64.html
│ ├── ConvertTo-Binary.html
│ ├── ConvertTo-BinaryIPv4.html
│ ├── ConvertTo-Bool.html
│ ├── ConvertTo-DateTime.html
│ ├── ConvertTo-DecimalIPv4.html
│ ├── ConvertTo-DottedDecimalIPv4.html
│ ├── ConvertTo-Hex.html
│ ├── ConvertTo-HexString.html
│ ├── ConvertTo-HtmlEncode.html
│ ├── ConvertTo-OrderedDictionary.html
│ ├── ConvertTo-PFEscape.html
│ ├── ConvertTo-RomanNumeral.html
│ ├── ConvertTo-UTC.html
│ ├── ConvertTo-UncPath.html
│ ├── ConvertTo-UrlEncode.html
│ ├── Copy-Object.html
│ ├── Expand-IPV6.html
│ ├── Expand-String.html
│ ├── Expand-Tab.html
│ ├── Export-CSVSortedColumn.html
│ ├── Export-FontSample.html
│ ├── FileSizeAbove.html
│ ├── FileSizeBelow.html
│ ├── Format-MacAddress.html
│ ├── Format-RandomCase.html
│ ├── Format-ReverseString.html
│ ├── Format-ReverseToken.html
│ ├── Format-SortedList.html
│ ├── Format-TitleCase.html
│ ├── Format-WrapText.html
│ ├── Get-AppEventSound.html
│ ├── Get-ArpTable.html
│ ├── Get-Assoc.html
│ ├── Get-AutoRun.inf.html
│ ├── Get-BashPath.html
│ ├── Get-BinaryType.html
│ ├── Get-CeasarCipher.html
│ ├── Get-ComputerSite.html
│ ├── Get-ComputerUptime.html
│ ├── Get-ConsoleColor.html
│ ├── Get-ConsoleWindowSize.html
│ ├── Get-DNSHostEntryAsync.html
│ ├── Get-DaysOfWeek.html
│ ├── Get-Desktop.ini.html
│ ├── Get-DiceRoll.html
│ ├── Get-DiskType.html
│ ├── Get-DisplayBrightness.html
│ ├── Get-DriveStat.html
│ ├── Get-DuplicateFileName.html
│ ├── Get-Enum.html
│ ├── Get-ErrorInfo.html
│ ├── Get-ExecutableForFile.html
│ ├── Get-Factorial.html
│ ├── Get-FileEncoding.html
│ ├── Get-FileName.html
│ ├── Get-FileSizeOnDisk.html
│ ├── Get-FileWithLeadingSpace.html
│ ├── Get-FolderName.html
│ ├── Get-Font.html
│ ├── Get-Fortune.html
│ ├── Get-FsRight.html
│ ├── Get-Ftype.html
│ ├── Get-InvalidFileCharacter.html
│ ├── Get-IpRange.html
│ ├── Get-IpV4Network.html
│ ├── Get-LastDayInMonth.html
│ ├── Get-List.html
│ ├── Get-LongName.html
│ ├── Get-MacVendor.html
│ ├── Get-MachineType.html
│ ├── Get-Magic8Ball.html
│ ├── Get-Months.html
│ ├── Get-MyLocalLogonTime.html
│ ├── Get-NTFSPermission.html
│ ├── Get-NamedColor.html
│ ├── Get-NetworkCredential.html
│ ├── Get-NtpDate.html
│ ├── Get-PSWho.html
│ ├── Get-Power.html
│ ├── Get-PrintableAscii.html
│ ├── Get-PrivateProfileComment.html
│ ├── Get-PrivateProfileSection.html
│ ├── Get-PrivateProfileSectionNames.html
│ ├── Get-PrivateProfileString.html
│ ├── Get-ProcessUser.html
│ ├── Get-RandomDate.html
│ ├── Get-RandomHexDigit.html
│ ├── Get-RandomMacAddress.html
│ ├── Get-RebootHistory.html
│ ├── Get-RegExpandString.html
│ ├── Get-RegistryValue.html
│ ├── Get-RelativePath.html
│ ├── Get-Round.html
│ ├── Get-SID.html
│ ├── Get-SaveFileName.html
│ ├── Get-ScheduledTaskUser.html
│ ├── Get-ServiceUser.html
│ ├── Get-ShortName.html
│ ├── Get-Shortcut.html
│ ├── Get-SpeakerVolume.html
│ ├── Get-SpecialFolder.html
│ ├── Get-SqlDatabase.html
│ ├── Get-SqlIndexFragmentation.html
│ ├── Get-SqlStoredProcedure.html
│ ├── Get-StaticProperty.html
│ ├── Get-String.html
│ ├── Get-StringHash.html
│ ├── Get-SubnetMaskIPv4.html
│ ├── Get-TruncatedDate.html
│ ├── Get-Type.html
│ ├── Get-TypeAccelerator.html
│ ├── Get-UrlContent.html
│ ├── Get-VssVolume.html
│ ├── Get-VssWriter.html
│ ├── Get-VssWriterToService.html
│ ├── Get-WordCount.html
│ ├── Get-WordList.html
│ ├── Invoke-Beep.html
│ ├── Invoke-CountdownTimer.html
│ ├── Invoke-SoundPlayer.html
│ ├── Invoke-Speak.html
│ ├── Join-Object.html
│ ├── Lock-Workstation.html
│ ├── Measure-Char.html
│ ├── Merge-Object.html
│ ├── Move-ToRecycleBin.html
│ ├── New-ColorPicker.html
│ ├── New-Credential.html
│ ├── New-DatePicker.html
│ ├── New-FontPicker.html
│ ├── New-InputBoxSecureString.html
│ ├── New-Inputbox.html
│ ├── New-MailToUri.html
│ ├── New-MessageBox.html
│ ├── New-PFDateFormat.html
│ ├── New-QR.html
│ ├── New-QRCode.html
│ ├── New-RandomPassword.html
│ ├── New-ScreenShot.html
│ ├── New-Shortcut.html
│ ├── New-SmsUri.html
│ ├── New-TelephoneUri.html
│ ├── New-TemporaryFileWithExtension.html
│ ├── New-VirtualHardDisk.html
│ ├── New-WifiUri.html
│ ├── Optimize-SqlIndexFragmentation.html
│ ├── Optimize-SqlStoredProcedure.html
│ ├── Out-PDFToPrinter.html
│ ├── Read-HostPause.html
│ ├── Read-HostWithDefault.html
│ ├── Remove-BlankOrComment.html
│ ├── Remove-EmptyProperty.html
│ ├── Remove-FileAttribute.html
│ ├── Remove-QuotesFromCsv.html
│ ├── Remove-TeamsCache.html
│ ├── Remove-Trailing.html
│ ├── Reset-Desktop.html
│ ├── Resolve-FQDN.html
│ ├── Resolve-HostName.html
│ ├── Resolve-PathForce.html
│ ├── Set-AutoRun.inf.html
│ ├── Set-Capslock.html
│ ├── Set-Desktop.ini.html
│ ├── Set-Display.html
│ ├── Set-EOLTerminator.html
│ ├── Set-FileEncoding.html
│ ├── Set-Numlock.html
│ ├── Set-PrivateProfileComment.html
│ ├── Set-PrivateProfileString.html
│ ├── Set-Scrolllock.html
│ ├── Set-SpeakerMute.html
│ ├── Set-SpeakerVolume.html
│ ├── Set-Type.html
│ ├── Set-WindowState.html
│ ├── Set-WindowStyle.html
│ ├── Show-Calendar.html
│ ├── Show-FileAttribute.html
│ ├── Show-Object.html
│ ├── Show-Progress.html
│ ├── Split-CanonicalName.html
│ ├── Split-DistinguishedName.html
│ ├── Split-Line.html
│ ├── Start-ADReplication.html
│ ├── Start-RecordSession.html
│ ├── Stop-RecordSession.html
│ ├── Switch-Mute.html
│ ├── Test-CSVFormat.html
│ ├── Test-ConnectionAsync.html
│ ├── Test-IsAdmin.html
│ ├── Test-IsCapsLock.html
│ ├── Test-IsDate.html
│ ├── Test-IsFileLocked.html
│ ├── Test-IsHexString.html
│ ├── Test-IsLocalIPv4.html
│ ├── Test-IsNull.html
│ ├── Test-IsNumLock.html
│ ├── Test-IsNumeric.html
│ ├── Test-IsScrollLock.html
│ ├── Test-IsSpeakerMute.html
│ ├── Test-IsValidEmailAddress.html
│ ├── Test-IsValidIPv4.html
│ ├── Test-IsValidIPv6.html
│ ├── Test-MultipleBool.html
│ ├── Test-Network.html
│ ├── Test-NtpDateVsNow.html
│ ├── Test-Password.html
│ ├── Test-PasswordComplexity.html
│ ├── Test-Port.html
│ ├── Test-Set.html
│ ├── Update-ExplorerIcon.html
│ ├── Use-Stopwatch.html
│ ├── Write-SelectStatement.html
│ ├── Write-StringArray.html
│ ├── Write-StringHash.html
│ ├── Write-TextMenu.html
│ ├── grep.html
│ ├── mklink.html
│ ├── sed.html
│ └── styles
│ │ └── md-styles.css
└── Markdown
│ ├── Add-FileAttribute.md
│ ├── Compare-ObjectProperty.md
│ ├── Compare-ObjectSetComplement.md
│ ├── Compare-ObjectSetDifference.md
│ ├── Compare-ObjectSetIntersection.md
│ ├── Compare-ObjectSetUnion.md
│ ├── Compare-PSGalleryObject.md
│ ├── Convert-HexToRGB.md
│ ├── Convert-Int32ToUint32.md
│ ├── Convert-Int64ToText.md
│ ├── Convert-Int64ToUint64.md
│ ├── Convert-ObjectToHashtable.md
│ ├── Convert-RGBToHex.md
│ ├── Convert-SecureStringToString.md
│ ├── Convert-UserFlag.md
│ ├── ConvertFrom-Base64.md
│ ├── ConvertFrom-Binary.md
│ ├── ConvertFrom-DateTime.md
│ ├── ConvertFrom-FsRight.md
│ ├── ConvertFrom-Hex.md
│ ├── ConvertFrom-HexString.md
│ ├── ConvertFrom-HtmlEncode.md
│ ├── ConvertFrom-RomanNumeral.md
│ ├── ConvertFrom-UTC.md
│ ├── ConvertFrom-UrlEncode.md
│ ├── ConvertFrom-XML.md
│ ├── ConvertTo-Base64.md
│ ├── ConvertTo-Binary.md
│ ├── ConvertTo-BinaryIPv4.md
│ ├── ConvertTo-Bool.md
│ ├── ConvertTo-DateTime.md
│ ├── ConvertTo-DecimalIPv4.md
│ ├── ConvertTo-DottedDecimalIPv4.md
│ ├── ConvertTo-Hex.md
│ ├── ConvertTo-HexString.md
│ ├── ConvertTo-HtmlEncode.md
│ ├── ConvertTo-OrderedDictionary.md
│ ├── ConvertTo-PFEscape.md
│ ├── ConvertTo-RomanNumeral.md
│ ├── ConvertTo-UTC.md
│ ├── ConvertTo-UncPath.md
│ ├── ConvertTo-UrlEncode.md
│ ├── Copy-Object.md
│ ├── Expand-IPV6.md
│ ├── Expand-String.md
│ ├── Expand-Tab.md
│ ├── Export-CSVSortedColumn.md
│ ├── Export-FontSample.md
│ ├── FileSizeAbove.md
│ ├── FileSizeBelow.md
│ ├── Format-MacAddress.md
│ ├── Format-RandomCase.md
│ ├── Format-ReverseString.md
│ ├── Format-ReverseToken.md
│ ├── Format-SortedList.md
│ ├── Format-TitleCase.md
│ ├── Format-WrapText.md
│ ├── Get-AppEventSound.md
│ ├── Get-ArpTable.md
│ ├── Get-Assoc.md
│ ├── Get-AutoRun.inf.md
│ ├── Get-BashPath.md
│ ├── Get-BinaryType.md
│ ├── Get-CeasarCipher.md
│ ├── Get-ComputerSite.md
│ ├── Get-ComputerUptime.md
│ ├── Get-ConsoleColor.md
│ ├── Get-ConsoleWindowSize.md
│ ├── Get-DNSHostEntryAsync.md
│ ├── Get-DaysOfWeek.md
│ ├── Get-Desktop.ini.md
│ ├── Get-DiceRoll.md
│ ├── Get-DiskType.md
│ ├── Get-DisplayBrightness.md
│ ├── Get-DriveStat.md
│ ├── Get-DuplicateFileName.md
│ ├── Get-Enum.md
│ ├── Get-ErrorInfo.md
│ ├── Get-ExecutableForFile.md
│ ├── Get-Factorial.md
│ ├── Get-FileEncoding.md
│ ├── Get-FileName.md
│ ├── Get-FileSizeOnDisk.md
│ ├── Get-FileWithLeadingSpace.md
│ ├── Get-FolderName.md
│ ├── Get-Font.md
│ ├── Get-Fortune.md
│ ├── Get-FsRight.md
│ ├── Get-Ftype.md
│ ├── Get-InvalidFileCharacter.md
│ ├── Get-IpRange.md
│ ├── Get-IpV4Network.md
│ ├── Get-LastDayInMonth.md
│ ├── Get-List.md
│ ├── Get-LongName.md
│ ├── Get-MacVendor.md
│ ├── Get-MachineType.md
│ ├── Get-Magic8Ball.md
│ ├── Get-Months.md
│ ├── Get-MyLocalLogonTime.md
│ ├── Get-NTFSPermission.md
│ ├── Get-NamedColor.md
│ ├── Get-NetworkCredential.md
│ ├── Get-NtpDate.md
│ ├── Get-PSWho.md
│ ├── Get-Power.md
│ ├── Get-PrintableAscii.md
│ ├── Get-PrivateProfileComment.md
│ ├── Get-PrivateProfileSection.md
│ ├── Get-PrivateProfileSectionNames.md
│ ├── Get-PrivateProfileString.md
│ ├── Get-ProcessUser.md
│ ├── Get-RandomDate.md
│ ├── Get-RandomHexDigit.md
│ ├── Get-RandomMacAddress.md
│ ├── Get-RebootHistory.md
│ ├── Get-RegExpandString.md
│ ├── Get-RegistryValue.md
│ ├── Get-RelativePath.md
│ ├── Get-Round.md
│ ├── Get-SID.md
│ ├── Get-SaveFileName.md
│ ├── Get-ScheduledTaskUser.md
│ ├── Get-ServiceUser.md
│ ├── Get-ShortName.md
│ ├── Get-Shortcut.md
│ ├── Get-SpeakerVolume.md
│ ├── Get-SpecialFolder.md
│ ├── Get-SqlDatabase.md
│ ├── Get-SqlIndexFragmentation.md
│ ├── Get-SqlStoredProcedure.md
│ ├── Get-StaticProperty.md
│ ├── Get-String.md
│ ├── Get-StringHash.md
│ ├── Get-SubnetMaskIPv4.md
│ ├── Get-TruncatedDate.md
│ ├── Get-Type.md
│ ├── Get-TypeAccelerator.md
│ ├── Get-UrlContent.md
│ ├── Get-VssVolume.md
│ ├── Get-VssWriter.md
│ ├── Get-VssWriterToService.md
│ ├── Get-WordCount.md
│ ├── Get-WordList.md
│ ├── Invoke-Beep.md
│ ├── Invoke-CountdownTimer.md
│ ├── Invoke-SoundPlayer.md
│ ├── Invoke-Speak.md
│ ├── Join-Object.md
│ ├── Lock-Workstation.md
│ ├── Measure-Char.md
│ ├── Merge-Object.md
│ ├── Move-ToRecycleBin.md
│ ├── New-ColorPicker.md
│ ├── New-Credential.md
│ ├── New-DatePicker.md
│ ├── New-FontPicker.md
│ ├── New-InputBoxSecureString.md
│ ├── New-Inputbox.md
│ ├── New-MailToUri.md
│ ├── New-MessageBox.md
│ ├── New-PFDateFormat.md
│ ├── New-QR.md
│ ├── New-QRCode.md
│ ├── New-RandomPassword.md
│ ├── New-ScreenShot.md
│ ├── New-Shortcut.md
│ ├── New-SmsUri.md
│ ├── New-TelephoneUri.md
│ ├── New-TemporaryFileWithExtension.md
│ ├── New-VirtualHardDisk.md
│ ├── New-WifiUri.md
│ ├── Optimize-SqlIndexFragmentation.md
│ ├── Optimize-SqlStoredProcedure.md
│ ├── Out-PDFToPrinter.md
│ ├── Read-HostPause.md
│ ├── Read-HostWithDefault.md
│ ├── Remove-BlankOrComment.md
│ ├── Remove-EmptyProperty.md
│ ├── Remove-FileAttribute.md
│ ├── Remove-QuotesFromCsv.md
│ ├── Remove-TeamsCache.md
│ ├── Remove-Trailing.md
│ ├── Reset-Desktop.md
│ ├── Resolve-FQDN.md
│ ├── Resolve-HostName.md
│ ├── Resolve-PathForce.md
│ ├── Set-AutoRun.inf.md
│ ├── Set-Capslock.md
│ ├── Set-Desktop.ini.md
│ ├── Set-Display.md
│ ├── Set-EOLTerminator.md
│ ├── Set-FileEncoding.md
│ ├── Set-Numlock.md
│ ├── Set-PrivateProfileComment.md
│ ├── Set-PrivateProfileString.md
│ ├── Set-Scrolllock.md
│ ├── Set-SpeakerMute.md
│ ├── Set-SpeakerVolume.md
│ ├── Set-Type.md
│ ├── Set-WindowState.md
│ ├── Set-WindowStyle.md
│ ├── Show-Calendar.md
│ ├── Show-FileAttribute.md
│ ├── Show-Object.md
│ ├── Show-Progress.md
│ ├── Split-CanonicalName.md
│ ├── Split-DistinguishedName.md
│ ├── Split-Line.md
│ ├── Start-ADReplication.md
│ ├── Start-RecordSession.md
│ ├── Stop-RecordSession.md
│ ├── Switch-Mute.md
│ ├── Test-CSVFormat.md
│ ├── Test-ConnectionAsync.md
│ ├── Test-IsAdmin.md
│ ├── Test-IsCapsLock.md
│ ├── Test-IsDate.md
│ ├── Test-IsFileLocked.md
│ ├── Test-IsHexString.md
│ ├── Test-IsLocalIPv4.md
│ ├── Test-IsNull.md
│ ├── Test-IsNumLock.md
│ ├── Test-IsNumeric.md
│ ├── Test-IsScrollLock.md
│ ├── Test-IsSpeakerMute.md
│ ├── Test-IsValidEmailAddress.md
│ ├── Test-IsValidIPv4.md
│ ├── Test-IsValidIPv6.md
│ ├── Test-MultipleBool.md
│ ├── Test-Network.md
│ ├── Test-NtpDateVsNow.md
│ ├── Test-Password.md
│ ├── Test-PasswordComplexity.md
│ ├── Test-Port.md
│ ├── Test-Set.md
│ ├── Update-ExplorerIcon.md
│ ├── Use-Stopwatch.md
│ ├── Write-SelectStatement.md
│ ├── Write-StringArray.md
│ ├── Write-StringHash.md
│ ├── Write-TextMenu.md
│ ├── grep.md
│ ├── mklink.md
│ └── sed.md
├── Formats
├── Get-DriveStatBytes.Format.ps1xml
├── Get-DriveStatGB.Format.ps1xml
├── Get-DriveStatKB.Format.ps1xml
├── Get-DriveStatMB.Format.ps1xml
├── Get-NamedColorBrief.Format.ps1xml
├── Get-NamedColorFull.Format.ps1xml
├── Get-PrintableAscii.Format.ps1xml
├── Get-RebootHistory.Format.ps1xml
├── Get-VssAdminListWriters.Format.ps1xml
├── New-PFDateFormat.Format.ps1xml
└── Test-Port.Format.ps1xml
├── Functions
├── Add-FileAttribute.ps1
├── Compare-ObjectProperty.ps1
├── Compare-ObjectSetComplement.ps1
├── Compare-ObjectSetDifference.ps1
├── Compare-ObjectSetIntersection.ps1
├── Compare-ObjectSetUnion.ps1
├── Compare-PSGalleryObject.ps1
├── Convert-HexToRGB.ps1
├── Convert-Int32ToUint32.ps1
├── Convert-Int64ToText.ps1
├── Convert-Int64ToUint64.ps1
├── Convert-ObjectToHashtable.ps1
├── Convert-RGBToHex.ps1
├── Convert-SecureStringToString.ps1
├── Convert-UserFlag.ps1
├── ConvertFrom-Base64.ps1
├── ConvertFrom-Binary.ps1
├── ConvertFrom-DateTime.ps1
├── ConvertFrom-FsRight.ps1
├── ConvertFrom-Hex.ps1
├── ConvertFrom-HexString.ps1
├── ConvertFrom-HtmlEncode.ps1
├── ConvertFrom-RomanNumeral.ps1
├── ConvertFrom-UTC.ps1
├── ConvertFrom-UrlEncode.ps1
├── ConvertFrom-Xml.ps1
├── ConvertTo-Base64.ps1
├── ConvertTo-Binary.ps1
├── ConvertTo-BinaryIPv4.ps1
├── ConvertTo-Bool.ps1
├── ConvertTo-DateTime.ps1
├── ConvertTo-DecimalIPv4.ps1
├── ConvertTo-DottedDecimalIPv4.ps1
├── ConvertTo-Hex.ps1
├── ConvertTo-HexString.ps1
├── ConvertTo-HtmlEncode.ps1
├── ConvertTo-OrderedDictionary.ps1
├── ConvertTo-PFEscape.ps1
├── ConvertTo-RomanNumeral.ps1
├── ConvertTo-UTC.ps1
├── ConvertTo-UncPath.ps1
├── ConvertTo-UrlEncode.ps1
├── Copy-Object.ps1
├── Expand-IPv6.ps1
├── Expand-String.ps1
├── Expand-Tab.ps1
├── Export-CSVSortedColumn.ps1
├── Export-FontSample.ps1
├── FileSizeAbove.ps1
├── FileSizeBelow.ps1
├── Format-MacAddress.ps1
├── Format-RandomCase.ps1
├── Format-ReverseString.ps1
├── Format-ReverseToken.ps1
├── Format-SortedList.ps1
├── Format-TitleCase.ps1
├── Format-WrapText.ps1
├── Get-AppEventSound.ps1
├── Get-ArpTable.ps1
├── Get-Assoc.ps1
├── Get-AutoRun.inf.ps1
├── Get-BashPath.ps1
├── Get-BinaryType.ps1
├── Get-CeasarCipher.ps1
├── Get-ComputerSite.ps1
├── Get-ComputerUptime.ps1
├── Get-ConsoleColor.ps1
├── Get-ConsoleWindowSize.ps1
├── Get-DNSHostEntryAsync.ps1
├── Get-DaysOfWeek.ps1
├── Get-Desktop.ini.ps1
├── Get-DiceRoll.ps1
├── Get-DiskType.ps1
├── Get-DisplayBrightness.ps1
├── Get-DriveStat.ps1
├── Get-DuplicateFileName.ps1
├── Get-Enum.ps1
├── Get-ErrorInfo.ps1
├── Get-ExecutableForFile.ps1
├── Get-Factorial.ps1
├── Get-FileEncoding.ps1
├── Get-FileName.ps1
├── Get-FileSizeOnDisk.ps1
├── Get-FileWithLeadingSpace.ps1
├── Get-FolderName.ps1
├── Get-Font.ps1
├── Get-Fortune.ps1
├── Get-FsRight.ps1
├── Get-Ftype.ps1
├── Get-InvalidFileCharacter.ps1
├── Get-IpRange.ps1
├── Get-IpV4Network.ps1
├── Get-LastDayInMonth.ps1
├── Get-List.ps1
├── Get-LongName.ps1
├── Get-MacVendor.ps1
├── Get-MachineType.ps1
├── Get-Magic8Ball.ps1
├── Get-Months.ps1
├── Get-MyLocalLogonTime.ps1
├── Get-NTFSPermission.ps1
├── Get-NamedColor.ps1
├── Get-NetworkCredential.ps1
├── Get-NtpDate.ps1
├── Get-PSWho.ps1
├── Get-Power.ps1
├── Get-PrintableAscii.ps1
├── Get-PrivateProfileComment.ps1
├── Get-PrivateProfileSection.ps1
├── Get-PrivateProfileSectionNames.ps1
├── Get-PrivateProfileString.ps1
├── Get-ProcessUser.ps1
├── Get-RandomDate.ps1
├── Get-RandomHexDigit.ps1
├── Get-RandomMacAddress.ps1
├── Get-RebootHistory.ps1
├── Get-RegExpandString.ps1
├── Get-RegistryValue.ps1
├── Get-RelativePath.ps1
├── Get-Round.ps1
├── Get-SID.ps1
├── Get-SaveFileName.ps1
├── Get-ScheduledTaskUser.ps1
├── Get-ServiceUser.ps1
├── Get-ShortName.ps1
├── Get-Shortcut.ps1
├── Get-SpeakerVolume.ps1
├── Get-SpecialFolder.ps1
├── Get-SqlDatabase.ps1
├── Get-SqlIndexFragmentation.ps1
├── Get-SqlStoredProcedure.ps1
├── Get-StaticProperty.ps1
├── Get-String.ps1
├── Get-StringHash.ps1
├── Get-SubnetMaskIPv4.ps1
├── Get-TruncatedDate.ps1
├── Get-Type.ps1
├── Get-TypeAccelerator.ps1
├── Get-UrlContent.ps1
├── Get-VssVolume.ps1
├── Get-VssWriter.ps1
├── Get-VssWriterToService.ps1
├── Get-WordCount.ps1
├── Get-WordList.ps1
├── Invoke-Beep.ps1
├── Invoke-CountdownTimer.ps1
├── Invoke-SoundPlayer.ps1
├── Invoke-Speak.ps1
├── Join-Object.ps1
├── Lock-Workstation.ps1
├── Measure-Char.ps1
├── Merge-Object.ps1
├── Move-ToRecycleBin.ps1
├── New-ColorPicker.ps1
├── New-Credential.ps1
├── New-DatePicker.ps1
├── New-FontPicker.ps1
├── New-InputBox.ps1
├── New-InputBoxSecureString.ps1
├── New-MailToURI.ps1
├── New-MessageBox.ps1
├── New-PFDateFormat.ps1
├── New-QR.ps1
├── New-QRCode.ps1
├── New-RandomPassword.ps1
├── New-Screenshot.ps1
├── New-Shortcut.ps1
├── New-SmsUri.ps1
├── New-TelephoneUri.ps1
├── New-TemporaryFileWithExtension.ps1
├── New-VirtualHardDisk.ps1
├── New-WifiUri.ps1
├── Optimize-SqlIndexFragmentation.ps1
├── Optimize-SqlStoredProcedure.ps1
├── Out-PDFToPrinter.ps1
├── Read-HostPause.ps1
├── Read-HostWithDefault.ps1
├── Remove-BlankOrComment.ps1
├── Remove-EmptyProperty.ps1
├── Remove-FileAttribute.ps1
├── Remove-OldFiles.ps1
├── Remove-QuotesFromCsv.ps1
├── Remove-TeamsCache.ps1
├── Remove-Trailing.ps1
├── Reset-Desktop.ps1
├── Resolve-FQDN.ps1
├── Resolve-HostName.ps1
├── Resolve-PathForce.ps1
├── Set-AutoRun.inf.ps1
├── Set-Capslock.ps1
├── Set-Desktop.ini.ps1
├── Set-Display.ps1
├── Set-EOLTerminator.ps1
├── Set-FileEncoding.ps1
├── Set-Numlock.ps1
├── Set-PrivateProfileComment.ps1
├── Set-PrivateProfileString.ps1
├── Set-Scrolllock.ps1
├── Set-SpeakerMute.ps1
├── Set-SpeakerVolume-old.txt
├── Set-SpeakerVolume.ps1
├── Set-Type.ps1
├── Set-WindowState.ps1
├── Set-WindowStyle.ps1
├── Show-Calendar.ps1
├── Show-FileAttribute.ps1
├── Show-Object.ps1
├── Show-Progress.ps1
├── Split-CanonicalName.ps1
├── Split-DistinguishedName.ps1
├── Split-Line.ps1
├── Start-ADReplication.ps1
├── Start-RecordSession.ps1
├── Stop-RecordSession.ps1
├── Switch-Mute.ps1
├── Test-CSVFormat.ps1
├── Test-ConnectionAsync.ps1
├── Test-IsAdmin.ps1
├── Test-IsCapsLock.ps1
├── Test-IsDate.ps1
├── Test-IsFileLocked.ps1
├── Test-IsHexString.ps1
├── Test-IsLocalIPv4.ps1
├── Test-IsNull.ps1
├── Test-IsNumLock.ps1
├── Test-IsNumeric.ps1
├── Test-IsScrollLock.ps1
├── Test-IsSpeakerMute.ps1
├── Test-IsValidEmailAddress.ps1
├── Test-IsValidIPv4.ps1
├── Test-IsValidIPv6.ps1
├── Test-MultipleBool.ps1
├── Test-Network.ps1
├── Test-NtpDateVsNow.ps1
├── Test-Password.ps1
├── Test-PasswordComplexity.ps1
├── Test-Port.ps1
├── Test-Set.ps1
├── Update-ExplorerIcon.ps1
├── Use-Stopwatch.ps1
├── Write-SelectStatement.ps1
├── Write-StringArray.ps1
├── Write-StringHash.ps1
├── Write-TextMenu.ps1
├── grep.ps1
├── mklink.ps1
└── sed.ps1
├── Pester
├── Add-FileAttribute.Tests.ps1
├── Compare-ObjectProperty.Tests.ps1
├── Compare-ObjectSetComplement.Tests.ps1
├── Compare-ObjectSetDifference.Tests.ps1
├── Compare-ObjectSetIntersection.Tests.ps1
├── Compare-ObjectSetUnion.Tests.ps1
├── Compare-PSGalleryObject.Tests.ps1
├── Convert-HexToRGB.Tests.ps1
├── Convert-Int32ToUint32.Tests.ps1
├── Convert-Int64ToText.Tests.ps1
├── Convert-ObjectToHashtable.Tests.ps1
├── Convert-RGBToHex.Tests.ps1
├── Convert-SecureStringToString.Tests.ps1
├── Convert-UserFlag.Tests.ps1
├── ConvertFrom-Base64.Tests.ps1
├── ConvertFrom-Binary.Tests.ps1
├── ConvertFrom-DateTime.Tests.ps1
├── ConvertFrom-FsRight.Tests.ps1
├── ConvertFrom-Hex.Tests.ps1
├── ConvertFrom-HexString.Tests.ps1
├── ConvertFrom-HtmlEncode.Tests.ps1
├── ConvertFrom-RomanNumeral.Tests.ps1
├── ConvertFrom-UTC.Tests.ps1
├── ConvertFrom-UrlEncode.Tests.ps1
├── ConvertFrom-Xml.Tests.ps1
├── ConvertTo-Base64.Tests.ps1
├── ConvertTo-Binary.Tests.ps1
├── ConvertTo-BinaryIPv4.Tests.ps1
├── ConvertTo-Bool.Tests.ps1
├── ConvertTo-DateTime.Tests.ps1
├── ConvertTo-DecimalIPv4.Tests.ps1
├── ConvertTo-DottedDecimalIPv4.Tests.ps1
├── ConvertTo-Hex.Tests.ps1
├── ConvertTo-HexString.Tests.ps1
├── ConvertTo-HtmlEncode.Tests.ps1
├── ConvertTo-OrderedDictionary.Tests.ps1
├── ConvertTo-RomanNumeral.Tests.ps1
├── ConvertTo-UTC.Tests.ps1
├── ConvertTo-UncPath.Tests.ps1
├── ConvertTo-UrlEncode.Tests.ps1
├── Copy-Object.Tests.ps1
├── Expand-IPv6.Tests.ps1
├── Expand-String.Tests.ps1
├── Expand-Tab.Tests.ps1
├── Export-CSVSortedColumn.Tests.ps1
├── Export-FontSample.Tests.ps1
├── FileSizeAbove.Tests.ps1
├── FileSizeBelow.Tests.ps1
├── Format-MacAddress.Tests.ps1
├── Format-RandomCase.Tests.ps1
├── Format-ReverseString.Tests.ps1
├── Format-ReverseToken.Tests.ps1
├── Format-SortedList.Tests.ps1
├── Format-TitleCase.Tests.ps1
├── Format-WrapText.Tests.ps1
├── Get-AppEventSound.Tests.ps1
├── Get-ArpTable.Tests.ps1
├── Get-Assoc.Tests.ps1
├── Get-AutoRun.inf.Tests.ps1
├── Get-BashPath.Tests.ps1
├── Get-BinaryType.Tests.ps1
├── Get-CeasarCipher.Tests.ps1
├── Get-ComputerSite.Tests.ps1
├── Get-ComputerUptime.Tests.ps1
├── Get-ConsoleColor.Tests.ps1
├── Get-ConsoleWindowSize.Tests.ps1
├── Get-DNSHostEntryAsync.Tests.ps1
├── Get-Desktop.ini.Tests.ps1
├── Get-DiceRoll.Tests.ps1
├── Get-DiskType.Tests.ps1
├── Get-DisplayBrightness.Tests.ps1
├── Get-DriveStat.Tests.ps1
├── Get-DuplicateFileName.Tests.ps1
├── Get-Enum.Tests.ps1
├── Get-ErrorInfo.Tests.ps1
├── Get-ExecutableForFile.Tests.ps1
├── Get-Factorial.Tests.ps1
├── Get-FileEncoding.Tests.ps1
├── Get-FileName.Tests.ps1
├── Get-FileSizeOnDisk.Tests.ps1
├── Get-FileWithLeadingSpace.Tests.ps1
├── Get-FolderName.Tests.ps1
├── Get-Font.Tests.ps1
├── Get-Fortune.Tests.ps1
├── Get-FsRight.Tests.ps1
├── Get-Ftype.Tests.ps1
├── Get-InvalidFileCharacter.Tests.ps1
├── Get-IpRange.Tests.ps1
├── Get-IpV4Network.Tests.ps1
├── Get-LastDayInMonth.Tests.ps1
├── Get-List.Tests.ps1
├── Get-LongName.Tests.ps1
├── Get-MacVendor.Tests.ps1
├── Get-MachineType.Tests.ps1
├── Get-Magic8Ball.Tests.ps1
├── Get-MyLocalLogonTime.Tests.ps1
├── Get-NTFSPermission.Tests.ps1
├── Get-NamedColor.Tests.ps1
├── Get-NetworkCredential.Tests.ps1
├── Get-NtpDate.Tests.ps1
├── Get-PSWho.Tests.ps1
├── Get-Power.Tests.ps1
├── Get-PrintableAscii.Tests.ps1
├── Get-PrivateProfileComment.Tests.ps1
├── Get-PrivateProfileSection.Tests.ps1
├── Get-PrivateProfileSectionNames.Tests.ps1
├── Get-PrivateProfileString.Tests.ps1
├── Get-ProcessUser.Tests.ps1
├── Get-RandomDate.Tests.ps1
├── Get-RandomHexDigit.Tests.ps1
├── Get-RandomMacAddress.Tests.ps1
├── Get-RebootHistory.Tests.ps1
├── Get-RegExpandString.Tests.ps1
├── Get-RegistryValue.Tests.ps1
├── Get-RelativePath.Tests.ps1
├── Get-Round.Tests.ps1
├── Get-SID.Tests.ps1
├── Get-SaveFileName.Tests.ps1
├── Get-ScheduledTaskUser.Tests.ps1
├── Get-ServiceUser.Tests.ps1
├── Get-ShortName.Tests.ps1
├── Get-Shortcut.Tests.ps1
├── Get-SpecialFolder.Tests.ps1
├── Get-SqlDatabase.Tests.ps1
├── Get-SqlIndexFragmentation.Tests.ps1
├── Get-SqlStoredProcedure.Tests.ps1
├── Get-StaticProperty.Tests.ps1
├── Get-String.Tests.ps1
├── Get-StringHash.Tests.ps1
├── Get-SubnetMaskIPv4.Tests.ps1
├── Get-TruncatedDate.Tests.ps1
├── Get-Type.Tests.ps1
├── Get-TypeAccelerator.Tests.ps1
├── Get-UrlContent.Tests.ps1
├── Get-WordCount.Tests.ps1
├── Get-WordList.Tests.ps1
├── Invoke-Beep.Tests.ps1
├── Invoke-CountdownTimer.Tests.ps1
├── Invoke-SoundPlayer.Tests.ps1
├── Invoke-Speak.Tests.ps1
├── Join-Object.Tests.ps1
├── Lock-Workstation.Tests.ps1
├── Measure-Char.Tests.ps1
├── Merge-Object.Tests.ps1
├── Move-ToRecycleBin.Tests.ps1
├── New-ColorPicker.Tests.ps1
├── New-Credential.Tests.ps1
├── New-DatePicker.Tests.ps1
├── New-FontPicker.Tests.ps1
├── New-InputBox.Tests.ps1
├── New-InputBoxSecureString.Tests.ps1
├── New-MessageBox.Tests.ps1
├── New-PFDateFormat.Tests.ps1
├── New-QR.Tests.ps1
├── New-RandomPassword.Tests.ps1
├── New-Screenshot.Tests.ps1
├── New-Shortcut.Tests.ps1
├── New-VirtualHardDisk.Tests.ps1
├── Optimize-SqlIndexFragmentation.Tests.ps1
├── Optimize-SqlStoredProcedure.Tests.ps1
├── Out-PDFToPrinter.Tests.ps1
├── Read-HostPause.Tests.ps1
├── Read-HostWithDefault.Tests.ps1
├── Remove-BlankOrComment.Tests.ps1
├── Remove-EmptyProperty.Tests.ps1
├── Remove-FileAttribute.Tests.ps1
├── Remove-QuotesFromCsv.Tests.ps1
├── Remove-TeamsCache.Tests.ps1
├── Remove-Trailing.Tests.ps1
├── Reset-Desktop.Tests.ps1
├── Resolve-FQDN.Tests.ps1
├── Resolve-HostName.Tests.ps1
├── Resolve-PathForce.Tests.ps1
├── Set-AutoRun.inf.Tests.ps1
├── Set-Capslock.Tests.ps1
├── Set-Desktop.ini.Tests.ps1
├── Set-Display.Tests.ps1
├── Set-EOLTerminator.Tests.ps1
├── Set-FileEncoding.Tests.ps1
├── Set-Numlock.Tests.ps1
├── Set-PrivateProfileComment.Tests.ps1
├── Set-PrivateProfileString.Tests.ps1
├── Set-Scrolllock.Tests.ps1
├── Set-SpeakerVolume.Tests.ps1
├── Set-Type.Tests.ps1
├── Set-WindowState.Tests.ps1
├── Set-WindowStyle.Tests.ps1
├── Show-Calendar.Tests.ps1
├── Show-FileAttribute.Tests.ps1
├── Show-Object.Tests.ps1
├── Show-Progress.Tests.ps1
├── Split-CanonicalName.Tests.ps1
├── Split-DistinguishedName.Tests.ps1
├── Split-Line.Tests.ps1
├── Start-ADReplication.Tests.ps1
├── Start-RecordSession.Tests.ps1
├── Stop-RecordSession.Tests.ps1
├── Switch-Mute.Tests.ps1
├── Test-CSVFormat.Tests.ps1
├── Test-ConnectionAsync.Tests.ps1
├── Test-IsAdmin.Tests.ps1
├── Test-IsCapsLock.Tests.ps1
├── Test-IsDate.Tests.ps1
├── Test-IsFileLocked.Tests.ps1
├── Test-IsHexString.Tests.ps1
├── Test-IsLocalIPv4.Tests.ps1
├── Test-IsNull.Tests.ps1
├── Test-IsNumLock.Tests.ps1
├── Test-IsNumeric.Tests.ps1
├── Test-IsScrollLock.Tests.ps1
├── Test-IsValidEmailAddress.Tests.ps1
├── Test-IsValidIPv4.Tests.ps1
├── Test-IsValidIPv6.Tests.ps1
├── Test-MultipleBool.Tests.ps1
├── Test-Network.Tests.ps1
├── Test-NtpDateVsNow.Tests.ps1
├── Test-Password.Tests.ps1
├── Test-PasswordComplexity.Tests.ps1
├── Test-Port.Tests.ps1
├── Test-Set.Tests.ps1
├── Update-ExplorerIcon.Tests.ps1
├── Use-Stopwatch.Tests.ps1
├── Write-SelectStatement.Tests.ps1
├── Write-StringArray.Tests.ps1
├── Write-StringHash.Tests.ps1
├── Write-TextMenu.Tests.ps1
├── grep.Tests.ps1
├── mklink.Tests.ps1
└── sed.Tests.ps1
├── PoshFunctions.psd1
├── PoshFunctions.psm1
├── ReadMe.md
├── Resources
├── License.txt
├── PoshFunctions.ico
├── PoshFunctions.png
├── PoshFunctions.xcf
├── PoshFunctions128.png
├── PoshFunctions64.png
├── ReadMe.html
├── ReadMe.txt
├── ReleaseNotes.txt
├── Wisdom.txt
├── WordList.txt
└── words_alpha.txt
└── en-US
└── about_PoshFunctions.Help.txt
/Docs/HTML/styles/md-styles.css:
--------------------------------------------------------------------------------
1 | h1 {
2 | font-size: 14pt;
3 | color: darkblue;
4 | }
5 |
6 | h2 {
7 | font-size: 12pt;
8 | color: firebrick;
9 | }
10 |
11 | cite {
12 | font-size: 9pt;
13 | color: gray;
14 | }
15 |
16 | td, th {
17 | border: 1px solid;
18 | border-color: lightgray
19 | }
20 |
21 | th {
22 | background-color: lightblue
23 | }
24 |
25 | pre {
26 | border: 1px solid;
27 | border-color: lightgray;
28 | }
29 |
30 | blockquote {
31 | border: none;
32 | text-indent: each-line;
33 | }
--------------------------------------------------------------------------------
/Docs/Markdown/FileSizeAbove.md:
--------------------------------------------------------------------------------
1 | ---
2 | external help file: poshfunctions-help.xml
3 | Module Name: poshfunctions
4 | online version:
5 | schema: 2.0.0
6 | ---
7 |
8 | # FileSizeAbove
9 |
10 | ## SYNOPSIS
11 |
12 | To use as a filter against Get-ChildItem
13 |
14 | ## SYNTAX
15 |
16 | ### __AllParameterSets
17 |
18 | ```
19 | FileSizeAbove [[-Size ]] []
20 | ```
21 |
22 | ## DESCRIPTION
23 |
24 | To use as a filter against Get-ChildItem
25 |
26 |
27 | ## EXAMPLES
28 |
29 | ### Example 1: EXAMPLE 1
30 |
31 | ```
32 | Assume I have 1 large file in c:\temp, and many smaller files.
33 | ```
34 |
35 | dir c:\temp | FileSizeAbove -Size 1GB | Select-Object FullName, LastWriteTime, Length
36 |
37 | FullName LastWriteTime Length
38 | -------- ------------- ------
39 | C:\temp\install.wim 3/5/2020 11:39:23 AM 4314799742
40 |
41 |
42 |
43 |
44 |
45 |
46 | ## PARAMETERS
47 |
48 | ### -Size
49 |
50 | The minimum size a file can be
51 |
52 | ```yaml
53 | Type: Int32
54 | Parameter Sets: (All)
55 | Aliases:
56 | Accepted values:
57 |
58 | Required: True (None) False (All)
59 | Position: 0
60 | Default value: 0
61 | Accept pipeline input: False
62 | Accept wildcard characters: False
63 | DontShow: False
64 | ```
65 |
66 | ## NOTES
67 |
68 | Could NOT make this an advanced function
69 |
70 |
71 | ## RELATED LINKS
72 |
73 | Fill Related Links Here
74 |
75 |
--------------------------------------------------------------------------------
/Docs/Markdown/FileSizeBelow.md:
--------------------------------------------------------------------------------
1 | ---
2 | external help file: poshfunctions-help.xml
3 | Module Name: poshfunctions
4 | online version:
5 | schema: 2.0.0
6 | ---
7 |
8 | # FileSizeBelow
9 |
10 | ## SYNOPSIS
11 |
12 | To use as a filter against Get-ChildItem
13 |
14 | ## SYNTAX
15 |
16 | ### __AllParameterSets
17 |
18 | ```
19 | FileSizeBelow [[-Size ]] []
20 | ```
21 |
22 | ## DESCRIPTION
23 |
24 | To use as a filter against Get-ChildItem
25 |
26 |
27 | ## EXAMPLES
28 |
29 | ### Example 1: EXAMPLE 1
30 |
31 | ```
32 | Assume I have 1 small file in c:\temp, and many larger files.
33 | ```
34 |
35 | dir c:\temp -File | FileSizeBelow -Size 1KB | Select-Object FullName, LastWriteTime, Length
36 |
37 | FullName LastWriteTime Length
38 | -------- ------------- ------
39 | C:\temp\log.log 12/8/2019 9:55:07 PM 186
40 |
41 |
42 |
43 |
44 |
45 |
46 | ## PARAMETERS
47 |
48 | ### -Size
49 |
50 | The maximum size a file can be
51 |
52 | ```yaml
53 | Type: Int32
54 | Parameter Sets: (All)
55 | Aliases:
56 | Accepted values:
57 |
58 | Required: True (None) False (All)
59 | Position: 0
60 | Default value: 0
61 | Accept pipeline input: False
62 | Accept wildcard characters: False
63 | DontShow: False
64 | ```
65 |
66 | ## NOTES
67 |
68 | Could NOT make this an advanced function
69 |
70 |
71 | ## RELATED LINKS
72 |
73 | Fill Related Links Here
74 |
75 |
--------------------------------------------------------------------------------
/Docs/Markdown/Get-ArpTable.md:
--------------------------------------------------------------------------------
1 | ---
2 | external help file: poshfunctions-help.xml
3 | Module Name: poshfunctions
4 | online version:
5 | schema: 2.0.0
6 | ---
7 |
8 | # Get-ArpTable
9 |
10 | ## SYNOPSIS
11 |
12 | Gets the dynamic entries in the arp table and parses them into IPAddress and MACAddress
13 |
14 | ## SYNTAX
15 |
16 | ### __AllParameterSets
17 |
18 | ```
19 | Get-ArpTable []
20 | ```
21 |
22 | ## DESCRIPTION
23 |
24 | Gets the dynamic entries in the arp table and parses them into IPAddress and MACAddress
25 |
26 |
27 | ## EXAMPLES
28 |
29 | ### Example 1: EXAMPLE 1
30 |
31 | ```
32 | Get-ArpTable
33 | ```
34 |
35 | IPAddress MACAddress
36 | --------- ----------
37 | 192.168.3.1 A0-40-A0-5F-BF-9C
38 | 192.168.3.2 14-59-C0-45-CA-6A
39 | 192.168.3.100 94-57-A5-7A-43-6D
40 | 192.168.3.101 00-90-A9-3F-98-EF
41 |
42 |
43 |
44 |
45 |
46 |
47 | ## PARAMETERS
48 |
49 |
50 | ### CommonParameters
51 |
52 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
53 |
54 | ## NOTES
55 |
56 | Displaying the arp table via 'arp.exe -a' produces very wordy output that is difficult to use.
57 | On a computer with multiple adapters and VPNs that may or may not be active can produce a lot of output.
58 | On my computer 'arp.exe -a' produces 74 lines of output.
59 | In the example run from the same computer it produces
60 | an array of 4 IPAddress/MACAddress pairs.
61 | This is useful information that can be acted against.
62 |
63 |
64 | ## RELATED LINKS
65 |
66 | Fill Related Links Here
67 |
68 |
--------------------------------------------------------------------------------
/Docs/Markdown/Get-AutoRun.inf.md:
--------------------------------------------------------------------------------
1 | ---
2 | external help file: poshfunctions-help.xml
3 | Module Name: poshfunctions
4 | online version:
5 | schema: 2.0.0
6 | ---
7 |
8 | # Get-AutoRun.inf
9 |
10 | ## SYNOPSIS
11 |
12 | Gets the content of an AutoRun.inf for a drive.
13 |
14 | ## SYNTAX
15 |
16 | ### __AllParameterSets
17 |
18 | ```
19 | Get-AutoRun.inf [[-Path ]] []
20 | ```
21 |
22 | ## DESCRIPTION
23 |
24 | Gets the content of an AutoRun.inf for a drive.
25 |
26 |
27 | ## EXAMPLES
28 |
29 | ### Example 1: EXAMPLE 1
30 |
31 | ```
32 | Assuming the D: drive has an AutoRun.inf file with the following contents
33 | ```
34 |
35 | [AutoRun]
36 | Icon=TemporaryFolder.ico
37 | Label=10 MB FAT VHD
38 |
39 | Get-AutoRun.inf -Path d:
40 |
41 | Path Label Icon
42 | ---- ----- ----
43 | D:\ 10 MB FAT VHD TemporaryFolder.ico
44 |
45 |
46 |
47 |
48 |
49 |
50 | ## PARAMETERS
51 |
52 | ### -Path
53 |
54 | The path to the drive.
55 | Must begin with a drive letter followed by a colon ':'.
56 | Defaults to $pwd
57 |
58 | ```yaml
59 | Type: String
60 | Parameter Sets: (All)
61 | Aliases:
62 | Accepted values:
63 |
64 | Required: True (None) False (All)
65 | Position: 0
66 | Default value: D:\
67 | Accept pipeline input: False
68 | Accept wildcard characters: False
69 | DontShow: False
70 | ```
71 |
72 |
73 | ### CommonParameters
74 |
75 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
76 |
77 | ## NOTES
78 |
79 |
80 |
81 | ## RELATED LINKS
82 |
83 | Fill Related Links Here
84 |
85 |
--------------------------------------------------------------------------------
/Docs/Markdown/Get-ConsoleWindowSize.md:
--------------------------------------------------------------------------------
1 | ---
2 | external help file: poshfunctions-help.xml
3 | Module Name: poshfunctions
4 | online version:
5 | schema: 2.0.0
6 | ---
7 |
8 | # Get-ConsoleWindowSize
9 |
10 | ## SYNOPSIS
11 |
12 | Gets the current the window size and buffer size of the current console window
13 |
14 | ## SYNTAX
15 |
16 | ### __AllParameterSets
17 |
18 | ```
19 | Get-ConsoleWindowSize []
20 | ```
21 |
22 | ## DESCRIPTION
23 |
24 | Gets the current the window size and buffer size of the current console window
25 |
26 |
27 | ## EXAMPLES
28 |
29 | ### Example 1: EXAMPLE 1
30 |
31 | ```
32 | Get-ConsoleWindowSize
33 | ```
34 |
35 | BufferWidth BufferHeight WindowWidth WindowHeight
36 | ----------- ------------ ----------- ------------
37 | 196 32766 196 21
38 |
39 |
40 |
41 |
42 |
43 |
44 | ## PARAMETERS
45 |
46 |
47 | ### CommonParameters
48 |
49 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
50 |
51 | ## NOTES
52 |
53 |
54 |
55 | ## RELATED LINKS
56 |
57 | Fill Related Links Here
58 |
59 |
--------------------------------------------------------------------------------
/Docs/Markdown/Get-DaysOfWeek.md:
--------------------------------------------------------------------------------
1 | ---
2 | external help file: poshfunctions-help.xml
3 | Module Name: poshfunctions
4 | online version:
5 | schema: 2.0.0
6 | ---
7 |
8 | # Get-DaysOfWeek
9 |
10 | ## SYNOPSIS
11 |
12 | Gets the days of the week
13 |
14 | ## SYNTAX
15 |
16 | ### __AllParameterSets
17 |
18 | ```
19 | Get-DaysOfWeek [-Short] []
20 | ```
21 |
22 | ## DESCRIPTION
23 |
24 | Gets the days of the week
25 |
26 |
27 | ## EXAMPLES
28 |
29 |
30 | ## PARAMETERS
31 |
32 | ### -Short
33 |
34 | Switch that will return the short name of the days of the week
35 |
36 | ```yaml
37 | Type: SwitchParameter
38 | Parameter Sets: (All)
39 | Aliases:
40 | Accepted values:
41 |
42 | Required: True (None) False (All)
43 | Position: Named
44 | Default value: False
45 | Accept pipeline input: False
46 | Accept wildcard characters: False
47 | DontShow: False
48 | ```
49 |
50 |
51 | ### CommonParameters
52 |
53 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
54 |
55 | ## OUTPUTS
56 |
57 | ### System.String[]
58 |
59 |
60 |
61 | ## NOTES
62 |
63 | Renamed from Show-DaysOfWeek and incorporated functionality of Show-ShortDaysOfWeek
64 |
65 |
66 | ## RELATED LINKS
67 |
68 | Fill Related Links Here
69 |
70 |
--------------------------------------------------------------------------------
/Docs/Markdown/Get-FileEncoding.md:
--------------------------------------------------------------------------------
1 | ---
2 | external help file: poshfunctions-help.xml
3 | Module Name: poshfunctions
4 | online version:
5 | schema: 2.0.0
6 | ---
7 |
8 | # Get-FileEncoding
9 |
10 | ## SYNOPSIS
11 |
12 | To get the file encoding of a file
13 |
14 | ## SYNTAX
15 |
16 | ### __AllParameterSets
17 |
18 | ```
19 | Get-FileEncoding [-Path] []
20 | ```
21 |
22 | ## DESCRIPTION
23 |
24 | To get the file encoding of a file
25 |
26 |
27 | ## EXAMPLES
28 |
29 | ### Example 1: EXAMPLE 1
30 |
31 | ```
32 | Get-FileEncoding -Path .\UTF16-BigEndian.txt
33 | ```
34 |
35 | Unicode UTF-16 Big-Endian
36 |
37 |
38 |
39 |
40 |
41 | ### Example 2: EXAMPLE 2
42 |
43 | ```
44 | Get-FileEncoding -Path .\UTF16-LittleEndian.txt
45 | ```
46 |
47 | Unicode UTF-16 Little-Endian
48 |
49 |
50 |
51 |
52 |
53 |
54 | ## PARAMETERS
55 |
56 | ### -Path
57 |
58 | The file that you want to check its encoding.
59 |
60 | ```yaml
61 | Type: String[]
62 | Parameter Sets: (All)
63 | Aliases:
64 | Accepted values:
65 |
66 | Required: True (All) False (None)
67 | Position: 0
68 | Default value:
69 | Accept pipeline input: True
70 | Accept wildcard characters: False
71 | DontShow: False
72 | ```
73 |
74 |
75 | ### CommonParameters
76 |
77 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
78 |
79 | ## NOTES
80 |
81 | # source: https://gist.github.com/jpoehls/2406504
82 |
83 |
84 | ## RELATED LINKS
85 |
86 | Fill Related Links Here
87 |
88 |
--------------------------------------------------------------------------------
/Docs/Markdown/Get-FileWithLeadingSpace.md:
--------------------------------------------------------------------------------
1 | ---
2 | external help file: poshfunctions-help.xml
3 | Module Name: poshfunctions
4 | online version:
5 | schema: 2.0.0
6 | ---
7 |
8 | # Get-FileWithLeadingSpace
9 |
10 | ## SYNOPSIS
11 |
12 | To find files that begin with a space character
13 |
14 | ## SYNTAX
15 |
16 | ### __AllParameterSets
17 |
18 | ```
19 | Get-FileWithLeadingSpace [[-Path ]] []
20 | ```
21 |
22 | ## DESCRIPTION
23 |
24 | To find files that begin with a space character
25 |
26 |
27 | ## EXAMPLES
28 |
29 | ### Example 1: EXAMPLE 1
30 |
31 | ```
32 | Get-FileWithLeadingSpace -path Value
33 | ```
34 |
35 | Describe what this call does
36 |
37 |
38 |
39 |
40 |
41 |
42 | ## PARAMETERS
43 |
44 | ### -Path
45 |
46 | The path where you want to begin looking
47 |
48 | ```yaml
49 | Type: String
50 | Parameter Sets: (All)
51 | Aliases:
52 | Accepted values:
53 |
54 | Required: True (None) False (All)
55 | Position: 0
56 | Default value: $PWD
57 | Accept pipeline input: False
58 | Accept wildcard characters: False
59 | DontShow: False
60 | ```
61 |
62 |
63 | ### CommonParameters
64 |
65 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
66 |
67 | ## NOTES
68 |
69 |
70 |
71 | ## RELATED LINKS
72 |
73 | Fill Related Links Here
74 |
75 |
--------------------------------------------------------------------------------
/Docs/Markdown/Get-List.md:
--------------------------------------------------------------------------------
1 | ---
2 | external help file: poshfunctions-help.xml
3 | Module Name: poshfunctions
4 | online version:
5 | schema: 2.0.0
6 | ---
7 |
8 | # Get-List
9 |
10 | ## SYNOPSIS
11 |
12 | Returns an array given an indeterminate number of command line arguments.
13 |
14 | ## SYNTAX
15 |
16 | ### __AllParameterSets
17 |
18 | ```
19 | Get-List []
20 | ```
21 |
22 | ## DESCRIPTION
23 |
24 | Returns an array given an indeterminate number of command line arguments.
25 |
26 |
27 | ## EXAMPLES
28 |
29 | ### Example 1: EXAMPLE 1
30 |
31 | ```
32 | $Colors = Get-List blue red green
33 | ```
34 |
35 | Creates an array of 3 string elements: 'blue', 'red', 'green'
36 |
37 |
38 |
39 |
40 |
41 |
42 | ## PARAMETERS
43 |
44 | ## NOTES
45 |
46 | Source Windows PowerShell in Action, 2nd edition, page 239, function ql
47 |
48 |
49 | ## RELATED LINKS
50 |
51 | Fill Related Links Here
52 |
53 |
--------------------------------------------------------------------------------
/Docs/Markdown/Get-Magic8Ball.md:
--------------------------------------------------------------------------------
1 | ---
2 | external help file: poshfunctions-help.xml
3 | Module Name: poshfunctions
4 | online version:
5 | schema: 2.0.0
6 | ---
7 |
8 | # Get-Magic8Ball
9 |
10 | ## SYNOPSIS
11 |
12 | Get one of the answers from the magic 8 ball.
13 |
14 | ## SYNTAX
15 |
16 | ### __AllParameterSets
17 |
18 | ```
19 | Get-Magic8Ball []
20 | ```
21 |
22 | ## DESCRIPTION
23 |
24 | Get one of the answers from the magic 8 ball.
25 | The 20 possible answers are:
26 |
27 | As I see it, yes.
28 | Ask again later.
29 | Better not tell you now.
30 | Cannot predict now.
31 | Concentrate and ask again.
32 | Don't count on it.
33 | It is certain.
34 | It is decidedly so.
35 | Most likely.
36 | My reply is no.
37 | My sources say no.
38 | Outlook not so good.
39 | Outlook good.
40 | Reply hazy, try again.
41 | Signs point to yes.
42 | Very doubtful.
43 | Without a doubt.
44 | Yes.
45 | Yes - definitely.
46 | You may rely on it.
47 |
48 |
49 | ## EXAMPLES
50 |
51 | ### Example 1: EXAMPLE 1
52 |
53 | ```
54 | Get-Magic8Ball
55 | ```
56 |
57 | Reply hazy, try again.
58 |
59 |
60 |
61 |
62 |
63 |
64 | ## PARAMETERS
65 |
66 | ## NOTES
67 |
68 |
69 |
70 | ## RELATED LINKS
71 |
72 | Fill Related Links Here
73 |
74 |
--------------------------------------------------------------------------------
/Docs/Markdown/Get-Months.md:
--------------------------------------------------------------------------------
1 | ---
2 | external help file: poshfunctions-help.xml
3 | Module Name: poshfunctions
4 | online version:
5 | schema: 2.0.0
6 | ---
7 |
8 | # Get-Months
9 |
10 | ## SYNOPSIS
11 |
12 | Gets the months
13 |
14 | ## SYNTAX
15 |
16 | ### __AllParameterSets
17 |
18 | ```
19 | Get-Months [-Short] []
20 | ```
21 |
22 | ## DESCRIPTION
23 |
24 | Gets the months
25 |
26 |
27 | ## EXAMPLES
28 |
29 |
30 | ## PARAMETERS
31 |
32 | ### -Short
33 |
34 | Switch to show the short names as opposed to the full names of the months
35 |
36 | ```yaml
37 | Type: SwitchParameter
38 | Parameter Sets: (All)
39 | Aliases:
40 | Accepted values:
41 |
42 | Required: True (None) False (All)
43 | Position: Named
44 | Default value: False
45 | Accept pipeline input: False
46 | Accept wildcard characters: False
47 | DontShow: False
48 | ```
49 |
50 |
51 | ### CommonParameters
52 |
53 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
54 |
55 | ## NOTES
56 |
57 |
58 |
59 | ## RELATED LINKS
60 |
61 | Fill Related Links Here
62 |
63 |
--------------------------------------------------------------------------------
/Docs/Markdown/Get-NTFSPermission.md:
--------------------------------------------------------------------------------
1 | ---
2 | external help file: poshfunctions-help.xml
3 | Module Name: poshfunctions
4 | online version:
5 | schema: 2.0.0
6 | ---
7 |
8 | # Get-NTFSPermission
9 |
10 | ## SYNOPSIS
11 |
12 | To get permission information on a specified Path or folder name
13 |
14 | ## SYNTAX
15 |
16 | ### __AllParameterSets
17 |
18 | ```
19 | Get-NTFSPermission [[-Path ]] []
20 | ```
21 |
22 | ## DESCRIPTION
23 |
24 | To get permission information on a specified Path or folder name
25 |
26 |
27 | ## EXAMPLES
28 |
29 | ### Example 1: EXAMPLE 1
30 |
31 | ```
32 | Get-NTFSPermission -Path "C:\Temp"
33 | ```
34 |
35 | Would return:
36 |
37 | A listing of all of the permissions
38 |
39 |
40 |
41 |
42 |
43 |
44 | ## PARAMETERS
45 |
46 | ### -Path
47 |
48 | The name of the path
49 |
50 | ```yaml
51 | Type: String[]
52 | Parameter Sets: (All)
53 | Aliases:
54 | Accepted values:
55 |
56 | Required: True (None) False (All)
57 | Position: 0
58 | Default value:
59 | Accept pipeline input: False
60 | Accept wildcard characters: False
61 | DontShow: False
62 | ```
63 |
64 |
65 | ### CommonParameters
66 |
67 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
68 |
69 | ## NOTES
70 |
71 |
72 |
73 | ## RELATED LINKS
74 |
75 | Fill Related Links Here
76 |
77 |
--------------------------------------------------------------------------------
/Docs/Markdown/Get-RandomMacAddress.md:
--------------------------------------------------------------------------------
1 | ---
2 | external help file: poshfunctions-help.xml
3 | Module Name: poshfunctions
4 | online version:
5 | schema: 2.0.0
6 | ---
7 |
8 | # Get-RandomMacAddress
9 |
10 | ## SYNOPSIS
11 |
12 | Gets a random sequence of 12 hexadecimal digits
13 |
14 | ## SYNTAX
15 |
16 | ### __AllParameterSets
17 |
18 | ```
19 | Get-RandomMacAddress []
20 | ```
21 |
22 | ## DESCRIPTION
23 |
24 | Gets a random sequence of 12 hexadecimal digits
25 |
26 |
27 | ## EXAMPLES
28 |
29 | ### Example 1: EXAMPLE 1
30 |
31 | ```
32 | Get-RandomMacAddress
33 | ```
34 |
35 | # Would return a result like
36 | 6eee1e05cb29
37 |
38 |
39 |
40 |
41 |
42 |
43 | ## PARAMETERS
44 |
45 |
46 | ### CommonParameters
47 |
48 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
49 |
50 | ## NOTES
51 |
52 |
53 |
54 | ## RELATED LINKS
55 |
56 | Fill Related Links Here
57 |
58 |
--------------------------------------------------------------------------------
/Docs/Markdown/Get-SpeakerVolume.md:
--------------------------------------------------------------------------------
1 | ---
2 | external help file: poshfunctions-help.xml
3 | Module Name: poshfunctions
4 | online version:
5 | schema: 2.0.0
6 | ---
7 |
8 | # Get-SpeakerVolume
9 |
10 | ## SYNOPSIS
11 |
12 | Gets the current speaker volume.
13 |
14 | ## SYNTAX
15 |
16 | ### __AllParameterSets
17 |
18 | ```
19 | Get-SpeakerVolume []
20 | ```
21 |
22 | ## DESCRIPTION
23 |
24 | Gets the current speaker volume.
25 |
26 |
27 | ## EXAMPLES
28 |
29 | ### Example 1: EXAMPLE 1
30 |
31 | ```
32 | Set-SpeakerVolume -Volume 80
33 | ```
34 |
35 | Will display nothing and set the speaker to 80%
36 |
37 |
38 |
39 |
40 |
41 | ### Example 2: EXAMPLE 2
42 |
43 | ```
44 | Set-SpeakerVolume -Volume 97 -Verbose
45 | ```
46 |
47 | Will diplay the following while setting the speaker to 96%
48 | VERBOSE: You specified the speaker volume should be 97%
49 | VERBOSE: Rounding down to 96%
50 | VERBOSE: Turning volume down to 0%
51 | VERBOSE: Turning volume up to 96%
52 |
53 |
54 |
55 |
56 |
57 |
58 | ## PARAMETERS
59 |
60 |
61 | ### CommonParameters
62 |
63 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
64 |
65 | ## NOTES
66 |
67 | Renamed function from Set-Speaker to Set-SpeakerVolume to be clearer as to the purpose.
68 | Set an alias for the
69 | function to 'Set-Speaker' for backward compatibility.
70 |
71 |
72 | ## RELATED LINKS
73 |
74 | Fill Related Links Here
75 |
76 |
--------------------------------------------------------------------------------
/Docs/Markdown/Get-String.md:
--------------------------------------------------------------------------------
1 | ---
2 | external help file: poshfunctions-help.xml
3 | Module Name: poshfunctions
4 | online version:
5 | schema: 2.0.0
6 | ---
7 |
8 | # Get-String
9 |
10 | ## SYNOPSIS
11 |
12 | Returns a string given an indeterminate number of command line arguments.
13 |
14 | ## SYNTAX
15 |
16 | ### __AllParameterSets
17 |
18 | ```
19 | Get-String []
20 | ```
21 |
22 | ## DESCRIPTION
23 |
24 | Returns a string given an indeterminate number of command line arguments.
25 |
26 |
27 | ## EXAMPLES
28 |
29 | ### Example 1: EXAMPLE 1
30 |
31 | ```
32 | $String = Get-String Hello World 1
33 | ```
34 |
35 | Creates a variable containing the string 'Hello World 1'
36 |
37 |
38 |
39 |
40 |
41 |
42 | ## PARAMETERS
43 |
44 | ## NOTES
45 |
46 | Source Windows PowerShell in Action, 2nd edition, page 239, function qs
47 |
48 |
49 | ## RELATED LINKS
50 |
51 | Fill Related Links Here
52 |
53 |
--------------------------------------------------------------------------------
/Docs/Markdown/Get-VssVolume.md:
--------------------------------------------------------------------------------
1 | ---
2 | external help file: poshfunctions-help.xml
3 | Module Name: poshfunctions
4 | online version:
5 | schema: 2.0.0
6 | ---
7 |
8 | # Get-VssVolume
9 |
10 | ## SYNOPSIS
11 |
12 | Runs 'vssadmin.exe list volumes' and parses the output into objects
13 |
14 | ## SYNTAX
15 |
16 | ### __AllParameterSets
17 |
18 | ```
19 | Get-VssVolume []
20 | ```
21 |
22 | ## DESCRIPTION
23 |
24 | Runs 'vssadmin.exe list volumes' and parses the output into objects
25 |
26 |
27 | ## EXAMPLES
28 |
29 | ### Example 1: EXAMPLE 1
30 |
31 | ```
32 | Get-VssVolume
33 | ```
34 |
35 | VssVolume VolumeName
36 | --------- ----------
37 | C:\ \\?\Volume{613fc8d3-61cc-4199-868b-530990bde935}\
38 | \\?\Volume{ddc280b3-b5f1-4feb-a12a-512d0488fbd8}\ \\?\Volume{ddc280b3-b5f1-4feb-a12a-512d0488fbd8}\
39 |
40 |
41 |
42 |
43 |
44 |
45 | ## PARAMETERS
46 |
47 |
48 | ### CommonParameters
49 |
50 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
51 |
52 | ## NOTES
53 |
54 |
55 |
56 | ## RELATED LINKS
57 |
58 | Fill Related Links Here
59 |
60 |
--------------------------------------------------------------------------------
/Docs/Markdown/Lock-Workstation.md:
--------------------------------------------------------------------------------
1 | ---
2 | external help file: poshfunctions-help.xml
3 | Module Name: poshfunctions
4 | online version:
5 | schema: 2.0.0
6 | ---
7 |
8 | # Lock-Workstation
9 |
10 | ## SYNOPSIS
11 |
12 | Locks the workstation
13 |
14 | ## SYNTAX
15 |
16 | ### __AllParameterSets
17 |
18 | ```
19 | Lock-Workstation []
20 | ```
21 |
22 | ## DESCRIPTION
23 |
24 | Locks the workstation and requires authentication afterwards
25 |
26 |
27 | ## EXAMPLES
28 |
29 | ### Example 1: EXAMPLE 1
30 |
31 | ```
32 | Lock-Workstation
33 | ```
34 |
35 | Would lock the workstation
36 |
37 |
38 |
39 |
40 |
41 |
42 | ## PARAMETERS
43 |
44 |
45 | ### CommonParameters
46 |
47 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
48 |
49 | ## NOTES
50 |
51 |
52 |
53 | ## RELATED LINKS
54 |
55 | Fill Related Links Here
56 |
57 |
--------------------------------------------------------------------------------
/Docs/Markdown/New-FontPicker.md:
--------------------------------------------------------------------------------
1 | ---
2 | external help file: poshfunctions-help.xml
3 | Module Name: poshfunctions
4 | online version:
5 | schema: 2.0.0
6 | ---
7 |
8 | # New-FontPicker
9 |
10 | ## SYNOPSIS
11 |
12 | Present a dialog to the user and allow them to select a font and its characteristics
13 |
14 | ## SYNTAX
15 |
16 | ### __AllParameterSets
17 |
18 | ```
19 | New-FontPicker []
20 | ```
21 |
22 | ## DESCRIPTION
23 |
24 | Present a dialog to the user and allow them to select a font and its characteristics
25 |
26 |
27 | ## EXAMPLES
28 |
29 | ### Example 1: EXAMPLE 1
30 |
31 | ```
32 | New-FontPicker
33 | ```
34 |
35 | Will present the user with a font dialog and return the following if Arial 18 point italic was selected:
36 |
37 | FontFamily : [FontFamily: Name=Arial]
38 | Bold : False
39 | GdiCharSet : 0
40 | GdiVerticalFont : False
41 | Italic : True
42 | Name : Arial
43 | OriginalFontName :
44 | Strikeout : False
45 | Underline : False
46 | Style : Italic
47 | Size : 18
48 | SizeInPoints : 18
49 | Unit : Point
50 | Height : 28
51 | IsSystemFont : False
52 | SystemFontName :
53 |
54 |
55 |
56 |
57 |
58 |
59 | ## PARAMETERS
60 |
61 |
62 | ### CommonParameters
63 |
64 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
65 |
66 | ## NOTES
67 |
68 | If the user selects 'Cancel' from the dialog box no value is returned.
69 |
70 |
71 | ## RELATED LINKS
72 |
73 | Fill Related Links Here
74 |
75 |
--------------------------------------------------------------------------------
/Docs/Markdown/New-TelephoneUri.md:
--------------------------------------------------------------------------------
1 | ---
2 | external help file: poshfunctions-help.xml
3 | Module Name: poshfunctions
4 | online version:
5 | schema: 2.0.0
6 | ---
7 |
8 | # New-TelephoneUri
9 |
10 | ## SYNOPSIS
11 |
12 | A short one-line action-based description, e.g. 'Tests if a function is valid'
13 |
14 | ## SYNTAX
15 |
16 | ### __AllParameterSets
17 |
18 | ```
19 | New-TelephoneUri [-Telephone] []
20 | ```
21 |
22 | ## DESCRIPTION
23 |
24 | A longer description of the function, its purpose, common use cases, etc.
25 |
26 |
27 | ## EXAMPLES
28 |
29 | ### Example 1: EXAMPLE 1
30 |
31 | ```
32 | Test-MyTestFunction -Verbose
33 | ```
34 |
35 | Explanation of the function or its result.
36 | You can include multiple examples with additional .EXAMPLE lines
37 |
38 |
39 |
40 |
41 |
42 |
43 | ## PARAMETERS
44 |
45 | ### -Telephone
46 |
47 | Enter the Telephone number
48 |
49 | ```yaml
50 | Type: String
51 | Parameter Sets: (All)
52 | Aliases:
53 | Accepted values:
54 |
55 | Required: True (All) False (None)
56 | Position: 0
57 | Default value:
58 | Accept pipeline input: True
59 | Accept wildcard characters: False
60 | DontShow: False
61 | ```
62 |
63 |
64 | ### CommonParameters
65 |
66 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
67 |
68 | ## NOTES
69 |
70 | Information or caveats about the function e.g.
71 | 'This function is not supported in Linux'
72 |
73 |
74 | ## RELATED LINKS
75 |
76 | [Specify a URI to a help page, this will show when Get-Help -Online is used.] ()
77 |
78 |
--------------------------------------------------------------------------------
/Docs/Markdown/Remove-TeamsCache.md:
--------------------------------------------------------------------------------
1 | ---
2 | external help file: poshfunctions-help.xml
3 | Module Name: poshfunctions
4 | online version:
5 | schema: 2.0.0
6 | ---
7 |
8 | # Remove-TeamsCache
9 |
10 | ## SYNOPSIS
11 |
12 | Removes the data that is in the Teams cache for the current user
13 |
14 | ## SYNTAX
15 |
16 | ### __AllParameterSets
17 |
18 | ```
19 | Remove-TeamsCache [-All] []
20 | ```
21 |
22 | ## DESCRIPTION
23 |
24 | Removes the data that is in the Teams cache.
25 | If you are running from an elevated prompt you can remove Teams cache for all users.
26 |
27 |
28 | ## EXAMPLES
29 |
30 | ### Example 1: EXAMPLE 1
31 |
32 | ```
33 | Remove-TeamsCache
34 | ```
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 | ## PARAMETERS
44 |
45 | ### -All
46 |
47 | A switch to indicate removing the Teams cache for all users
48 |
49 | ```yaml
50 | Type: SwitchParameter
51 | Parameter Sets: (All)
52 | Aliases:
53 | Accepted values:
54 |
55 | Required: True (None) False (All)
56 | Position: Named
57 | Default value: False
58 | Accept pipeline input: False
59 | Accept wildcard characters: False
60 | DontShow: False
61 | ```
62 |
63 |
64 | ### CommonParameters
65 |
66 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
67 |
68 | ## NOTES
69 |
70 | Inspired by https://community.idera.com/database-tools/powershell/powertips/b/tips/posts/deleting-microsoft-teams-cache-data
71 |
72 |
73 | ## RELATED LINKS
74 |
75 | Fill Related Links Here
76 |
77 |
--------------------------------------------------------------------------------
/Docs/Markdown/Remove-Trailing.md:
--------------------------------------------------------------------------------
1 | ---
2 | external help file: poshfunctions-help.xml
3 | Module Name: poshfunctions
4 | online version:
5 | schema: 2.0.0
6 | ---
7 |
8 | # Remove-Trailing
9 |
10 | ## SYNOPSIS
11 |
12 | Removes trailing spaces from a string or array of strings.
13 |
14 | ## SYNTAX
15 |
16 | ### __AllParameterSets
17 |
18 | ```
19 | Remove-Trailing [-String] []
20 | ```
21 |
22 | ## DESCRIPTION
23 |
24 | Removes trailing spaces from a string or array of strings.
25 |
26 |
27 | ## EXAMPLES
28 |
29 | ### Example 1: EXAMPLE 1
30 |
31 | ```
32 | "[$(Remove-Trailing -String 'This has trailing spaces ')]"
33 | ```
34 |
35 | [This has trailing spaces]
36 |
37 |
38 |
39 |
40 |
41 |
42 | ## PARAMETERS
43 |
44 | ### -String
45 |
46 | A string or array of strings that may have trailing spaces.
47 | Can also accept input from the pipeline.
48 |
49 | ```yaml
50 | Type: String[]
51 | Parameter Sets: (All)
52 | Aliases:
53 | Accepted values:
54 |
55 | Required: True (All) False (None)
56 | Position: 0
57 | Default value:
58 | Accept pipeline input: True
59 | Accept wildcard characters: False
60 | DontShow: False
61 | ```
62 |
63 |
64 | ### CommonParameters
65 |
66 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
67 |
68 | ## OUTPUTS
69 |
70 | ### System.String[]
71 |
72 |
73 |
74 | ## NOTES
75 |
76 |
77 |
78 | ## RELATED LINKS
79 |
80 | Fill Related Links Here
81 |
82 |
--------------------------------------------------------------------------------
/Docs/Markdown/Reset-Desktop.md:
--------------------------------------------------------------------------------
1 | ---
2 | external help file: poshfunctions-help.xml
3 | Module Name: poshfunctions
4 | online version:
5 | schema: 2.0.0
6 | ---
7 |
8 | # Reset-Desktop
9 |
10 | ## SYNOPSIS
11 |
12 | Forces a reset of the desktop
13 |
14 | ## SYNTAX
15 |
16 | ### __AllParameterSets
17 |
18 | ```
19 | Reset-Desktop []
20 | ```
21 |
22 | ## DESCRIPTION
23 |
24 | Forces a reset of the desktop and does things like refresh icons
25 |
26 |
27 | ## EXAMPLES
28 |
29 | ### Example 1: EXAMPLE 1
30 |
31 | ```
32 | Reset-Desktop
33 | ```
34 |
35 | Would reset the desktop
36 |
37 |
38 |
39 |
40 |
41 |
42 | ## PARAMETERS
43 |
44 |
45 | ### CommonParameters
46 |
47 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
48 |
49 | ## NOTES
50 |
51 |
52 |
53 | ## RELATED LINKS
54 |
55 | Fill Related Links Here
56 |
57 |
--------------------------------------------------------------------------------
/Docs/Markdown/Start-RecordSession.md:
--------------------------------------------------------------------------------
1 | ---
2 | external help file: poshfunctions-help.xml
3 | Module Name: poshfunctions
4 | online version:
5 | schema: 2.0.0
6 | ---
7 |
8 | # Start-RecordSession
9 |
10 | ## SYNOPSIS
11 |
12 | Creates a transcript of current Powershell session
13 |
14 | ## SYNTAX
15 |
16 | ### __AllParameterSets
17 |
18 | ```
19 | Start-RecordSession []
20 | ```
21 |
22 | ## DESCRIPTION
23 |
24 | Creates a transcript of current Powershell session
25 |
26 |
27 | ## EXAMPLES
28 |
29 |
30 | ## PARAMETERS
31 |
32 |
33 | ### CommonParameters
34 |
35 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
36 |
37 | ## NOTES
38 |
39 | # Inspired by post https://groups.google.com/forum/#!topic/microsoft.public.exchange.admin/0z7249mOuzA
40 | # create a uniqely named transcript file for this session.
41 | It will have format of:
42 | # PS-date-pid.LOG
43 | # where
44 | # date is in YYYYMMDD format
45 | # pid is the process id of the currently running powershell console.
46 | # creates it in the LOGS directory under persons userprofile directory.
47 | # sets global and environment variables so Stop-RecordSession can know the name of the transcript file
48 |
49 |
50 | ## RELATED LINKS
51 |
52 | Fill Related Links Here
53 |
54 |
--------------------------------------------------------------------------------
/Docs/Markdown/Stop-RecordSession.md:
--------------------------------------------------------------------------------
1 | ---
2 | external help file: poshfunctions-help.xml
3 | Module Name: poshfunctions
4 | online version:
5 | schema: 2.0.0
6 | ---
7 |
8 | # Stop-RecordSession
9 |
10 | ## SYNOPSIS
11 |
12 | Stops the running transcript
13 |
14 | ## SYNTAX
15 |
16 | ### __AllParameterSets
17 |
18 | ```
19 | Stop-RecordSession []
20 | ```
21 |
22 | ## DESCRIPTION
23 |
24 | Stops the running transcript
25 |
26 |
27 | ## EXAMPLES
28 |
29 |
30 | ## PARAMETERS
31 |
32 |
33 | ### CommonParameters
34 |
35 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
36 |
37 | ## NOTES
38 |
39 |
40 |
41 | ## RELATED LINKS
42 |
43 | Fill Related Links Here
44 |
45 |
--------------------------------------------------------------------------------
/Docs/Markdown/Switch-Mute.md:
--------------------------------------------------------------------------------
1 | ---
2 | external help file: poshfunctions-help.xml
3 | Module Name: poshfunctions
4 | online version:
5 | schema: 2.0.0
6 | ---
7 |
8 | # Switch-Mute
9 |
10 | ## SYNOPSIS
11 |
12 | Toggles speaker mute
13 |
14 | ## SYNTAX
15 |
16 | ### __AllParameterSets
17 |
18 | ```
19 | Switch-Mute []
20 | ```
21 |
22 | ## DESCRIPTION
23 |
24 | Toggles speaker mute
25 |
26 |
27 | ## EXAMPLES
28 |
29 |
30 | ## PARAMETERS
31 |
32 |
33 | ### CommonParameters
34 |
35 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
36 |
37 | ## NOTES
38 |
39 |
40 |
41 | ## RELATED LINKS
42 |
43 | Fill Related Links Here
44 |
45 |
--------------------------------------------------------------------------------
/Docs/Markdown/Test-IsAdmin.md:
--------------------------------------------------------------------------------
1 | ---
2 | external help file: poshfunctions-help.xml
3 | Module Name: poshfunctions
4 | online version:
5 | schema: 2.0.0
6 | ---
7 |
8 | # Test-IsAdmin
9 |
10 | ## SYNOPSIS
11 |
12 | Determines if you are running elevated (as Administrator)
13 |
14 | ## SYNTAX
15 |
16 | ### __AllParameterSets
17 |
18 | ```
19 | Test-IsAdmin []
20 | ```
21 |
22 | ## DESCRIPTION
23 |
24 | Determines if you are running elevated (as Administrator)
25 |
26 |
27 | ## EXAMPLES
28 |
29 | ### Example 1: EXAMPLE 1
30 |
31 | ```
32 | Test-IsAdmin
33 | ```
34 |
35 | Would return the following if the prompt was elevated.
36 | $True
37 |
38 |
39 |
40 |
41 |
42 | ### Example 2: EXAMPLE 2
43 |
44 | ```
45 | Test-IsAdmin -Verbose
46 | ```
47 |
48 | Would return the following if the prompt was elevated.
49 | VERBOSE: You have Administrator rights.
50 | True
51 |
52 |
53 |
54 |
55 |
56 |
57 | ## PARAMETERS
58 |
59 |
60 | ### CommonParameters
61 |
62 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
63 |
64 | ## OUTPUTS
65 |
66 | ### bool
67 |
68 |
69 |
70 | ## NOTES
71 |
72 | #source https://blogs.technet.microsoft.com/heyscriptingguy/2015/07/29/use-function-to-determine-elevation-of-powershell-console/
73 | # inspired by above, made some minor modifications like proving more output, making it an advanced function.
74 |
75 |
76 | ## RELATED LINKS
77 |
78 | Fill Related Links Here
79 |
80 |
--------------------------------------------------------------------------------
/Docs/Markdown/Test-IsCapsLock.md:
--------------------------------------------------------------------------------
1 | ---
2 | external help file: poshfunctions-help.xml
3 | Module Name: poshfunctions
4 | online version:
5 | schema: 2.0.0
6 | ---
7 |
8 | # Test-IsCapsLock
9 |
10 | ## SYNOPSIS
11 |
12 | Determines if the CapsLock key is on or not
13 |
14 | ## SYNTAX
15 |
16 | ### __AllParameterSets
17 |
18 | ```
19 | Test-IsCapsLock []
20 | ```
21 |
22 | ## DESCRIPTION
23 |
24 | Determines if the CapsLock key is on or not
25 |
26 |
27 | ## EXAMPLES
28 |
29 | ### Example 1: EXAMPLE 1
30 |
31 | ```
32 | Test-IsCapsLock
33 | ```
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 | ### Example 2: EXAMPLE 2
42 |
43 | ```
44 | Test-IsCapsLock -Verbose
45 | ```
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 | ## PARAMETERS
55 |
56 |
57 | ### CommonParameters
58 |
59 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
60 |
61 | ## OUTPUTS
62 |
63 | ### bool
64 |
65 |
66 |
67 | ## NOTES
68 |
69 | Inspiration: # Inspired by https://gallery.technet.microsoft.com/on-off-keyboad-lock-keys-6ba9885c
70 |
71 |
72 | ## RELATED LINKS
73 |
74 | Fill Related Links Here
75 |
76 |
--------------------------------------------------------------------------------
/Docs/Markdown/Test-IsNumLock.md:
--------------------------------------------------------------------------------
1 | ---
2 | external help file: poshfunctions-help.xml
3 | Module Name: poshfunctions
4 | online version:
5 | schema: 2.0.0
6 | ---
7 |
8 | # Test-IsNumLock
9 |
10 | ## SYNOPSIS
11 |
12 | Determines the state of NumLock
13 |
14 | ## SYNTAX
15 |
16 | ### __AllParameterSets
17 |
18 | ```
19 | Test-IsNumLock []
20 | ```
21 |
22 | ## DESCRIPTION
23 |
24 | Determines the state of the NumLock.
25 | Optional -Verbose argument
26 |
27 |
28 | ## EXAMPLES
29 |
30 | ### Example 1: EXAMPLE 1
31 |
32 | ```
33 | Test-IsNumLock
34 | ```
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 | ### Example 2: EXAMPLE 2
43 |
44 | ```
45 | Test-IsNumLock -Verbose
46 | ```
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 | ## PARAMETERS
56 |
57 |
58 | ### CommonParameters
59 |
60 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
61 |
62 | ## OUTPUTS
63 |
64 | ### bool
65 |
66 |
67 |
68 | ## NOTES
69 |
70 | Inspiration: # Inspired by https://gallery.technet.microsoft.com/on-off-keyboad-lock-keys-6ba9885c
71 |
72 |
73 | ## RELATED LINKS
74 |
75 | Fill Related Links Here
76 |
77 |
--------------------------------------------------------------------------------
/Docs/Markdown/Test-IsScrollLock.md:
--------------------------------------------------------------------------------
1 | ---
2 | external help file: poshfunctions-help.xml
3 | Module Name: poshfunctions
4 | online version:
5 | schema: 2.0.0
6 | ---
7 |
8 | # Test-IsScrollLock
9 |
10 | ## SYNOPSIS
11 |
12 | Determines if the ScrollLock key is on or not
13 |
14 | ## SYNTAX
15 |
16 | ### __AllParameterSets
17 |
18 | ```
19 | Test-IsScrollLock []
20 | ```
21 |
22 | ## DESCRIPTION
23 |
24 | Determines if the ScrollLock key is on or not
25 |
26 |
27 | ## EXAMPLES
28 |
29 | ### Example 1: EXAMPLE 1
30 |
31 | ```
32 | Test-IsScrollLock
33 | ```
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 | ### Example 2: EXAMPLE 2
42 |
43 | ```
44 | Test-IsScrollLock -Verbose
45 | ```
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 | ## PARAMETERS
55 |
56 |
57 | ### CommonParameters
58 |
59 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
60 |
61 | ## OUTPUTS
62 |
63 | ### bool
64 |
65 |
66 |
67 | ## NOTES
68 |
69 | Inspiration: # Inspired by https://gallery.technet.microsoft.com/on-off-keyboad-lock-keys-6ba9885c
70 |
71 |
72 | ## RELATED LINKS
73 |
74 | Fill Related Links Here
75 |
76 |
--------------------------------------------------------------------------------
/Docs/Markdown/Test-IsSpeakerMute.md:
--------------------------------------------------------------------------------
1 | ---
2 | external help file: poshfunctions-help.xml
3 | Module Name: poshfunctions
4 | online version:
5 | schema: 2.0.0
6 | ---
7 |
8 | # Test-IsSpeakerMute
9 |
10 | ## SYNOPSIS
11 |
12 | Determines the state of the speaker being mute
13 |
14 | ## SYNTAX
15 |
16 | ### __AllParameterSets
17 |
18 | ```
19 | Test-IsSpeakerMute []
20 | ```
21 |
22 | ## DESCRIPTION
23 |
24 | Determines the state of the speaker being mute
25 |
26 |
27 | ## EXAMPLES
28 |
29 | ### Example 1: EXAMPLE 1
30 |
31 | ```
32 | Test-IsSpeakerMute
33 | ```
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 | ### Example 2: EXAMPLE 2
42 |
43 | ```
44 | Test-IsSpeakerMute -Verbose
45 | ```
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 | ## PARAMETERS
55 |
56 |
57 | ### CommonParameters
58 |
59 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
60 |
61 | ## OUTPUTS
62 |
63 | ### bool
64 |
65 |
66 |
67 | ## NOTES
68 |
69 | Inspired by https://stackoverflow.com/questions/255419/how-can-i-mute-unmute-my-sound-from-powershell
70 |
71 |
72 | ## RELATED LINKS
73 |
74 | Fill Related Links Here
75 |
76 |
--------------------------------------------------------------------------------
/Docs/Markdown/Update-ExplorerIcon.md:
--------------------------------------------------------------------------------
1 | ---
2 | external help file: poshfunctions-help.xml
3 | Module Name: poshfunctions
4 | online version:
5 | schema: 2.0.0
6 | ---
7 |
8 | # Update-ExplorerIcon
9 |
10 | ## SYNOPSIS
11 |
12 | Updates Explorer icons
13 |
14 | ## SYNTAX
15 |
16 | ### __AllParameterSets
17 |
18 | ```
19 | Update-ExplorerIcon []
20 | ```
21 |
22 | ## DESCRIPTION
23 |
24 | Updates Explorer icons
25 |
26 |
27 | ## EXAMPLES
28 |
29 |
30 | ## PARAMETERS
31 |
32 |
33 | ### CommonParameters
34 |
35 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
36 |
37 | ## NOTES
38 |
39 | Source: https://community.idera.com/database-tools/powershell/powertips/b/tips/posts/refreshing-icon-cache
40 |
41 |
42 | ## RELATED LINKS
43 |
44 | Fill Related Links Here
45 |
46 |
--------------------------------------------------------------------------------
/Docs/Markdown/mklink.md:
--------------------------------------------------------------------------------
1 | ---
2 | external help file: poshfunctions-help.xml
3 | Module Name: poshfunctions
4 | online version:
5 | schema: 2.0.0
6 | ---
7 |
8 | # mklink
9 |
10 | ## SYNOPSIS
11 |
12 | mklink calls out to the Command Prompt (cmd.exe) and creates a link
13 |
14 | ## SYNTAX
15 |
16 | ### __AllParameterSets
17 |
18 | ```
19 | mklink []
20 | ```
21 |
22 | ## DESCRIPTION
23 |
24 | mklink calls out to the Command Prompt (cmd.exe) and creates a link
25 |
26 | mklink /?
27 | Creates a symbolic link.
28 |
29 | MKLINK [[/D] | [/H] | [/J]] Link Target
30 |
31 | /D Creates a directory symbolic link.
32 | Default is a file
33 | symbolic link.
34 | /H Creates a hard link instead of a symbolic link.
35 | /J Creates a Directory Junction.
36 | Link Specifies the new symbolic link name.
37 | Target Specifies the path (relative or absolute) that the new link
38 | refers to.
39 |
40 |
41 | ## EXAMPLES
42 |
43 | ### Example 1: EXAMPLE 1
44 |
45 | ```
46 | mklink LINK REALFILE
47 | ```
48 |
49 | would return
50 | symbolic link created for link <<===>> realfile
51 |
52 |
53 |
54 |
55 |
56 |
57 | ## PARAMETERS
58 |
59 | ## NOTES
60 |
61 | Passes all command line arguments to cmd.exe embedded command mklink
62 |
63 |
64 | ## RELATED LINKS
65 |
66 | Fill Related Links Here
67 |
68 |
--------------------------------------------------------------------------------
/Functions/Convert-ObjectToHashtable.ps1:
--------------------------------------------------------------------------------
1 | function Convert-ObjectToHashtable {
2 | <#
3 | .SYNOPSIS
4 | Takes a single object and converts its properties and values into a hashtable.
5 | .DESCRIPTION
6 | Takes a single object and converts its properties and values into a hashtable.
7 | .PARAMETER Object
8 | The Object to turn into a hashtable
9 | .PARAMETER ExcludeEmpty
10 | Switch to exclude empty properties
11 | .EXAMPLE
12 | Convert-ObjectToHashtable -object Value -ExcludeEmpty
13 | .NOTES
14 | Source: https://community.idera.com/database-tools/powershell/powertips/b/tips/posts/turning-objects-into-hash-tables-2
15 |
16 | # todo - need better example
17 | #>
18 |
19 | #region parameter
20 | [CmdletBinding(ConfirmImpact='Low')]
21 | [OutputType([hashtable[]])]
22 | [Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSReviewUnusedParameter','')]
23 | [Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseDeclaredVarsMoreThanAssignments','')]
24 | param
25 | (
26 | [Parameter(Mandatory,ValueFromPipeline)]
27 | [psobject] $object,
28 |
29 | [Switch]
30 | $ExcludeEmpty
31 | )
32 | #endregion parameter
33 |
34 | process {
35 | $object.PSObject.Properties |
36 | # sort property names
37 | Sort-Object -Property Name |
38 | # exclude empty properties if requested
39 | Where-Object { ($ExcludeEmpty.IsPresent -eq $false) -or ($null -ne $_.Value) } |
40 | ForEach-Object -begin {
41 | $hashtable = ([Ordered]@{}) } -process {
42 | $hashtable[$_.Name] = $_.Value
43 | } -end {
44 | Write-Output -InputObject $hashtable
45 | }
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/Functions/Convert-SecureStringToString.ps1:
--------------------------------------------------------------------------------
1 | function Convert-SecureStringToString {
2 | <#
3 | .SYNOPSIS
4 | Converts a SecureString value back to a plaintext string
5 | .DESCRIPTION
6 | Converts a SecureString value back to a plaintext string
7 | .PARAMETER SecureString
8 | The SecureString that you want to get back to being plaintext
9 | .EXAMPLE
10 | $SecureString = Read-Host -Prompt 'Enter a string' -AsSecureString
11 | #Let's say you entered the string 'Password' without quotes
12 |
13 | Convert-SecureStringToString -SecureString $SecureString
14 |
15 | Password
16 | .NOTES
17 | # inspired by: https://gallery.technet.microsoft.com/Execute-PowerShell-Script-38881dce
18 | #>
19 |
20 | [CmdletBinding(ConfirmImpact='Low')]
21 | [OutputType('string')]
22 | Param (
23 | [Parameter(Mandatory)]
24 | [securestring] $SecureString
25 | )
26 |
27 | begin {
28 | Write-Verbose -Message "Starting [$($MyInvocation.Mycommand)]"
29 | }
30 |
31 | process {
32 | $UserName = 'domain\user'
33 | $Credential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $UserName, $SecureString
34 | Write-Output -InputObject $Credential.GetNetworkCredential().Password
35 | }
36 |
37 | end {
38 | Write-Verbose -Message "Ending [$($MyInvocation.Mycommand)]"
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/Functions/ConvertFrom-Binary.ps1:
--------------------------------------------------------------------------------
1 | function ConvertFrom-Binary {
2 | <#
3 | .SYNOPSIS
4 | Convert an string or string array from binary to an integer
5 | .DESCRIPTION
6 | Convert an string or string array from binary to an integer
7 | .EXAMPLE
8 | ConvertFrom-Binary -Binary 100001
9 |
10 | 33
11 | .EXAMPLE
12 | ConvertFrom-Binary -Binary 1001 -IncludeInput
13 |
14 | Binary Number
15 | ------ ------
16 | 1001 9
17 | .NOTES
18 | Changed to use unsigned 64 bit values so that larger numbers can be processed
19 | #>
20 |
21 | #region Parameter
22 | [CmdletBinding(ConfirmImpact = 'Low')]
23 | [OutputType('int')]
24 | Param(
25 | [Parameter(Mandatory,HelpMessage='Enter a binary string', Position = 0, ValueFromPipeline)]
26 | [string[]] $Binary,
27 |
28 | [switch] $IncludeInput
29 | )
30 | #endregion Parameter
31 |
32 | begin {
33 | Write-Verbose -Message "Starting [$($MyInvocation.Mycommand)]"
34 | }
35 |
36 | process {
37 | foreach ($curBinary in $Binary) {
38 | $ReturnVal = [convert]::ToUInt64($curBinary, 2)
39 | if ($IncludeInput) {
40 | New-Object -TypeName psobject -Property ([ordered] @{
41 | Binary = $curBinary
42 | Number = $ReturnVal
43 | })
44 | } else {
45 | Write-Output -InputObject $ReturnVal
46 | }
47 | }
48 | }
49 |
50 | end {
51 | Write-Verbose -Message "Ending [$($MyInvocation.Mycommand)]"
52 | }
53 | }
54 |
--------------------------------------------------------------------------------
/Functions/ConvertFrom-Hex.ps1:
--------------------------------------------------------------------------------
1 | function ConvertFrom-Hex {
2 | <#
3 | .SYNOPSIS
4 | Convert an string or string array from hexadecimal to an integer
5 | .DESCRIPTION
6 | Convert an string or string array from hexadecimal to an integer
7 | .EXAMPLE
8 | ConvertFrom-Hex -Hex 'f0','20'
9 |
10 | 240
11 | 32
12 | .EXAMPLE
13 | ConvertFrom-Hex -Hex '0xff','20' -IncludeInput
14 |
15 | Hex Number
16 | --- ------
17 | 0xff 255
18 | 20 32
19 | .NOTES
20 | Changed to use unsigned 64 bit values so that larger numbers can be processed
21 | #>
22 |
23 | #region Parameter
24 | [CmdletBinding(ConfirmImpact = 'Low')]
25 | [OutputType('int')]
26 | Param(
27 | [Parameter(Mandatory,HelpMessage='Enter a hexadecimal string', Position = 0, ValueFromPipeline)]
28 | [string[]] $Hex,
29 |
30 | [switch] $IncludeInput
31 | )
32 | #endregion Parameter
33 |
34 | begin {
35 | Write-Verbose -Message "Starting [$($MyInvocation.Mycommand)]"
36 | }
37 |
38 | process {
39 | foreach ($curHex in $Hex) {
40 | $ReturnVal = [convert]::ToUInt64($curHex, 16)
41 | if ($IncludeInput) {
42 | New-Object -TypeName psobject -Property ([ordered] @{
43 | Hex = $curHex
44 | Number = $ReturnVal
45 | })
46 | } else {
47 | Write-Output -InputObject $ReturnVal
48 | }
49 | }
50 | }
51 |
52 | end {
53 | Write-Verbose -Message "Ending [$($MyInvocation.Mycommand)]"
54 | }
55 | }
56 |
--------------------------------------------------------------------------------
/Functions/ConvertFrom-Xml.ps1:
--------------------------------------------------------------------------------
1 | function ConvertFrom-XML {
2 | <#
3 | .SYNOPSIS
4 | Convert XML to an object
5 | .DESCRIPTION
6 | Convert XML to an object
7 | .PARAMETER XML
8 | The XML that you want converted
9 | .EXAMPLE
10 | [xml] $xml = @'
11 |
12 |
13 |
18 |
19 | '@
20 |
21 | ConvertFrom-XML -XML $xml
22 |
23 | Would return
24 | ComputerName Path UNCPath
25 | ------------ ---- -------
26 | DemoLaptop c:\Temp \\DemoLaptop\c$\Temp
27 | .NOTES
28 | Only tested with single level XML content. Not tested with hierarchical XML content.
29 | #>
30 |
31 | [CmdletBinding(ConfirmImpact='None')]
32 | param
33 | (
34 | [xml] $XML
35 | )
36 | begin {
37 | Write-Verbose -Message "Starting [$($MyInvocation.Mycommand)]"
38 | }
39 |
40 | process {
41 | foreach ($Object in @($XML.Objects.Object)) {
42 | $PSObject = New-Object -TypeName PSObject
43 | foreach ($Property in @($Object.Property)) {
44 | $PSObject | Add-Member -membertype NoteProperty -name $Property.Name -value $Property.InnerText
45 | }
46 | Write-Output -InputObject $PSObject
47 | }
48 | }
49 |
50 | end {
51 | Write-Verbose -Message "Ending [$($MyInvocation.Mycommand)]"
52 | }
53 |
54 | }
55 |
--------------------------------------------------------------------------------
/Functions/FileSizeAbove.ps1:
--------------------------------------------------------------------------------
1 | filter FileSizeAbove {
2 | <#
3 | .SYNOPSIS
4 | To use as a filter against Get-ChildItem
5 | .DESCRIPTION
6 | To use as a filter against Get-ChildItem
7 | .PARAMETER Size
8 | The minimum size a file can be
9 | .EXAMPLE
10 | Assume I have 1 large file in c:\temp, and many smaller files.
11 |
12 | dir c:\temp | FileSizeAbove -Size 1GB | Select-Object FullName, LastWriteTime, Length
13 |
14 | FullName LastWriteTime Length
15 | -------- ------------- ------
16 | C:\temp\install.wim 3/5/2020 11:39:23 AM 4314799742
17 | .NOTES
18 | Could NOT make this an advanced function
19 | #>
20 |
21 |
22 | param
23 | (
24 | [int] $Size
25 | )
26 |
27 | if ($_.Length -ge $Size) {
28 | $_
29 | }
30 |
31 | }
32 |
--------------------------------------------------------------------------------
/Functions/FileSizeBelow.ps1:
--------------------------------------------------------------------------------
1 | filter FileSizeBelow {
2 | <#
3 | .SYNOPSIS
4 | To use as a filter against Get-ChildItem
5 | .DESCRIPTION
6 | To use as a filter against Get-ChildItem
7 | .PARAMETER Size
8 | The maximum size a file can be
9 | .EXAMPLE
10 | Assume I have 1 small file in c:\temp, and many larger files.
11 |
12 | dir c:\temp -File | FileSizeBelow -Size 1KB | Select-Object FullName, LastWriteTime, Length
13 |
14 | FullName LastWriteTime Length
15 | -------- ------------- ------
16 | C:\temp\log.log 12/8/2019 9:55:07 PM 186
17 | .NOTES
18 | Could NOT make this an advanced function
19 | #>
20 |
21 |
22 | param
23 | (
24 | [int] $Size
25 | )
26 |
27 | if ($_.length -le $Size) {
28 | $_
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/Functions/Get-ConsoleWindowSize.ps1:
--------------------------------------------------------------------------------
1 | function Get-ConsoleWindowSize {
2 | <#
3 | .SYNOPSIS
4 | Gets the current the window size and buffer size of the current console window
5 | .DESCRIPTION
6 | Gets the current the window size and buffer size of the current console window
7 | .EXAMPLE
8 | Get-ConsoleWindowSize
9 |
10 | BufferWidth BufferHeight WindowWidth WindowHeight
11 | ----------- ------------ ----------- ------------
12 | 196 32766 196 21
13 | #>
14 |
15 | [CmdletBinding()]
16 | param()
17 |
18 | begin {
19 | Write-Verbose -Message "Starting [$($MyInvocation.MyCommand)]"
20 | }
21 |
22 | process {
23 | $console = $Host.UI.RawUI
24 |
25 | $result = New-Object -TypeName psobject -Property ([ordered] @{
26 | BufferWidth = $console.BufferSize.Width
27 | BufferHeight = $console.BufferSize.Height
28 | WindowWidth = $console.WindowSize.Width
29 | WindowHeight = $console.WindowSize.Height
30 | })
31 | Write-Output -InputObject $result
32 | }
33 |
34 | end {
35 | Write-Verbose -Message "Ending [$($MyInvocation.MyCommand)]"
36 | }
37 |
38 | }
39 |
--------------------------------------------------------------------------------
/Functions/Get-DaysOfWeek.ps1:
--------------------------------------------------------------------------------
1 | function Get-DaysOfWeek {
2 | <#
3 | .SYNOPSIS
4 | Gets the days of the week
5 | .DESCRIPTION
6 | Gets the days of the week
7 | .PARAMETER Short
8 | Switch that will return the short name of the days of the week
9 | .NOTES
10 | Renamed from Show-DaysOfWeek and incorporated functionality of Show-ShortDaysOfWeek
11 | #>
12 |
13 | [CmdletBinding(ConfirmImpact='None')]
14 | [Alias('Show-DaysOfWeek')] #FunctionAlias
15 | [OutputType([string[]])]
16 | param (
17 | [switch] $Short
18 | )
19 |
20 | begin {
21 | Write-Verbose -Message "Starting [$($MyInvocation.Mycommand)]"
22 | }
23 |
24 | process {
25 | if ($Short -and $PSBoundParameters.ContainsKey('Short')) {
26 | [System.Globalization.DateTimeFormatInfo]::CurrentInfo.AbbreviatedDayNames
27 | } else {
28 | [System.Globalization.DateTimeFormatInfo]::CurrentInfo.DayNames
29 | }
30 | }
31 |
32 | end {
33 | Write-Verbose -Message "Ending [$($MyInvocation.Mycommand)]"
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/Functions/Get-DisplayBrightness.ps1:
--------------------------------------------------------------------------------
1 | function Get-DisplayBrightness {
2 | <#
3 | .SYNOPSIS
4 | To get the current brightness of the display
5 | .DESCRIPTION
6 | To get the current brightness of the display
7 | .PARAMETER IncludeInput
8 | Switch to display the full WMI path to the current value
9 | .EXAMPLE
10 | Get-DisplayBrightness
11 |
12 | 60
13 | .EXAMPLE
14 | Get-DisplayBrightness -IncludeInput
15 |
16 | Namespace Class CurrentBrightness
17 | --------- ----- -----------------
18 | root/WMI WmiMonitorBrightness 60
19 | .EXAMPLE
20 | Set-Display -Brightness 100
21 | Get-DisplayBrightness
22 |
23 | 100
24 | .NOTES
25 | Inspired by: https://community.idera.com/database-tools/powershell/powertips/b/tips/posts/check-monitor-brightness
26 | #>
27 |
28 | #region parameter
29 | [CmdletBinding()]
30 | [OutputType('int')]
31 | param (
32 | [switch] $IncludeInput
33 | )
34 | #endregion parameter
35 |
36 | begin {
37 | Write-Verbose -Message "Starting [$($MyInvocation.Mycommand)]"
38 | }
39 |
40 | process {
41 | $Cim = Get-CimInstance -Namespace 'root/WMI' -Class 'WmiMonitorBrightness'
42 | if ($IncludeInput) {
43 | New-Object psobject -Prop ([ordered] @{
44 | Namespace = 'root/WMI'
45 | Class = 'WmiMonitorBrightness'
46 | CurrentBrightness = $Cim.CurrentBrightness
47 | })
48 | } else {
49 | write-output $Cim.CurrentBrightness
50 | }
51 | }
52 |
53 | end {
54 | Write-Verbose -Message "Ending [$($MyInvocation.Mycommand)]"
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/Functions/Get-FileWithLeadingSpace.ps1:
--------------------------------------------------------------------------------
1 | function Get-FileWithLeadingSpace {
2 | <#
3 | .SYNOPSIS
4 | To find files that begin with a space character
5 | .DESCRIPTION
6 | To find files that begin with a space character
7 | .PARAMETER Path
8 | The path where you want to begin looking
9 | .EXAMPLE
10 | Get-FileWithLeadingSpace -path Value
11 | Describe what this call does
12 |
13 | #>
14 |
15 | [CmdletBinding(ConfirmImpact='None')]
16 | Param([string] $Path=$PWD)
17 |
18 | begin {
19 | Write-Verbose -Message "Starting [$($MyInvocation.Mycommand)]"
20 | }
21 |
22 | process {
23 | Get-ChildItem -Path $Path -Recurse -ErrorAction SilentlyContinue |
24 | foreach-object {
25 | if ($_.name.length -ne $_.name.trim().length) {
26 | Write-Output -InputObject $_.FullName
27 | }
28 | }
29 | }
30 |
31 | end {
32 | Write-Verbose -Message "Ending [$($MyInvocation.Mycommand)]"
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/Functions/Get-Font.ps1:
--------------------------------------------------------------------------------
1 | function Get-Font {
2 | <#
3 | .SYNOPSIS
4 | Gets the fonts currently loaded on the system
5 | .DESCRIPTION
6 | Uses the type System.Windows.Media.Fonts static property SystemFontFamilies,
7 | to retrieve all of the fonts loaded by the system. If the Fonts type is not found,
8 | the PresentationCore assembly will be automatically loaded
9 | .PARAMETER Font
10 | A wildcard to search for font names
11 | .EXAMPLE
12 | # Get All Fonts
13 | Get-Font
14 | .EXAMPLE
15 | # Get All Lucida Fonts
16 | Get-Font *Lucida*
17 | .NOTES
18 | This function will return the fonts that were present at the launch of the Powershell session.
19 | If fonts are either added or deleted this function will not detect them until you launch
20 | a new Powershell session.
21 |
22 | Slight code fix in Where-Object logic. Previously it would return zero results
23 | #>
24 |
25 | [CmdletBinding(ConfirmImpact = 'None')]
26 | [Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSReviewUnusedParameter', '')]
27 | param(
28 | [string] $Font = ''
29 | )
30 |
31 | begin {
32 | Write-Verbose -Message "Starting [$($MyInvocation.Mycommand)]"
33 | }
34 |
35 | process {
36 | if (-not ('Windows.Media.Fonts' -as [Type])) {
37 | $null = Add-Type -AssemblyName 'PresentationCore'
38 | }
39 | $null = Add-Type -AssemblyName System.Drawing
40 | $FontList = (New-Object -TypeName System.Drawing.Text.InstalledFontCollection).Families.Name
41 | $FontList = $FontList | Sort-Object | Select-Object -Unique
42 | $FontList | Where-Object { $_ -like "*$Font*" }
43 | }
44 |
45 | end {
46 | Write-Verbose -Message "Ending [$($MyInvocation.Mycommand)]"
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/Functions/Get-List.ps1:
--------------------------------------------------------------------------------
1 | function Get-List {
2 | <#
3 | .SYNOPSIS
4 | Returns an array given an indeterminate number of command line arguments.
5 | .DESCRIPTION
6 | Returns an array given an indeterminate number of command line arguments.
7 | .EXAMPLE
8 | $Colors = Get-List blue red green
9 |
10 | Creates an array of 3 string elements: 'blue', 'red', 'green'
11 | .NOTES
12 | Source Windows PowerShell in Action, 2nd edition, page 239, function ql
13 | #>
14 |
15 | $args
16 | }
17 |
--------------------------------------------------------------------------------
/Functions/Get-Magic8Ball.ps1:
--------------------------------------------------------------------------------
1 | function Get-Magic8Ball {
2 | <#
3 | .SYNOPSIS
4 | Get one of the answers from the magic 8 ball.
5 | .DESCRIPTION
6 | Get one of the answers from the magic 8 ball. The 20 possible answers are:
7 |
8 | As I see it, yes.
9 | Ask again later.
10 | Better not tell you now.
11 | Cannot predict now.
12 | Concentrate and ask again.
13 | Don't count on it.
14 | It is certain.
15 | It is decidedly so.
16 | Most likely.
17 | My reply is no.
18 | My sources say no.
19 | Outlook not so good.
20 | Outlook good.
21 | Reply hazy, try again.
22 | Signs point to yes.
23 | Very doubtful.
24 | Without a doubt.
25 | Yes.
26 | Yes - definitely.
27 | You may rely on it.
28 | .EXAMPLE
29 | Get-Magic8Ball
30 |
31 | Reply hazy, try again.
32 | #>
33 |
34 | $Answer = @(
35 | 'As I see it, yes.',
36 | 'Ask again later.',
37 | 'Better not tell you now.',
38 | 'Cannot predict now.',
39 | 'Concentrate and ask again.',
40 | "Don't count on it.",
41 | 'It is certain.',
42 | 'It is decidedly so.',
43 | 'Most likely.',
44 | 'My reply is no.',
45 | 'My sources say no.',
46 | 'Outlook not so good.',
47 | 'Outlook good.',
48 | 'Reply hazy, try again.',
49 | 'Signs point to yes.',
50 | 'Very doubtful.',
51 | 'Without a doubt.',
52 | 'Yes.',
53 | 'Yes - definitely.',
54 | 'You may rely on it.'
55 | )
56 |
57 | $Answer | Get-Random
58 |
59 | }
60 |
--------------------------------------------------------------------------------
/Functions/Get-Months.ps1:
--------------------------------------------------------------------------------
1 | function Get-Months {
2 | <#
3 | .SYNOPSIS
4 | Gets the months
5 | .DESCRIPTION
6 | Gets the months
7 | .PARAMETER Short
8 | Switch to show the short names as opposed to the full names of the months
9 | #>
10 |
11 | [CmdletBinding(ConfirmImpact='None')]
12 | [Alias('ShowMonth')] #FunctionAlias
13 | param (
14 | [switch] $Short
15 | )
16 | begin {
17 | Write-Verbose -Message "Starting [$($MyInvocation.Mycommand)]"
18 | }
19 |
20 | process {
21 | if ($Short -and $PSBoundParameters.ContainsKey('Short')) {
22 | [System.Globalization.DateTimeFormatInfo]::CurrentInfo.AbbreviatedMonthNames
23 | } else {
24 | [Globalization.DatetimeFormatInfo]::CurrentInfo.MonthNames
25 | }
26 | }
27 |
28 | end {
29 | Write-Verbose -Message "Ending [$($MyInvocation.Mycommand)]"
30 | }
31 |
32 | }
33 |
--------------------------------------------------------------------------------
/Functions/Get-NetworkCredential.ps1:
--------------------------------------------------------------------------------
1 | function Get-NetworkCredential {
2 | <#
3 | .SYNOPSIS
4 | Returns a [System.Net.NetworkCredential] given a passed [PSCredential] parameter
5 | .DESCRIPTION
6 | Returns a [System.Net.NetworkCredential] given a passed [PSCredential] parameter
7 | .PARAMETER Credential
8 | A mandatory parameter of type [PSCredential]
9 | .EXAMPLE
10 | $NetworkCredential = Get-NetworkCredential -Credential $cred
11 | .INPUTS
12 | 'PSCredential'
13 | .OUTPUTS
14 | 'System.Net.NetworkCredential'
15 | .NOTES
16 | Medium to High impact as this function will return the password, albeit hidden from default view
17 | #>
18 |
19 | [CmdletBinding(ConfirmImpact = 'Medium')]
20 | [OutputType('System.Net.NetworkCredential')]
21 | Param
22 | (
23 | [Parameter(Mandatory, Position = 0)]
24 | [PSCredential] $Credential
25 | )
26 | #endregion parameter
27 |
28 | begin {
29 | Write-Verbose -Message "Starting [$($MyInvocation.Mycommand)]"
30 | }
31 |
32 | process {
33 | $Credential.GetNetworkCredential()
34 | }
35 |
36 | end {
37 | Write-Verbose -Message "Ending [$($MyInvocation.Mycommand)]"
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/Functions/Get-RandomHexDigit.ps1:
--------------------------------------------------------------------------------
1 | function Get-RandomHexDigit {
2 | <#
3 | .SYNOPSIS
4 | Gets a random hex digit, or a string of hex digits
5 | .DESCRIPTION
6 | Gets a random hex digit, or a string of hex digits
7 | .PARAMETER Length
8 | Determines number of hexadecimal digits, defaults to 1
9 | .PARAMETER IncludePrefix
10 | Switch which will prepend the result with '0x'
11 | .PARAMETER UpperCase
12 | Switch will make hexadecimal digits uppercase, otherwise they return as lowercase
13 | .EXAMPLE
14 | Get-RandomHexDigit -Length 4
15 |
16 | f293
17 | .EXAMPLE
18 | Get-RandomHexDigit -Length 2 -IncludePrefix
19 |
20 | 0x2d
21 | .EXAMPLE
22 | Get-RandomHexDigit -Length 6 -UpperCase
23 |
24 | 92C08A
25 | #>
26 |
27 | [CmdletBinding(ConfirmImpact='None')]
28 | param
29 | (
30 | [Parameter(Position=0)]
31 | [ValidateRange(1,16)]
32 | [int] $Length = 1,
33 |
34 | [switch] $IncludePrefix,
35 |
36 | [switch] $UpperCase
37 | )
38 |
39 | begin {
40 | Write-Verbose -Message "Starting [$($MyInvocation.Mycommand)]"
41 | }
42 |
43 | process {
44 | $ReturnVal = ( 1..$Length | foreach-object {'{0:x}' -f (Get-Random -Maximum 16)}) -join ''
45 | if ($UpperCase) {
46 | $ReturnVal = $ReturnVal.ToUpper()
47 | }
48 | if ($IncludePrefix) {
49 | $ReturnVal = '0x' + $ReturnVal
50 | }
51 | Write-Output -InputObject $ReturnVal
52 | }
53 |
54 | end {
55 | Write-Verbose -Message "Ending [$($MyInvocation.Mycommand)]"
56 | }
57 | }
58 |
--------------------------------------------------------------------------------
/Functions/Get-RandomMacAddress.ps1:
--------------------------------------------------------------------------------
1 | function Get-RandomMacAddress {
2 | <#
3 | .SYNOPSIS
4 | Gets a random sequence of 12 hexadecimal digits
5 |
6 | .DESCRIPTION
7 | Gets a random sequence of 12 hexadecimal digits
8 |
9 | .EXAMPLE
10 | Get-RandomMacAddress
11 |
12 | # Would return a result like
13 | 6eee1e05cb29
14 | #>
15 |
16 | [CmdletBinding(ConfirmImpact='None')]
17 | param()
18 |
19 | (1..12 | ForEach-Object {'{0:x}' -f (Get-Random -Maximum 16)}) -join ''
20 | }
21 |
--------------------------------------------------------------------------------
/Functions/Get-SpeakerVolume.ps1:
--------------------------------------------------------------------------------
1 | function Get-SpeakerVolume {
2 | <#
3 | .SYNOPSIS
4 | Gets the current speaker volume.
5 | .DESCRIPTION
6 | Gets the current speaker volume.
7 | .PARAMETER Volume
8 | An integer value from 0 to 100 that will set the volume level of the speaker.
9 | .EXAMPLE
10 | Set-SpeakerVolume -Volume 80
11 |
12 | Will display nothing and set the speaker to 80%
13 | .EXAMPLE
14 | Set-SpeakerVolume -Volume 97 -Verbose
15 |
16 | Will diplay the following while setting the speaker to 96%
17 | VERBOSE: You specified the speaker volume should be 97%
18 | VERBOSE: Rounding down to 96%
19 | VERBOSE: Turning volume down to 0%
20 | VERBOSE: Turning volume up to 96%
21 | .NOTES
22 | Renamed function from Set-Speaker to Set-SpeakerVolume to be clearer as to the purpose. Set an alias for the
23 | function to 'Set-Speaker' for backward compatibility.
24 |
25 | #>
26 |
27 | [CmdletBinding()]
28 | [Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseShouldProcessForStateChangingFunctions', '')]
29 | param()
30 |
31 | begin {
32 | Write-Verbose -Message "Starting [$($MyInvocation.Mycommand)]"
33 | }
34 |
35 | process {
36 | [int] ([PFAudio]::Volume * 100)
37 |
38 | }
39 |
40 | end {
41 | Write-Verbose -Message "Ending [$($MyInvocation.Mycommand)]"
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/Functions/Get-String.ps1:
--------------------------------------------------------------------------------
1 | function Get-String {
2 | <#
3 | .SYNOPSIS
4 | Returns a string given an indeterminate number of command line arguments.
5 | .DESCRIPTION
6 | Returns a string given an indeterminate number of command line arguments.
7 | .EXAMPLE
8 | $String = Get-String Hello World 1
9 |
10 | Creates a variable containing the string 'Hello World 1'
11 | .NOTES
12 | Source Windows PowerShell in Action, 2nd edition, page 239, function qs
13 | #>
14 |
15 | "$args"
16 | }
17 |
--------------------------------------------------------------------------------
/Functions/Lock-Workstation.ps1:
--------------------------------------------------------------------------------
1 | function Lock-Workstation {
2 | <#
3 | .SYNOPSIS
4 | Locks the workstation
5 | .DESCRIPTION
6 | Locks the workstation and requires authentication afterwards
7 | .EXAMPLE
8 | Lock-Workstation
9 |
10 | Would lock the workstation
11 | #>
12 |
13 | #region parameter
14 | [CmdletBinding(ConfirmImpact='Medium')]
15 | param()
16 | #endregion parameter
17 |
18 | rundll32.exe user32.dll,LockWorkStation
19 | }
20 |
--------------------------------------------------------------------------------
/Functions/New-TelephoneUri.ps1:
--------------------------------------------------------------------------------
1 | function New-TelephoneUri {
2 | <#
3 | .SYNOPSIS
4 | Creates appropriately formatted text for an Telephone URI that can be embedded in a QR code
5 | .DESCRIPTION
6 | Creates appropriately formatted text for an Telephone URI that can be embedded in a QR code
7 | .PARAMETER Telephone
8 | The telephone number for the URI text
9 | .EXAMPLE
10 | New-TelephoneUri -telephone '518.555.1212'
11 |
12 | TEL:518.555.1212
13 | .NOTES
14 | Inspired by https://support.seagullscientific.com/hc/en-us/community/posts/4415554566167-QR-Code-SMSTO-multiple-recipients>
15 | .LINK
16 | New-QRCode
17 | #>
18 |
19 | [CmdletBinding()]
20 | param (
21 | [Parameter(Mandatory, HelpMessage = 'Enter the Telephone number', Position = 0, ValueFromPipeline)]
22 | [string] $Telephone
23 | )
24 |
25 | begin {
26 | Write-Verbose -Message "Starting [$($MyInvocation.Mycommand)]"
27 | }
28 |
29 | process {
30 | $ReturnVal = 'TEL:' + $Telephone
31 | Write-Output -InputObject $ReturnVal
32 | }
33 |
34 | end {
35 | Write-Verbose -Message "Ending [$($MyInvocation.Mycommand)]"
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/Functions/Remove-Trailing.ps1:
--------------------------------------------------------------------------------
1 | filter Remove-Trailing {
2 | <#
3 | .SYNOPSIS
4 | Removes trailing spaces from a string or array of strings.
5 | .DESCRIPTION
6 | Removes trailing spaces from a string or array of strings.
7 | .PARAMETER String
8 | A string or array of strings that may have trailing spaces. Can also accept input from the pipeline.
9 | .EXAMPLE
10 | "[$(Remove-Trailing -String 'This has trailing spaces ')]"
11 |
12 | [This has trailing spaces]
13 | #>
14 |
15 | #region Parameter
16 | [CmdletBinding(ConfirmImpact='None')]
17 | [OutputType([string[]])]
18 | [Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseShouldProcessForStateChangingFunctions','')]
19 | Param(
20 | [Parameter(Mandatory, HelpMessage = 'Enter a string, even with trailing spaces', Position = 0, ValueFromPipeline)]
21 | [string[]] $String
22 | )
23 | #endregion Parameter
24 |
25 | begin {
26 | Write-Verbose -Message "Starting [$($MyInvocation.Mycommand)]"
27 | }
28 |
29 | process {
30 | foreach ($s in $String) {
31 | $s | out-string | foreach-object { ($_).TrimEnd() }
32 | }
33 | }
34 |
35 | end {
36 | Write-Verbose -Message "Ending [$($MyInvocation.Mycommand)]"
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/Functions/Reset-Desktop.ps1:
--------------------------------------------------------------------------------
1 | function Reset-Desktop {
2 | <#
3 | .SYNOPSIS
4 | Forces a reset of the desktop
5 | .DESCRIPTION
6 | Forces a reset of the desktop and does things like refresh icons
7 | .EXAMPLE
8 | Reset-Desktop
9 |
10 | Would reset the desktop
11 | #>
12 |
13 | #region parameter
14 | [CmdletBinding(ConfirmImpact='Medium')]
15 | [Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseShouldProcessForStateChangingFunctions','')]
16 | param()
17 | #endregion parameter
18 |
19 | begin {
20 | Write-Verbose -Message "Starting [$($MyInvocation.Mycommand)]"
21 | }
22 |
23 | process {
24 | ie4uinit.exe -show
25 | }
26 |
27 | end {
28 | Write-Verbose -Message "Ending [$($MyInvocation.Mycommand)]"
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/Functions/Set-SpeakerMute.ps1:
--------------------------------------------------------------------------------
1 | function Set-SpeakerMute {
2 | <#
3 | .SYNOPSIS
4 | Sets the state of the speaker being mute. If you pass $true to function it will turn on Mute.
5 | .DESCRIPTION
6 | Sets the state of the speaker being mute. If you pass $true to function it will turn on Mute.
7 | .PARAMETER On
8 | A switch parameter to determine if you want SpeakerMute on.
9 | .PARAMETER Off
10 | A switch parameter to determine if you want SpeakerMute off.
11 | .EXAMPLE
12 | Set-SpeakerMute -On
13 | Will turn on speaker mute
14 | .EXAMPLE
15 | Set-SpeakerMute -Off
16 | Will turn off speaker mute
17 | .NOTES
18 | Inspired by https://stackoverflow.com/questions/255419/how-can-i-mute-unmute-my-sound-from-powershell
19 | #>
20 |
21 | [CmdletBinding(ConfirmImpact = 'Low', SupportsShouldProcess, DefaultParameterSetName = 'On')]
22 | [OutputType($null)]
23 | [Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSReviewUnusedParameter', '')]
24 | Param(
25 | [parameter(ParameterSetName = 'On')]
26 | [switch] $On,
27 |
28 | [parameter(ParameterSetName = 'Off')]
29 | [switch] $Off
30 | )
31 |
32 | begin {
33 | Write-Verbose -Message "Starting [$($MyInvocation.Mycommand)]"
34 | Write-Verbose -Message "ParameterSetName [$($PsCmdlet.ParameterSetName)]"
35 | }
36 |
37 | process {
38 | if ($On) {
39 | [PFAudio]::Mute = $true
40 | } else {
41 | [PFAudio]::Mute = $false
42 | }
43 | }
44 |
45 | end {
46 | Write-Verbose -Message "Ending [$($MyInvocation.Mycommand)]"
47 | }
48 |
49 | } #EndFunction Set-SpeakerMute
50 |
--------------------------------------------------------------------------------
/Functions/Set-SpeakerVolume.ps1:
--------------------------------------------------------------------------------
1 | function Set-SpeakerVolume {
2 | <#
3 | .SYNOPSIS
4 | Sets the speaker volume.
5 | .DESCRIPTION
6 | Sets the speaker volume.
7 | .PARAMETER Volume
8 | An integer value from 0 to 100 that will set the volume level of the speaker.
9 | .EXAMPLE
10 | Set-SpeakerVolume -Volume 80
11 |
12 | Will display nothing and set the speaker to 80%
13 | .EXAMPLE
14 | Set-SpeakerVolume -Volume 60 -Verbose
15 |
16 | VERBOSE: Starting [Set-SpeakerVolume]
17 | VERBOSE: Setting speaker volume to [60]
18 | VERBOSE: Ending [Set-SpeakerVolume]
19 | .NOTES
20 | Renamed function from Set-Speaker to Set-SpeakerVolume to be clearer as to the purpose. Set an alias for the
21 | function to 'Set-Speaker' for backward compatibility.
22 |
23 | Inspired by https://stackoverflow.com/questions/255419/how-can-i-mute-unmute-my-sound-from-powershell
24 | #>
25 |
26 | [CmdletBinding(ConfirmImpact = 'Low')]
27 | [Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseShouldProcessForStateChangingFunctions', '')]
28 | [alias('Set-Speaker')] #FunctionAlias
29 | param(
30 | [Parameter(ValueFromPipeline, Position = 0)]
31 | [ValidateRange(0, 100)]
32 | [int] $Volume = 50
33 | )
34 |
35 | begin {
36 | Write-Verbose -Message "Starting [$($MyInvocation.Mycommand)]"
37 | }
38 |
39 | process {
40 | Write-Verbose -Message "Setting speaker volume to [$Volume]"
41 | [PFAudio]::Volume = [single] ($Volume / 100)
42 | }
43 |
44 | end {
45 | Write-Verbose -Message "Ending [$($MyInvocation.Mycommand)]"
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/Functions/Set-Type.ps1:
--------------------------------------------------------------------------------
1 | filter Set-Type {
2 | <#
3 | .SYNOPSIS
4 | Sets the data type of a property given the property name and the data type.
5 | .DESCRIPTION
6 | Sets the data type of a property given the property name and the data type.
7 | This is needed as cmdlets such as Import-CSV pulls everything in as a string
8 | datatype so you can't sort numerically or date wise.
9 | .PARAMETER TypeHash
10 | A hashtable of property names and their associated datatype
11 | .NOTES
12 | # inspired by https://mjolinor.wordpress.com/2011/05/01/typecasting-imported-csv-data/
13 |
14 | Changes
15 | * reworked with begin, process, end blocks
16 | * reworked logic to work properly with pwsh and powershell
17 | .EXAMPLE
18 | $csv = Import-CSV -Path .\test.csv | Set-Type -TypeHash @{ 'LastWriteTime' = 'DateTime'}
19 | .LINK
20 | about_Properties
21 | #>
22 |
23 | [cmdletbinding()]
24 | [Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseShouldProcessForStateChangingFunctions','')]
25 | param(
26 | [parameter(ValueFromPipeLine)]
27 | [psobject[]] $InputObject,
28 |
29 | [hashtable] $TypeHash
30 | )
31 |
32 | begin {
33 | Write-Verbose -Message "Starting [$($MyInvocation.Mycommand)]"
34 | }
35 |
36 | process {
37 | foreach ($curObject in $InputObject) {
38 | foreach ($key in $($TypeHash.keys)) {
39 | $curObject.$key = $($curObject.$key -as $($TypeHash[$key]))
40 | }
41 | $curObject
42 | }
43 | }
44 |
45 | end {
46 | Write-Verbose -Message "Ending [$($MyInvocation.Mycommand)]"
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/Functions/Stop-RecordSession.ps1:
--------------------------------------------------------------------------------
1 | Function Stop-RecordSession {
2 | <#
3 | .SYNOPSIS
4 | Stops the running transcript
5 | .DESCRIPTION
6 | Stops the running transcript
7 | #>
8 |
9 | [CmdletBinding(ConfirmImpact = 'Medium')]
10 | [Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidGlobalVars', '')]
11 | [Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseShouldProcessForStateChangingFunctions', '')]
12 | param ()
13 |
14 | begin {
15 | Write-Verbose -Message "Starting [$($MyInvocation.Mycommand)]"
16 | }
17 |
18 | process {
19 | Stop-Transcript
20 | $LogFile = $global:PSLOG
21 | $LogFile_Ascii = $LogFile + '-Ascii'
22 | 'Stop-RecordSession : Running custom Stop-RecordSession function to Stop-Transcript and convert it to Ascii' | Out-File -FilePath $LogFile -Append -Encoding Ascii
23 | 'Stop-RecordSession : Any further commands not recorded' | Out-File -FilePath $LogFile -Append -Encoding Ascii
24 | $(Get-Content -Path $LogFile) -replace "`0", '' | Out-File -FilePath $LogFile_Ascii -Encoding Ascii
25 | Remove-Item -Path $LogFile
26 | Rename-Item -Path $LogFile_Ascii -NewName $LogFile
27 | }
28 |
29 | end {
30 | Write-Verbose -Message "Ending [$($MyInvocation.Mycommand)]"
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/Functions/Switch-Mute.ps1:
--------------------------------------------------------------------------------
1 | function Switch-Mute {
2 | <#
3 | .SYNOPSIS
4 | Toggles speaker mute
5 | .DESCRIPTION
6 | Toggles speaker mute
7 | #>
8 |
9 | # toto Change any references of [New-Object -ComObject WScript.Shell] as it's being deprecated. Replace with [System.Windows.Forms*] which will continue to be supported
10 |
11 | [CmdletBinding(ConfirmImpact='Low')]
12 | Param ()
13 |
14 | begin {
15 | Write-Verbose -Message "Starting [$($MyInvocation.Mycommand)]"
16 | }
17 |
18 | process {
19 | $wshShell = New-Object -ComObject wscript.shell
20 | $wshShell.SendKeys([char]173)
21 | }
22 |
23 | end {
24 | Write-Verbose -Message "Ending [$($MyInvocation.Mycommand)]"
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/Functions/Test-IsAdmin.ps1:
--------------------------------------------------------------------------------
1 | function Test-IsAdmin {
2 | <#
3 | .SYNOPSIS
4 | Determines if you are running elevated (as Administrator)
5 | .DESCRIPTION
6 | Determines if you are running elevated (as Administrator)
7 | .EXAMPLE
8 | Test-IsAdmin
9 |
10 | Would return the following if the prompt was elevated.
11 | $True
12 | .EXAMPLE
13 | Test-IsAdmin -Verbose
14 |
15 | Would return the following if the prompt was elevated.
16 | VERBOSE: You have Administrator rights.
17 | True
18 | .NOTES
19 | #source https://blogs.technet.microsoft.com/heyscriptingguy/2015/07/29/use-function-to-determine-elevation-of-powershell-console/
20 | # inspired by above, made some minor modifications like proving more output, making it an advanced function.
21 | #>
22 |
23 | #region Parameter
24 | [CmdletBinding(ConfirmImpact = 'None')]
25 | [OutputType('bool')]
26 | Param()
27 | #endregion Parameter
28 |
29 | begin {
30 | Write-Verbose -Message "Starting [$($MyInvocation.Mycommand)]"
31 | }
32 |
33 | process {
34 | if ( -not ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] 'Administrator')) {
35 | Write-Verbose -Message 'You do NOT have Administrator rights.'
36 | Write-Output -InputObject $False
37 | } else {
38 | Write-Verbose -Message 'You have Administrator rights.'
39 | Write-Output -InputObject $True
40 | }
41 | }
42 |
43 | end {
44 | Write-Verbose -Message "Ending [$($MyInvocation.Mycommand)]"
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/Functions/Test-IsCapsLock.ps1:
--------------------------------------------------------------------------------
1 | function Test-IsCapsLock {
2 | <#
3 | .SYNOPSIS
4 | Determines if the CapsLock key is on or not
5 | .DESCRIPTION
6 | Determines if the CapsLock key is on or not
7 | .EXAMPLE
8 | Test-IsCapsLock
9 | .EXAMPLE
10 | Test-IsCapsLock -Verbose
11 | .NOTES
12 | Inspiration: # Inspired by https://gallery.technet.microsoft.com/on-off-keyboad-lock-keys-6ba9885c
13 | #>
14 |
15 | #region Parameter
16 | [CmdletBinding(ConfirmImpact='None')]
17 | [OutputType('bool')]
18 | Param()
19 | #endregion Parameter
20 |
21 | begin {
22 | Write-Verbose -Message "Starting [$($MyInvocation.Mycommand)]"
23 | }
24 |
25 | process {
26 | Write-Verbose -Message 'Determining the state of [CapsLock]'
27 | $ReturnVal = [System.Console]::CapsLock
28 | Write-Output -InputObject $ReturnVal
29 | }
30 |
31 | end {
32 | Write-Verbose -Message "Ending [$($MyInvocation.Mycommand)]"
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/Functions/Test-IsNumLock.ps1:
--------------------------------------------------------------------------------
1 | function Test-IsNumLock {
2 | <#
3 | .SYNOPSIS
4 | Determines the state of NumLock
5 | .DESCRIPTION
6 | Determines the state of the NumLock. Optional -Verbose argument
7 | .EXAMPLE
8 | Test-IsNumLock
9 | .EXAMPLE
10 | Test-IsNumLock -Verbose
11 | .OUTPUTS
12 | bool
13 | .NOTES
14 | Inspiration: # Inspired by https://gallery.technet.microsoft.com/on-off-keyboad-lock-keys-6ba9885c
15 | #>
16 |
17 | [CmdletBinding(ConfirmImpact='None')]
18 | [OutputType('bool')]
19 | Param()
20 |
21 | Begin {
22 | Write-Verbose -Message "Starting [$($MyInvocation.Mycommand)]"
23 | }
24 |
25 | process {
26 | write-verbose -Message 'Determining the state of [NumLock]'
27 | $ReturnVal = [console]::NumberLock
28 | Write-Output -InputObject $ReturnVal
29 | }
30 |
31 | end {
32 | Write-Verbose -Message "Ending [$($MyInvocation.Mycommand)]"
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/Functions/Test-IsScrollLock.ps1:
--------------------------------------------------------------------------------
1 | function Test-IsScrollLock {
2 | <#
3 | .SYNOPSIS
4 | Determines if the ScrollLock key is on or not
5 | .DESCRIPTION
6 | Determines if the ScrollLock key is on or not
7 | .EXAMPLE
8 | Test-IsScrollLock
9 | .EXAMPLE
10 | Test-IsScrollLock -Verbose
11 | .NOTES
12 | Inspiration: # Inspired by https://gallery.technet.microsoft.com/on-off-keyboad-lock-keys-6ba9885c
13 | #>
14 |
15 | [CmdletBinding(ConfirmImpact='None')]
16 | [OutputType('bool')]
17 | Param()
18 |
19 | begin {
20 | Write-Verbose -Message "Starting [$($MyInvocation.Mycommand)]"
21 | }
22 |
23 | process {
24 | write-verbose -Message 'Determining the state of [ScrollLock]'
25 | $ReturnVal = [System.Windows.Forms.Control]::IsKeyLocked('Scroll')
26 | Write-Output -InputObject $ReturnVal
27 | }
28 |
29 | end {
30 | Write-Verbose -Message "Ending [$($MyInvocation.Mycommand)]"
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/Functions/Test-IsSpeakerMute.ps1:
--------------------------------------------------------------------------------
1 | function Test-IsSpeakerMute {
2 | <#
3 | .SYNOPSIS
4 | Determines the state of the speaker being mute
5 | .DESCRIPTION
6 | Determines the state of the speaker being mute
7 | .EXAMPLE
8 | Test-IsSpeakerMute
9 | .EXAMPLE
10 | Test-IsSpeakerMute -Verbose
11 | .OUTPUTS
12 | bool
13 | .NOTES
14 | Inspired by https://stackoverflow.com/questions/255419/how-can-i-mute-unmute-my-sound-from-powershell
15 | #>
16 |
17 | [CmdletBinding(ConfirmImpact='None')]
18 | [OutputType('bool')]
19 | Param()
20 |
21 | begin {
22 | Write-Verbose -Message "Starting [$($MyInvocation.Mycommand)]"
23 | }
24 |
25 | process {
26 | Write-Verbose -Message 'Determining the state of [SpeakerMute]'
27 | $ReturnVal = [PFAudio]::Mute
28 | Write-Output -InputObject $ReturnVal
29 | }
30 |
31 | end {
32 | Write-Verbose -Message "Ending [$($MyInvocation.Mycommand)]"
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/Functions/Update-ExplorerIcon.ps1:
--------------------------------------------------------------------------------
1 | function Update-ExplorerIcon {
2 | <#
3 | .SYNOPSIS
4 | Updates Explorer icons
5 | .DESCRIPTION
6 | Updates Explorer icons
7 | .NOTES
8 | Source: https://community.idera.com/database-tools/powershell/powertips/b/tips/posts/refreshing-icon-cache
9 | #>
10 |
11 | [CmdletBinding(ConfirmImpact='Low')]
12 | [Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseShouldProcessForStateChangingFunctions','')]
13 | param()
14 |
15 | $code = @'
16 | private static readonly IntPtr HWND_BROADCAST = new IntPtr(0xffff);
17 | private const int WM_SETTINGCHANGE = 0x1a;
18 | private const int SMTO_ABORTIFHUNG = 0x0002;
19 |
20 | [System.Runtime.InteropServices.DllImport("user32.dll", SetLastError=true, CharSet=CharSet.Auto)]
21 | static extern bool SendNotifyMessage(IntPtr hWnd, uint Msg, UIntPtr wParam,
22 | IntPtr lParam);
23 |
24 | [System.Runtime.InteropServices.DllImport("user32.dll", SetLastError = true)]
25 | private static extern IntPtr SendMessageTimeout ( IntPtr hWnd, int Msg, IntPtr wParam, string lParam, uint fuFlags, uint uTimeout, IntPtr lpdwResult );
26 |
27 | [System.Runtime.InteropServices.DllImport("Shell32.dll")]
28 | private static extern int SHChangeNotify(int eventId, int flags, IntPtr item1, IntPtr item2);
29 |
30 | public static void Refresh() {
31 | SHChangeNotify(0x8000000, 0x1000, IntPtr.Zero, IntPtr.Zero);
32 | SendMessageTimeout(HWND_BROADCAST, WM_SETTINGCHANGE, IntPtr.Zero, null, SMTO_ABORTIFHUNG, 100, IntPtr.Zero);
33 | }
34 | '@
35 |
36 | Add-Type -MemberDefinition $code -Namespace MyWinAPI -Name Explorer
37 | [MyWinAPI.Explorer]::Refresh()
38 |
39 | RUNDLL32.EXE --% USER32.DLL,UpdatePerUserSystemParameters 1, True
40 |
41 | }
42 |
--------------------------------------------------------------------------------
/Functions/grep.ps1:
--------------------------------------------------------------------------------
1 | filter grep {
2 | <#
3 | .SYNOPSIS
4 | A simple text filter to search for a string
5 | .DESCRIPTION
6 | A simple text filter to search for a string
7 | .PARAMETER Keyword
8 | The string searching for
9 | .EXAMPLE
10 | 'Hello','There' | grep 'Hello'
11 | Would return
12 | Hello
13 | .OUTPUTS
14 | [string]
15 | .LINK
16 | about_Functions
17 | #>
18 |
19 | #region Parameter
20 | [CmdletBinding(ConfirmImpact='None')]
21 | [OutputType('string')]
22 | Param(
23 | [Parameter(Mandatory = $False, ValueFromPipeline)]
24 | [string[]] $String,
25 |
26 | [Parameter(Mandatory = $False, ValueFromPipeline = $False)]
27 | [string] $Keyword
28 |
29 | )
30 | #endregion Parameter
31 |
32 | begin {
33 | Write-Verbose -Message "Starting [$($MyInvocation.Mycommand)]"
34 | Write-Verbose -Message "String to search for is [$Keyword]"
35 | $Line = 0
36 | $Count = 0
37 | }
38 |
39 | process {
40 | foreach ($s in $String) {
41 | $Line ++
42 | $Count ++
43 | Write-Verbose -Message "Line $Line is [$($s)]"
44 | if ($s) {
45 | $s | Where-Object { $_ -match $keyword }
46 | }
47 | }
48 | }
49 |
50 | End {
51 | if (-not $Count) {
52 | Write-Verbose -Message 'No input'
53 | }
54 | Write-Verbose -Message "Ending [$($MyInvocation.Mycommand)]"
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/Functions/mklink.ps1:
--------------------------------------------------------------------------------
1 | function mklink {
2 | <#
3 | .SYNOPSIS
4 | mklink calls out to the Command Prompt (cmd.exe) and creates a link
5 | .DESCRIPTION
6 | mklink calls out to the Command Prompt (cmd.exe) and creates a link
7 |
8 | mklink /?
9 | Creates a symbolic link.
10 |
11 | MKLINK [[/D] | [/H] | [/J]] Link Target
12 |
13 | /D Creates a directory symbolic link. Default is a file
14 | symbolic link.
15 | /H Creates a hard link instead of a symbolic link.
16 | /J Creates a Directory Junction.
17 | Link Specifies the new symbolic link name.
18 | Target Specifies the path (relative or absolute) that the new link
19 | refers to.
20 | .NOTES
21 | Passes all command line arguments to cmd.exe embedded command mklink
22 | .EXAMPLE
23 | mklink LINK REALFILE
24 |
25 | would return
26 | symbolic link created for link <<===>> realfile
27 | #>
28 |
29 | cmd.exe /c mklink $args
30 | }
31 |
--------------------------------------------------------------------------------
/Functions/sed.ps1:
--------------------------------------------------------------------------------
1 | Filter sed {
2 | <#
3 | .SYNOPSIS
4 | A simple text filter to replace strings
5 | .DESCRIPTION
6 | A simple text filter to replace strings
7 | .PARAMETER Before
8 | The string searching for
9 | .PARAMETER After
10 | The string to replace it with
11 | .EXAMPLE
12 | 'Hello There' | sed 'Hello' 'Goodbye'
13 |
14 | Would return
15 | Goodbye There
16 | .OUTPUTS
17 | [string]
18 | #>
19 |
20 | #region Parameter
21 | [CmdletBinding(ConfirmImpact = 'None')]
22 | [OutputType('string')]
23 | [Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSReviewUnusedParameter', '')]
24 | Param(
25 | [Parameter(Mandatory, HelpMessage = 'Enter a string to search for', Position = 0, ValueFromPipeline = $False)]
26 | [string] $Before,
27 |
28 | [Parameter(Mandatory, HelpMessage = 'Enter a string to replace it with', Position = 1, ValueFromPipeline = $False)]
29 | [string] $After
30 |
31 | )
32 | #endregion Parameter
33 |
34 | begin {
35 | Write-Verbose -Message "Starting [$($MyInvocation.Mycommand)]"
36 | }
37 |
38 | process {
39 | ForEach-Object {
40 | $_ -replace $before, $after
41 | }
42 | }
43 |
44 | end {
45 | Write-Verbose -Message "Ending [$($MyInvocation.Mycommand)]"
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/Pester/Add-FileAttribute.Tests.ps1:
--------------------------------------------------------------------------------
1 | # todo write pester for Add-FileAttribute
2 |
3 | Describe "[FN] Tests" {
4 |
5 | It "Number" {
6 | Test-Set | Should -Be 15
7 | }
8 |
9 | It "Boolean" {
10 | Test-Set | Should -BeTrue
11 | }
12 |
13 | It "Pipeline" {
14 | "data" | Test-Set | Should -Be 'Hello'
15 | }
16 |
17 | }
18 |
19 |
--------------------------------------------------------------------------------
/Pester/Compare-ObjectProperty.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Compare-ObjectProperty] Tests" {
2 |
3 | It "Number" {
4 | Compare-ObjectProperty | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Compare-ObjectProperty | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Compare-ObjectProperty | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Compare-ObjectSetComplement.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Compare-ObjectSetComplement] Tests" {
2 |
3 | It "Case insensitive" {
4 | Compare-ObjectSetComplement -ReferenceObject a,b,c -DifferenceObject a,c | Should -Be 'b'
5 | }
6 |
7 | It "Case sensitive" {
8 | Compare-ObjectSetComplement -ReferenceObject a,b,c -DifferenceObject a,b,C -CaseSensitive | Should -Be 'c'
9 | }
10 |
11 | It "Null" {
12 | Compare-ObjectSetComplement -ReferenceObject a,b,c -DifferenceObject a,b,c,D | Should -Be $null
13 | }
14 |
15 | }
16 |
--------------------------------------------------------------------------------
/Pester/Compare-ObjectSetDifference.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Compare-ObjectSetDifference] Tests" {
2 |
3 | It 'Case insensitive' {
4 | Compare-ObjectSetDifference -ReferenceObject a,b,c -DifferenceObject a,c | Should -Be 'b'
5 | }
6 |
7 | It 'Case sensitive' {
8 | Compare-ObjectSetDifference -ReferenceObject a,b,c -DifferenceObject a,b,C -CaseSensitive | Should -Be 'c'
9 | }
10 |
11 | It 'Same sets' {
12 | Compare-ObjectSetDifference -ReferenceObject a,b,c -DifferenceObject b,C,a | Should -Be $null
13 | }
14 |
15 | }
16 |
--------------------------------------------------------------------------------
/Pester/Compare-ObjectSetIntersection.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Compare-ObjectSetIntersection] Tests" {
2 |
3 | It 'Single item' {
4 | Compare-ObjectSetIntersection -ReferenceObject a,b,c -DifferenceObject a,B,C -CaseSensitive | Should -Be 'a'
5 | }
6 |
7 | It 'Null' {
8 | Compare-ObjectSetIntersection -ReferenceObject a,b,c -DifferenceObject d,e,f | Should -Be $null
9 | }
10 |
11 | }
12 |
--------------------------------------------------------------------------------
/Pester/Compare-ObjectSetUnion.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Compare-ObjectSetUnion] Tests" {
2 |
3 | It 'Union case sensitive' {
4 | $Result = Compare-ObjectSetUnion -ReferenceObject a,b,c -DifferenceObject a,b,C -CaseSensitive
5 | $Result.Count | Should -Be 4
6 | ($Result -ccontains 'a') | Should -Be $true
7 | ($Result -ccontains 'b') | Should -Be $true
8 | ($Result -ccontains 'c') | Should -Be $true
9 | ($Result -ccontains 'C') | Should -Be $true
10 | }
11 |
12 | It 'Union case insensitive' {
13 | $Result = Compare-ObjectSetUnion -ReferenceObject a,b,c -DifferenceObject a,b,C
14 | $Result.Count | Should -Be 3
15 | ($Result -contains 'a') | Should -Be $true
16 | ($Result -contains 'b') | Should -Be $true
17 | ($Result -contains 'c') | Should -Be $true
18 | }
19 |
20 | }
21 |
--------------------------------------------------------------------------------
/Pester/Compare-PSGalleryObject.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Compare-PSGalleryObject] Tests" {
2 |
3 | It "Number" {
4 | Compare-PSGalleryObject | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Compare-PSGalleryObject | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Compare-PSGalleryObject | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Convert-HexToRGB.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe '[Convert-HexToRGB] Tests' {
2 |
3 | It 'RGB string' {
4 | $Result = Convert-HexToRGB -Hex '808080'
5 | $Result | Should -Be '128, 128, 128'
6 | }
7 |
8 | It 'Include input' {
9 | $Result = Convert-HexToRGB -Hex '#ffff80' -IncludeInput
10 | $Result.Hex | Should -Be '#ffff80'
11 | $Result.Red | Should -Be 255
12 | $Result.Green | Should -Be 255
13 | $Result.Blue | Should -Be 128
14 | }
15 |
16 | }
17 |
--------------------------------------------------------------------------------
/Pester/Convert-Int32ToUint32.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Convert-Int32ToUint32] Tests" {
2 |
3 | It 'Negative number' {
4 | $Number = -1
5 | $Result = [uint32] 4294967295
6 | Convert-Int32ToUint32 -Number $Number | Should -Be $Result
7 | }
8 |
9 | It 'Positive number' {
10 | $Number = 128
11 | $Result = [uint32] 128
12 | Convert-Int32ToUint32 -Number $Number | Should -Be $Result
13 | }
14 |
15 | }
16 |
--------------------------------------------------------------------------------
/Pester/Convert-Int64ToText.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Convert-Int64ToText] Tests" {
2 |
3 | It 'Ones' {
4 | $Number = 7
5 | $Expected = 'Seven'
6 | $Result = Convert-Int64ToText -Number $Number
7 | $Result | Should -Be $Expected
8 | }
9 |
10 | It 'Teens' {
11 | $Number = 13
12 | $Expected = 'Thirteen'
13 | $Result = Convert-Int64ToText -Number $Number
14 | $Result | Should -Be $Expected
15 | }
16 |
17 | It 'Hundreds' {
18 | $Number = 249
19 | $Expected = 'Two Hundred Forty Nine'
20 | $Result = Convert-Int64ToText -Number $Number
21 | $Result | Should -Be $Expected
22 | }
23 |
24 | It 'Thousands' {
25 | $Number = 15835
26 | $Expected = 'Fifteen Thousand Eight Hundred Thirty Five'
27 | $Result = Convert-Int64ToText -Number $Number
28 | $Result | Should -Be $Expected
29 | }
30 |
31 | It 'Millions' {
32 | $Number = 6543123
33 | $Expected = 'Six Million Five Hundred Forty Three Thousand One Hundred Twenty Three'
34 | $Result = Convert-Int64ToText -Number $Number
35 | $Result | Should -Be $Expected
36 | }
37 |
38 | It 'Pipeline' {
39 | $Number = 6
40 | $Expected = 'Six'
41 | $Result = $Number | Convert-Int64ToText
42 | $Result | Should -Be $Expected
43 | }
44 |
45 | }
46 |
--------------------------------------------------------------------------------
/Pester/Convert-ObjectToHashtable.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Convert-ObjectToHashtable] Tests" {
2 |
3 | It "Number" {
4 | Convert-ObjectToHashtable | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Convert-ObjectToHashtable | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Convert-ObjectToHashtable | Should -Be 'Hello'
13 | }
14 |
15 | }
16 | # todo pester tests
17 |
--------------------------------------------------------------------------------
/Pester/Convert-RGBToHex.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Convert-RGBToHex] Tests" {
2 |
3 | It "Number" {
4 | Convert-RGBToHex | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Convert-RGBToHex | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Convert-RGBToHex | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Convert-SecureStringToString.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Convert-SecureStringToString] Tests" {
2 |
3 | It "Number" {
4 | Convert-SecureStringToString | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Convert-SecureStringToString | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Convert-SecureStringToString | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Convert-UserFlag.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Convert-UserFlag] Tests" {
2 |
3 | It "Decimal" {
4 | Convert-UserFlag -UserFlag 528 | Should -Be 'ACCOUNTENABLE,LOCKOUT,NORMAL_ACCOUNT'
5 | }
6 |
7 | It "Hex" {
8 | Convert-UserFlag -UserFlag (0x0200 + 0x0010 + 0x800000) | Should -Be 'ACCOUNTENABLE,LOCKOUT,NORMAL_ACCOUNT,PASSWORD_EXPIRED'
9 | }
10 |
11 | It "Pipeline" {
12 | 2 | Convert-UserFlag | Should -Be 'NOT_LOCKOUT,ACCOUNTDISABLE'
13 | }
14 |
15 | }
16 |
--------------------------------------------------------------------------------
/Pester/ConvertFrom-Base64.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[ConvertFrom-Base64] Tests" {
2 |
3 | It "Text" {
4 | ConvertFrom-Base64 'SABlAGwAbABvAA==' | Should -BeLikeExactly 'Hello'
5 | }
6 |
7 | It "Pipeline" {
8 | 'VABoAGkAcwAgAGkAcwAgAGEAIABzAGUAYwByAGUAdAA=' | ConvertFrom-Base64 | Should -BeLikeExactly 'This is a secret'
9 | }
10 |
11 | }
12 |
--------------------------------------------------------------------------------
/Pester/ConvertFrom-Binary.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[ConvertFrom-Binary] Tests" {
2 |
3 | It "Positional" {
4 | ConvertFrom-Binary 100001 | Should -Be 33
5 | }
6 |
7 | It "Named" {
8 | ConvertFrom-Binary -Binary 1000001 | Should -Be 65
9 | }
10 |
11 | It "Multiple values, include input" {
12 | $Result = ConvertFrom-Binary -Binary 11111, 11110 -IncludeInput
13 | $Result.Count | Should -Be 2
14 | $Result[0].Number | Should -Be 31
15 | $Result[1].Number | Should -Be 30
16 | }
17 |
18 | It "Pipeline" {
19 | 10000011 | ConvertFrom-Binary | Should -Be 131
20 | }
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/Pester/ConvertFrom-DateTime.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[ConvertFrom-DateTime] Tests" {
2 | BeforeAll {
3 | $UTCDate = [datetime]::new(2022,03,27,13,45,17,[System.DateTimeKind]::UTC)
4 | $LocalDate = [datetime]::new(2022,03,27,13,45,17,[System.DateTimeKind]::Local)
5 | }
6 |
7 | It "Unix" {
8 | ConvertFrom-DateTime -Date $UTCDate -Unix | Should -Be 1648388717
9 | }
10 |
11 | It "DMTF" {
12 | ConvertFrom-DateTime -Date $UTCDate -DMTF | Should -Be '20220327134517.000000+000'
13 | }
14 |
15 | It "FileTime" {
16 | ConvertFrom-DateTime -Date $UTCDate -FileTime | Should -Be 132928623170000000
17 | }
18 |
19 | It "ICSDateTime" {
20 | ConvertFrom-DateTime -Date $UTCDate -ICSDateTime | Should -Be '20220327T134517'
21 | }
22 |
23 | It "ISO8601" {
24 | ConvertFrom-DateTime -Date $UTCDate -ISO8601 | Should -Be '2022.03.27T13:45:17'
25 | }
26 |
27 | It "Excel" {
28 | $Expected = ([math]::round(([double] 44645.5731134259),8))
29 | $Result = ([math]::round((ConvertFrom-DateTime -Date $UTCDate -Excel),8))
30 | $Result | Should -Be $Expected
31 | }
32 |
33 | It "Pipeline Unix" {
34 | $UTCDate | ConvertFrom-DateTime -Unix | Should -Be 1648388717
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/Pester/ConvertFrom-FsRight.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[ConvertFrom-FsRight] Tests" {
2 |
3 | It "Single return" {
4 | ConvertFrom-FsRight -Rights 268435456 | Should -Be 'GenericAll'
5 | }
6 |
7 | It "Multiple return" {
8 | ConvertFrom-FsRight -Rights "0x1301BF" | Should -Be 'ReadAndExecute,Modify,Write'
9 | }
10 |
11 | It "Multiple Rights" {
12 | $Result = ConvertFrom-FsRight -Rights "0x1301BF", 268435456 -IncludeInput
13 | $Result.Count | Should -Be 2
14 | $Result[0].RightString | Should -Be 'ReadAndExecute,Modify,Write'
15 | $Result[1].RightString | Should -Be 'GenericAll'
16 | }
17 |
18 | It "Pipeline" {
19 | 268435456 | ConvertFrom-FsRight | Should -Be 'GenericAll'
20 | }
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/Pester/ConvertFrom-Hex.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[ConvertFrom-Hex] Tests" {
2 |
3 | It "Number" {
4 | ConvertFrom-Hex -Hex 'f0' | Should -Be 240
5 | }
6 |
7 | It "Multiple numbers" {
8 | $Result = ConvertFrom-Hex -Hex '0xff','20' -IncludeInput
9 | $Result.Count | Should -Be 2
10 | $Result[0].Number | Should -Be 255
11 | $Result[1].Number | Should -Be 32
12 | }
13 |
14 | It "Pipeline" {
15 | "21" | ConvertFrom-Hex | Should -Be 33
16 | }
17 |
18 | }
19 |
--------------------------------------------------------------------------------
/Pester/ConvertFrom-HexString.Tests.ps1:
--------------------------------------------------------------------------------
1 | # todo write pester for ConvertFrom-HexString
2 |
3 | Describe "[FN] Tests" {
4 |
5 | It "Number" {
6 | Test-Set | Should -Be 15
7 | }
8 |
9 | It "Boolean" {
10 | Test-Set | Should -BeTrue
11 | }
12 |
13 | It "Pipeline" {
14 | "data" | Test-Set | Should -Be 'Hello'
15 | }
16 |
17 | }
18 |
19 |
--------------------------------------------------------------------------------
/Pester/ConvertFrom-HtmlEncode.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[ConvertFrom-HtmlEncode] Tests" {
2 |
3 | It "String" {
4 | ConvertFrom-HTMLEncode -HTML '&' | Should -Be '&'
5 | }
6 |
7 | It "Longer string" {
8 | ConvertFrom-HTMLEncode -HTML ''Hello World'' | Should -Be "'Hello World'"
9 | }
10 |
11 | It "Pipeline" {
12 | ''Hello World'' | ConvertFrom-HtmlEncode | Should -Be "'Hello World'"
13 | }
14 |
15 | It "Multiple" {
16 | $Result = ConvertFrom-HTMLEncode -HTML 'It's a shame, that's my 2 cents', '<h2>' -IncludeInput
17 | $Result.Count | Should -Be 2
18 | $Result[0].PlainText | Should -Be "It's a shame, that's my 2 cents"
19 | $Result[1].PlainText | Should -Be ''
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/Pester/ConvertFrom-RomanNumeral.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[ConvertFrom-RomanNumeral] Tests" {
2 |
3 | It "Named" {
4 | ConvertFrom-RomanNumeral -Numeral i | Should -Be 1
5 | ConvertFrom-RomanNumeral -Numeral v | Should -Be 5
6 | ConvertFrom-RomanNumeral -Numeral x | Should -Be 10
7 | ConvertFrom-RomanNumeral -Numeral l | Should -Be 50
8 | ConvertFrom-RomanNumeral -Numeral c | Should -Be 100
9 | ConvertFrom-RomanNumeral -Numeral m | Should -Be 1000
10 | ConvertFrom-RomanNumeral -Numeral mmmcccxxxiii | Should -Be 3333
11 | ConvertFrom-RomanNumeral -Numeral mcmlxv | Should -Be 1965
12 | }
13 |
14 | It "Position" {
15 | ConvertFrom-RomanNumeral i | Should -Be 1
16 | ConvertFrom-RomanNumeral v | Should -Be 5
17 | ConvertFrom-RomanNumeral x | Should -Be 10
18 | ConvertFrom-RomanNumeral l | Should -Be 50
19 | ConvertFrom-RomanNumeral c | Should -Be 100
20 | ConvertFrom-RomanNumeral m | Should -Be 1000
21 | ConvertFrom-RomanNumeral mmmcccxxxiii | Should -Be 3333
22 | ConvertFrom-RomanNumeral mcmlxv | Should -Be 1965
23 | }
24 |
25 | It "Pipeline" {
26 | 'i' | ConvertFrom-RomanNumeral | Should -Be 1
27 | 'v' | ConvertFrom-RomanNumeral | Should -Be 5
28 | 'x' | ConvertFrom-RomanNumeral | Should -Be 10
29 | 'l' | ConvertFrom-RomanNumeral | Should -Be 50
30 | 'c' | ConvertFrom-RomanNumeral | Should -Be 100
31 | 'm' | ConvertFrom-RomanNumeral | Should -Be 1000
32 | 'mmmcccxxxiii' | ConvertFrom-RomanNumeral | Should -Be 3333
33 | 'mcmlxv' | ConvertFrom-RomanNumeral | Should -Be 1965
34 | }
35 |
36 | }
37 |
--------------------------------------------------------------------------------
/Pester/ConvertFrom-UTC.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[ConvertFrom-UTC] Tests" {
2 |
3 | It "Number" {
4 | ConvertFrom-UTC | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | ConvertFrom-UTC | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | ConvertFrom-UTC | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/ConvertFrom-UrlEncode.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[ConvertFrom-UrlEncode] Tests" {
2 |
3 | It "Number" {
4 | ConvertFrom-UrlEncode | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | ConvertFrom-UrlEncode | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | ConvertFrom-UrlEncode | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/ConvertFrom-Xml.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[ConvertFrom-Xml] Tests" {
2 |
3 | It "Number" {
4 | ConvertFrom-Xml | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | ConvertFrom-Xml | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | ConvertFrom-Xml | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo pester tests
18 |
--------------------------------------------------------------------------------
/Pester/ConvertTo-Base64.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[ConvertTo-Base64] Tests" {
2 |
3 | It "Number" {
4 | ConvertTo-Base64 | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | ConvertTo-Base64 | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | ConvertTo-Base64 | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/ConvertTo-Binary.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[ConvertTo-Binary] Tests" {
2 |
3 | It "Named Parameter" {
4 | ConvertTo-Binary -Number 7 | Should -Be '111'
5 | ConvertTo-Binary -Number 64 | Should -Be '1000000'
6 | ConvertTo-Binary -Number 64 -Width 12 | Should -Be '000001000000'
7 | }
8 |
9 | It "Positional" {
10 | ConvertTo-Binary 7 | Should -Be '111'
11 | ConvertTo-Binary 64 | Should -Be '1000000'
12 | ConvertTo-Binary 64 -Width 12 | Should -Be '000001000000'
13 | }
14 |
15 | It "Pipeline" {
16 | 7 | ConvertTo-Binary | Should -Be '111'
17 | 64 | ConvertTo-Binary | Should -Be '1000000'
18 | 64 | ConvertTo-Binary -Width 12 | Should -Be '000001000000'
19 | }
20 |
21 | }
22 |
--------------------------------------------------------------------------------
/Pester/ConvertTo-BinaryIPv4.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[ConvertTo-BinaryIPv4] Tests" {
2 |
3 | It "Number" {
4 | ConvertTo-BinaryIPv4 | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | ConvertTo-BinaryIPv4 | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | ConvertTo-BinaryIPv4 | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/ConvertTo-DateTime.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[ConvertTo-DateTime] Tests" {
2 |
3 | It "Number" {
4 | ConvertTo-DateTime | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | ConvertTo-DateTime | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | ConvertTo-DateTime | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/ConvertTo-DecimalIPv4.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[ConvertTo-DecimalIPv4] Tests" {
2 |
3 | It "Number" {
4 | ConvertTo-DecimalIPv4 | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | ConvertTo-DecimalIPv4 | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | ConvertTo-DecimalIPv4 | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/ConvertTo-DottedDecimalIPv4.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[ConvertTo-DottedDecimalIPv4] Tests" {
2 |
3 | It "Number" {
4 | ConvertTo-DottedDecimalIPv4 | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | ConvertTo-DottedDecimalIPv4 | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | ConvertTo-DottedDecimalIPv4 | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/ConvertTo-Hex.Tests.ps1:
--------------------------------------------------------------------------------
1 |
2 | Describe "ConvertTo-Hex Tests" {
3 |
4 | It "Number" {
5 | ConvertTo-Hex -Number 23 | Should -Be '17'
6 | }
7 |
8 | It "Pipeline" {
9 | 32 | ConvertTo-Hex | Should -Be '20'
10 | }
11 |
12 | It "Prefix #" {
13 | ConvertTo-Hex -Number 128 -Prefix '#' -MinimumWidth 6 | Should -Be '#000080'
14 | }
15 |
16 |
17 | It "Prefix 0X" {
18 | ConvertTo-Hex -Number 255 -Prefix '0x' | Should -Be '0xff'
19 | }
20 |
21 | It "IncludeInput" {
22 | $Expected = New-Object -TypeName psobject -Property ([ordered] @{
23 | Number = 65
24 | Hex = '41'
25 | })
26 | $Actual = ConvertTo-Hex -Number 65 -IncludeInput
27 | $Actual.Number | Should -Be $Expected.Number
28 | $Actual.Hex | Should -Be $Actual.Hex
29 | }
30 |
31 |
32 | }
33 |
--------------------------------------------------------------------------------
/Pester/ConvertTo-HexString.Tests.ps1:
--------------------------------------------------------------------------------
1 | # todo write pester for ConvertTo-HexString
2 |
3 | Describe "[FN] Tests" {
4 |
5 | It "Number" {
6 | Test-Set | Should -Be 15
7 | }
8 |
9 | It "Boolean" {
10 | Test-Set | Should -BeTrue
11 | }
12 |
13 | It "Pipeline" {
14 | "data" | Test-Set | Should -Be 'Hello'
15 | }
16 |
17 | }
18 |
19 |
--------------------------------------------------------------------------------
/Pester/ConvertTo-HtmlEncode.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[ConvertTo-HtmlEncode] Tests" {
2 |
3 | It "Number" {
4 | ConvertTo-HtmlEncode | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | ConvertTo-HtmlEncode | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | ConvertTo-HtmlEncode | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/ConvertTo-OrderedDictionary.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[ConvertTo-OrderedDictionary] Tests" {
2 |
3 | It "Number" {
4 | ConvertTo-OrderedDictionary | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | ConvertTo-OrderedDictionary | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | ConvertTo-OrderedDictionary | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/ConvertTo-RomanNumeral.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[ConvertTo-RomanNumeral] Tests" {
2 |
3 | It "Number" {
4 | ConvertTo-RomanNumeral -Number 1999 | Should -Be 'MCMXCIX'
5 | }
6 |
7 | It "Pipeline" {
8 | 2002 | ConvertTo-RomanNumeral | Should -Be 'MMII'
9 | }
10 |
11 | }
12 |
--------------------------------------------------------------------------------
/Pester/ConvertTo-UTC.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[ConvertTo-UTC] Tests" {
2 |
3 | It "Number" {
4 | ConvertTo-UTC | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | ConvertTo-UTC | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | ConvertTo-UTC | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/ConvertTo-UncPath.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[ConvertTo-UncPath] Tests" {
2 |
3 | It "Number" {
4 | ConvertTo-UncPath | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | ConvertTo-UncPath | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | ConvertTo-UncPath | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/ConvertTo-UrlEncode.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[ConvertTo-UrlEncode] Tests" {
2 |
3 | It "Number" {
4 | ConvertTo-UrlEncode | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | ConvertTo-UrlEncode | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | ConvertTo-UrlEncode | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Copy-Object.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Copy-Object] Tests" {
2 |
3 | It "Number" {
4 | Copy-Object | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Copy-Object | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Copy-Object | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Expand-IPv6.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Expand-IPv6] Tests" {
2 |
3 | It "Number" {
4 | Expand-IPv6 | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Expand-IPv6 | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Expand-IPv6 | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Expand-String.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Expand-String] Tests" {
2 |
3 | It "Number" {
4 | Expand-String | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Expand-String | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Expand-String | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Expand-Tab.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Expand-Tab] Tests" {
2 |
3 | It "Named Parameter" {
4 | Expand-Tab -InputString "`t" | Should -Be (' ' * 8)
5 | Expand-Tab -InputString "`t" -TabWidth 4 | Should -Be (' ' * 4)
6 | }
7 |
8 | It "Positional" {
9 | Expand-Tab "`t" | Should -Be (' ' * 8)
10 | Expand-Tab "`t" -TabWidth 4 | Should -Be (' ' * 4)
11 | }
12 |
13 | It "Pipeline" {
14 | "`t" | Expand-Tab | Should -Be (' ' * 8)
15 | "`t" | Expand-Tab -TabWidth 4 | Should -Be (' ' * 4)
16 | }
17 |
18 | }
19 |
--------------------------------------------------------------------------------
/Pester/Export-CSVSortedColumn.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Export-CSVSortedColumn] Tests" {
2 |
3 | It "Number" {
4 | Export-CSVSortedColumn | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Export-CSVSortedColumn | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Export-CSVSortedColumn | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Export-FontSample.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Export-FontSample] Tests" {
2 |
3 | It "Number" {
4 | Export-FontSample | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Export-FontSample | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Export-FontSample | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/FileSizeAbove.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[FileSizeAbove] Tests" {
2 |
3 | It "Number" {
4 | FileSizeAbove | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | FileSizeAbove | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | FileSizeAbove | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/FileSizeBelow.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[FileSizeBelow] Tests" {
2 |
3 | It "Number" {
4 | FileSizeBelow | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | FileSizeBelow | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | FileSizeBelow | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Format-MacAddress.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Format-MacAddress] Tests" {
2 |
3 | It "Number" {
4 | Format-MacAddress | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Format-MacAddress | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Format-MacAddress | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Format-RandomCase.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Format-RandomCase] Tests" {
2 |
3 | It "Number" {
4 | Format-RandomCase | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Format-RandomCase | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Format-RandomCase | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Format-ReverseString.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Format-ReverseString] Tests" {
2 |
3 | It "Number" {
4 | Format-ReverseString | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Format-ReverseString | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Format-ReverseString | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Format-ReverseToken.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Format-ReverseToken] Tests" {
2 |
3 | It "Number" {
4 | Format-ReverseToken | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Format-ReverseToken | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Format-ReverseToken | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Format-SortedList.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Format-SortedList] Tests" {
2 |
3 | It "Number" {
4 | Format-SortedList | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Format-SortedList | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Format-SortedList | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Format-TitleCase.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Format-TitleCase] Tests" {
2 |
3 | It "Number" {
4 | Format-TitleCase | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Format-TitleCase | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Format-TitleCase | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Format-WrapText.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Format-WrapText] Tests" {
2 |
3 | It "Number" {
4 | Format-WrapText | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Format-WrapText | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Format-WrapText | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-AppEventSound.Tests.ps1:
--------------------------------------------------------------------------------
1 | # todo write pester for Get-AppEventSound
2 |
3 | Describe "[FN] Tests" {
4 |
5 | It "Number" {
6 | Test-Set | Should -Be 15
7 | }
8 |
9 | It "Boolean" {
10 | Test-Set | Should -BeTrue
11 | }
12 |
13 | It "Pipeline" {
14 | "data" | Test-Set | Should -Be 'Hello'
15 | }
16 |
17 | }
18 |
19 |
--------------------------------------------------------------------------------
/Pester/Get-ArpTable.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-ArpTable] Tests" {
2 |
3 | It "Number" {
4 | Get-ArpTable | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-ArpTable | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-ArpTable | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-Assoc.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-Assoc] Tests" {
2 |
3 | It "Number" {
4 | Get-Assoc | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-Assoc | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-Assoc | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-AutoRun.inf.Tests.ps1:
--------------------------------------------------------------------------------
1 | # todo write pester for Get-AutoRun.inf
2 |
3 | Describe "[FN] Tests" {
4 |
5 | It "Number" {
6 | Test-Set | Should -Be 15
7 | }
8 |
9 | It "Boolean" {
10 | Test-Set | Should -BeTrue
11 | }
12 |
13 | It "Pipeline" {
14 | "data" | Test-Set | Should -Be 'Hello'
15 | }
16 |
17 | }
18 |
19 |
--------------------------------------------------------------------------------
/Pester/Get-BashPath.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-BashPath] Tests" {
2 |
3 | It "Number" {
4 | Get-BashPath | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-BashPath | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-BashPath | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-BinaryType.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-BinaryType] Tests" {
2 |
3 | It "Number" {
4 | Get-BinaryType | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-BinaryType | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-BinaryType | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-CeasarCipher.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-CeasarCipher] Tests" {
2 |
3 | It "Number" {
4 | Get-CeasarCipher | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-CeasarCipher | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-CeasarCipher | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-ComputerSite.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-ComputerSite] Tests" {
2 |
3 | It "Number" {
4 | Get-ComputerSite | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-ComputerSite | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-ComputerSite | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-ComputerUptime.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-ComputerUptime] Tests" {
2 |
3 | It "Number" {
4 | Get-ComputerUptime | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-ComputerUptime | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-ComputerUptime | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-ConsoleColor.Tests.ps1:
--------------------------------------------------------------------------------
1 | # todo write pester for Get-ConsoleColor
2 |
3 | Describe "[FN] Tests" {
4 |
5 | It "Number" {
6 | Test-Set | Should -Be 15
7 | }
8 |
9 | It "Boolean" {
10 | Test-Set | Should -BeTrue
11 | }
12 |
13 | It "Pipeline" {
14 | "data" | Test-Set | Should -Be 'Hello'
15 | }
16 |
17 | }
18 |
19 |
--------------------------------------------------------------------------------
/Pester/Get-ConsoleWindowSize.Tests.ps1:
--------------------------------------------------------------------------------
1 | # todo write pester for Get-ConsoleWindowSize
2 |
3 | Describe "[FN] Tests" {
4 |
5 | It "Number" {
6 | Test-Set | Should -Be 15
7 | }
8 |
9 | It "Boolean" {
10 | Test-Set | Should -BeTrue
11 | }
12 |
13 | It "Pipeline" {
14 | "data" | Test-Set | Should -Be 'Hello'
15 | }
16 |
17 | }
18 |
19 |
--------------------------------------------------------------------------------
/Pester/Get-DNSHostEntryAsync.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-DNSHostEntryAsync] Tests" {
2 |
3 | It "Number" {
4 | Get-DNSHostEntryAsync | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-DNSHostEntryAsync | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-DNSHostEntryAsync | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-Desktop.ini.Tests.ps1:
--------------------------------------------------------------------------------
1 | # todo write pester for Get-Desktop.ini
2 |
3 | Describe "[FN] Tests" {
4 |
5 | It "Number" {
6 | Test-Set | Should -Be 15
7 | }
8 |
9 | It "Boolean" {
10 | Test-Set | Should -BeTrue
11 | }
12 |
13 | It "Pipeline" {
14 | "data" | Test-Set | Should -Be 'Hello'
15 | }
16 |
17 | }
18 |
19 |
--------------------------------------------------------------------------------
/Pester/Get-DiceRoll.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-DiceRoll] Tests" {
2 |
3 | It "Number" {
4 | Get-DiceRoll | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-DiceRoll | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-DiceRoll | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-DiskType.Tests.ps1:
--------------------------------------------------------------------------------
1 | # todo write pester for Get-DiskType
2 |
3 | Describe "[FN] Tests" {
4 |
5 | It "Number" {
6 | Test-Set | Should -Be 15
7 | }
8 |
9 | It "Boolean" {
10 | Test-Set | Should -BeTrue
11 | }
12 |
13 | It "Pipeline" {
14 | "data" | Test-Set | Should -Be 'Hello'
15 | }
16 |
17 | }
18 |
19 |
--------------------------------------------------------------------------------
/Pester/Get-DisplayBrightness.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-DisplayBrightness] Tests" {
2 |
3 | It "Number" {
4 | Get-DisplayBrightness | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-DisplayBrightness | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-DisplayBrightness | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-DriveStat.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-DriveStat] Tests" {
2 |
3 | It "Number" {
4 | Get-DriveStat | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-DriveStat | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-DriveStat | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-DuplicateFileName.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-DuplicateFileName] Tests" {
2 |
3 | It "Number" {
4 | Get-DuplicateFileName | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-DuplicateFileName | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-DuplicateFileName | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-Enum.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-Enum] Tests" {
2 |
3 | It "Number" {
4 | Get-Enum | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-Enum | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-Enum | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-ErrorInfo.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-ErrorInfo] Tests" {
2 |
3 | It "Number" {
4 | Get-ErrorInfo | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-ErrorInfo | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-ErrorInfo | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-ExecutableForFile.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-ExecutableForFile] Tests" {
2 |
3 | It "Number" {
4 | Get-ExecutableForFile | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-ExecutableForFile | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-ExecutableForFile | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-Factorial.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-Factorial] Tests" {
2 |
3 | It "Number" {
4 | Get-Factorial | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-Factorial | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-Factorial | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-FileEncoding.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-FileEncoding] Tests" {
2 |
3 | It "Number" {
4 | Get-FileEncoding | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-FileEncoding | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-FileEncoding | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-FileName.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-FileName] Tests" {
2 |
3 | It "Number" {
4 | Get-FileName | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-FileName | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-FileName | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-FileSizeOnDisk.Tests.ps1:
--------------------------------------------------------------------------------
1 | # todo write pester for Get-FileSizeOnDisk
2 |
3 | Describe "[FN] Tests" {
4 |
5 | It "Number" {
6 | Test-Set | Should -Be 15
7 | }
8 |
9 | It "Boolean" {
10 | Test-Set | Should -BeTrue
11 | }
12 |
13 | It "Pipeline" {
14 | "data" | Test-Set | Should -Be 'Hello'
15 | }
16 |
17 | }
18 |
19 |
--------------------------------------------------------------------------------
/Pester/Get-FileWithLeadingSpace.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-FileWithLeadingSpace] Tests" {
2 |
3 | It "Number" {
4 | Get-FileWithLeadingSpace | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-FileWithLeadingSpace | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-FileWithLeadingSpace | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-FolderName.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-FolderName] Tests" {
2 |
3 | It "Number" {
4 | Get-FolderName | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-FolderName | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-FolderName | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-Font.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-Font] Tests" {
2 |
3 | It "Number" {
4 | Get-Font | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-Font | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-Font | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-Fortune.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-Fortune] Tests" {
2 |
3 | It "Number" {
4 | Get-Fortune | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-Fortune | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-Fortune | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-FsRight.Tests.ps1:
--------------------------------------------------------------------------------
1 | # todo write pester for Get-FsRight
2 |
3 | Describe "[FN] Tests" {
4 |
5 | It "Number" {
6 | Test-Set | Should -Be 15
7 | }
8 |
9 | It "Boolean" {
10 | Test-Set | Should -BeTrue
11 | }
12 |
13 | It "Pipeline" {
14 | "data" | Test-Set | Should -Be 'Hello'
15 | }
16 |
17 | }
18 |
19 |
--------------------------------------------------------------------------------
/Pester/Get-Ftype.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-Ftype] Tests" {
2 |
3 | It "Number" {
4 | Get-Ftype | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-Ftype | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-Ftype | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-InvalidFileCharacter.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-InvalidFileCharacter] Tests" {
2 |
3 | It "Number" {
4 | Get-InvalidFileCharacter | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-InvalidFileCharacter | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-InvalidFileCharacter | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-IpRange.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-IpRange] Tests" {
2 |
3 | It "Number" {
4 | Get-IpRange | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-IpRange | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-IpRange | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-IpV4Network.Tests.ps1:
--------------------------------------------------------------------------------
1 | # todo write pester for Get-IpV4Network
2 |
3 | Describe "[FN] Tests" {
4 |
5 | It "Number" {
6 | Test-Set | Should -Be 15
7 | }
8 |
9 | It "Boolean" {
10 | Test-Set | Should -BeTrue
11 | }
12 |
13 | It "Pipeline" {
14 | "data" | Test-Set | Should -Be 'Hello'
15 | }
16 |
17 | }
18 |
19 |
--------------------------------------------------------------------------------
/Pester/Get-LastDayInMonth.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-LastDayInMonth] Tests" {
2 |
3 | It "Number" {
4 | Get-LastDayInMonth | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-LastDayInMonth | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-LastDayInMonth | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-List.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-List] Tests" {
2 |
3 | It "Number" {
4 | Get-List | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-List | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-List | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-LongName.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-LongName] Tests" {
2 |
3 | It "Number" {
4 | Get-LongName | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-LongName | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-LongName | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-MacVendor.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-MacVendor] Tests" {
2 |
3 | It "Number" {
4 | Get-MacVendor | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-MacVendor | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-MacVendor | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-MachineType.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-MachineType] Tests" {
2 |
3 | It "Number" {
4 | Get-MachineType | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-MachineType | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-MachineType | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-Magic8Ball.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-Magic8Ball] Tests" {
2 |
3 | It "Number" {
4 | Get-Magic8Ball | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-Magic8Ball | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-Magic8Ball | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-MyLocalLogonTime.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-MyLocalLogonTime] Tests" {
2 |
3 | It "ReturnType" {
4 | (Get-MyLocalLogonTime) -is [datetime] | Should -BeTrue
5 | }
6 |
7 | }
8 |
--------------------------------------------------------------------------------
/Pester/Get-NTFSPermission.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-NTFSPermission] Tests" {
2 |
3 | It "Number" {
4 | Get-NTFSPermission | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-NTFSPermission | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-NTFSPermission | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-NamedColor.Tests.ps1:
--------------------------------------------------------------------------------
1 | # todo write pester for Get-NamedColor
2 |
3 | Describe "[FN] Tests" {
4 |
5 | It "Number" {
6 | Test-Set | Should -Be 15
7 | }
8 |
9 | It "Boolean" {
10 | Test-Set | Should -BeTrue
11 | }
12 |
13 | It "Pipeline" {
14 | "data" | Test-Set | Should -Be 'Hello'
15 | }
16 |
17 | }
18 |
19 |
--------------------------------------------------------------------------------
/Pester/Get-NetworkCredential.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-NetworkCredential] Tests" {
2 |
3 | It "Number" {
4 | Get-NetworkCredential | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-NetworkCredential | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-NetworkCredential | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-NtpDate.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-NtpDate] Tests" {
2 |
3 | It "Number" {
4 | Get-NtpDate | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-NtpDate | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-NtpDate | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-PSWho.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-PSWho] Tests" {
2 |
3 | It "Number" {
4 | Get-PSWho | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-PSWho | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-PSWho | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-Power.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-Power] Tests" {
2 |
3 | It "Number" {
4 | Get-Power | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-Power | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-Power | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-PrintableAscii.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-PrintableAscii] Tests" {
2 |
3 | It "Number" {
4 | Get-PrintableAscii | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-PrintableAscii | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-PrintableAscii | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-PrivateProfileComment.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-PrivateProfileComment] Tests" {
2 |
3 | It "Number" {
4 | Get-PrivateProfileComment | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-PrivateProfileComment | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-PrivateProfileComment | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-PrivateProfileSection.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-PrivateProfileSection] Tests" {
2 |
3 | It "Number" {
4 | Get-PrivateProfileSection | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-PrivateProfileSection | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-PrivateProfileSection | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-PrivateProfileSectionNames.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-PrivateProfileSectionNames] Tests" {
2 |
3 | It "Number" {
4 | Get-PrivateProfileSectionNames | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-PrivateProfileSectionNames | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-PrivateProfileSectionNames | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-PrivateProfileString.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-PrivateProfileString] Tests" {
2 |
3 | It "Number" {
4 | Get-PrivateProfileString | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-PrivateProfileString | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-PrivateProfileString | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-ProcessUser.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-ProcessUser] Tests" {
2 |
3 | It "Number" {
4 | Get-ProcessUser | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-ProcessUser | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-ProcessUser | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-RandomDate.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-RandomDate] Tests" {
2 |
3 | It "Number" {
4 | Get-RandomDate | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-RandomDate | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-RandomDate | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-RandomHexDigit.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-RandomHexDigit] Tests" {
2 |
3 | It "Number" {
4 | Get-RandomHexDigit | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-RandomHexDigit | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-RandomHexDigit | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-RandomMacAddress.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-RandomMacAddress] Tests" {
2 |
3 | It "Number" {
4 | Get-RandomMacAddress | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-RandomMacAddress | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-RandomMacAddress | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-RebootHistory.Tests.ps1:
--------------------------------------------------------------------------------
1 | # todo write pester for Get-RebootHistory
2 |
3 | Describe "[FN] Tests" {
4 |
5 | It "Number" {
6 | Test-Set | Should -Be 15
7 | }
8 |
9 | It "Boolean" {
10 | Test-Set | Should -BeTrue
11 | }
12 |
13 | It "Pipeline" {
14 | "data" | Test-Set | Should -Be 'Hello'
15 | }
16 |
17 | }
18 |
19 |
--------------------------------------------------------------------------------
/Pester/Get-RegExpandString.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-RegExpandString] Tests" {
2 |
3 | It "Number" {
4 | Get-RegExpandString | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-RegExpandString | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-RegExpandString | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-RegistryValue.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-RegistryValue] Tests" {
2 |
3 | It "Number" {
4 | Get-RegistryValue | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-RegistryValue | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-RegistryValue | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-RelativePath.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-RelativePath] Tests" {
2 |
3 | It "Number" {
4 | Get-RelativePath | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-RelativePath | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-RelativePath | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-Round.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-Round] Tests" {
2 |
3 | It "Number" {
4 | Get-Round | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-Round | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-Round | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-SID.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-SID] Tests" {
2 |
3 | It "Number" {
4 | Get-SID | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-SID | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-SID | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-SaveFileName.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-SaveFileName] Tests" {
2 |
3 | It "Number" {
4 | Get-SaveFileName | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-SaveFileName | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-SaveFileName | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-ScheduledTaskUser.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-ScheduledTaskUser] Tests" {
2 |
3 | It "Number" {
4 | Get-ScheduledTaskUser | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-ScheduledTaskUser | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-ScheduledTaskUser | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-ServiceUser.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-ServiceUser] Tests" {
2 |
3 | It "Number" {
4 | Get-ServiceUser | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-ServiceUser | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-ServiceUser | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-ShortName.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-ShortName] Tests" {
2 |
3 | It "Number" {
4 | Get-ShortName | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-ShortName | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-ShortName | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-Shortcut.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-Shortcut] Tests" {
2 |
3 | It "Number" {
4 | Get-Shortcut | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-Shortcut | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-Shortcut | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-SpecialFolder.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-SpecialFolder] Tests" {
2 |
3 | It "Number" {
4 | Get-SpecialFolder | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-SpecialFolder | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-SpecialFolder | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-SqlDatabase.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-SqlDatabase] Tests" {
2 |
3 | It "Number" {
4 | Get-SqlDatabase | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-SqlDatabase | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-SqlDatabase | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-SqlIndexFragmentation.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-SqlIndexFragmentation] Tests" {
2 |
3 | It "Number" {
4 | Get-SqlIndexFragmentation | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-SqlIndexFragmentation | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-SqlIndexFragmentation | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-SqlStoredProcedure.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-SqlStoredProcedure] Tests" {
2 |
3 | It "Number" {
4 | Get-SqlStoredProcedure | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-SqlStoredProcedure | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-SqlStoredProcedure | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-StaticProperty.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-StaticProperty] Tests" {
2 |
3 | It "Number" {
4 | Get-StaticProperty | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-StaticProperty | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-StaticProperty | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-String.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-String] Tests" {
2 |
3 | It "Number" {
4 | Get-String | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-String | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-String | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-StringHash.Tests.ps1:
--------------------------------------------------------------------------------
1 | # todo write pester for Get-StringHash
2 |
3 | Describe "[FN] Tests" {
4 |
5 | It "Number" {
6 | Test-Set | Should -Be 15
7 | }
8 |
9 | It "Boolean" {
10 | Test-Set | Should -BeTrue
11 | }
12 |
13 | It "Pipeline" {
14 | "data" | Test-Set | Should -Be 'Hello'
15 | }
16 |
17 | }
18 |
19 |
--------------------------------------------------------------------------------
/Pester/Get-SubnetMaskIPv4.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-SubnetMaskIPv4] Tests" {
2 |
3 | It "Number" {
4 | Get-SubnetMaskIPv4 | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-SubnetMaskIPv4 | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-SubnetMaskIPv4 | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-TruncatedDate.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-TruncatedDate] Tests" {
2 |
3 | It "Number" {
4 | Get-TruncatedDate | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-TruncatedDate | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-TruncatedDate | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-Type.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-Type] Tests" {
2 |
3 | It "Number" {
4 | Get-Type | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-Type | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-Type | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-TypeAccelerator.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-TypeAccelerator] Tests" {
2 |
3 | It "Number" {
4 | Get-TypeAccelerator | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-TypeAccelerator | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-TypeAccelerator | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-UrlContent.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-UrlContent] Tests" {
2 |
3 | It "Number" {
4 | Get-UrlContent | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-UrlContent | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-UrlContent | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-WordCount.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-WordCount] Tests" {
2 |
3 | It "Number" {
4 | Get-WordCount | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-WordCount | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-WordCount | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Get-WordList.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Get-WordList] Tests" {
2 |
3 | It "Number" {
4 | Get-WordList | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Get-WordList | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Get-WordList | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Invoke-Beep.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Invoke-Beep] Tests" {
2 |
3 | It "Number" {
4 | Invoke-Beep | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Invoke-Beep | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Invoke-Beep | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Invoke-CountdownTimer.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Invoke-CountdownTimer] Tests" {
2 |
3 | It "Number" {
4 | Invoke-CountdownTimer | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Invoke-CountdownTimer | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Invoke-CountdownTimer | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Invoke-SoundPlayer.Tests.ps1:
--------------------------------------------------------------------------------
1 | # todo write pester for Invoke-SoundPlayer
2 |
3 | Describe "[FN] Tests" {
4 |
5 | It "Number" {
6 | Test-Set | Should -Be 15
7 | }
8 |
9 | It "Boolean" {
10 | Test-Set | Should -BeTrue
11 | }
12 |
13 | It "Pipeline" {
14 | "data" | Test-Set | Should -Be 'Hello'
15 | }
16 |
17 | }
18 |
19 |
--------------------------------------------------------------------------------
/Pester/Invoke-Speak.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Invoke-Speak] Tests" {
2 |
3 | It "Number" {
4 | Invoke-Speak | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Invoke-Speak | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Invoke-Speak | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Join-Object.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Join-Object] Tests" {
2 |
3 | It "Number" {
4 | Join-Object | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Join-Object | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Join-Object | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Lock-Workstation.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Lock-Workstation] Tests" {
2 |
3 | It "Number" {
4 | Lock-Workstation | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Lock-Workstation | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Lock-Workstation | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Measure-Char.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Measure-Char] Tests" {
2 |
3 | It "Number" {
4 | Measure-Char | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Measure-Char | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Measure-Char | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Merge-Object.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Merge-Object] Tests" {
2 |
3 | It "Number" {
4 | Merge-Object | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Merge-Object | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Merge-Object | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Move-ToRecycleBin.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Move-ToRecycleBin] Tests" {
2 |
3 | It "Number" {
4 | Move-ToRecycleBin | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Move-ToRecycleBin | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Move-ToRecycleBin | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/New-ColorPicker.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[New-ColorPicker] Tests" {
2 |
3 | It "Number" {
4 | New-ColorPicker | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | New-ColorPicker | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | New-ColorPicker | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/New-Credential.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[New-Credential] Tests" {
2 |
3 | It "Number" {
4 | New-Credential | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | New-Credential | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | New-Credential | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/New-DatePicker.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[New-DatePicker] Tests" {
2 |
3 | It "Number" {
4 | New-DatePicker | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | New-DatePicker | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | New-DatePicker | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/New-FontPicker.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[New-FontPicker] Tests" {
2 |
3 | It "Number" {
4 | New-FontPicker | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | New-FontPicker | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | New-FontPicker | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/New-InputBox.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[New-InputBox] Tests" {
2 |
3 | It "Number" {
4 | New-InputBox | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | New-InputBox | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | New-InputBox | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/New-InputBoxSecureString.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[New-InputBoxSecureString] Tests" {
2 |
3 | It "Number" {
4 | New-InputBoxSecureString | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | New-InputBoxSecureString | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | New-InputBoxSecureString | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/New-MessageBox.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[New-MessageBox] Tests" {
2 |
3 | It "Number" {
4 | New-MessageBox | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | New-MessageBox | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | New-MessageBox | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/New-PFDateFormat.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[New-PFDateFormat] Tests" {
2 |
3 | It "Number" {
4 | New-PFDateFormat | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | New-PFDateFormat | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | New-PFDateFormat | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/New-QR.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[New-QR] Tests" {
2 |
3 | It "Number" {
4 | New-QR | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | New-QR | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | New-QR | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/New-RandomPassword.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[New-RandomPassword] Tests" {
2 |
3 | It "Number" {
4 | New-RandomPassword | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | New-RandomPassword | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | New-RandomPassword | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/New-Screenshot.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[New-Screenshot] Tests" {
2 |
3 | It "Number" {
4 | New-Screenshot | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | New-Screenshot | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | New-Screenshot | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/New-Shortcut.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[New-Shortcut] Tests" {
2 |
3 | It "Number" {
4 | New-Shortcut | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | New-Shortcut | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | New-Shortcut | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/New-VirtualHardDisk.Tests.ps1:
--------------------------------------------------------------------------------
1 | # todo write pester for New-VirtualHardDisk
2 |
3 | Describe "[FN] Tests" {
4 |
5 | It "Number" {
6 | Test-Set | Should -Be 15
7 | }
8 |
9 | It "Boolean" {
10 | Test-Set | Should -BeTrue
11 | }
12 |
13 | It "Pipeline" {
14 | "data" | Test-Set | Should -Be 'Hello'
15 | }
16 |
17 | }
18 |
19 |
--------------------------------------------------------------------------------
/Pester/Optimize-SqlIndexFragmentation.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Optimize-SqlIndexFragmentation] Tests" {
2 |
3 | It "Number" {
4 | Optimize-SqlIndexFragmentation | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Optimize-SqlIndexFragmentation | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Optimize-SqlIndexFragmentation | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Optimize-SqlStoredProcedure.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Optimize-SqlStoredProcedure] Tests" {
2 |
3 | It "Number" {
4 | Optimize-SqlStoredProcedure | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Optimize-SqlStoredProcedure | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Optimize-SqlStoredProcedure | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Out-PDFToPrinter.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Out-PDFToPrinter] Tests" {
2 |
3 | It "Number" {
4 | Out-PDFToPrinter | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Out-PDFToPrinter | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Out-PDFToPrinter | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Read-HostPause.Tests.ps1:
--------------------------------------------------------------------------------
1 | # todo write pester for Read-HostPause
2 |
3 | Describe "[FN] Tests" {
4 |
5 | It "Number" {
6 | Test-Set | Should -Be 15
7 | }
8 |
9 | It "Boolean" {
10 | Test-Set | Should -BeTrue
11 | }
12 |
13 | It "Pipeline" {
14 | "data" | Test-Set | Should -Be 'Hello'
15 | }
16 |
17 | }
18 |
19 |
--------------------------------------------------------------------------------
/Pester/Read-HostWithDefault.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Read-HostWithDefault] Tests" {
2 |
3 | It "Number" {
4 | Read-HostWithDefault | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Read-HostWithDefault | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Read-HostWithDefault | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Remove-BlankOrComment.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Remove-BlankOrComment] Tests" {
2 |
3 | It "Number" {
4 | Remove-BlankOrComment | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Remove-BlankOrComment | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Remove-BlankOrComment | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Remove-EmptyProperty.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Remove-EmptyProperty] Tests" {
2 |
3 | It "Number" {
4 | Remove-EmptyProperty | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Remove-EmptyProperty | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Remove-EmptyProperty | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Remove-FileAttribute.Tests.ps1:
--------------------------------------------------------------------------------
1 | # todo write pester for Remove-FileAttribute
2 |
3 | Describe "[FN] Tests" {
4 |
5 | It "Number" {
6 | Test-Set | Should -Be 15
7 | }
8 |
9 | It "Boolean" {
10 | Test-Set | Should -BeTrue
11 | }
12 |
13 | It "Pipeline" {
14 | "data" | Test-Set | Should -Be 'Hello'
15 | }
16 |
17 | }
18 |
19 |
--------------------------------------------------------------------------------
/Pester/Remove-QuotesFromCsv.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Remove-QuotesFromCsv] Tests" {
2 |
3 | It "Number" {
4 | Remove-QuotesFromCsv | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Remove-QuotesFromCsv | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Remove-QuotesFromCsv | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Remove-TeamsCache.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Remove-TeamsCache] Tests" {
2 |
3 | It "Number" {
4 | Remove-TeamsCache | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Remove-TeamsCache | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Remove-TeamsCache | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Remove-Trailing.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Remove-Trailing] Tests" {
2 |
3 | It "Number" {
4 | Remove-Trailing | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Remove-Trailing | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Remove-Trailing | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Reset-Desktop.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Reset-Desktop] Tests" {
2 |
3 | It "Number" {
4 | Reset-Desktop | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Reset-Desktop | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Reset-Desktop | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Resolve-FQDN.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Resolve-FQDN] Tests" {
2 |
3 | It "Number" {
4 | Resolve-FQDN | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Resolve-FQDN | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Resolve-FQDN | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Resolve-HostName.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Resolve-HostName] Tests" {
2 |
3 | It "Number" {
4 | Resolve-HostName | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Resolve-HostName | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Resolve-HostName | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Resolve-PathForce.Tests.ps1:
--------------------------------------------------------------------------------
1 | # todo write pester for Resolve-PathForce
2 |
3 | Describe "[FN] Tests" {
4 |
5 | It "Number" {
6 | Test-Set | Should -Be 15
7 | }
8 |
9 | It "Boolean" {
10 | Test-Set | Should -BeTrue
11 | }
12 |
13 | It "Pipeline" {
14 | "data" | Test-Set | Should -Be 'Hello'
15 | }
16 |
17 | }
18 |
19 |
--------------------------------------------------------------------------------
/Pester/Set-AutoRun.inf.Tests.ps1:
--------------------------------------------------------------------------------
1 | # todo write pester for Set-AutoRun.inf
2 |
3 | Describe "[FN] Tests" {
4 |
5 | It "Number" {
6 | Test-Set | Should -Be 15
7 | }
8 |
9 | It "Boolean" {
10 | Test-Set | Should -BeTrue
11 | }
12 |
13 | It "Pipeline" {
14 | "data" | Test-Set | Should -Be 'Hello'
15 | }
16 |
17 | }
18 |
19 |
--------------------------------------------------------------------------------
/Pester/Set-Capslock.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Set-Capslock] Tests" {
2 |
3 | It "Number" {
4 | Set-Capslock | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Set-Capslock | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Set-Capslock | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Set-Desktop.ini.Tests.ps1:
--------------------------------------------------------------------------------
1 | # todo write pester for Set-Desktop.ini
2 |
3 | Describe "[FN] Tests" {
4 |
5 | It "Number" {
6 | Test-Set | Should -Be 15
7 | }
8 |
9 | It "Boolean" {
10 | Test-Set | Should -BeTrue
11 | }
12 |
13 | It "Pipeline" {
14 | "data" | Test-Set | Should -Be 'Hello'
15 | }
16 |
17 | }
18 |
19 |
--------------------------------------------------------------------------------
/Pester/Set-Display.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Set-Display] Tests" {
2 |
3 | It "Number" {
4 | Set-Display | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Set-Display | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Set-Display | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Set-EOLTerminator.Tests.ps1:
--------------------------------------------------------------------------------
1 | # todo write pester for Set-EOLTerminator
2 |
3 | Describe "[FN] Tests" {
4 |
5 | It "Number" {
6 | Test-Set | Should -Be 15
7 | }
8 |
9 | It "Boolean" {
10 | Test-Set | Should -BeTrue
11 | }
12 |
13 | It "Pipeline" {
14 | "data" | Test-Set | Should -Be 'Hello'
15 | }
16 |
17 | }
18 |
19 |
--------------------------------------------------------------------------------
/Pester/Set-FileEncoding.Tests.ps1:
--------------------------------------------------------------------------------
1 | # todo write pester for Set-FileEncoding
2 |
3 | Describe "[FN] Tests" {
4 |
5 | It "Number" {
6 | Test-Set | Should -Be 15
7 | }
8 |
9 | It "Boolean" {
10 | Test-Set | Should -BeTrue
11 | }
12 |
13 | It "Pipeline" {
14 | "data" | Test-Set | Should -Be 'Hello'
15 | }
16 |
17 | }
18 |
19 |
--------------------------------------------------------------------------------
/Pester/Set-Numlock.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Set-Numlock] Tests" {
2 |
3 | It "Number" {
4 | Set-Numlock | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Set-Numlock | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Set-Numlock | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Set-PrivateProfileComment.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Set-PrivateProfileComment] Tests" {
2 |
3 | It "Number" {
4 | Set-PrivateProfileComment | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Set-PrivateProfileComment | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Set-PrivateProfileComment | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Set-PrivateProfileString.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Set-PrivateProfileString] Tests" {
2 |
3 | It "Number" {
4 | Set-PrivateProfileString | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Set-PrivateProfileString | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Set-PrivateProfileString | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Set-Scrolllock.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Set-Scrolllock] Tests" {
2 |
3 | It "Number" {
4 | Set-Scrolllock | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Set-Scrolllock | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Set-Scrolllock | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Set-SpeakerVolume.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Set-SpeakerVolume] Tests" {
2 |
3 | It "Number" {
4 | Set-SpeakerVolume | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Set-SpeakerVolume | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Set-SpeakerVolume | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Set-Type.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Set-Type] Tests" {
2 |
3 | It "Number" {
4 | Set-Type | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Set-Type | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Set-Type | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Set-WindowState.Tests.ps1:
--------------------------------------------------------------------------------
1 | # todo write pester for Set-WindowState
2 |
3 | Describe "[FN] Tests" {
4 |
5 | It "Number" {
6 | Test-Set | Should -Be 15
7 | }
8 |
9 | It "Boolean" {
10 | Test-Set | Should -BeTrue
11 | }
12 |
13 | It "Pipeline" {
14 | "data" | Test-Set | Should -Be 'Hello'
15 | }
16 |
17 | }
18 |
19 |
--------------------------------------------------------------------------------
/Pester/Set-WindowStyle.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Set-WindowStyle] Tests" {
2 |
3 | It "Number" {
4 | Set-WindowStyle | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Set-WindowStyle | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Set-WindowStyle | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Show-Calendar.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Show-Calendar] Tests" {
2 |
3 | It "Number" {
4 | Show-Calendar | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Show-Calendar | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Show-Calendar | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Show-FileAttribute.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Show-FileAttribute] Tests" {
2 |
3 | It "Number" {
4 | Show-FileAttribute | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Show-FileAttribute | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Show-FileAttribute | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Show-Object.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Show-Object] Tests" {
2 |
3 | It "Number" {
4 | Show-Object | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Show-Object | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Show-Object | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Show-Progress.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Show-Progress] Tests" {
2 |
3 | It "Number" {
4 | Show-Progress | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Show-Progress | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Show-Progress | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Split-CanonicalName.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Split-Line] Tests" {
2 |
3 | It "Number" {
4 | Split-Line | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Split-Line | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Split-Line | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Split-DistinguishedName.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Split-Line] Tests" {
2 |
3 | It "Number" {
4 | Split-Line | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Split-Line | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Split-Line | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Split-Line.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Split-Line] Tests" {
2 |
3 | It "Number" {
4 | Split-Line | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Split-Line | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Split-Line | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Start-ADReplication.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Start-ADReplication] Tests" {
2 |
3 | It "Number" {
4 | Start-ADReplication | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Start-ADReplication | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Start-ADReplication | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Start-RecordSession.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Start-RecordSession] Tests" {
2 |
3 | It "Number" {
4 | Start-RecordSession | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Start-RecordSession | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Start-RecordSession | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Stop-RecordSession.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Stop-RecordSession] Tests" {
2 |
3 | It "Number" {
4 | Stop-RecordSession | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Stop-RecordSession | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Stop-RecordSession | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Switch-Mute.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Switch-Mute] Tests" {
2 |
3 | It "Number" {
4 | Switch-Mute | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Switch-Mute | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Switch-Mute | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Test-CSVFormat.Tests.ps1:
--------------------------------------------------------------------------------
1 | # todo write pester for Test-CSVFormat
2 |
3 | Describe "[FN] Tests" {
4 |
5 | It "Number" {
6 | Test-Set | Should -Be 15
7 | }
8 |
9 | It "Boolean" {
10 | Test-Set | Should -BeTrue
11 | }
12 |
13 | It "Pipeline" {
14 | "data" | Test-Set | Should -Be 'Hello'
15 | }
16 |
17 | }
18 |
19 |
--------------------------------------------------------------------------------
/Pester/Test-ConnectionAsync.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Test-ConnectionAsync] Tests" {
2 |
3 | It "Number" {
4 | Test-ConnectionAsync | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Test-ConnectionAsync | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Test-ConnectionAsync | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Test-IsAdmin.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Test-IsAdmin] Tests" {
2 |
3 | It "Number" {
4 | Test-IsAdmin | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Test-IsAdmin | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Test-IsAdmin | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Test-IsCapsLock.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Test-IsCapsLock] Tests" {
2 |
3 | It "Number" {
4 | Test-IsCapsLock | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Test-IsCapsLock | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Test-IsCapsLock | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Test-IsDate.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Test-IsDate] Tests" {
2 |
3 | It "Number" {
4 | Test-IsDate | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Test-IsDate | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Test-IsDate | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Test-IsFileLocked.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Test-IsFileLocked] Tests" {
2 |
3 | It "Number" {
4 | Test-IsFileLocked | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Test-IsFileLocked | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Test-IsFileLocked | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Test-IsHexString.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Test-IsHexString] Tests" {
2 |
3 | It "Number" {
4 | Test-IsHexString | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Test-IsHexString | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Test-IsHexString | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Test-IsLocalIPv4.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Test-IsLocalIPv4] Tests" {
2 |
3 | It "Local" {
4 | Test-IsLocalIPv4 -Source 10.100.10.20 -SubnetMask 255.255.255.0 -Target 10.100.10.30 | Should -Be $true
5 | }
6 |
7 | It "Remote" {
8 | Test-IsLocalIPv4 -Source 10.100.10.20 -SubnetMask 255.255.255.0 -Target 10.100.20.30 | Should -Be $false
9 | }
10 |
11 | }
12 |
--------------------------------------------------------------------------------
/Pester/Test-IsNull.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Test-IsNull] Tests" {
2 |
3 | It "Nulls" {
4 | Test-IsNull | Should -BeTrue
5 | Test-IsNull $null | Should -BeTrue
6 | Test-IsNull '' | Should -BeTrue
7 | }
8 |
9 | It "Non-nulls" {
10 | Test-IsNull $true | Should -BeFalse
11 | Test-IsNull $false | Should -BeFalse
12 | Test-IsNull 'string' | Should -BeFalse
13 | Test-IsNull 0 | Should -BeFalse
14 | }
15 |
16 | }
17 |
--------------------------------------------------------------------------------
/Pester/Test-IsNumLock.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Test-IsNumLock] Tests" {
2 |
3 | It "Number" {
4 | Test-IsNumLock | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Test-IsNumLock | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Test-IsNumLock | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Test-IsNumeric.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Test-IsNumeric] Tests" {
2 |
3 | It "Number" {
4 | Test-IsNumeric | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Test-IsNumeric | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Test-IsNumeric | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Test-IsScrollLock.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Test-IsScrollLock] Tests" {
2 |
3 | It "Number" {
4 | Test-IsScrollLock | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Test-IsScrollLock | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Test-IsScrollLock | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Test-IsValidEmailAddress.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Test-IsValidEmailAddress] Tests" {
2 |
3 | It "Number" {
4 | Test-IsValidEmailAddress | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Test-IsValidEmailAddress | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Test-IsValidEmailAddress | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Test-IsValidIPv4.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Test-IsValidIPv4] Tests" {
2 |
3 | It "Number" {
4 | Test-IsValidIPv4 | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Test-IsValidIPv4 | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Test-IsValidIPv4 | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Test-IsValidIPv6.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Test-IsValidIPv6] Tests" {
2 |
3 | It "Number" {
4 | Test-IsValidIPv6 | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Test-IsValidIPv6 | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Test-IsValidIPv6 | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Test-MultipleBool.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Test-MultipleBool] Tests" {
2 |
3 | It "Number" {
4 | Test-MultipleBool | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Test-MultipleBool | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Test-MultipleBool | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Test-Network.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Test-Network] Tests" {
2 |
3 | It "Number" {
4 | Test-Network | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Test-Network | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Test-Network | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Test-NtpDateVsNow.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Test-NtpDateVsNow] Tests" {
2 |
3 | It "Number" {
4 | Test-NtpDateVsNow | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Test-NtpDateVsNow | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Test-NtpDateVsNow | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Test-Password.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Test-Password] Tests" {
2 |
3 | It "Number" {
4 | Test-Password | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Test-Password | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Test-Password | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Test-PasswordComplexity.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Test-PasswordComplexity] Tests" {
2 |
3 | It "Number" {
4 | Test-PasswordComplexity | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Test-PasswordComplexity | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Test-PasswordComplexity | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Test-Port.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Test-Port] Tests" {
2 |
3 | It "Number" {
4 | Test-Port | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Test-Port | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Test-Port | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Test-Set.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Test-Set] Tests" {
2 |
3 | It "Number" {
4 | Test-Set | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Test-Set | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Test-Set | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Update-ExplorerIcon.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Update-ExplorerIcon] Tests" {
2 |
3 | It "Number" {
4 | Update-ExplorerIcon | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Update-ExplorerIcon | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Update-ExplorerIcon | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Use-Stopwatch.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Use-Stopwatch] Tests" {
2 |
3 | It "Number" {
4 | Use-Stopwatch | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Use-Stopwatch | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Use-Stopwatch | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Write-SelectStatement.Tests.ps1:
--------------------------------------------------------------------------------
1 | # todo write pester for Write-SelectStatement
2 |
3 | Describe "[FN] Tests" {
4 |
5 | It "Number" {
6 | Test-Set | Should -Be 15
7 | }
8 |
9 | It "Boolean" {
10 | Test-Set | Should -BeTrue
11 | }
12 |
13 | It "Pipeline" {
14 | "data" | Test-Set | Should -Be 'Hello'
15 | }
16 |
17 | }
18 |
19 |
--------------------------------------------------------------------------------
/Pester/Write-StringArray.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Write-StringArray] Tests" {
2 |
3 | It "Number" {
4 | Write-StringArray | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Write-StringArray | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Write-StringArray | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Write-StringHash.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Write-StringHash] Tests" {
2 |
3 | It "Number" {
4 | Write-StringHash | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Write-StringHash | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Write-StringHash | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/Write-TextMenu.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[Write-TextMenu] Tests" {
2 |
3 | It "Number" {
4 | Write-TextMenu | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | Write-TextMenu | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | Write-TextMenu | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/grep.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[grep] Tests" {
2 |
3 | It "Number" {
4 | grep | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | grep | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | grep | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/mklink.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[mklink] Tests" {
2 |
3 | It "Number" {
4 | mklink | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | mklink | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | mklink | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Pester/sed.Tests.ps1:
--------------------------------------------------------------------------------
1 | Describe "[sed] Tests" {
2 |
3 | It "Number" {
4 | sed | Should -Be 15
5 | }
6 |
7 | It "Boolean" {
8 | sed | Should -BeTrue
9 | }
10 |
11 | It "Pipeline" {
12 | "data" | sed | Should -Be 'Hello'
13 | }
14 |
15 | }
16 |
17 | # todo update Pester tests
18 |
--------------------------------------------------------------------------------
/Resources/License.txt:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2024 Bill Riedy
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/Resources/PoshFunctions.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/riedyw/PoshFunctions/d992d35329b3bbdd3a3391c773b481c888ed5742/Resources/PoshFunctions.ico
--------------------------------------------------------------------------------
/Resources/PoshFunctions.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/riedyw/PoshFunctions/d992d35329b3bbdd3a3391c773b481c888ed5742/Resources/PoshFunctions.png
--------------------------------------------------------------------------------
/Resources/PoshFunctions.xcf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/riedyw/PoshFunctions/d992d35329b3bbdd3a3391c773b481c888ed5742/Resources/PoshFunctions.xcf
--------------------------------------------------------------------------------
/Resources/PoshFunctions128.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/riedyw/PoshFunctions/d992d35329b3bbdd3a3391c773b481c888ed5742/Resources/PoshFunctions128.png
--------------------------------------------------------------------------------
/Resources/PoshFunctions64.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/riedyw/PoshFunctions/d992d35329b3bbdd3a3391c773b481c888ed5742/Resources/PoshFunctions64.png
--------------------------------------------------------------------------------