0
foreachループ処理で問題が発生していると思います。しかし、私はそれがなぜ機能しないのか理解していません。だから私は未成熟の結果を得ている。私はいくつかのバリエーションを試しましたが、運はありません。Export with foreachとGet-ADUser -Filter
EmployeeID 16507 16534 16587 16622 16631 16632 16659 16661 16663 16666 16688 16713 16728 16753 16830
出力CSV:
"First Name","Last Name","Display Name","Logon Name","WhenCreated","Full address","City","State","Post Code","Couny/Region","Job Title","Company","Description","Department","Office","Phone","Email","Manager","Account Status","Last LogOn Date"
"Jax","Teller","Jax Teller","JaxT","09.11.2012 12:34:35",,"Foobar","13685",,"","Consultant","Contoso","Contoso/
- ","Research","","1111111111 (1111)","[email protected]",,"Enabled","16.08.2016 15:50:27"
"Jax","Teller","Jax Teller","JaxT","09.11.2012 12:34:35",,"Foobar","13685",,"","Consultant","Contoso","Contoso/
- ","Research","","1111111111 (1111)","[email protected]",,"Enabled","16.08.2016 15:50:27"
"Jax","Teller","Jax Teller","JaxT","09.11.2012 12:34:35",,"Foobar","13685",,"","Consultant","Contoso","Contoso/
- ","Research","","1111111111 (1111)","[email protected]",,"Enabled","16.08.2016 15:50:27"
"Jax","Teller","Jax Teller","JaxT","09.11.2012 12:34:35",,"Foobar","13685",,"","Consultant","Contoso","Contoso/
- ","Research","","1111111111 (1111)","[email protected]",,"Enabled","16.08.2016 15:50:27"
"Jax","Teller","Jax Teller","JaxT","09.11.2012 12:34:35",,"Foobar","13685",,"","Consultant","Contoso","Contoso/
- ","Research","","1111111111 (1111)","[email protected]",,"Enabled","16.08.2016 15:50:27"
"Jax","Teller","Jax Teller","JaxT","09.11.2012 12:34:35",,"Foobar","13685",,"","Consultant","Contoso","Contoso/
- ","Research","","1111111111 (1111)","[email protected]",,"Enabled","16.08.2016 15:50:27"
"Jax","Teller","Jax Teller","JaxT","09.11.2012 12:34:35",,"Foobar","13685",,"","Consultant","Contoso","Contoso/
- ","Research","","1111111111 (1111)","[email protected]",,"Enabled","16.08.2016 15:50:27"
"Jax","Teller","Jax Teller","JaxT","09.11.2012 12:34:35",,"Foobar","13685",,"","Consultant","Contoso","Contoso/
- ","Research","","1111111111 (1111)","[email protected]",,"Enabled","16.08.2016 15:50:27"
"Jax","Teller","Jax Teller","JaxT","09.11.2012 12:34:35",,"Foobar","13685",,"","Consultant","Contoso","Contoso/
- ","Research","","1111111111 (1111)","[email protected]",,"Enabled","16.08.2016 15:50:27"
"Jax","Teller","Jax Teller","JaxT","09.11.2012 12:34:35",,"Foobar","13685",,"","Consultant","Contoso","Contoso/
- ","Research","","1111111111 (1111)","[email protected]",,"Enabled","16.08.2016 15:50:27"
"Jax","Teller","Jax Teller","JaxT","09.11.2012 12:34:35",,"Foobar","13685",,"","Consultant","Contoso.","Contoso/
- ","Research","","1111111111 (1111)","[email protected]",,"Enabled","16.08.2016 15:50:27"
"Jax","Teller","Jax Teller","JaxT","09.11.2012 12:34:35",,"Foobar","13685",,"","Consultant","Contoso","Contoso/
- ","Research","","1111111111 (1111)","[email protected]",,"Enabled","16.08.2016 15:50:27"
"Jax","Teller","Jax Teller","JaxT","09.11.2012 12:34:35",,"Foobar","13685",,"","Consultant","Contoso","Contoso/
- ","Research","","1111111111 (1111)","[email protected]",,"Enabled","16.08.2016 15:50:27"
"Jax","Teller","Jax Teller","JaxT","09.11.2012 12:34:35",,"Foobar","13685",,"","Consultant","Contoso","Contoso/
- ","Research","","1111111111 (1111)","[email protected]",,"Enabled","16.08.2016 15:50:27"
"Jax","Teller","Jax Teller","JaxT","09.11.2012 12:34:35",,"Foobar","13685",,"","Consultant","Contoso","Contoso/
- ","Research","","1111111111 (1111)","[email protected]",,"Enabled","16.08.2016 15:50:27"
:それはちょうど、同じ名前を持つ計算されたプロパティにプロパティの値を入れて全く無意味ですか?どのように*正確に*コードは "動作しません"?それがフィルタ式であると仮定します:[この質問](http://stackoverflow.com/q/34028164/1630171)を見てください。 –
13685などのCSVファイルに含まれていない重複したemployeeidユーザーを返す「予期しない結果」を意味しますID – Arbelac
「複製」と正確には何を意味しますか?その情報を出力に含めないので、従業員IDが間違っていることをどのように確認しましたか?一般的には、問題を理解するための情報を提供してください。 –