码迷,mamicode.com
首页 >  
搜索关键字:powershell 加域 加密凭据    ( 2553个结果
在C#创建CmdLet中使用DynamicParameter
在C#创建CmdLet中使用DynamicParameter今天我们介绍PowerShell命令中另外一种参数 动态参数所谓动态参数是依据某些特定条件而出现的参数,通常情况下,这些条件包括但不仅限于,特定参数值,特定参数出现,特定参数行为,属性。我们用一个简单的例子还说明动态参数,这个例子将..
分类:Windows程序   时间:2014-10-17 19:04:05    阅读次数:282
PowerShell AD域管理命令-示例(陆续添加)
获取密码即将过期用户的信息,90天有效期的话,获取过期前7天的密码Get-ADUser-filter*-searchbase"ou=kewendangdang,dc=dangdang,dc=com"-Properties*|where{($_.passwordlastset-lt(Get-Date).adddays(-83))-and($_.passwordneverexpires-ne"True")}|selectname,samaccountna..
分类:系统相关   时间:2014-10-17 19:02:54    阅读次数:205
【转载】Powershell获取世纪互联Office365中所有用户的OWA时区
get-mailbox -resultsize unlimited | Get-MailboxRegionalConfiguration | select Identity,TimeZone | where {$_.TimeZone -ne "China Standard Time"} | Expo...
分类:系统相关   时间:2014-10-17 13:43:44    阅读次数:237
VS2012在添加域服务时找不到EF的问题
我创建的项目是Silverlight Business Application,Silverlight版本5,自带WCF RIA。既然用的也是没啥新意的SQL Server,那就顺带用上Entity Framework做ORM吧。以上这些都没啥难度。我先创建的数据库表,然后创建ADO.Net 实体模...
分类:其他好文   时间:2014-10-16 00:12:01    阅读次数:339
Azure Powershell管理多订阅及证书
由于我的电脑曾经管理过两个Azure订阅,这两天在上传VHD文件到Azure时出现了“找不到存储账号”及“证书不匹配”的问题。场景还原第一天使用Azure账号A上传VHD,没有出现问题。第二天使用Azure账号B上传VHD是,出现了如下提示”Thestorageaccountwasnotfound”再次核对Azure管..
分类:系统相关   时间:2014-10-15 21:42:01    阅读次数:253
利用powershell script每个月定期从microsoft download网站上抓补丁
This artical will be published in English also:http://www.cnblogs.com/LarryAtCNBlog/p/4026695.html本人所在的公司对于安全性要求较高,除了平时各种内网加密外网firewall之外,对于server所使用的...
分类:Web程序   时间:2014-10-15 19:48:51    阅读次数:290
Use powershell script to download windows patches monthly
My company concerns security, request us to deploy the newest patches on our servers in time, even we have firewall/encryption internally.With the num...
分类:Windows程序   时间:2014-10-15 18:54:51    阅读次数:472
【转载】Powershell连接世纪互联Office365
$User = "admin@contoso.com"$PWord = ConvertTo-SecureString –String "password" –AsPlainText -Force$Credential = New-Object –TypeName System.Management....
分类:系统相关   时间:2014-10-15 14:00:30    阅读次数:683
不一样的命令行 – Windows PowerShell简介 之 “蛋疼的伪装–Profile”详细实现
(本文的修改方法参照http://www.cnblogs.com/grapeot/archive/2010/02/22/1670822.html,只是详细列出修改的步骤之一。)通过修改profile来实现,profile的介绍见http://technet.microsoft.com/en-us/l...
分类:Windows程序   时间:2014-10-14 16:12:58    阅读次数:279
不一样的命令行 – Windows PowerShell简介 (转载)
转载自http://www.cnblogs.com/grapeot/archive/2010/02/22/1670822.html,谢谢博主。引子一直很羡慕Linux的命令提示符(当然他们叫Shell)。正则表达式,管道,各种神奇的命令,组合起来就能高效完成很多复杂的任务。效率实在是高。流了n年的哈...
分类:Windows程序   时间:2014-10-13 16:06:39    阅读次数:316
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!