2020年11月30日
摘要:
创建任务计划,用户登录时运行,延迟20S,使用最高权限运行 $TaskName = "AddUser" $UserName = "administrator" $UserPass = 'password111' $action_cmd = "d:\start.bat" $action_n = New
阅读全文
posted @ 2020-11-30 15:00
momingliu11
阅读(1967)
推荐(0)
2020年11月27日
摘要:
MDT提示无法找到共享路径或直接进入cmd窗口,解决办法: 在cmd下运行如下命令:wscript.exe x:\deploy\scripts\lticleanup.wsfwscript.exe x:\deploy\scripts\litetouch.wsf运行以上两条命令后,再次重新启动,可正常运
阅读全文
posted @ 2020-11-27 10:37
momingliu11
阅读(1528)
推荐(0)
2020年11月20日
摘要:
电脑启动后,自动运行任务计划,运行vbs脚本修改管理员密码,然后引导用户自行输入个性化内容,再然后调用ps1脚本修改计算机名、加域、添加本地管理员权限 join.vbs脚本内容如下: '''''''''''''''''''''''''''''''''''''''''
阅读全文
posted @ 2020-11-20 18:31
momingliu11
阅读(1657)
推荐(0)
摘要:
netsh wlan export profile key=clearnetsh wlan add profile filename="d:\Desktop\JoinDomain\wlan.xml"start-sleep -s 1然后最好将配置文件名称改为与ssid名称一样netsh wlan co
阅读全文
posted @ 2020-11-20 18:20
momingliu11
阅读(987)
推荐(0)
2020年11月19日
摘要:
双击该vbs脚本,得到点前目录 msgbox "当前文件路径是 " & wscript.ScriptFullName set ws=CreateObject("WScript.Shell") MsgBox "当前文件夹是 " & ws.CurrentDirectory
阅读全文
posted @ 2020-11-19 10:35
momingliu11
阅读(1805)
推荐(0)
摘要:
dim wshell,UserName,Password UserName = "aa3" set wshell=createobject("wscript.shell") msgbox(UserName) wshell.run "powershell.exe d:\a.ps1 "&UserName
阅读全文
posted @ 2020-11-19 10:26
momingliu11
阅读(648)
推荐(0)
2020年11月12日
摘要:
title=‘程序邮箱’ java.net.URLEncoder.encode(title, "UTF-8") //编码URLDecoder.decode("%C4%E3%BA%C3", "GBK") //解码
阅读全文
posted @ 2020-11-12 17:53
momingliu11
阅读(1604)
推荐(0)
2020年11月11日
摘要:
编写公共函数,然后将其保存为D:\temp\Send.psm1,脚本内容如下: Function SendMsg($touser,$data){ $url='http://msg.xx.com/rmsg' $key = 'Mj111' $secret = 'b3228' $today = Get-D
阅读全文
posted @ 2020-11-11 18:27
momingliu11
阅读(880)
推荐(0)
摘要:
//获取对象类型: println pp.getClass() //获取对象属性: println pp.getProperties()
阅读全文
posted @ 2020-11-11 17:48
momingliu11
阅读(5109)
推荐(0)
2020年11月10日
摘要:
提交key1=value1&key2=value2类型参数: 方法一: $textmod="key=$key&content=$data&touser=$touser" Invoke-WebRequest -UseBasicParsing $url -Method POST -Body $textm
阅读全文
posted @ 2020-11-10 20:07
momingliu11
阅读(5207)
推荐(0)