我尝试了Import-Module ActiveDirectory
Import-Csv SpreadsheetAsCsv.csv | ForEach-Object {
$givenName = $_.Forename
$sn = $_.Surname
$ADUser = Get-ADUser -Filter { givenName -eq $givenName -and sn -eq $sn } -Properties EmailAddress
$Entry = $_ | Select-Object Forename, Surname, Name, Email, Notes
if (($ADUser | Measure-Object).Count -gt 1) {
$Entry.Notes = 'Too many matches ({0})' -f ($ADUser.SamAccountName -join ', ')
} elseif ($ADUser) {
$Entry.Email = $ADUser.EmailAddress
$Entry.Name = $ADUser.Name
} else {
$Entry.Notes = 'No account'
}
$Entry
} | Export-Csv NewCsvFile.csv -NoTypeInformation
,这是在网上建议的,但这会使字体更小。 (ctrl-
虽然没有撤销,但我必须重新启动LightTable才能恢复正常。)
按ctrl+
我可以设法编写并使用"跳转到定义",但显然我不会每次都经历这个......
内置的默认键盘快捷键是否允许,以及它们如何允许增加字体大小?
答案 0 :(得分:1)
public ActionResult Edit(int? id)
{
if (id == null)
{
return new HttpStatusCodeResult(HttpStatusCode.BadRequest);
}
Model model= ModelService.Get(id);
if (model== null)
{
return HttpNotFound();
}
ViewBag.CarrierList = new SelectList(db.User, "ID", "Name", model.CarrierID);
return View(model);
}
+ cmd/ctrl
在这个引入的窗格中:键入“跳转到”以查看命令“jump to ...”,以及其键盘快捷键。你可以从那里选择命令,但如果这是调用命令的唯一方法,那就太糟糕了,所以观察你到达那里的键盘绑定:(在下面的蓝色圆圈中)
来自gitter频道的@rundis提供......