E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
%COMPUTERNAME%
PowerShell中使用PrintManagement管理打印机示例
复制代码代码如下:$
ComputerName
=$env:
COMPUTERNAME
$Dri
·
2019-09-22 15:03
Powershell小技巧之保存服务信息
Path="$env:temp\mylist.xml"Get-Service|Add-Member-MemberTypeNoteProperty-NameComputerName-Value$env:
COMPUTERNAME
-PassThru
·
2019-09-22 15:01
python监控nginx端口和进程状态
coding:utf-8importpsutilimportsysimportos#获取主机名称defhostname():sys=os.nameifsys=='nt':hostname=os.getenv('
computername
狼叔也疯狂
·
2019-09-06 08:19
Powershell-批量清理DHCP BAD_ADDRESS地址
服务器地址池频繁被Bad_Address垃圾请求打满;安全及网络同事在溯源排错过程中,需要及时清理垃圾地址信息,防止新用户无法正常获取IP地址信息;查询当前作用域信息:Get-DhcpServerv4Lease -
ComputerName
wenzhongxiang
·
2019-08-09 12:17
BAD_ADDRESS
批量清理DHCP无效地址池
DHCP
Bad_address
Windows
在Mac上使用Royal TSX,代替Putty,创建科学服务器
点击左下角的+号-Terminalimage.png注意
ComputerName
就是供
zbmzly
·
2019-06-10 09:47
PowerShell where-object筛选和WQL语法筛选对比
首先看看where-object筛选:Get-WmiObject-ClassWin32_Product-
ComputerName
.
zengchuixin2008
·
2019-05-09 09:43
PowerShell
WQL语法
PS筛选
PowerShell
PowerShell通过COM对象配置打印机
(一)列出打印机Get-WmiObject-ClassWin32_Printer-
ComputerName
(New-Object-ComObjectWScript.Network).EnumPrinterConnections
zengchuixin2008
·
2019-05-09 09:51
PowerShell
COM对象
打印机管理
PowerShell
使用telnet测试smtp服务
输出类似以下内容:220
computername
.mi
yuxye
·
2019-04-02 10:44
smtp
telnet
验证
微软windows系统
PowerShell获取服务器本地服务状态
$pc1=$env:
computername
$pc2='aaa'$code={Get-Service-DisplayName"*exchange*"|Where-ObjectStatus-EQStopped
zengchuixin2008
·
2019-03-22 20:15
Powershell
查看本地服务状态
PowerShell
PowerShell args充当占位符
functiontest-conn{Test-Connection-Count3-
ComputerName
$args#args充当占位符的作用,这个占位符必须以args命名,否则不能识别,会抛出异常}Set-AliastcTest-Conntclocalhost
zengchuixin2008
·
2019-03-22 20:10
args占位符
powershell入门
PowerShell
Dos 批处理 Shutdown
shutdown[-i|-l|-s|-r|-a][-f][-m\\\\
computername
][-txx][-c\"comment\"][-dup:xx:yy]没有参数显示此消息(与?相
JingWenxing
·
2019-02-27 00:48
Windows Server 2016-Powershell之客户端加域(三)
将本地计算机添加到域或工作组,可通过Add-Computer命令操作,具体信息如下:语法:Add-Computer [-DomainName] [-
ComputerName
] [-Confirm]
wenzhongxiang
·
2019-02-09 08:02
服务器
Windows
Server
Windows
Powershell-获取DHCP地址租用信息
确定执行命令并获取相关帮助信息:helpGet-DhcpServerv4Scope名称Get-DhcpServerv4Scope语法Get-DhcpServerv4Scope[[-ScopeId]][-
ComputerName
v_fanyunxiao
·
2018-11-20 09:39
DHCP
POWERSHELL
vbs获取本机信息以及ping的监控检测
什么域名检测健康情况先行判断的时候,一般的人员可能无法理解,这对于他们可能是灾难性的操作,所以这边提供了一个vbs脚本直接发给非技术人员,让别人双击之后截图即可程序本体FunctionGetIPMAC(
ComputerName
caixingyunzi
·
2018-08-14 16:39
自动化运维工具
一键查询系统Windows基本信息的PowerShell脚本
$disk=Get-WmiObjectWin32_LogicalDisk-
ComputerName
'localhost'-Filter"DeviceID='C:'"$drive=$disk.DeviceID
Roger_Zhang
·
2018-07-17 11:37
Power
Shell
windows系统变量
数据存放位置:%APPDATA%当前目录:%CD%cmd.exe所在位置:%CMDCMDLINE%扩展版本号:%CMDEXTVERSION%常用文件路径:%CommonProgramFiles%计算机名:%
COMPUTERNAME
Lee_吉
·
2018-05-29 08:07
windows
系统变量
windows Server 2008 R2下Server Core常用命令
1.修改计算机名称工作组:NetdomRenameComputer%
ComputerName
%/NewName:08R2ServerCore域环境中:NetdomRenameComputer%
ComputerName
iLync_Steven
·
2018-04-23 15:19
服务器
windows
server
技术文档分享
更换资源文件后编译错误
进入目录/Users/
computerName
/Library/Developer/Xcode/DerivedData执行命令xattr-rc.
间歇_持续
·
2018-03-27 17:30
REG Delete用法
对于远程计算机,请在\
ComputerName
\PathToSubkey中的子项路径前包含计算机名称。忽略
ComputerName
会导致默认对本地计算机进行操作。以相应的子目录树开始路径。
careluck
·
2018-03-02 10:23
注册表
批处理
碎片总结
PowerShell收集服务器日检报告,并发邮件给管理员脚本修改应用于生产环境实例
原代码如下:$CPULoad=(Get-WmiObject win32_Processor -
computername
$Computer ).LoadP
淼月
·
2018-02-21 12:42
PowerShell
系统运维
日检报告
菜刀在IIS下PHP(eval)不能使用虚拟终端的原因
在cmd.exe文件属性安全选项卡中添加用户IUSR_
ComputerName
(Computer
星星之火666
·
2018-01-26 21:58
Powershell-获取DHCP地址租用信息
确定执行命令并获取相关帮助信息:helpGet-DhcpServerv4Scope名称Get-DhcpServerv4Scope语法Get-DhcpServerv4Scope[[-ScopeId]][-
ComputerName
wenzhongxiang
·
2018-01-26 20:16
get
dhcpserver
4scop
Windows
用命令实现Win7远程桌面关机和重启
输入上述命令即可,后面的数字表示关机/重启延迟的时间at12:00shutdown-s在运行里输入这个然后敲回车他就会在12点种的时候关机用法:shutdown[-i|-l|-s|-r|-a][-f][-m\
computername
钢铁堡垒
·
2018-01-18 10:37
计算机操作
Powershell args充当占位符
functiontest-conn{Test-Connection-Count3-
ComputerName
$args#args充当占位符的作用,这个占位符必须以args命名,否则不能识别,会抛出异常}Set-AliastcTest-Conntclocalhost
zengchuixin2008
·
2018-01-10 15:23
powershell
基础语法
args
PowerShell
dos下的shutdown关机命令
用法:shutdown[-i|-l|-s|-r|-a][-f][-m\\
computername
][-txx][-c"comment"][-dup:xx:yy]没有参数显示此消息(与?
火龙映天
·
2017-10-23 15:16
Windows相关
移除掉一个Powershell对像的属性
首先先自定义出来一个对像:PSC:\>$MyObject=New-Object-TypeNamePSCustomObject-Property@{>>
ComputerName
=$env:Co
raincity
·
2017-09-19 14:20
Powershell
Powershell
windows下c++如何读取主机名
#include#include#include#include#includeusingnamespacestd;intmain(){TCHARbuf[MAX_
COMPUTERNAME
_LENGTH+
chent86
·
2017-09-03 10:38
c++
windows
Collect logs from the Windows servers
1.Getsysteminfosysteminfo>"${env:
COMPUTERNAME
}_systeminfo.txt"2.GetserialnumberGet-WmiObject-ClassWin32
520feng2007
·
2017-08-04 16:13
log
Windows
Linux-ubuntu常用最基本命令
xiaoming@
computername
:~$@之前的,是当前用户的用户名;@后面,“:”前面是计算机名;“:”后面,是当前所在目录;在“$”后面可以输入命令。
alg-flody
·
2017-06-21 21:50
Linux
PowerShell-自定义函数(五)-参数互斥:ParameterSetName
这一篇我们来讲一下参数的互斥,何谓参数互斥呢.用九胖风格的话说就是互怼,有我没你,有你没我.例如我们为一个Ping功能Function设定了两个参数,一个叫
ComputerName
,一个叫IPAddress
38088444
·
2017-05-01 18:42
Shell
Power
Function
PowerShell
Windows系统目录变量
%
COMPUTERNAME
%:列出了计算机名。%system%=C:\WINDOWS\SYSTEM32%TIME%:列出当前时间。%OS%系统返回操作系统名称。
zhpfxl
·
2017-03-03 16:24
windows
目录变量
Windows
使用脚本更改计算机名
=CreateObject("WScript.Network")SetR=CreateObject("WScript.Shell")reval=InputBox("当前的计算机名是:"&objnet.
ComputerName
Younisz
·
2017-02-28 21:42
计算机名
名称
computername
在远程计算机运行PowerShell命令
在远程计算机运行PowerShell命令检查PowerShellRemoting是否启用在WindowsServer2008R2上以管理员身份运行PowerShell,然后输入Enter-PSSession -
ComputerName
UltraSQL
·
2016-12-21 15:44
Remoting
Powershell
PSRemoting
PowerShell
dos批处理文件中的变量
%
COMPUTERNAME
%系统返回计算机的名称。%DATE%系统返回当前日期。使用与date/t命令相同的格式。%TIME%系统返回当前时间。使用与time/t命令相同的格式。%E
justin_peng
·
2016-12-03 10:45
dos
cmd
bat
Windows相关
获取ip
获取服务器的ip gethostbyname($_ENV['
COMPUTERNAME
']);获取客户端的ip1.functiongetIP(){ global$ip; if(getenv("
ldTrueLove
·
2016-11-08 13:00
什么是automatic variable?
$share=Get-WmiObject-ClassWin32_Share-
ComputerName
$Server.name-Credential$credentials-Filter"Description
中道学友
·
2016-08-15 16:00
windows NET命令的使用
命令格式:Netview[\\
computername
|/domain[:domainname]]有关参数说明:·键入不带参数
煜铭2011
·
2016-07-20 05:47
安全技术
关闭计算机的相关命令
i 显示GUI界面,必须是第一个选项-l 注销(不能与选项-m一起使用)-s 关闭此计算机-r 关闭并重启动此计算机-a 放弃系统关机-m\
computername
wangyanming123
·
2016-04-09 23:00
计算机
DOS命令行
Windows Server 2008 R2 Server Core常用命令及其安装
1.修改计算机名称工作组:NetdomRenameComputer%
ComputerName
%/NewName:08R2ServerCore域环境中:NetdomRenameComputer%
ComputerName
hanzheng260561728
·
2016-04-06 21:00
window 加域 脚本
加入域:@echooffnetdomjoin%
computername
%/domain:domain/UserD:user/PasswordD:password/REBoot:5退出域:@echooffnetdomremove
今天不加班
·
2016-03-24 11:00
Trace-Commnd 跟踪管道参数传递
import-csv name.csv | get-service报错:理论上管道应该可以通过byvalue或者bypropertyname传递,get-service有-
computername
这个选项
beanxyz
·
2016-03-16 12:16
Powershell
pipe
trace
PowerShell
Trace-Commnd 跟踪管道参数传递
import-csv name.csv | get-service报错:理论上管道应该可以通过byvalue或者bypropertyname传递,get-service有-
computername
这个选项
beanxyz
·
2016-03-16 12:16
trace
pipe
powershell
Oracle EM 的访问方式由HTTPS改为HTTP
打开命令提示符,依次运行以下命令:setORACLE_HOSTNAME=%
COMPUTERNAME
% setORACLE_UNQNAME=orcl rem指向dbhome_1\oc4j\j2ee\OC4J_DBConsole
未名Q
·
2016-03-03 10:00
Powershell invoke-command vs -
computerName
效率比较
豆子一直以来都有一个认识误区,一直认为powershell远程操作的时候,如果某个命令自带了-
computername
的参数,那么就用他好了,这个自带的肯定效率比我用invoke-command远程调用强
beanxyz
·
2016-03-02 13:06
powershell
Invoke-Command
Powershell invoke-command vs -
computerName
效率比较
豆子一直以来都有一个认识误区,一直认为powershell远程操作的时候,如果某个命令自带了-
computername
的参数,那么就用他好了,这个自带的肯定效率比我用invoke-command远程调用强
beanxyz
·
2016-03-02 13:06
command
powershell
invoke
PowerShell
Powershell function to get all dhcp lease
服务器加入下面代码到$profile中functionget-dhcplease{ $dhcpservers=Get-DhcpServerInDC $dhcpscopes=$dhcpservers|%{$
computername
yoke88
·
2016-02-16 11:21
function
服务器
profile
Powershell function to get all dhcp lease
服务器加入下面代码到$profile中functionget-dhcplease{$dhcpservers=Get-DhcpServerInDC$dhcpscopes=$dhcpservers|%{$
computername
yoke88
·
2016-02-16 11:21
服务器
profile
function
Utility3:Understand Dashboard Report
ToseedataintheSQLServerUtilitydashboard,selectthetopnodeintheUtilityExplorertree-labeled"Utility\(
ComputerName
悦光阴
·
2016-02-03 17:00
Utility3:Understand Dashboard Report
ToseedataintheSQLServerUtilitydashboard,selectthetopnodeintheUtilityExplorertree-labeled"Utility\(
ComputerName
悦光阴
·
2016-02-03 17:00
net time 时间同步命令
语法nettime[{\\
ComputerName
|/domain[:DomainName]|/rtsdomain[:DomainName]}][/set]nettime[\\
ComputerName
]
a809146548
·
2015-12-18 23:00
cmd
系统命令
上一页
1
2
3
4
5
6
7
8
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他