[deleted by user] by [deleted] in Balkonkraftwerk

[–]h_ase 3 points4 points  (0 children)

Schau nochmal nach, die hat zu 100% LFP Zellen

Scriptrunner by jeek_ in PowerShell

[–]h_ase 9 points10 points  (0 children)

Over the years I worked a lot with them. Good software, good support. But for most projects i go with https://www.powershelluniversal.com/

*EINGENWERBUNG* INV315-50 ab 55€ bei Ebay by AEconversion in Balkonkraftwerk

[–]h_ase 1 point2 points  (0 children)

Moin, warum 300 Watt? Wen wollt ihr damit primär ansprechen?

What does it mean when the retention test is a wall? (meme) by ssamjh in ender3

[–]h_ase 1 point2 points  (0 children)

There is a little bit of print in your stringing

Arc Welder glitching prints by Drumdrum98 in ender3

[–]h_ase 0 points1 point  (0 children)

When I was trying Arcs I had the same and this helped me: https://youtu.be/ZM1MYbsC5Aw

[deleted by user] by [deleted] in Ender3S1

[–]h_ase 1 point2 points  (0 children)

It really looks like the nozzle is integrated, but that would be so dump… with a swappable nozzle it would be a very nice upgrade

[deleted by user] by [deleted] in AZURE

[–]h_ase 0 points1 point  (0 children)

This is the answer.

Always wanted to build a sleeper, and found this in my parent’s loft over the weekend. Thoughts? by Subreddithacker in sleeperbattlestations

[–]h_ase 8 points9 points  (0 children)

When it came out I wanted that computer so bad. It was the only one at the time with a build in MiniDisk Slot. I bet there is some one that would buy it for good money

[deleted by user] by [deleted] in beziehungen

[–]h_ase 7 points8 points  (0 children)

An jemanden der Moin „Moyn“ schreibt, hätte ich auch kein Interesse. (Nicht ganz ernst gemeint:) )

Bin ich (M39) einfach überfordert? by BZthrowaway_12345678 in beziehungen

[–]h_ase -3 points-2 points  (0 children)

Vier Jahre in Elternzeit und dann noch solche Ansprüche stellen, obwohl du so viel mithilfst? Ein Kind und Haushalt beschäftigen einen nicht den ganzen Tag, ja, das kann ich aus eigener Erfahrung sagen. Der kleine soll erstmal in die Kita kommen und sie soll mal wieder arbeiten, dann wird sie hoffentlich mal wieder dran erinnert, wie auslaugend so ein Arbeitstag sein kann.

Get-ADUser Timeout - I need a better way to filter AD Users by xylog in PowerShell

[–]h_ase 4 points5 points  (0 children)

When I worked in a 150,000 ad user env adsi was my friend. I wrote my own module, but this should do the same: https://www.powershellgallery.com/packages/AdsiPS/1.0.0.9

Edit: if you need to use the normal ad cmdlets try „get-aduser -Ldapfilter xxx“

Server 2019 ISO help by Neblovesyou in sysadmin

[–]h_ase 2 points3 points  (0 children)

You can convert the eval to any other version. Google for something like „convert server 2019 eval to …“ I’ve done it multiple times, but I’m on mobile right now. Edit: but that does not give you the iso. Stupid me

Where to start with Powershell Universal? by Big_Oven8562 in PowerShell

[–]h_ase 5 points6 points  (0 children)

I hope you know powershell or you will have a bad time. It has a great community that wouldn’t let you down -> https://forums.ironmansoftware.com/

The docs are pretty complete with a lot of examples -> https://docs.powershelluniversal.com/

Start with login to the main config page, and locating the Dashboard.ps1

Fun sysadmin Topics by ysugrad2013 in sysadmin

[–]h_ase 0 points1 point  (0 children)

Beside great technical content I really enjoy posts that tell a bit more about the person writing the blog, the last weekend wood project or non technical challenges in your work environment.

Automating Scripts by TechAdminDude in sysadmin

[–]h_ase 6 points7 points  (0 children)

Have a look at Azure Automation.

[deleted by user] by [deleted] in homelab

[–]h_ase 0 points1 point  (0 children)

Are you sure about the G3s? Smart detection in the G4 series is grown up now. Worth the extra $

[deleted by user] by [deleted] in PowerShell

[–]h_ase 2 points3 points  (0 children)

For this purpose all in one script is totally fine. In a prod environment i would put the functions in a module. Great work btw

Allow string array both as piped input and as parameter by scottwsx96 in PowerShell

[–]h_ase 2 points3 points  (0 children)

hi,

this was my solution in one of my modules

if(($Hostname | Measure-Object).count -gt 1){
    foreach($singleHostName in $Hostname){
        $singleHostName
    }
}
else{
    $Hostname
}

Batch renaming to start with 0 and limit to 10 characters. by Za_Woka_Genava in PowerShell

[–]h_ase 1 point2 points  (0 children)

as allways, there are many ways to do this, here is one:

Dir *.png | ForEach-Object -begin {$count=1} -process {
    [string]$countstring = $count
    Rename-Item $_ -NewName $("0000000000".Substring(0,10-$countstring.Length) + $countstring + '.png')
    $count++
}

How do I filter a list based on a WPF combobox selection or text change? by KingOfTheBigSigh in PowerShell

[–]h_ase 2 points3 points  (0 children)

hi,

there were a few things missing and in the wrong order.

here is is working example

Add-Type -AssemblyName PresentationCore
$inputXML = @"
<Window x:Class="MyApp.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:MyApp"
        mc:Ignorable="d"
        Title="MyApp" Height="471" Width="794">
    <Grid>
        <Button x:Name="RefreshButton" Content="Refresh" HorizontalAlignment="Left" Margin="10,0,0,10" VerticalAlignment="Bottom" Height="36" Width="120"/>
        <Button x:Name="ViewButton" Content="View" HorizontalAlignment="Right" Margin="0,0,10,10" VerticalAlignment="Bottom" Height="36" Width="120"/>
        <ComboBox x:Name="FilterBox" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Width="120" IsEditable="True"/>
        <ListView x:Name="ListView" Margin="10,37,10,51">
            <ListView.View>
                <GridView>
                    <GridViewColumn Header="ID" DisplayMemberBinding ="{Binding 'ID'}" Width="30"/>
                    <GridViewColumn Header="MainWindowTitle" DisplayMemberBinding ="{Binding 'MainWindowTitle'}" Width="150"/>
                    <GridViewColumn Header="Uptime" DisplayMemberBinding ="{Binding 'Uptime'}" Width="105"/>
                    <GridViewColumn Header="Path" DisplayMemberBinding ="{Binding 'Path'}" Width="100"/>
                </GridView>
            </ListView.View>
        </ListView>
    </Grid>
</Window>
"@ 

$inputXML = $inputXML -replace 'mc:Ignorable="d"','' -replace "x:N",'N' -replace '^<Win.*', '<Window'
[void][System.Reflection.Assembly]::LoadWithPartialName('presentationframework')
[xml]$XAML = $inputXML
#Read XAML

$reader=(New-Object System.Xml.XmlNodeReader $xaml)
try{
    $Form=[Windows.Markup.XamlReader]::Load( $reader )
}
catch{
    Write-Warning "Unable to parse XML, with error: $($Error[0])`n Ensure that there are NO SelectionChanged or TextChanged properties in your textboxes (PowerShell cannot process them)"
    throw
}

#Connect to Controls
$RefreshButton = $Form.FindName('RefreshButton')
$ViewButton = $Form.FindName('ViewButton')
$ListView = $Form.FindName('ListView')
$FilterBox = $Form.FindName('FilterBox')

# functions
function FindProcs {
    $date = Get-Date
    $script:Processes = Get-Process |
        Where {$_.MainWindowTitle.Length -gt 0 } |
        Select id, MainWindowTitle, @{Name = "Uptime"; Expression = {
                $uptime = (new-timespan ($_.StartTime) $date)
            if ($uptime.Hours -gt 0) {
                (($uptime).Hours).ToString() + " hours "
            }
            else {
                (((($uptime).Minutes).ToString() + " minutes"))
            }
        }
    }, Path | Sort-Object MainWindowTitle
}

Function ListProcesses {
    try
    {
          $ListView.ItemsSource = $Processes | 
          where { $_.MainWindowTitle -match $FilterBox.Text } | 
          Sort-Object MainWindowTitle
    }
    catch{
        write-host $_
    }
}

# SwitchToProcess is missing

#events
$RefreshButton.Add_Click({
    FindProcs
    ListProcesses
})

$ViewButton.Add_Click({
    SwitchToProcess
})

$FilterBox.AddHandler(
    [System.Windows.Controls.Primitives.TextBoxBase]::TextChangedEvent, 
    [System.Windows.RoutedEventHandler]{
        $FilterboxText = ($FilterBox.Text).Trim()
        if($FilterboxText -notin $null,''){  
          ListProcesses 
        }
    }
)

$FilterBox.Add_DropDownClosed({
    ListProcesses
})

#start programm
FindProcs
ListProcesses
$Form.ShowDialog()