随笔分类 - PowerShell
摘要:# #Function: 备份MySQL数据库 #Release Version: v0.0.3 #Release Date: 2020年8月17日 #Author: panda666 #Website: www.panda666.com # # 配置项 #mysqldump的位置 $mysqldu
阅读全文
摘要:更新记录 转载请注明出处: 2022年9月1日 发布。 2022年8月15日 从笔记迁移到博客。 | 章节 | 链接 | | | | | PowerShell介绍(Introduction to PowerShell) | https://www.cnblogs.com/cqpanda/p/1658
阅读全文
摘要:更新记录 转载请注明出处。 2022年8月29日 发布。 2022年8月29日 从笔记迁移到博客。 程序性能和BUG分析工具 https://hibernatingrhinos.com/products/efprof https://stackify.com/retrace/ https://sta
阅读全文
摘要:更新记录 转载请注明出处。 2022年8月29日 发布。 2022年8月29日 从笔记迁移到博客。 模块管理(Modules Management) 模块和管理单元(Modules and Snap-Ins) Modules were introduced with the release of P
阅读全文
摘要:更新记录 转载请注明出处。 2022年8月29日 发布。 2022年8月29日 从笔记迁移到博客。 异步处理(Asynchronous Processing) 休眠(Sleep)指定时间 Start-Sleep 实例: 休眠1秒 Start-Sleep -Seconds 1
阅读全文
摘要:更新记录 转载请注明出处。 2022年8月28日 发布。 2022年8月28日 从笔记迁移到博客。 WMI操作(Interact With Windows Management Instrumentation) 说明 Windows Management Instrumentation,WMI Wi
阅读全文
摘要:更新记录 转载请注明出处。 2022年8月29日 发布。 2022年8月29日 从笔记迁移到博客。 Web requests(Web请求) 发起Web请求 A background in web requests is valuable before delving into interfaces
阅读全文
摘要:更新记录 转载请注明出处。 2022年8月28日 发布。 2022年8月28日 从笔记迁移到博客。 系统维护(System Maintain) 显示已安装的补丁 Get-HotFix 实例: 按安装的日期排序 Get-HotFix | Sort-Object -Property InstalledO
阅读全文
摘要:更新记录 转载请注明出处。 2022年8月28日 发布。 2022年8月28日 从笔记迁移到博客。 作业(Jobs) 作业说明 PowerShell将后台执行的命令称为作业(Jobs) 可以通过多种方法创建作业,可以使用多种命令管理作业 创建本地作业 Start-Job 实例: 直接在作业命令中包含
阅读全文
摘要:更新记录 转载请注明出处。 2022年8月27日 发布。 2022年8月27日 从笔记迁移到博客。 邮件管理(Mail Management) 设置SMTP服务器 Send-MailMessage -From "pandatest@qq.com" -To "pandatest@qq.com" -Su
阅读全文
摘要:更新记录 转载请注明出处。 2022年8月27日 发布。 2022年8月27日 从笔记迁移到博客。 远程管理说明(Remoting and Remote Management) PowerShell远程连接说明 与Telnet和Secure Shell(SSH)不同 PowerShell采用一种新的
阅读全文
摘要:更新记录 转载请注明出处。 2022年8月27日 发布。 2022年8月27日 从笔记迁移到博客。 计算机管理(Computer System Management) 重启计算机 Restart-Computer 重命名计算机 Rename-Computer 关闭计算机 Stop-Computer
阅读全文
摘要:更新记录 转载请注明出处。 2022年8月27日 发布。 2022年8月27日 从笔记迁移到博客。 注册表管理(Registry Management) 进入注册表 Set-Location -Path HKCU:
阅读全文
摘要:更新记录 转载请注明出处。 2022年8月25日 发布。 2022年8月18日 从笔记迁移到博客。 实例: $taskAction = New-ScheduledTaskAction -Execute pwsh.exe ` -Argument 'Write-Host "hello world"' $
阅读全文
摘要:更新记录 转载请注明出处。 2022年8月25日 发布。 2022年8月18日 从笔记迁移到博客。 日期时间管理(Date & Time Management) 设置日期 set-Date 实例: 把系统的时间设置为指定的日期 set-Date -Date '2020-7-18' 设置将当前的日期添
阅读全文
摘要:更新记录 转载请注明出处。 2022年8月24日 发布。 2022年8月18日 从笔记迁移到博客。 磁盘与硬件管理(Disk & Hardware Management) 添加磁盘(挂载) New-PSDrive 查看已添加到文件系统的磁盘 Get-PSDrive
阅读全文
摘要:更新记录 转载请注明出处。 2022年8月24日 发布。 2022年8月18日 从笔记迁移到博客。 系统事件管理(System Event Management) 显示事件管理器 Show-EventLog 获得事件条目 Get-EventLog 实例: Get-EventLog -LogName
阅读全文
摘要:更新记录 转载请注明出处。 2022年8月24日 发布。 2022年8月18日 从笔记迁移到博客。 文件系统管理(File System Management) 文件类型说明 与Linux不同,Windows下只有3种文件类型: 磁盘驱动器(Diver) 文件夹(Folder) 文件(File) 磁
阅读全文
摘要:更新记录 转载请注明出处。 2022年8月23日 发布。 2022年8月18日 从笔记迁移到博客。 网络管理(Network Management) 获得网卡信息 Get-NetAdapter 测试网络连通性 实例: 获得打开的网络接口 if ($interface = Get-NetAdapter
阅读全文
摘要:更新记录 转载请注明出处。 2022年8月23日 发布。 2022年8月18日 从笔记迁移到博客。 服务管理(Service Management) 获得服务 Get-Service 实例: Get-Service -Name M* 停止服务 Stop-Service 创建新服务 New-Servi
阅读全文

浙公网安备 33010602011771号