摘要: Grant-Permission.ps1Download the EXE version of SetACL 3.0.6 for 32-bit and 64-bit Windows. Put setacl.exe at the same location with the script.function Grant-Permission{ [CmdletBinding(SupportsShouldProcess=$true)] param( [Parameter()] [string]$ComputerName = $env:computername, ... 阅读全文
posted @ 2014-01-31 21:08 Edward Guan 阅读(370) 评论(0) 推荐(0) 编辑
摘要: This article provides links for installing the .NET Framework 4.5 and 4.5.1 on your computer. If you're a developer, you can also use these links to download and redistribute the .NET Framework with your apps.If you're using one of the latest versions of the Windows or Windows Server operati 阅读全文
posted @ 2014-01-31 13:20 Edward Guan 阅读(3415) 评论(0) 推荐(0) 编辑
摘要: For aquick start, tell SetACL the following:Object name (-on): This is the path to the object SetACL should operate on (file/directory/registry key/network share/service/printer).Object type (-ot): What kind of object does the object name refer to: file or directory (file), registry key (reg), servi 阅读全文
posted @ 2014-01-31 10:39 Edward Guan 阅读(799) 评论(0) 推荐(0) 编辑
摘要: MKServerBuilder.psm1function Test-ElevatedShell{ $user = [Security.Principal.WindowsIdentity]::GetCurrent() (New-Object Security.Principal.WindowsPrincipal $user).IsInRole([Security.Principal.WindowsBuiltinRole]::Administrator)}if(!(Test-ElevatedShell)){$warning=@" To run commands exposed b... 阅读全文
posted @ 2014-01-31 10:18 Edward Guan 阅读(212) 评论(0) 推荐(0) 编辑
摘要: MKServerBuilder.psd1## Module manifest for module 'MKServerBuilder'## Generated by: Edward Guan## Generated on: 02/01/2014#@{ # Script module or binary module file associated with this manifestModuleToProcess = 'MKServerBuilder.psm1'# Version number of this module.ModuleVersion =  阅读全文
posted @ 2014-01-31 10:16 Edward Guan 阅读(368) 评论(0) 推荐(0) 编辑