cherrymill

怎么才能快速学会 powerShell 呢?

  •  
  •   cherrymill · Sep 4, 2016 · 4760 views
    This topic created in 3560 days ago, the information mentioned may be changed or developed.
    要实现一组功能需要基于 powerShell 实现自动化,怎么才能快速的打底呢
    18 replies    2019-06-05 18:52:29 +08:00
    cxbig
        1
    cxbig  
       Sep 4, 2016
    找不到相关教程就一块块骨头啃
    cherrymill
        2
    cherrymill  
    OP
       Sep 4, 2016
    @cxbig 就是找不到教材才要来大 EX 问。。微软教程的厚度。。。垫显示器还差不多。。。
    cxbig
        3
    cxbig  
       Sep 4, 2016
    @cherrymill 你倒不如把需求写细一点,至少大家可以给你一些技术点或方向。具体问题可以有选择的看一部分实现方式,没谁会整本大部头那样啃。
    xupefei
        4
    xupefei  
       Sep 4, 2016
    PowerShell 不仅仅是语法,还有后面的整个 .NET 库。真的能迅速学会?
    cherrymill
        5
    cherrymill  
    OP
       Sep 4, 2016
    @cxbig 需要 AD 配置方向相关的,比如说 GUI 下的一个 ADUser 添加如何用 PowerShell 完成,至今也没找到关闭 PRE_AUTH 在 powerShell 下怎么设..
    cherrymill
        6
    cherrymill  
    OP
       Sep 4, 2016
    主要做的是这个,有一些对应的设置找不到比如那个 Kerberoes PRE_AUTH 的位置,现在我需要创建一个有复杂要求的 AD 账户。。并分配正确的权限。。微软的资料里面并没有指出一些配置的详细方法,还有针对 AD 域名的组策略

    https://github.com/CherryMill/winNfsExport/blob/master/main.ps1
    syahd
        7
    syahd  
       Sep 4, 2016 via Android
    learnxinyminutes ,你看看怎么样
    loading
        8
    loading  
       Sep 4, 2016 via Android
    Powershell 有没有前途啊……
    Remember
        9
    Remember  
       Sep 4, 2016 via iPhone
    powershell ,感觉一大堆人交口称赞,然而并没有几个人用
    pc10201
        10
    pc10201  
       Sep 4, 2016
    还不如用 python 做~
    cherrymill
        11
    cherrymill  
    OP
       Sep 4, 2016
    @pc10201 条件不允许。。必须用最小条件完成,也就是 powerShell
    cherrymill
        12
    cherrymill  
    OP
       Sep 4, 2016
    @whwq2012 看了,没有 powerShell 啊..
    syahd
        13
    syahd  
       Sep 4, 2016 via Android
    @cherrymill 有,在底下的工具里
    venster
        14
    venster  
       Sep 4, 2016
    r#9 @Remember powershell 偏向管理啊,而且限制在 windows 平台上,在 server 版本的系统中才有完整的功能,在 iv2ex 上当然不太常见了。而实际上,现在微软给出的各种软件官方教程中, powershell 已经占了很多的部分,有些甚至只能用 powershell 完成。
    chu1337
        15
    chu1337  
       Sep 4, 2016
    多日内网
    cherrymill
        16
    cherrymill  
    OP
       Sep 4, 2016
    觉得 powerShell 才是未来的大势所趋啊,次时代面向对象 Shell
    zuotech
        17
    zuotech  
       Sep 5, 2016
    @cherrymill

    目录服务命令行工具帮助:
    dsadd /? - 添加对象的帮助。
    dsget /? - 显示对象的帮助。
    dsmod /? - 修改对象的帮助。
    dsmove /? - 移动对象的帮助。
    dsquery /? - 查找与搜索标准匹配对象的帮助。
    dsrm /? - 删除对象的帮助。

    说明: 此工具的命令将向目录中添加特定类型的对象。 dsadd 命令:

    dsadd computer - 将计算机添加到目录。
    dsadd contact - 将联系人添加到目录。
    dsadd group - 将组添加到目录。
    dsadd ou - 将组织单位添加到目录。
    dsadd user - 将用户添加到目录。
    dsadd quota - 将配额规定添加到目录分区。
    ps1aniuge
        18
    ps1aniuge  
       Jun 5, 2019
    快速学习: 搜并入 powershell 交流 群。

    win2016 powershell ad 模块:
    https://docs.microsoft.com/zh-cn/powershell/module/addsadministration/?view=win10-ps
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2806 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 62ms · UTC 15:28 · PVG 23:28 · LAX 08:28 · JFK 11:28
    ♥ Do have faith in what you're doing.