我试着跑
dsquery group -samid "Development Environment" | dsget group -members -expand > C:\dev.txt
Run Code Online (Sandbox Code Playgroud)
我有这个:
The term 'dsquery' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spe
lling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:8
+ dsquery <<<<
+ CategoryInfo : ObjectNotFound: (dsquery:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Run Code Online (Sandbox Code Playgroud)
我已经安装了Windows 7 Service Pack 1的Windows远程服务器管理工具.但它仍然不适合我.
请帮忙.

无法安装Active …
<?xml version="1.0" encoding="UTF-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"> <Bundle Name="My Test Program" Version="1.0.0.0" Manufacturer="Microsoft" UpgradeCode="cc7cfeae-c3a4-4430-841e-f927de3f9f95">
<BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense" />
<util:RegistrySearch Id="FindDotNet35SP1InstallRegValue" Root="HKLM"
Key="SOFTWARE\Microsoft\NET Framework Setup\NDP\v3.5" Value="SP"
Variable="DotNetFramework35SP1InstallRegValue" />
<util:RegistrySearch Id="FindDotNet40FullInstallRegValue" Root="HKLM"
Key="SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full" Value="Install"
Variable="DotNetFramework40FullInstallRegValue" />
<Chain>
<ExePackage Id="DotNet3.51" Cache="no" Compressed="no" Vital="no"
PerMachine="yes" Name="DotNet3.51"
SourceFile=".\sources\dotnetfx35sp1_full_x86_x64.exe"
InstallCommand="/passive /promptrestart" Permanent="yes"
DownloadUrl="http://webserver/dependencies/dotnetfx35sp1_full_x86_x64.exe"
DetectCondition="DotNetFramework35SP1InstallRegValue=1" />
<ExePackage Id="DotNet4.0" Cache="no" Compressed="no" Vital="no"
PerMachine="yes" Name="DotNet4.0"
InstallCommand="/passive /promptrestart" Permanent="yes"
SourceFile=".\sources\dotnetfx40_full_x86_x64.exe"
DownloadUrl="http://webserver/dependencies/dotnetfx40_full_x86_x64.exe"
DetectCondition="DotNetFramework40FullInstallRegValue=1" />
<ExePackage Id="ClientInstall" Cache="no" Compressed="no" Vital="yes"
PerMachine="yes" Name="ClientInstall"
SourceFile=".\sources\client_win32-setup.exe" />
</Chain>
</Bundle>
Run Code Online (Sandbox Code Playgroud)
好的,这是我的源代码.比如,一台机器永远不会安装.NET 3.5 SP1和.NET 4.0.所以,现在我运行setup.exe文件.我故意取消.NET 3.5 SP1和.NET …