zoukankan      html  css  js  c++  java
  • powershell_day1——基础操作

    1. 基本使用

    打开windows powershell

    GUI:

     2. 命令: 

    基本可以使用get-command找到自己想要的功能,特别的多。同时可以结合get-help来查看具体的命令的help。看到支持的参数。就是linux下的-h

    比如我想查看process。那么就可以使用get-help Get-Process

    3. 如何debug powershell

    搜索powershell ISE工具,打断点,然后就和正常的debug工具一样了

    4. 报错解决

    Unable to find type [VMware.VimAutomation.Sdk.Util10.ProductInfo]. Make sure 
    that the assembly that contains this type is loaded.
    At C:Program Files (x86)VMwareInfrastructurePowerCLIScriptsInitialize-Pow
    erCLIEnvironment.ps1:71 char:1
    + $powerCliFriendlyVersion = 
    [VMware.VimAutomation.Sdk.Util10.ProductInfo]::PowerC ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ~~~
        + CategoryInfo          : InvalidOperation: (VMware.VimAutom...l10.Product 
       Info:TypeName) [], ParentContainsErrorRecordException
        + FullyQualifiedErrorId : TypeNotFound

    root cause:powershell的版本太低,需要升级到新版本
  • 相关阅读:
    [ZJOI2011]营救皮卡丘
    TJOI2018Party
    HEOI2013SAO
    [BJOI2017]树的难题
    [HNOI2016]序列
    [SHOI2007]善意的投票
    CF802C Heidi and Library (hard)
    SPOJ DIVCNT2
    LOJ子序列
    BZOJ2882工艺
  • 原文地址:https://www.cnblogs.com/emmaduan/p/13370572.html
Copyright © 2011-2022 走看看