<?xml version="1.0" encoding="utf-8"?> 
<rss version="2.0"
  xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
  xmlns:atom="http://www.w3.org/2005/Atom">

<channel>

<title>M9K blog: заметки с тегом Powershell</title>
<link>https://blog.m9k.space/tags/powershell/</link>
<description>Заметки обо всём: devops, lifestyle, культура.</description>
<author>M</author>
<language>ru</language>
<generator>E2 (v3877; Aegea)</generator>

<itunes:owner>
<itunes:name>M</itunes:name>
<itunes:email></itunes:email>
</itunes:owner>
<itunes:subtitle>Заметки обо всём: devops, lifestyle, культура.</itunes:subtitle>
<itunes:image href="" />
<itunes:explicit></itunes:explicit>

<item>
<title>Windows перемещение файлов в директории по совпадению части имени</title>
<guid isPermaLink="false">203</guid>
<link>https://blog.m9k.space/all/windows-peremeschenie-faylov-v-direktorii-po-sovpadeniyu-chasti/</link>
<pubDate>Fri, 10 Oct 2025 02:38:06 +0000</pubDate>
<author>M</author>
<comments>https://blog.m9k.space/all/windows-peremeschenie-faylov-v-direktorii-po-sovpadeniyu-chasti/</comments>
<description>
&lt;p&gt;В указанной директории ищем файлы с «_45» или «_16», перемещаем во внутреннюю создаваемую директорию.&lt;/p&gt;
&lt;pre class="e2-text-code"&gt;&lt;code class=""&gt;$dir = &amp;quot;C:\work\pics&amp;quot;
$target = Join-Path $dir 'substrateInstagram'
New-Item -ItemType Directory -Path $target -Force | Out-Null
Get-ChildItem -Path $dir -Filter *.jpg -File |
  Where-Object { $_.BaseName -match '(_45|_16)' } |
  Move-Item -Destination $target&lt;/code&gt;&lt;/pre&gt;</description>
</item>

<item>
<title>Список пользователей в AD по дате последнего входа в систему</title>
<guid isPermaLink="false">35</guid>
<link>https://blog.m9k.space/all/spisok-polzovateley-v-ad-po-date-poslednego-vhoda-v-sistemu/</link>
<pubDate>Fri, 19 Jun 2020 05:53:31 +0000</pubDate>
<author>M</author>
<comments>https://blog.m9k.space/all/spisok-polzovateley-v-ad-po-date-poslednego-vhoda-v-sistemu/</comments>
<description>
&lt;pre class="e2-text-code"&gt;&lt;code class=""&gt;Get-ADUser -filter {enabled -eq $true} -Properties * | Select-Object Name, SamAccountName, @{N=
'LastLogon'; E={[DateTime]::FromFileTime($_.LastLogon)}}|Sort-Object LastLogon -Descending | Out-File D:\1\users.txt -Ap
pend&lt;/code&gt;&lt;/pre&gt;</description>
</item>


</channel>
</rss>