Результаты полнотекстового поиска:
- Удалённое переименование доменных компьютеров по списку из CSV @powershell:remote-windows-management
- в формате CSV в файл, например, с именем ''Rename-Computers-List.csv''. Файл будет содержать в каждой о... аться пустой. Пример заполненного файла ''Rename-Computers-List.csv'': {{ :powershell:remote-windows-... т следующего содержания: <file powershell Rename-Computers-CSV.ps1>$File = $PSScriptRoot + "\Rename-Computers-List.csv" # If(![System.IO.File]::Exists($Fi
- Powershell скрипт для получения списка всех учётных записей с Kerberos Unconstrained Delegation в домене Active Directory @powershell:active-directory
- позаимствован из статьи [[https://learn.microsoft.com/en-us/archive/blogs/389thoughts/get-rid-of-accoun... domain. [string]$DN = "OU=SUB,DC=my,DC=domain,DC=com" ) $SERVER_TRUST_ACCOUNT = 0x2000 $TRUSTED_FOR_D... 40.113556.1.4.804:=$bitmask) ) (| (objectcategory=computer) (objectcategory=person) (objectcategory=msD... -AllowedToActOnBehalfOfOtherIdentity' -ne $null $comment = "" if ((-not $isDC) -and $fullDelegation) {
- PowerShell & Active Directory
- log.it-kb.ru/2013/04/03/extract-information-about-computers-users-exchange-mailboxes-lync-from-active-directory-by-company-via-powershell/|Извлекаем информацию из Activ... [с почтовыми ящиками]. Пакетная замена атрибута "company" для пользователей и компьютеров) * [[https... t-kb.ru/2011/01/23/powershell-search-old-user-and-computer-accounts/|Поиск неиспользуемых учетных запис
- PowerShell - Получаем список членов группы с дополнительными атрибутами @powershell:active-directory
- й на блоки с зависимости от конкретного атрибута (company): <code powershell>Get-ADGroupMember -Recur... q $_.SamAccountName} ` -Properties displayName, company, title, department } ` | Sort-Object company,displayName ` | Format-Table displayName,company,department,title -GroupBy company -AutoSize ` |
- Изменения PowerShell и новые командлеты для SQL Server 2016 @powershell:sql-server
- водом оригинальной стать: [[https://www.mssqltips.com/sqlservertip/4513/powershell-changes-and-new-cmdl... выполните следующую команду. <code powershell>get-command -module SQLSERVER</code> \\ ==== Командлет G... rorLog** следующим образом: <code powershell>Get-Command | Where-Object {$_.Name -eq"Get-SqlErrorLog"}... lErrorLog следующим образом: <code powershell>Get-Command | Where-Object {$_.Name -eq "Set-SqlErrorLog"
- Поиск виртуальных машин в кластере Hyper-V с выключенным признаком Processor Compatibility @powershell:microsoft-hyper-v
- ластере Hyper-V с выключенным признаком Processor Compatibility ===== Чтобы найти в кластере **Hyper-... чен признак совместимости процессоров **Processor Compatibility** (позволяет выполнять миграцию ВМ межд... q "Virtual Machine") ` | Get-VMProcessor | where CompatibilityForMigrationEnabled -eq $False</code> ... tag>"Windows Server" "Windows Server 2012 R2" Cluster PowerShell Hyper-V Compatibility}} ~~DISCUSSION~~
- Запрос экземпляров SQL Server по списку серверов из Active Directory @powershell:sql-server
- ) ` -SearchBase "OU=YourServers,DC=YourDomain,DC=com" ` | Select-Object -expand Name ) Invoke-Command -ComputerName ( ` Get-ADComputer -Filter ('Name -like "*SQL*" -Or Name -like "*DB*"') ` -SearchBase "OU=YourServers,DC=YourDomain,DC=com" ` | Select-Object -expand Name ) ` -ScriptBloc
- PowerShell & Удалённое управление Windows
- blog.it-kb.ru/2012/01/25/powershell-rename-remote-computer/|Переименовываем удалённый компьютер (WMI)]]... agement:powershell-bulk-remote-renaming-of-domain-computers-with-list-from-CSV-file|Переименование доме... ile-using-kerberos-authentication-cannot-find-the-computer/|PowerShell New-PSSession - WinRM cannot pro... e request. The following error occurred while using Kerberos authentication: Cannot find the computer]]
- Примеры использования PowerShell для управления SQL Server
- hell:sql-server:powershell-one-line-solutions-for-common-sql-server-dba-tasks-scripting-sql-server-data... hell:sql-server:powershell-one-line-solutions-for-common-sql-server-dba-tasks-collecting-information-in... hell:sql-server:powershell-one-line-solutions-for-common-sql-server-dba-tasks-more-complex-examples|Пример 3: Более сложные примеры PowerShell для SQL Serve
- Аудит безопасности средствами PowerShell
- * [[https://blog.it-kb.ru/2010/12/09/powershell-compare-firewall-rules-on-remote-computers/|Сравнение включённых правил брандмауэра на двух компьютерах]] ... non-standard-non-administrative-shared folders-on-computers-and-servers|Опрос сети для поиска нестандар
- Восстановление доверительных отношений между компьютером и доменом Active Directory @powershell:active-directory
- ожно выполнить командлет: <code powershell>Test-ComputerSecureChannel</code> Возвратом будут значени... длет с ключом ''-Repair'': <code powershell>Test-ComputerSecureChannel ` -Server DC-Server.domain.com ` -Credential Domain\Admin-User ` -Repair</code> Пер
- Как удалённо получить и/или закрыть процесс в PowerShell @powershell:remote-windows-management
- е: <code powershell>Get-WmiObject win32_process -ComputerName "KOM-SRV01" | ` select -Property Process... ct Win32_Process -Filter "ProcessId LIKE '5660'" -ComputerName "KOM-SRV01" | ` Invoke-WmiMethod -Name T... -Filter "ExecutablePath LIKE '%notepad.exe%'" ` -ComputerName "KOM-SRV01" | Invoke-WmiMethod -Name Ter
- Проверка статуса миграции файлов виртуальных машин Hyper-V между хостами через BITS @powershell:microsoft-hyper-v
- озвучен здесь: [[https://social.technet.microsoft.com/Forums/ru-RU/64c4777d-a12b-4b92-9f7b-7563841bcc03... нформации: * [[https://blogs.technet.microsoft.com/cmpfekevin/2014/01/29/troubleshooting-bits-with-p
- PowerShell & Microsoft Hyper-V
- per-v:Search-VM-in-Hyper-V-Cluster-with-Processor-Compatibility-Disabled|Поиск ВМ в кластере Hyper-V с выключенным признаком Processor Compatibility]]
- Выключаем задачу дефрагментации в планировщике заданий Windows на удалённом сервере @powershell:remote-windows-management
- дачи. <code powershell>$Session = New-PSSession -ComputerName "KOM-SRV01" Invoke-Command -Session $Session -ScriptBlock { If ((Get-ScheduledTask -TaskNam
- Powershell скрипт опроса сети для поиска нестандартных сетевых каталогов (исключая административные и служебные) @powershell:security-audit