Functions/Startup.ps1
function Startup { [CmdletBinding()] param ( ) Set-Location "\" $GitFolder = "$($env:USERPROFILE)\git" $ImportedModules = @() $MyModules = @() $MyModules += "HypervDomainEnv" $MyModules += "HyperVTools" $MyModules += "JaapsTools" $MyModules += "OfficeAndAzureTools" $MyModules += "Testmodule1" $MyModules += "VMwareTools" $MyModules += "WindowsImaging" $MyModules | ForEach-Object { $ThisModule = "$($GitFolder)\$($_)\$($_).psd1" # $ThisModule if (Test-Path $ThisModule) { $ImportedModules += Import-Module $ThisModule -Force -Global } } # $ImportedModules $CPL = Get-ChildItem C:\Windows\System32\*.cpl | Select-Object Name $MSC = Get-ChildItem C:\Windows\System32\*.msc | Select-Object Name $CPLplusMSC = $CPL + $MSC $CPLplusMSC | Format-Wide -Column 4 # Get-ChildItem "$([Environment]::GetFolderPath("MyDocuments"))\WindowsPowerShell\pwd" | Select-Object Name | Format-Wide -Column 4 # Write-Output "----" # Get-WorkingTime Get-Alias | Where-Object Source -EQ "JaapsTools" | Select-Object Name, ResolvedCommand | Format-Table New-Alias -Name uss Unlock-SecretStore -PassThru -Force -ErrorAction 0 -Scope Global # Export-Alias uss # Write-Output "----`n`n" } |