Windows XP用户中的登录.bat脚本以管理员权限运行


0
if exist C:\Windows\System32\CCM\CcmExec.exe (
    net use /del Z:
) else (
    net use z: \\c-svsccm01\SMS_CMB\Client 
    start /d "Z:\" CCMSetup.exe
)

这是我创建的.bat文件,用于.exe在映射位置“ Z:\”中运行文件。它可以完美地在管理员帐户中运行,但不能在用户帐户中运行(该用户帐户没有安装.exe文件的管理员权限)。

在用户帐户中,可以创建和删除映射,但CCMSetup.exe无法运行该映射。

如何CCMSetup.exe使用用户帐户中的管理员权限运行此程序?


用户对文件夹具有完全权限吗?
Arran 2012年

1
使用te RUNAS工具以管理员身份运行CCMSetup.exe
杰伊
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.