摘要: SCCM 部署完毕之后,不久我们就会发现客户端代理状态,因为重装系统,非正常的退域,长时间不开机,导致客户端状态有不可用的,有过期的,重复的记录很多。当然我们可以手动的快速删除重复的记录,那么怎么能做按照企业的要求进行自动删除,且能搞清楚SCCM是怎么去判断执行这个过程呢,根据我在实际环境中的实施, 阅读全文
posted @ 2015-05-11 15:48 dongdonggeorge 阅读(2119) 评论(0) 推荐(0) 编辑
摘要: https://technet.microsoft.com/library/cc163121.aspx#EKH https://support.microsoft.com/en-us/help/977519/description-of-security-events-in-windows-7-an 阅读全文
posted @ 2015-05-11 15:47 dongdonggeorge 阅读(184) 评论(0) 推荐(0) 编辑
摘要: Sr noEvent ID 2003 ServerEvent ID 2008 ServerEvent Type15284624Local User logon260086008Unexpected Shutdown360096009Logged During every boot460066006C... 阅读全文
posted @ 2015-05-11 15:45 dongdonggeorge 阅读(1196) 评论(0) 推荐(0) 编辑
摘要: 如何得到用户最近一次登陆域的时间?在Windows2003域中有2个属性:lastLogon和lastLogonTimestamp,那么这2个属性到底有什么作用呢?lastLogon属性实时更新用户登录时间,但它不会从一个DC复制到另一个DC。假设一个用户登录到了DC A上,那么DCA上lastLo... 阅读全文
posted @ 2015-05-11 15:44 dongdonggeorge 阅读(3616) 评论(0) 推荐(0) 编辑
摘要: 微软在Windows Server 2003中引入了LastLogonTimeStamp属性。管理员们可以利用这个属性查看用户或者计算机最近是否登录过域。根据这些信息,管理员可以对长时间没有登录的账户采取相应的措施。 有人就会问了,不是有LastLogon这个属性吗,为什么还要引入LastLogonTimeStamp这个属性呢?这个问题问得好,那么我先来解释一下这两个属性的区别吧。 LastLog... 阅读全文
posted @ 2015-05-11 15:42 dongdonggeorge 阅读(1667) 评论(0) 推荐(0) 编辑
摘要: 首先我们需要明确一点:为什么我们需要建立组? 答案很简单:为了管理方便! 其实计算机文件或者文件夹的控制权限是在属性的安全的选项卡中设定的,如下图所示: 在"组或用户名称"中可以添加对此文件夹行使权限的用户或者组。 现在来看这样一种情况: 你是一个域的管理员,在文件服务器上建立了一个共享文件夹,用来 阅读全文
posted @ 2015-05-11 15:30 dongdonggeorge 阅读(4751) 评论(1) 推荐(1) 编辑
摘要: 台湾女同事问了我2次当前系统域帐号是怎么在第一次登录时,自动加入域客户端本地管理员组的?我猜不外乎就是脚本、计算机策略或虚拟机初始化的自动应答脚本,结果系统的前任同事找到了答案--GPO的用户策略(确切讲是用户首选项),SIGN! 今天琢磨了一下,采用下列3种方法之一即可实现: 1、对于WIN200 阅读全文
posted @ 2015-05-11 15:26 dongdonggeorge 阅读(11257) 评论(0) 推荐(1) 编辑
摘要: PKCS#7常用的后缀是: .P7B .P7C .SPCPKCS#12常用的后缀有: .P12 .PFXX.509 DER编码(ASCII)的后缀是: .DER .CER .CRTX.509 PAM编码(Base64)的后缀是: .PEM .CER .CRT.cer/.crt是用于存放证书,它是2进... 阅读全文
posted @ 2015-05-11 15:24 dongdonggeorge 阅读(1015) 评论(0) 推荐(0) 编辑
摘要: 对于PKI及证书服务的这些概念,相信初学者会有许多迷惑的地方,那是因为其中的某些关键概念没有理解清楚,我力争以通俗易懂的方式给初学者一些启示,也给以后自己忘了的时候一个参考:) !参考资料:http://technet.microsoft.com基本概念:1.接收证书的实体是证书的“使用者”;证书的... 阅读全文
posted @ 2015-05-11 15:23 dongdonggeorge 阅读(600) 评论(0) 推荐(0) 编辑
摘要: If an error occurs, the Task Scheduler APIs can return one of the following error codes as an HRESULT value. The constants that begin with SCHED_S_ ar 阅读全文
posted @ 2015-05-11 14:31 dongdonggeorge 阅读(692) 评论(0) 推荐(0) 编辑
摘要: In a Windows 2008 server, when you confirm the creation of a new task, you may obtain the following error: An error has occurred for task . Error mess 阅读全文
posted @ 2015-05-11 14:30 dongdonggeorge 阅读(630) 评论(0) 推荐(1) 编辑
摘要: 阅读全文
posted @ 2015-05-11 14:28 dongdonggeorge 阅读(194) 评论(0) 推荐(0) 编辑
摘要: This post has become quite popular – so I've updated it with a bit more detail, plus some people's experiences from the comments. If you find it usefu 阅读全文
posted @ 2015-05-11 14:27 dongdonggeorge 阅读(407) 评论(0) 推荐(0) 编辑
摘要: 转自:http://sodaxu.blog.51cto.com/8850288/1417385 阅读全文
posted @ 2015-05-11 14:16 dongdonggeorge 阅读(728) 评论(1) 推荐(0) 编辑
摘要: [作者:葛伟华、张玉工程师 , Office/Project支持团队, 微软亚太区全球技术支持中心 ] 为了减低部署盗版(可能包含恶意软件、病毒和其他安全风险)的可能性,Office 2010面向企业客户推出了新的批量激活方式:KMS和MAK。这两种激活方式同时也是Windows Vista/7/2... 阅读全文
posted @ 2015-05-11 14:10 dongdonggeorge 阅读(3164) 评论(0) 推荐(0) 编辑
摘要: Office KMS Key: http://technet.microsoft.com/zh-cn/library/dn385360.aspx https://technet.microsoft.com/library/ee624355(office.14).aspx#section2_3 Win 阅读全文
posted @ 2015-05-11 14:09 dongdonggeorge 阅读(291) 评论(0) 推荐(0) 编辑
摘要: 昨天在讲解slmgr.vbs命令的时候,有一个问题没有解决,就是输入"slmgr.vbs -dlv"命令,在显示的信息中,注意到最后两行:"剩余 Windows 重置计数"和"信任时间",前者显示次数是3,后者显示当前的时间。很多人就不明白,一开始我看到的时候也挺疑惑的,为什么是3次?于是去网上找答 阅读全文
posted @ 2015-05-11 13:47 dongdonggeorge 阅读(1496) 评论(0) 推荐(0) 编辑
摘要: Q:KMS认证时,错误讯息代码0x80070005?A:-0x80070005:存取遭拒。要求的动作要求较高的权限。-这个错误讯息,代表您在执行命令提示字元(cmd)时,没有以系统管理员的身份执行,造成启动失败。请您以滑鼠右键按一下 cmd.exe,然后按一下「以系统管理员身分执行」。Q:KMS认证... 阅读全文
posted @ 2015-05-11 13:46 dongdonggeorge 阅读(1639) 评论(0) 推荐(0) 编辑
摘要: 将制作好的应答文件unattend.xml拷贝到模板机sysprep目录下,然后在cmd下运行(unattend.xml文件可自定义名称) sysprep /generalize /oobe /shutdown/unattend:Unattend.xml 应答文件设置项说明:4.specialize... 阅读全文
posted @ 2015-05-11 10:35 dongdonggeorge 阅读(10221) 评论(1) 推荐(0) 编辑
摘要: 想实现网络启动,并且Acronis启动菜单中带有Acronis True Image Home,需要安装以下软件: 1.安装Acronis True Image Home 2011及plush pack 2.安装Acronis Disk Director Advanced 11 安装完成后,打开Acronis Disk Director,选择tools—这是Acronis的bug,可以这样解... 阅读全文
posted @ 2015-05-11 10:28 dongdonggeorge 阅读(986) 评论(0) 推荐(0) 编辑
摘要: 加速部署映像 - 也就是我们通常说的系统模板,通常我们为了提高 Windows 的安装速度,会事先制作一套包含驱动、应用软件、补丁程序以及自定义设置的标准化系统。这样我们在使用该加速部署映像完成安装后,就可以让用户直接使用,不仅在安装方面大大缩短了时间,也提高了用户的体验。在 Windows XP ... 阅读全文
posted @ 2015-05-11 10:25 dongdonggeorge 阅读(379) 评论(0) 推荐(0) 编辑
摘要: 33PXH-7Y6KF-2VJC9-XBBR8-HVTHH * China Standard Time true ... 阅读全文
posted @ 2015-05-11 10:06 dongdonggeorge 阅读(1098) 评论(0) 推荐(0) 编辑
摘要: cd C:\Eventlog$gap = (Get-Date) - (New-TimeSpan -Days 365)$unusedfiles = Get-ChildItem | where -FilterScript {$_.lastwritetime -lt $gap -and $_.name -... 阅读全文
posted @ 2015-05-11 09:57 dongdonggeorge 阅读(282) 评论(0) 推荐(0) 编辑
摘要: $source = "C:\Windows\System32\WindowsPowerShell\v1.0\Modules\Carbon"$target = "\c$\Windows\System32\WindowsPowerShell\v1.0\Modules"$ON_OFF = Import-C... 阅读全文
posted @ 2015-05-11 09:56 dongdonggeorge 阅读(276) 评论(0) 推荐(0) 编辑
摘要: Hostname,IP,OSTypesrv1,10.103.22.22,Win2003srv2,10.103.22.37,Win2008Import-Csv -Path F:\chgpwd\APACHost.CSV | ForEach-Object { "**************" + $... 阅读全文
posted @ 2015-05-11 09:55 dongdonggeorge 阅读(281) 评论(0) 推荐(0) 编辑
摘要: (New-Object -ComObject WScript.Network).AddWindowsPrinterConnection("\\cnhzsrv06apac\cnhzprn02") 结合计划任务开机部署打印机: 2014-03-29T16:30:35.8220999 A7... 阅读全文
posted @ 2015-05-11 09:51 dongdonggeorge 阅读(455) 评论(0) 推荐(0) 编辑
摘要: $shell = New-Object -ComObject WScript.Shell$desktop = [System.Environment]::GetFolderPath('Desktop')$shortcut = $shell.CreateShortcut("$desktop\Smart... 阅读全文
posted @ 2015-05-11 09:50 dongdonggeorge 阅读(155) 评论(0) 推荐(0) 编辑
摘要: $c = Get-WmiObject -Class Win32_LogicalDisk | where {$_.size} | select-object -Property deviceid, @{N='Free';E={[System.Math]::round($_.freespace / $_.size * 100)}} | Where-Object -FilterScript {$_.d... 阅读全文
posted @ 2015-05-11 09:46 dongdonggeorge 阅读(272) 评论(0) 推荐(0) 编辑
摘要: (Get-WmiObject -class Win32_UserAccount | where {$_.SID -Like 'S-1-5-*-500'}).Rename("Ultraman") 阅读全文
posted @ 2015-05-11 09:45 dongdonggeorge 阅读(323) 评论(0) 推荐(0) 编辑
摘要: $parttern = "\b\d{6}\b"$today = Get-Date$hostname = "cnhzpd-47d173x"$profiles = Get-WmiObject -Class win32_userprofile -ComputerName $hostname | Selec... 阅读全文
posted @ 2015-05-11 09:43 dongdonggeorge 阅读(413) 评论(0) 推荐(0) 编辑
摘要: # 这个月的第一天#..........................................到这里之前是取当年第一天#(Get-Date 0).AddYears((Get-Date).Year - 1).AddMonths((Get-Date).Month - 2)# 这个月的最后一天#... 阅读全文
posted @ 2015-05-11 09:40 dongdonggeorge 阅读(699) 评论(0) 推荐(0) 编辑
摘要: Get-WmiObject win32_bios -ComputerName server1, server2 | Format-Table ` @{n='Hostname';e={$_.__server}}, @{n='SerialTag';e={$_.SerialNumber}}, @{n='OS';e={Get-WmiObject win32_operatingsystem... 阅读全文
posted @ 2015-05-11 09:34 dongdonggeorge 阅读(607) 评论(0) 推荐(0) 编辑
摘要: #Test-Connection, 之所以不采用这种方法, 是因为该命令对于丢包返回系统报错, 无法被抓取.$end = [datetime]"2015年4月27日 20:32:20"$start = Get-Date$count = [math]::Round(($end - $start).To... 阅读全文
posted @ 2015-05-11 09:32 dongdonggeorge 阅读(602) 评论(0) 推荐(0) 编辑
摘要: #列出一个文件夹下所有文件的信息Get-ChildItem -Path F:\BCP -Recurse | Where-Object {$_.mode -Like "-*"} | Select-Object -Property FullName, Length | Export-Csv -Path ... 阅读全文
posted @ 2015-05-11 09:31 dongdonggeorge 阅读(280) 评论(0) 推荐(0) 编辑
摘要: $source = "c:\XXX.XXX"$pw = ConvertTo-SecureString '密码' -AsPlainText -Force$Creds = New-Object -Typename System.Management.Automation.PSCredential -Ar... 阅读全文
posted @ 2015-05-11 09:30 dongdonggeorge 阅读(436) 评论(0) 推荐(0) 编辑
摘要: 2015-4-6写的代码(Dell), 不知道如何对报错进行友好化处理,于是采用了"非空"和"非空的补集"处理方式. 2015-4-21写的代码(Dell), 含Try, Catch, Finally用法 2015-5-4写的代码(Lenovo) 2015-5-4写的代码(Dell & Lenovo 阅读全文
posted @ 2015-05-11 09:28 dongdonggeorge 阅读(692) 评论(0) 推荐(0) 编辑
摘要: Dell: Rename-Computer -NewName ("CNHZPD-" + (Get-WmiObject -class win32_Bios).SerialNumber.substring(0,7)) -RestartLenovo:$parttern_ln="\b\D{2}\d{8}\b... 阅读全文
posted @ 2015-05-11 09:27 dongdonggeorge 阅读(656) 评论(0) 推荐(0) 编辑
摘要: 1. My Symantec Products 选择需要更新的产品 2. Source Servers 选择ftp, 下载比较稳定 3. Distribute Center 类似于WSUS中的approve操作, download下来的更新只有经过distribute之后才会被客户端获得 1. Add Download Schedule 2.Add Distribute ... 阅读全文
posted @ 2015-05-11 09:20 dongdonggeorge 阅读(771) 评论(0) 推荐(0) 编辑
摘要: 1.首先从注册表中搜寻 IP地址所在的位置,查到几项,此项即可: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces 2.打开【应用程序与设备控制】界面,单击【添加】,新建一个策略,填写相应的"名称":如下图 2、点击【应用程序控制】,【添加】,输入规则集名字。在【将此规则应用于下列... 阅读全文
posted @ 2015-05-11 09:16 dongdonggeorge 阅读(351) 评论(0) 推荐(0) 编辑
摘要: Sepm迁移/灾难恢复 条件:更换服务器主机/重装服务器系统,但保持主机ip地址不更改,主机名不更改。 备份步骤: Login服务器控制台,进入"管理员",选择"服务器",点击"本地站点"下面的"localhost",点击任务栏内的"立即备份站点", 出现对话框,选择确定 到文件夹C:/program files/S... 阅读全文
posted @ 2015-05-11 09:15 dongdonggeorge 阅读(417) 评论(0) 推荐(0) 编辑