Skip to content

Commit

Permalink
Fu..
Browse files Browse the repository at this point in the history
  • Loading branch information
PrzemyslawKlys committed Dec 19, 2019
1 parent 44e732e commit 12d83c0
Show file tree
Hide file tree
Showing 3 changed files with 106 additions and 96 deletions.
198 changes: 104 additions & 94 deletions PSSharedGoods.psd1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#
#
# Module manifest for module 'PSSharedGoods'
#
# Generated by: Przemyslaw Klys
Expand All @@ -12,7 +12,7 @@
RootModule = 'PSSharedGoods.psm1'

# Version number of this module.
ModuleVersion = '0.0.108'
ModuleVersion = '0.0.110'

# Supported PSEditions
CompatiblePSEditions = 'Desktop', 'Core'
Expand All @@ -32,13 +32,13 @@
# Description of the functionality provided by this module
Description = 'Module covering functions that are shared within multiple projects'

# Minimum version of the Windows PowerShell engine required by this module
# Minimum version of the PowerShell engine required by this module
PowerShellVersion = '5.1'

# Name of the Windows PowerShell host required by this module
# Name of the PowerShell host required by this module
# PowerShellHostName = ''

# Minimum version of the Windows PowerShell host required by this module
# Minimum version of the PowerShell host required by this module
# PowerShellHostVersion = ''

# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
Expand All @@ -51,7 +51,7 @@
# ProcessorArchitecture = ''

# Modules that must be imported into the global environment prior to importing this module
RequiredModules = @(@{ModuleName = 'PSWriteColor'; GUID = '0b0ba5c5-ec85-4c2b-a718-874e55a8bc3f'; ModuleVersion = '0.86'; },
RequiredModules = @(@{ModuleName = 'PSWriteColor'; GUID = '0b0ba5c5-ec85-4c2b-a718-874e55a8bc3f'; ModuleVersion = '0.86'; },
@{ModuleName = 'Connectimo'; GUID = 'e4f4f8a6-473e-4ba5-8166-480658c11421'; ModuleVersion = '0.0.3'; })

# Assemblies that must be loaded prior to importing this module
Expand All @@ -70,83 +70,84 @@
# NestedModules = @()

# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
FunctionsToExport = 'Add-WinADUserGroups', 'Find-ADConnectServer', 'Find-ExchangeServer',
'Find-HyperVServer', 'Find-ServerTypes',
'Find-UsersProxyAddressesStatus', 'Get-WinADForestControllers',
'Get-WinADForestOptions', 'Get-WinADOrganizationalUnitData',
'Get-WinADOrganizationalUnitFromDN', 'Get-WinADUsersByDN',
'Get-WinADUsersByOU', 'Get-WinADUserSnapshot',
'Remove-WinADUserGroups', 'Set-WinADGroupSynchronization',
'Set-WinADUserFields', 'Set-WinADUserSettingGAL',
'Set-WinADUserStatus', 'Add-PropertyToList', 'New-UserAdd',
'Set-SpecUser', 'Set-WinAzureADUserField',
'Set-WinAzureADUserLicense', 'Set-WinAzureADUserStatus',
'Get-CimData', 'Get-ComputerApplications', 'Get-ComputerBios',
'Get-ComputerCPU', 'Get-ComputerCulture', 'Get-ComputerDisk',
'Get-ComputerDiskLogical', 'Get-ComputerMissingDrivers',
'Get-ComputerNetwork', 'Get-ComputerOemInformation',
'Get-ComputerOperatingSystem', 'Get-ComputerRDP',
'Get-ComputerServices', 'Get-ComputerSMB', 'Get-ComputerSMBShare',
'Get-ComputerStartup', 'Get-ComputerSystem', 'Get-ComputerTasks',
'Get-ComputerTime', 'Get-ComputerTimeNtp',
'Get-ComputerWindowsFeatures', 'Get-ComputerWindowsUpdates',
'Get-ServerRoles', 'Get-IPAddressInformation', 'Get-MyIpAddress',
'Set-PasswordRemotely', 'Convert-BinaryToHex',
'Convert-BinaryToString', 'Convert-Color', 'Convert-ExchangeEmail',
'Convert-ExchangeItems', 'Convert-ExchangeRecipientDetails',
'Convert-ExchangeSize', 'ConvertFrom-Color', 'Convert-HexToBinary',
'Convert-KeyToKeyValue', 'Convert-Office365License', 'Convert-Size',
'Convert-TimeToDays', 'Convert-ToDateTime', 'Convert-ToTimeSpan',
'Convert-TwoArraysIntoOne', 'Convert-UAC',
'ConvertFrom-DistinguishedName', 'ConvertFrom-ErrorRecord',
'ConvertFrom-HTML', 'ConvertFrom-OperationType',
'ConvertFrom-ScriptBlock', 'ConvertFrom-SID',
'ConvertFrom-X500Address', 'ConvertTo-ImmutableID',
'ConvertTo-OperatingSystem', 'ConvertTo-OrderedDictionary',
'ConvertTo-ScriptBlock', 'Find-DatesCurrentDayMinusDayX',
'Find-DatesCurrentDayMinuxDaysX', 'Find-DatesCurrentHour',
'Find-DatesDayPrevious', 'Find-DatesDayToday',
'Find-DatesMonthCurrent', 'Find-DatesMonthPast', 'Find-DatesPastHour',
'Find-DatesPastWeek', 'Find-DatesQuarterCurrent',
'Find-DatesQuarterLast', 'Set-DnsServerIpAddress', 'Get-HTML',
'Send-Email', 'Set-EmailBody', 'Set-EmailBodyPreparedTable',
'Set-EmailBodyReplacement', 'Set-EmailBodyReplacementTable',
'Set-EmailFormatting', 'Set-EmailHead', 'Set-EmailReportBranding',
'Set-EmailWordReplacements', 'Set-EmailWordReplacementsHash',
'Get-FileInformation', 'Get-FileName', 'Get-FilesInFolder',
'Get-FileSize', 'Get-PathSeparator', 'Get-PathTemporary',
'Get-TemporaryDirectory', 'Remove-FilePermission',
'Set-FileInheritance', 'Set-FilePermission',
'Get-GitHubLatestRelease', 'Get-Logger', 'Add-ToArray',
'Add-ToArrayAdvanced', 'Add-ToHashTable', 'Clear-DataInformation',
'Compare-MultipleObjects', 'Compare-ObjectsAdvanced',
'Compare-ObjectProperties', 'Copy-OrderedHashtable',
'Format-AddSpaceToSentence', 'Format-FirstXChars', 'Format-PSTable',
'Format-Stream', 'Format-ToTitleCase', 'Format-TransposeTable',
'Format-View', 'Get-Colors', 'Get-DataInformation', 'Get-HashMaxValue',
'Get-MimeType', 'Get-ObjectCount', 'Get-ObjectData',
'Get-ObjectEnumValues', 'Get-ObjectKeys', 'Get-ObjectProperties',
'Get-ObjectPropertiesAdvanced', 'Get-ObjectTitles', 'Get-ObjectType',
'Get-Types', 'Merge-Array', 'Merge-Objects', 'New-ArrayList',
'New-GenericList', 'Remove-DuplicateObjects', 'Remove-EmptyValues',
'Remove-FromArray', 'Remove-ObjectsExistingInTarget',
'Remove-WhiteSpace', 'Rename-LatinCharacters',
'Rename-UserValuesFromHash', 'Select-Properties', 'Split-Array',
'Split-ArrayEvery', 'Find-MyProgramData', 'Initialize-ModulePortable',
'Start-InternalFunction', 'Start-MyProgram', 'Get-RandomCharacters',
'Get-RandomFileName', 'Get-RandomPassword', 'Get-RandomStringName',
'Get-CommandInfo', 'New-Runspace', 'Start-Runspace', 'Stop-Runspace',
'Get-PSRegistry', 'Get-PSService', 'Set-ServiceRecovery',
'Get-SqlQueryColumnInformation', 'New-SqlQuery',
'New-SqlQueryAlterTable', 'New-SqlQueryCreateTable',
'New-SqlTableMapping', 'Send-SqlInsert', 'Find-TypesNeeded',
'Get-ModulesAvailability', 'Search-Command',
'Test-AvailabilityCommands', 'Test-ComputerAvailability',
'Test-ComputerPort', 'Test-ConfigurationCredentials',
'Test-ForestConnectivity', 'Test-Key', 'Test-ModuleAvailability',
'Test-WinRM', 'Get-TimeSetttings', 'Get-TimeZoneAdvanced',
'Get-TimeZoneLegacy', 'Measure-Collection', 'Set-TimeSynchronization',
'Start-TimeLog', 'Stop-TimeLog', 'Show-Array', 'Show-DataInVerbose',
FunctionsToExport = 'Add-WinADUserGroups', 'Find-ADConnectServer', 'Find-ExchangeServer',
'Find-HyperVServer', 'Find-ServerTypes',
'Find-UsersProxyAddressesStatus', 'Get-WinADForestControllers',
'Get-WinADForestOptions', 'Get-WinADOrganizationalUnitData',
'Get-WinADOrganizationalUnitFromDN', 'Get-WinADUsersByDN',
'Get-WinADUsersByOU', 'Get-WinADUserSnapshot',
'Remove-WinADUserGroups', 'Set-WinADGroupSynchronization',
'Set-WinADUserFields', 'Set-WinADUserSettingGAL',
'Set-WinADUserStatus', 'Add-PropertyToList', 'New-UserAdd',
'Set-SpecUser', 'Set-WinAzureADUserField',
'Set-WinAzureADUserLicense', 'Set-WinAzureADUserStatus',
'Get-CimData', 'Get-ComputerApplications', 'Get-ComputerBios',
'Get-ComputerCPU', 'Get-ComputerCulture', 'Get-ComputerDisk',
'Get-ComputerDiskLogical', 'Get-ComputerMissingDrivers',
'Get-ComputerNetwork', 'Get-ComputerOemInformation',
'Get-ComputerOperatingSystem', 'Get-ComputerRDP',
'Get-ComputerServices', 'Get-ComputerSMB', 'Get-ComputerSMBShare',
'Get-ComputerStartup', 'Get-ComputerSystem', 'Get-ComputerTasks',
'Get-ComputerTime', 'Get-ComputerTimeNtp',
'Get-ComputerWindowsFeatures', 'Get-ComputerWindowsUpdates',
'Get-ServerRoles', 'Get-IPAddressInformation', 'Get-MyIpAddress',
'Set-PasswordRemotely', 'Convert-BinaryToHex',
'Convert-BinaryToString', 'Convert-Color', 'Convert-ExchangeEmail',
'Convert-ExchangeItems', 'Convert-ExchangeRecipientDetails',
'Convert-ExchangeSize', 'ConvertFrom-Color',
'ConvertFrom-DistinguishedName', 'ConvertFrom-ErrorRecord',
'ConvertFrom-HTML', 'ConvertFrom-OperationType',
'ConvertFrom-ScriptBlock', 'ConvertFrom-SID',
'ConvertFrom-X500Address', 'Convert-HexToBinary',
'Convert-KeyToKeyValue', 'Convert-Office365License', 'Convert-Size',
'Convert-TimeToDays', 'Convert-ToDateTime', 'ConvertTo-ImmutableID',
'ConvertTo-OperatingSystem', 'ConvertTo-OrderedDictionary',
'ConvertTo-ScriptBlock', 'Convert-ToTimeSpan',
'Convert-TwoArraysIntoOne', 'Convert-UAC',
'Find-DatesCurrentDayMinusDayX', 'Find-DatesCurrentDayMinuxDaysX',
'Find-DatesCurrentHour', 'Find-DatesDayPrevious',
'Find-DatesDayToday', 'Find-DatesMonthCurrent', 'Find-DatesMonthPast',
'Find-DatesPastHour', 'Find-DatesPastWeek',
'Find-DatesQuarterCurrent', 'Find-DatesQuarterLast',
'Set-DnsServerIpAddress', 'Get-HTML', 'Send-Email', 'Set-EmailBody',
'Set-EmailBodyPreparedTable', 'Set-EmailBodyReplacement',
'Set-EmailBodyReplacementTable', 'Set-EmailFormatting',
'Set-EmailHead', 'Set-EmailReportBranding',
'Set-EmailWordReplacements', 'Set-EmailWordReplacementsHash',
'Get-FileInformation', 'Get-FileName', 'Get-FilesInFolder',
'Get-FileSize', 'Get-PathSeparator', 'Get-PathTemporary',
'Get-TemporaryDirectory', 'Remove-FilePermission',
'Set-FileInheritance', 'Set-FilePermission',
'Get-GitHubLatestRelease', 'Get-Logger', 'Add-ToArray',
'Add-ToArrayAdvanced', 'Add-ToHashTable', 'Clear-DataInformation',
'Compare-MultipleObjects', 'Compare-ObjectsAdvanced',
'Compare-ObjectProperties', 'Copy-OrderedHashtable',
'Format-AddSpaceToSentence', 'Format-FirstXChars', 'Format-PSTable',
'Format-Stream', 'Format-ToTitleCase', 'Format-TransposeTable',
'Format-View', 'Get-Colors', 'Get-DataInformation', 'Get-HashMaxValue',
'Get-MimeType', 'Get-ObjectCount', 'Get-ObjectData',
'Get-ObjectEnumValues', 'Get-ObjectKeys', 'Get-ObjectProperties',
'Get-ObjectPropertiesAdvanced', 'Get-ObjectTitles', 'Get-ObjectType',
'Get-Types', 'Merge-Array', 'Merge-Objects', 'New-ArrayList',
'New-GenericList', 'Remove-DuplicateObjects', 'Remove-EmptyValues',
'Remove-FromArray', 'Remove-ObjectsExistingInTarget',
'Remove-WhiteSpace', 'Rename-LatinCharacters',
'Rename-UserValuesFromHash', 'Select-Properties', 'Split-Array',
'Split-ArrayEvery', 'Find-MyProgramData', 'Initialize-ModulePortable',
'Start-InternalFunction', 'Start-MyProgram', 'Get-RandomCharacters',
'Get-RandomFileName', 'Get-RandomPassword', 'Get-RandomStringName',
'Get-CommandInfo', 'New-Runspace', 'Start-Runspace', 'Stop-Runspace',
'Get-PSRegistry', 'Get-PSService', 'Set-ServiceRecovery',
'Get-SqlQueryColumnInformation', 'New-SqlQuery',
'New-SqlQueryAlterTable', 'New-SqlQueryCreateTable',
'New-SqlTableMapping', 'Send-SqlInsert', 'Find-TypesNeeded',
'Get-ModulesAvailability', 'Search-Command',
'Test-AvailabilityCommands', 'Test-ComputerAvailability',
'Test-ComputerPort', 'Test-ConfigurationCredentials',
'Test-ForestConnectivity', 'Test-Key', 'Test-ModuleAvailability',
'Test-WinRM', 'Get-TimeSetttings', 'Get-TimeZoneAdvanced',
'Get-TimeZoneLegacy', 'Measure-Collection', 'Set-TimeSynchronization',
'Start-TimeLog', 'Stop-TimeLog', 'Show-Array', 'Show-DataInVerbose',
'Show-TableVisualization', 'Save-XML', 'Set-XML'

# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
Expand All @@ -156,14 +157,14 @@
# VariablesToExport = @()

# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
AliasesToExport = 'Add-ADUserGroups', 'Find-ADSyncServer', 'Get-WinADDomainControllers',
'Get-ADUserSnapshot', 'Remove-ADUserGroups', 'Set-ADUserName',
'Set-ADUserSettingGAL', 'Set-ADUserStatus', 'Get-ComputerNetworkCard',
'Get-RDPSecurity', 'Get-MyIP', 'Convert-FromColor',
'Convert-HTMLToString', 'Set-EmailBodyTableReplacement',
'Remove-Permission', 'Set-Inheritance', 'Set-Permission', 'FS',
'Format-TableStream', 'Format-ListStream', 'FV', 'Format-Verbose',
'Format-Debug', 'Format-Warning', 'Remove-StringLatinCharacters',
AliasesToExport = 'Add-ADUserGroups', 'Find-ADSyncServer', 'Get-WinADDomainControllers',
'Get-ADUserSnapshot', 'Remove-ADUserGroups', 'Set-ADUserName',
'Set-ADUserSettingGAL', 'Set-ADUserStatus', 'Get-ComputerNetworkCard',
'Get-RDPSecurity', 'Get-MyIP', 'Convert-FromColor',
'Convert-HTMLToString', 'Set-EmailBodyTableReplacement',
'Remove-Permission', 'Set-Inheritance', 'Set-Permission', 'FS',
'Format-TableStream', 'Format-ListStream', 'FV', 'Format-Verbose',
'Format-Debug', 'Format-Warning', 'Remove-StringLatinCharacters',
'Set-Recovery', 'Get-TimeSynchronization'

# DSC resources to export from this module
Expand All @@ -181,21 +182,30 @@
PSData = @{

# Tags applied to this module. These help with module discovery in online galleries.
Tags = 'Windows', 'MacOS', 'Linux', 'Shared', 'Useful', 'Email', 'Format', 'Azure',
Tags = 'Windows', 'MacOS', 'Linux', 'Shared', 'Useful', 'Email', 'Format', 'Azure',
'ActiveDirectory'

# A URL to the license for this module.
# LicenseUri = ''

# A URL to the main website for this project.
ProjectUri = 'https://github.com/EvotecIT/PSSharedGoods'
ProjectUri = 'https://github.com/EvotecIT/PSSharedGoods'

# A URL to an icon representing this module.
IconUri = 'https://evotec.xyz/wp-content/uploads/2018/10/PSSharedGoods-Alternative.png'
IconUri = 'https://evotec.xyz/wp-content/uploads/2018/10/PSSharedGoods-Alternative.png'

# ReleaseNotes of this module
# ReleaseNotes = ''

# Prerelease string of this module
# Prerelease = ''

# Flag to indicate whether the module requires explicit user acceptance for install/update/save
RequireLicenseAcceptance = $true

# External dependent modules of this module
# ExternalModuleDependencies = @()

} # End of PSData hashtable

} # End of PrivateData hashtable
Expand Down
2 changes: 1 addition & 1 deletion Public/ActiveDirectory/Get-WinADForestControllers.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,4 @@ function Get-WinADForestControllers {
return $Servers
}

Get-WinADForestControllers | Format-Table -AutoSize
#Get-WinADForestControllers | Format-Table -AutoSize
2 changes: 1 addition & 1 deletion Public/Computers/Get-ComputerNetwork.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -195,5 +195,5 @@
}
}

Get-ComputerNetwork -ComputerName AD1, AD2 | Format-Table -a *
#Get-ComputerNetwork -ComputerName AD1, AD2 | Format-Table -a *
#Get-CimData -ComputerName AD1 -Class 'Win32_NetworkAdapterConfiguration'

0 comments on commit 12d83c0

Please sign in to comment.