腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
1
回答
Powershell
FolderBrowserDialog
在
不同
的
shell
和
ise
中
表现
不同
powershell
、
folderbrowserdialog
当我
在
Powershell
ISE
中
运行下面的代码时,一切运行正常,但当我从
Powershell
中
运行它时,我得到了许多关于图标的错误。LoadWithPartialName("System.windows.forms") |Out-Null $foldername = New-Object System.Windows.Forms.
FolderBrowserDialog
浏览 9
提问于2021-10-19
得票数 1
回答已采纳
3
回答
Powershell
ISE
+ vim
powershell
、
vim
、
powershell-ise
有没有可能通过一些类似vim
的
编辑模式或插件让
Powershell
ISE
表现
得像vim一样?
在
netbeans
中
我使用,
在
Visual Studio
中
我使用,
PowerShell
ISE
也有类似的东西吗?或者我应该完全放弃
Powershell
ISE
,只使用vim +
powershell
命令行?
浏览 0
提问于2015-01-21
得票数 6
2
回答
PowerShell
ISE
:如何运行新
的
PowerShell
版本
powershell
、
version
、
powershell-ise
、
powershell-core
如何让
PowerShell
ISE
与
PowerShell
6.0配合使用。目前,它
的
版本是4.0。这台服务器安装了
PowerShell
4.0,我通过以下链接安装了带有
powershell
6.1.0-
PowerShell
-x64.msi
的
PowerShell
6.0:文件现在位于C:\Programfiles \
powershell
6
中
。但是,
ISE
仍然显示4.0,但我需要它来运
浏览 25
提问于2018-09-22
得票数 17
4
回答
从运行窗口打开
PowerShell
windows-7
、
powershell-3.0
我正在寻找一个从Run窗口启动
PowerShell
的
命令。为什么我错过了从附件->Windows PS打开
PowerShell
时出现
的
蓝屏?
浏览 0
提问于2014-03-01
得票数 1
1
回答
PowerShell
控制台与
PowerShell
ISE
之间
的
差异
powershell
、
powershell-3.0
PowerShell
控制台
和
PowerShell
ISE
之间有何区别。我是
在
PowerShell
配置文件
的
上下文中问这个问题
的
。因为
PowerShell
控制台
和
PowerShell
ISE
都有
不同
的
配置文件。
浏览 0
提问于2013-11-17
得票数 21
回答已采纳
1
回答
在从各自
的
控制台(特别是git )运行时,bat
和
Powershell
的
行为是
不同
的
。
git
、
powershell
、
batch-file
深入研究这一点,我
在
PowerShell
CLI
中
尝试了一个简单
的
git拉源母版: PS C:\Users\username\Git\username\csv-plottr> git pull origin这种方法工作得很好,这使我认为在从
PowerShell
ISE
运行时,运行
PowerShell
脚本会在
不同
的
环境
中
执行,而不是
在
CLI中键入。我在这两种情况下都打印了工作目录,并且都是一样<
浏览 0
提问于2018-03-21
得票数 1
回答已采纳
1
回答
ShellId是什么?我为什么要这么做?
powershell
PowerShell
有一个内置变量,名为$ShellId。
在
中提到了它,它是上
的
一个属性。但我找不到任何关于它该做什么
的
文件。我可以
在
#Requires语句中指定它,这表明它有一定
的
目的,但我找不到什么。 $ShellId
的
目的是什么?
在
什么情况下,我会使它成为我
的
脚本
的
依赖?
浏览 2
提问于2017-04-25
得票数 4
1
回答
Get-PsDrive描述不显示驱动器名称
powershell
我正在尝试获取一个名为Foobar
的
usb
的
位置。运行(Get-PsDrive -Name D).Description可以
在
Powershell
ISE
中
运行,但不能在
Powershell
中
运行。
在
Powershell
ISE
中
运行时,结果为Foobar当在
Powershell
中
运行时,我什么也得不到(空字符串)
在
I
浏览 13
提问于2020-11-25
得票数 0
3
回答
PowerShell
PSScriptRoot为空
powershell
、
powershell-4.0
当我运行$PSScriptRoot时,它返回null。我正在使用PS版本4。错误
浏览 12
提问于2017-06-10
得票数 23
2
回答
PowerShell
获得写入主机
的
默认前景色。
powershell
我有一个函数将输出日志写入文件
和
控制台。ConsoleWriteColor = "white"; break } Write-Host -ForegroundColor $ConsoleWriteColor "Hello world" 因此,我
的
问题是
在
默认情况下:如何才能获得当前
的
前景颜色?我想它不会永远是白色
的
?!
浏览 3
提问于2014-10-27
得票数 12
回答已采纳
2
回答
是否可以使用指定
的
(不是默认
的
)配置文件启动
Powershell
ISE
?
powershell
、
powershell-ise
我希望有几个(多个)
PowerShell
配置文件,这将创建
不同
的
环境。 更具体地说,我需要启动单独
的
PowerShell
ISE
,以便使用TFS
和
其他
PowerShell
ISE
实例进行常规工作。“‘TFS”环境需要加载一些额外
的
snappin、模块、修改提示等等。我不希望所有这些东西都会在常规
的
PowerShell
ISE
会话
中
执行,但只<e
浏览 10
提问于2015-06-24
得票数 3
回答已采纳
2
回答
无法加载文件或程序集
powershell
、
powershell-2.0
在
我
的
power
shell
脚本
中
,我加载了一个自定义程序集,然后通过New-Object实例化该程序集
的
一个类。但同样
的
例外 [System.Reflection.Assembly]::Load("System.Runtime.Serialization, Version=3.0.0.0, Culture=neutral
浏览 0
提问于2013-08-26
得票数 5
回答已采纳
2
回答
打开
PowerShell
ISE
时是否可以消除控制台闪烁?
powershell
我真的讨厌打开
PowerShell
ISE
时出现
的
黑色控制台闪烁。有什么办法不让这种事发生吗?
浏览 0
提问于2010-05-28
得票数 4
回答已采纳
2
回答
告诉
PowerShell
ISE
不要发送stderr写入错误。
powershell
、
powershell-ise
当可执行文件写入标准错误流(
PowerShell
)时,
PowerShell
控制台
和
PowerShell
ISE
的
行为
不同
。控制台(
powershell
.exe)将其显示为标准输出。例如,当我获得非存储库上
的
Mercurial状态时,它会写入标准错误:abort: repository C:\Windows not found!但是,
在
PowerShell
浏览 8
提问于2012-09-21
得票数 9
回答已采纳
2
回答
无法执行Docker *ID* -it命令
powershell
、
docker
、
windows-container
但是,
在
执行docker container exec 58df -it
powershell
时,我得到了以下错误"ConsoleSize":[0,0]}` 最糟糕
的
是,命令docker container exec 58df -it
powershell
通常会正常工作,并且允许我进入其他容器
的
交互模式,
浏览 1
提问于2020-01-05
得票数 0
回答已采纳
1
回答
在其他终端中使用
Powershell
ISE
的
智能感知
powershell
、
terminal
、
intellisense
我是
powershell
ISE
作为终端
的
超级粉丝。它在
shell
中
内置了intellisense
和
语法突出显示功能,我只是用它来代替常规
的
shell
来执行日常命令。我想用Visual Studio Code来代替,因为编辑器
的
功能更强大,并且支持很多语言和格式。然而,集成
的
shell
是你
的
基本
Powershell
终端:没有智能感知,没有着色(即使
在</e
浏览 3
提问于2017-07-12
得票数 0
1
回答
为什么转换
的
批处理不运行我
的
powershell
脚本?
powershell
、
batch-file
我有一个毕业证书
的
示例脚本,它使用按键机制,如下所示:$key = [System.Windows.Input.Keya file }剧本
的
其余部分还在继续encodedCommand $encoded" | Set-Conte
浏览 3
提问于2021-04-16
得票数 0
回答已采纳
1
回答
Powershell
事件处理程序上下文
powershell
、
events
、
event-handling
我尝试用next命令替换SessionSwitch事件
的
子代码:-EventName 'SessionSwitch' -Action { Write-Host "Session Changed" } 它适用于Windows7、Windows Server2008 R2
和
WindowsServer2012 R2上
的
Powershell
ISE<
浏览 3
提问于2017-04-13
得票数 2
3
回答
kubectl命令不能从
powershell
ISE
(
powershell
工作)
中
运行--有什么原因或解决办法可以让它工作吗?
powershell
、
kubernetes
、
exec
、
kubectl
、
powershell-ise
我最近已经开始与库伯内特斯
和
多克尔合作,并仍然是新
的
工作方式。我已经制作了一个ps1脚本来运行在Kubernetes上构建映像
和
执行映像所需
的
所有步骤。我看到
的
是,所有步骤
在
ISE
上都能很好地工作(除了这个:"kubectl exec -it测试运行程序pwsh")。仅就这一步而言,我必须在另一个
PowerShell
窗口上运行它。当我
在
ISE
中
运行此步骤时,脚本将继续运行,而不会
浏览 0
提问于2019-08-23
得票数 3
回答已采纳
1
回答
在
PowerShell
上而不是
在
ISE
上使用配置文件
powershell
、
powershell-5.0
我基本上是
在
尝试使用配置文件对我
的
PowerShell
进行一点自定义。我正在遵循互联网上
的
一些说明,但配置
在
ISE
上有效,但在
PowerShell
本身上不起作用。我使用
的
是profiles $PROFILE.AllUsersAllHosts。适用于
ISE
:但不是
在
PowerShell
上
浏览 0
提问于2017-10-24
得票数 1
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
Windows PowerShell入门总结
Windows PowerShell入门(1)-简介
Windows上除了CMD命令行,还有个PowerShell
人人都值得学一点PowerShell实现自动化(1)在VisualStudio上使用PowerShell
PowerShell与cmd的不同之处
热门
标签
更多标签
云服务器
即时通信 IM
ICP备案
云直播
实时音视频
活动推荐
运营活动
广告
关闭
领券