Active Directory

A collection of 8 posts
打印机

Windows 预安装打印机驱动

将打印机驱动复制到可以访问的共享路径 使用以下powershell脚本安装驱动 pnputil.exe /a "\\\koaxpj__.inf.inf" 之后确认安装后打印机驱动的路径,在C:\Windows\System32\DriverStore\FileRepository下 打开inf文件记录下实际打印机型号的名称,如 [KONICA MINOLTA.NTamd64] "KONICA MINOLTA C368SeriesPCL" "KONICA MINOLTA C3851SeriesPCL" 使用以下powershell脚本添加具体驱动 Add-PrinterDriver -Name "KONICA MINOLTA C368SeriesPCL" -InfPath "C:\Windows\System32\DriverStore\FileRepository\koaxpj__.inf_amd64_c4e736b89265dcc3\koaxpj__.inf" Add-PrinterDriver -Name "KONICA MINO
1 min read
Active Directory

Powershell 转移 FSMO

获取当前FSMO Get-ADForest | select SchemaMaster,DomainNamingMaster Get-ADDomain | select PDCEmulator,RIDMaster,InfrastructureMaster 转移FSMO Move-ADDirectoryServerOperationMasterRole -Identity -OperationMasterRole SchemaMaster,RIDMaster,InfrastructureMaster,DomainNamingMaster,PDCEmulator 强制转移FSMO Move-ADDirectoryServerOperationMasterRole -Identity -OperationMasterRole SchemaMaster,RIDMaster,InfrastructureMaster,DomainNamingMaster,PDCEmulator -Force