$csvData = Import-CSV -Path C:\share\FII.csv -Delimiter "," -Encoding UTF8
$csvData[0]."ФамилияИмя"
Если там что-то будет, то пойти дальшеGet-ADUser -Filter { DisplayName -eq $csvData[0]."ФамилияИмя" }
$csvData[0]
$adUser = Get-ADUser -filter * -properties DisplayName, Company, Title, Office, Department
вы ж тут явно просите всех (-filter *)$newUserValues = $User | Get-ADUser -properties DisplayName, Company, Title, Office, Department
If a trailing asterisk (*) isn't included in the Path parameter, the contents of the Path parameter are displayed. The exceptions are filenames or subdirectory names that match the Exclude parameter's value.
PS C:\> Get-ChildItem -Path c:\ -Exclude "Windows"
PS C:\> Get-ChildItem -Path c:\ -Include "Windows*"
PS C:\> Get-ChildItem -Path c:\* -Include "Windows*"
Каталог: C:\Windows
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 05.12.2023 8:51 276 WindowsUpdate.log
PS C:\> Get-ChildItem -Path c:\ -Include "WindowsUpdate*"
PS C:\> Get-ChildItem -Path c:\* -Include "WindowsUpdate*"
PS C:\> Get-ChildItem -Path c:\windows -Include "*.log"
PS C:\> Get-ChildItem -Path c:\windows\* -Include "*.log"
Каталог: C:\windows
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 20.11.2020 16:57 762 comsetup.log
-a---- 02.06.2021 9:17 89672 iis.log
-a---- 24.10.2023 14:23 4984 setupact.log
-a---- 20.11.2020 16:52 0 setuperr.log
-a---- 05.12.2023 8:51 276 WindowsUpdate.log
достаточно на линуксе иметь ту же версию дотнета (или выше) и запускать как
dotnet yourfile.dll