会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
talentzemin
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
9
10
11
12
13
14
15
16
17
···
46
下一页
2022年10月11日
移除PowerShell Invoke-Command返回值ConvertTo-JSON后PSComputerName,RunspaceId,PSShowComputerName
摘要: 
阅读全文
posted @ 2022-10-11 21:05 talentzemin
阅读(38)
评论(0)
推荐(0)
2022年9月23日
System32下的一些快捷应用
摘要: hostname && whoami winver.exe timeout.exe OptionalFeatures.exe SystemPropertiesAdvanced.exe perfmon.exe systeminfo.exe forfiles.exe eventvwr.exe finds
阅读全文
posted @ 2022-09-23 20:29 talentzemin
阅读(154)
评论(0)
推荐(0)
2022年9月15日
PowerShell中hashtable排序问题
摘要: 举例子 当有这样一个hashtable $a = @{a=1;b=2;c=3;d=4} 你也可以这么写 $a = @{ a=1 b=2 c=3 d=4 } 然后打印 $a 我期望的是: a 1 b 2 c 3 d 4 结果是这样的: 排序 不要紧,排序一下 $a | Sort-Object 不起作用
阅读全文
posted @ 2022-09-15 14:28 talentzemin
阅读(132)
评论(0)
推荐(0)
2022年9月14日
This File Came From Another Computer And Might be Blocked
摘要: This File Came From Another Computer And Might be Blocked Unblock-File Unblock-File [-Path] <String[]> Ref https://docs.microsoft.com/en-us/powershell
阅读全文
posted @ 2022-09-14 11:24 talentzemin
阅读(113)
评论(0)
推荐(0)
2022年9月8日
PowerShell中异步方法的使用
摘要: 问题 PowerShell脚本中有个文件上传功能,使用HttpClient 脱敏处理后基本就是这样子 $client = new-object System.Net.Http.HttpClient; $result = $client.PostAsync($URL,@{}).Result; 别问为什
阅读全文
posted @ 2022-09-08 22:38 talentzemin
阅读(323)
评论(0)
推荐(0)
2022年8月2日
关于强制停止服务的问题
摘要: 强制停止服务 当停止某个服务的时候,因为某些为止的原因,服务的状态会一直处于STOP_PENDING,此时,就需要强制停止该服务 杀死服务对应的进程 用中文在百度搜索“杀死服务”,以及用英文在google搜索“kill service”,基本原理都一样: 找到目标服务的进程ID PID,然后杀死即可
阅读全文
posted @ 2022-08-02 21:27 talentzemin
阅读(1219)
评论(0)
推荐(0)
2022年7月28日
查看.NET Framework版本
摘要: Code (Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full").Release Ref https://docs.microsoft.com/en-us/dotnet/framework/migra
阅读全文
posted @ 2022-07-28 17:13 talentzemin
阅读(146)
评论(0)
推荐(0)
2022年7月27日
PowerShell DSC Resource更新问题
摘要: Resource Resource在Pull Server上的格式是这样的: {ModuleName}_{Version}.zip 比如 Blog_1.0.0.0.zip 如果你修改了Resource中的代码,理论上,只要更新,就得发新版本,哪怕是个小版本的变更。 Blog_1.0.0.1.zip
阅读全文
posted @ 2022-07-27 23:33 talentzemin
阅读(50)
评论(0)
推荐(0)
2022年7月14日
Winrm HTTPS
摘要: 生成自签名证书 New-SelfSignedCertificate -Subject $(hostname) 默认会生成到这里 winrm 查看帮助 winrm 创建listener winrm create winrm/config/Listener?Address=*+Transport=HTT
阅读全文
posted @ 2022-07-14 23:23 talentzemin
阅读(392)
评论(0)
推荐(0)
2022年7月13日
SQLServer backup and restore
摘要: 备份 Backup-SqlDatabase -ServerInstance $ServerInstance -Database $DBName -BackupFile $BackupFilePath -Credential $DBCredential -Incremental 还原 Restore-
阅读全文
posted @ 2022-07-13 16:36 talentzemin
阅读(49)
评论(0)
推荐(0)
上一页
1
···
9
10
11
12
13
14
15
16
17
···
46
下一页
公告