腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(4092)
视频
沙龙
1
回答
Start-Process
和
powershell.exe
with
splatting
预期的结果将是在
powershell.exe
会话中启动脚本并传递3个参数-2个字符串
和
1个布尔值。其由用户提供。computername"; CitrixTest = "$citrixtest"
Start-Process
citrixtest $citrixtest" ArgumentList =
浏览 11
提问于2019-10-01
得票数 0
回答已采纳
1
回答
Powershell启动-带
Splatting
的进程
(从.ps1调用.ps1)我想等脚本结束。 "TerminalServerMode" = $False;} $InstallStatus =
Start-Process
-FilePath "
PowerShell.exe
" -ArgumentList $PSADToolKitInstallWrapper @PSADTo
浏览 0
提问于2017-12-18
得票数 1
1
回答
为什么我不能同时使用带有-Credential
和
-Verb参数的PowerShell的启动进程?
使用
powershell.exe
,我想模拟cmd.exe的runas命令,并获得通过UAC提升权限的额外好处。但是,如果我同时向
Start-Process
提供-Credential
和
-Verb Runas参数,则会得到以下错误:
Start-Process
powershell.exe
-CredentialAt line:1 char:1 +
Start-Process
powershell.exe
-Credential (New-Object -TypeName
浏览 19
提问于2019-06-04
得票数 5
回答已采纳
1
回答
带参数的启动进程
powershell.exe
、
、
我试过的是:
Start-Process
powershell.exe
.\vim.exe .\file.txtfile.txt是vim.exe的参数
Start-Process
: A positional parameter cannot\file.txt'.At line:1 char:1 +
Start-Process
powershell.exe
浏览 1
提问于2017-01-26
得票数 2
回答已采纳
1
回答
为用户运行具有管理凭据的PowerShell
、
Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) {
Start-Process
powershell.exe
"-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs; exit }
浏览 5
提问于2022-04-11
得票数 1
3
回答
散列表启动进程-ArgumentList
我正在尝试使用
splatting
安装一个.MSI: "DATABASENAME" = "my_database"; "USERNAME" = "username1";} 然后我打电话给
Start-Process</em
浏览 1
提问于2018-02-27
得票数 2
回答已采纳
2
回答
隐藏的睡眠屏幕
Start-Process
Powershell.exe
-windowstyle Minimized { Stop-Process -processname vpnagent -Force }
Start-Process
Powershell.exe
-windowstyleMinimized { Stop-Process -processn
浏览 6
提问于2016-12-29
得票数 1
回答已采纳
2
回答
如何在新的隐藏窗口中启动此PowerShell脚本
虽然它必须是用户友好的,所以我必须在后台有多个脚本
和
任务。我的主GUI脚本需要在一个新的隐藏窗口中启动一个辅助脚本,以便主GUI脚本可以关闭。$program =
Powershell.exe
-windowstyle hidden -file "C:\Reboot.ps1" $scriptblock = $ExecutionContext.InvokeCommand.NewScriptBlock
浏览 0
提问于2018-09-06
得票数 3
回答已采纳
1
回答
PowerShell命令启动-未在远程执行进程
、
、
、
、
System.Management.Automation.PSCredential -ArgumentList $Username,$pass
Start-Process
-FilePath "msbuild" -ArgumentList '"Database Serv
浏览 35
提问于2021-05-06
得票数 0
回答已采纳
2
回答
从命令提示符运行提升的powershell命令
、
powershell.exe
Start-Process
powershell.exe
"set-executionpolicy" -Verb runAs
Start-Process
: A positional parameter cannot be found that accepts argument+
Start-Process</e
浏览 0
提问于2017-05-11
得票数 0
回答已采纳
1
回答
Powershell启动-进程权限被拒绝
、
= $env:TEMP + "\stderr.log"$argument = "Get-Childitem c:\"
Start-Process
powershell.exe
-Credential $credentials -WindowStyle hidden -WorkingDirectory c:\ -ArgumentList $argument-RedirectStandardOutput $stdOutLog
浏览 0
提问于2015-03-20
得票数 0
4
回答
为什么pwsh.exe与启动进程结合在一起不直接接受脚本块?
、
、
、
、
为什么
Start-Process
powershell.exe
{ Read-Host }能工作,而
Start-Process
pwsh.exe { Read-Host }却不能工作?我知道-ArgumentList的
Start-Process
转换,但当涉及转义引号时,它会使事情变得更加复杂:
Start-Process
pwsh.exeRead-HostPowerShell 5
浏览 7
提问于2021-03-27
得票数 2
回答已采纳
1
回答
为什么我无法使外部脚本在新窗口中运行?
scriptPath`" $argumentList" #
start-process
浏览 2
提问于2019-04-30
得票数 0
回答已采纳
1
回答
PowerShell使用属性文件安装MSI
我想要做的是,如何让PowerShell安装一个msi,其中安装依赖于来自属性文件的详细信息作为一个参数,同时注销作为日志文件的安装并设置新的用户名
和
密码?
浏览 2
提问于2019-02-13
得票数 0
1
回答
如何使用不同的用户帐户运行powershell脚本或更改会话并执行代码?
、
、
、
、
我的代码:
start-Process
powershell.exe
-Credential $credential -ArgumentList “
Start-Process
powershell.exe
浏览 2
提问于2019-10-30
得票数 0
1
回答
运行具有不同凭据的powershell脚本
我有过作为脚本的第一行,但是每当我运行该脚本时,我都会得到以下错误:
Start-Process
: This command cannot be runAt Path\to\script.ps1:1
浏览 5
提问于2017-07-13
得票数 0
回答已采纳
1
回答
当未作为变量添加时,RedirectStandardOutput的工作方式为
$($MyInvocation.BoundParameters[$k]) " } }`
Start-Process
-FilePath "$ENV:WINDIR\SysNative\WindowsPowershell\v1.0\
PowerShell.exe
" -ArgumentList "-File `"$($PSScriptRoot)\$($MyInvocation.MyCommand.N
浏览 1
提问于2022-07-19
得票数 1
1
回答
使用谓词选项时
powershell.exe
start-process
-About "\“
、
、
、
当我尝试下面的三个,a,b
和
c时,我不能像我想的那样从"RunAs“开始。(a)可以成功地执行。参数也被正确传递。
powershell.exe
start-process
-FilePath 'TestEnv.cmd' -ArgumentList '\"a\" \"B C\" \"d\"' -Verb Open (
powershell.exe
start-process</e
浏览 1
提问于2020-11-15
得票数 3
回答已采纳
3
回答
如何通过调用其他powershell脚本传递外部参数?
任何人都可以帮忙
Start-Process
powershell.exe
-WindowStyle Minimized ".
浏览 11
提问于2020-03-04
得票数 2
回答已采纳
2
回答
“打开这里的管理Powershell”Windows Explorer上下文菜单
、
、
我找到了这个命令,它在cmd中启动powershell:
PowerShell.exe
-WindowStyle Hidden -NoExit -Command "
Start-Process
PowerShell.exe
...use完整的PowerShell路径: C:\Windows\System32\Windows
浏览 11
提问于2017-10-05
得票数 1
点击加载更多
相关
资讯
忘记SQL Server管理员密码
微软承认 Win11 重大 BUG,影响开始菜单等几乎所有核心功能
苹果最新发布的虚拟人技术——人类高斯合成
通过COM组件IFileOperation越权复制文件
CVPR 2025 | 2D 大模型赋能3D Affordance 预测,GEAL助力可泛化的3D场景可交互区域识别
热门
标签
更多标签
云服务器
ICP备案
对象存储
云直播
实时音视频
活动推荐
运营活动
广告
关闭
领券