Vista runas

前两天在vista下装apache。apache的系统服务老是装不上去。直觉发现是vista的UAC搞鬼。 linux系统中可以用root来运行,但是不知道vista怎么才可以。上网查了下 发现一个runas命令:

 RUNAS USAGE: RUNAS [ [/noprofile | /profile] [/env] [/savecred | /netonly] ]        /user:<UserName> program RUNAS [ [/noprofile | /profile] [/env] [/savecred] ]        /smartcard [/user:<UserName>] program RUNAS /trustlevel:<TrustLevel> program    /noprofile        specifies that the user's profile should not be loaded.                     This causes the application to load more quickly, but                     can cause some applications to malfunction.   /profile          specifies that the user's profile should be loaded.                     This is the default.   /env              to use current environment instead of user's.   /netonly          use if the credentials specified are for remote                     access only.   /savecred         to use credentials previously saved by the user.                     This option is not available on Windows Vista Home or Wiws Vista Starter Editions                     and will be ignored.   /smartcard        use if the credentials are to be supplied from a                     smartcard.   /user             <UserName> should be in form USER@DOMAIN or DOMAIN/USER   /showtrustlevels  displays the trust levels that can be used as arguments                     to /trustlevel.   /trustlevel       <Level> should be one of levels enumerated                     in /showtrustlevels.   program         command line for EXE.  See below for examples Examples:> runas /noprofile /user:mymachine/administrator cmd> runas /profile /env /user:mydomain/admin "mmc %windir%/system32/dsa.msc"> runas /env /user:user@domain.microsoft.com "notepad /"my file.txt/"" NOTE:  Enter user's password only when prompted.NOTE:  /profile is not compatible with /netonly.NOTE:  /savecred is not compatible with /smartcard.

但是用这个来装还是没有办法把apache服务装上去

runas /noprofile /user:Jeffrey-PC/Jeffrey "httpd.exe -k install"

郁闷。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值