腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
1
回答
PowerShell
的
目标
快捷方式
不断
重写
powershell
、
shortcut
、
target
我想通过
快捷方式
运行
PowerShell
脚本。我运行
的
是
PowerShell
10,根据$PSVersionTable.PSVersion
的
说法,我运行
的
是Windows5.1版本。在我
的
目标
中,我键入以下内容:
powershell
.exe -ExecutionPolicy Bypass -File C:\Users\myname\directory\search5.ps1 仅供参考=$text 我点击我
的
浏览 32
提问于2020-07-15
得票数 0
1
回答
为什么当从
快捷方式
运行.ps1文件时,我
的
系统Windows窗体看起来会有所不同?
forms
、
powershell
、
winforms
、
monthcalendar
我正在使用来自Windows.Forms.MonthCalendar程序集
的
System.Windows.Forms。从
Powershell
ISE运行脚本时,如下所示: 但是,当通过dekstop
快捷方式
运行脚本时,它看起来如下:(快捷
目标
: C:\Windows\System32\WindowsPowerShell\v1.0\
powershell
.exe -ExecutionPolicy旁路-File "C:\Temp\Test.ps1") 如果
Powershe
浏览 12
提问于2022-01-06
得票数 1
回答已采纳
2
回答
使用
powershell
从SendKeys (
快捷方式
)运行.lnk命令不起作用
windows
、
powershell
、
cmd
、
sendkeys
、
shortcut-file
我在玩SendKeys和
powershell
。运行
快捷方式
后,我尝试用SendKeys (ALT + F4)关闭活动窗口。通过将以下命令添加到Windows
快捷方式
(.lnk)
的
目标
字段中,我做到了这一点: C:\Windows\System32\WindowsPowerShell\v1.0\
powershell
.exe现在,我想在没有.ps1脚本
的
情况下完成这个任务。我试图从
快捷方式
的
Target字段中运行
powershel
浏览 49
提问于2022-08-28
得票数 2
回答已采纳
1
回答
创建
快捷方式
以通过
Powershell
与
Powershell
一起运行
windows
、
powershell
、
shortcut
我想要一个
powershell
脚本,创建一个链接到另一个
powershell
脚本
的
快捷方式
。该
快捷方式
应该能够以管理员身份运行,
目标
应该如下所示。我像这样手工制作了它,它起作用了。
目标
:C:\system32\windowspowershell\v1.0\
powershell
.exe -executionpolicy bypass -noexit "TARGETPATH\test.ps1" 这是我
的
代码,但是参数出
浏览 0
提问于2018-04-27
得票数 1
4
回答
如何使用
powershell
为Windows 10通用应用程序创建桌面
快捷方式
?
powershell
、
uwp
我有一个我创建
的
UWP应用程序,并希望使用
powershell
在桌面上创建
快捷方式
。 创建
快捷方式
对于exe来说很容易。WScriptShell.CreateShortcut($ShortcutFile)$Shortcut.Save() 但我正在为如何作为通用应用程序
的
目标
而苦苦挣扎我也知道我可以很容易地手动创建一个应用程序
的
快捷方式
,但为了这个目的,它需要用
PowerSh
浏览 37
提问于2016-07-14
得票数 6
回答已采纳
2
回答
重写
Powershell
>
快捷方式
powershell
、
encoding
、
utf-8
在
Powershell
中使用>和使用| Out-File是一样
的
,所以我可以编写"something" | Out-File file.txt -Encoding UTF8 我想
重写<
浏览 4
提问于2015-11-30
得票数 1
回答已采纳
2
回答
windows -用
powershell
创建打印机
的
快捷方式
windows
、
powershell
、
printing
、
windows-10
、
windows-11
上面有,因此解释了如何使用
powershell
创建打印机打印机队列
的
快捷方式
。但是,像这样创建
的
快捷键do not有右键单击选项,比如在控制面板中
的
打印机和设备页面上右键单击打印机和设备时可见
的
扫描选项。右键单击Devices and Printers页面上
的
打印机将显示一个Create Shortcut选项,该选项创建一个具有与原始项目相同
的
右键单击选项
的
快捷方式
。(将打印机拖到所需
的
目标
浏览 12
提问于2022-10-18
得票数 0
1
回答
将bool参数传递给
powershell
脚本
快捷方式
powershell
、
parameters
、
boolean
、
shortcut
我已经写了一个带有bool参数
的
powershell
脚本,我还有一个指向这个
powershell
脚本
的
windows
快捷方式
。问题是,每当我尝试从
快捷方式
运行脚本时,参数都被解释为字符串,而不是布尔值,并且脚本崩溃。这是我最初放在
快捷方式
的
目标
部分下
的
内容: C:\Windows\System32\WindowsPowerShell\v1.0\
powershell
.exe -File "C
浏览 0
提问于2013-07-09
得票数 4
回答已采纳
2
回答
Powershell
脚本窗口消失
powershell
、
shortcut
我
的
最终
目标
是创建一个运行
powershell
脚本
的
键盘
快捷方式
。我跟踪了这家伙在做什么。现在,当我从
PowerShell
终端运行脚本时,一切都很好。但是,当我通过双击文件资源管理器(或键盘
快捷方式
)从
快捷方式
运行它时,会出现一个带有红色文本
的
新窗口,但在我有时间阅读任何内容之前,该窗口就会消失。我
的
.ps1脚本和
快捷方式
被保存到桌面。我
浏览 0
提问于2019-08-30
得票数 2
回答已采纳
1
回答
如何从C#启动Exchange命令行管理程序中
的
脚本?
c#
、
powershell
、
exchange-server
单击"Create“后,就会在C#中构建
PowerShell
脚本(以字符串形式)。现在,如何启动Exchange命令行管理程序并执行该脚本?我尝试过Process.Start(EMSfilePath, scriptToBeExecuted),但是EMS是一个
快捷方式
(.lnk文件),Process.Start不喜欢这样。当我查看该
快捷方式
的
目标
时,我看到
powershell
.exe是通过几个参数启动
的
。如果我尝试Process.Start("
浏览 24
提问于2019-08-02
得票数 0
1
回答
使用%cd%从
快捷方式
运行
PowerShell
脚本
powershell
、
cmd
、
shortcut
我试图从
快捷方式
调用
PowerShell
脚本,并将当前位置作为参数进行传输。我尝试将%cd%用于当前位置,并设置了以下快捷
目标
PowerShell
脚本如下所示: $locationWrite-Host
浏览 3
提问于2016-03-11
得票数 1
1
回答
NSIS CreateShortCut未在
快捷方式
的
目标
字段中显示正确
的
字符串
powershell
、
nsis
以下是NSIS安装程序
的
摘录。\Survey.ico"C:\Windows\System32\WindowsPowerShell\v1.0\
powershell
.exe\PRESS_Survey.ps1""C:\Windows\System32\WindowsPowerShell\v1.0\
powershell
.exe -co
浏览 2
提问于2017-05-17
得票数 0
2
回答
使用
PowerShell
通过windows桌面
快捷方式
创建日志文件
powershell
、
shortcut
、
logfile
晚上好,这可能是个超级简短
的
问题。C:\Windows\System32\WindowsPowerShell\v1.0\
powershell
.exe -Command "& {C:\Users\name\Desktop\final.ps1}" > C:
浏览 1
提问于2015-12-16
得票数 0
1
回答
使用
快捷方式
中
的
管理员权限在UNC路径上运行
PowerShell
脚本
powershell
、
elevated-privileges
我已经为整个公司
的
系统管理员创建了一个
PowerShell
脚本来按需安装一些功能。我已经为脚本创建了一个
快捷方式
,并在高级选项中选择了“以管理员身份运行”。它不会显示我
的
脚本
的
任何部分,也不会像我在脚本中那样在结尾暂停。在
快捷方式
的
目标
中,我已经添加了:
powershell
.exe -ExecutionPolicy Bypass 仍然有同样
的
问题。如果我将
powershell
.exe -Execu
浏览 46
提问于2019-02-07
得票数 2
回答已采纳
1
回答
使用
Powershell
创建不按预期工作
的
快捷方式
powershell
谢谢你帮我,对不起我
的
英语不好(也许?)$link.targetpath = ("%windir%\System32\WindowsPowerShell\v1.0\
powershell
.exe-noexit -File " + '"' + ($SaveDir + "\Tim
浏览 0
提问于2019-12-22
得票数 1
回答已采纳
10
回答
从
快捷方式
打开特定目录中
的
Powershell
powershell
、
windows-7
、
shortcuts
我只想创建一个windows
快捷方式
,将
Powershell
打开到一个特定
的
目录中:%SystemRoot%\system32\WindowsPowerShell\v1.0\
powershell
.exe
浏览 0
提问于2013-01-09
得票数 78
回答已采纳
1
回答
用嵌套文件夹中
的
相对符号链接替换
快捷方式
powershell
、
symlink
、
shortcut
我需要帮助,以转换所有的窗口
快捷方式
相对软链接(符号链接)与
PowerShell
。所有原始文件(快捷键
的
目标
)都位于一个文件夹上,其中还有另一个文件夹,其中包含文件、
快捷方式
和其他文件夹(可以包含其他文件、
快捷方式
和文件夹)。因此,我正在寻找
的
是为每个
快捷方式
(最终使用更多
的
../)创建这个命令: cmd /c 'mklink "path/shortcut.txt" &quo
浏览 3
提问于2016-01-30
得票数 3
回答已采纳
1
回答
为什么我
的
powershell
在启动时打印错误?
powershell
加载
PowerShell
控制台时会出现以下错误“:所有配置文件位置都通过TestPath $PROFILE报告为false,以及
Powershell
ISE配置文件
的
位置。Microsoft.PowerShelllSE_profile.psl"PS C:\Windows\System32> Test-Path
浏览 0
提问于2015-07-15
得票数 1
回答已采纳
1
回答
如果标准位置被禁止,在哪里放置
PowerShell
配置文件脚本?
powershell
在我们
的
公司环境中,我很难创建
PowerShell
配置文件脚本。string AllUsersCurrentHost=C:\Windows\System32\WindowsPowerShell\v1.0\Microsoft.
PowerShell
_profile.ps1CurrentUserAllHosts=Windows
浏览 1
提问于2016-10-05
得票数 3
回答已采纳
1
回答
如何在具有名称空间
的
文件夹中运行
PowerShell
脚本?
powershell
在C:\Users\Ooker\Desktop中运行脚本很好,但是在C:\Users\Ooker\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup中会产生错误。我可以在CLI中运行它,它不引用自己。
浏览 1
提问于2018-11-16
得票数 1
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
CVE-2017-8464漏洞复现
系统小技巧:实用简单的PowerShell命令
微软发布脚本恢复Defender更新误删的应用快捷方式
一次详细的Kerberoast攻击演示
Windows下快捷方式攻防技巧
热门
标签
更多标签
云服务器
即时通信 IM
ICP备案
对象存储
实时音视频
活动推荐
运营活动
广告
关闭
领券