首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏Windows技术交流

    从外平台迁移Windows到腾讯云的校时问题如何解决

    sc.exe stop HwDiskMon sc.exe stop BALLOON sc.exe stop PVPanic sc.exe stop vioscsi sc.exe stop VirtioSerial sc.exe stop XenVbd sc.exe stop XenPCI sc.exe stop XenNet sc.exe stop "QEMU Guest Agent VSS Provider " sc.exe delete AgentWatch sc.exe delete AliSecGuard sc.exe delete AliyunService sc.exe delete cloudmonitor sc.exe delete cloudResetPwdAgent sc.exe delete cloudResetPwdUpdateAgent sc.exe delete HwDiskMon sc.exe delete BALLOON sc.exe delete PVPanic sc.exe delete vioscsi sc.exe delete VirtioSerial sc.exe delete

    32910编辑于 2025-12-03
  • 来自专栏Windows技术交流

    NPSMSvc_xxxxxx、McpManagementService、WaaSMedicSvc <读取描述失败。错误代码: 15100 或 2>

    amp=1 翻译成命令就是: sc.exe config McpManagementService DisplayName= "Universal Print Management Service" sc.exe 于是改修正的命令就是 sc.exe qc WaaSMedicSvc sc.exe query WaaSMedicSvc #提醒下面这2句,需要提权到TrustedInstaller执行(提权参考https Medic Service" #sc.exe config WaaSMedicSvc DisplayName= "WaaSMedicSvc" sc.exe description WaaSMedicSvc sc.exe qc WaaSMedicSvc sc.exe query WaaSMedicSvc NPSMSvc_xxxxx按这个办法修复 sc.exe delete NPSMSvc_xxxxxx sc.exe description" 例如: sc.exe description McpManagementService "Universal Print Management Service"

    13.6K82编辑于 2024-06-20
  • 来自专栏HueiFeng技术专栏

    .NET Core 3.1和WorkerServices构建Windows服务

    发布方式 使用sc.exe工具 直接部署exe文件 发布Windows服务 dotnet restore dotnet publish sc.exe部署 sc.exe create DemoWorker binpath= publish\xxxx.exe sc.exe start WorkerServicesName 部署exe文件 WorkerServicesName.exe install WorkerServicesName.exe start 使用sc.exe停止和删除 sc.exe stop WorkerServicesName sc.exe delete WorkerServicesName 非sc.exe停止和删除 WorkerServicesName

    97100发布于 2020-01-22
  • 来自专栏Windows技术交流

    如何修复云监控

    1、如何卸载云监控组件有两种办法 ①管理员身份打开powershell执行如下命令 sc.exe stop BaradAgentSvc 2>$null 1>$null sc.exe config BaradAgentSvc start= disabled 2>$null 1>$null sc.exe delete BaradAgentSvc 2>$null 1>$null sc.exe stop StargateSvc 2>$null 1>$null sc.exe config StargateSvc start= disabled 2>$null 1>$null sc.exe delete StargateSvc 用sc qc命令查询服务情况,如果是指定的服务未安装就代表卸载了 sc.exe qc BaradAgentSvc sc.exe qc StargateSvc 2、更改默认DNS导致内网域名解析异常,继而导致内网服务比如云监控异常

    6.2K20编辑于 2024-12-16
  • 来自专栏HueiFeng技术专栏

    .NET Core 3.1和WorkerServices构建Windows服务

    发布方式 使用sc.exe工具 直接部署exe文件 发布Windows服务 dotnet restore dotnet publish sc.exe部署 sc.exe create DemoWorker binpath= publish\xxxx.exe sc.exe start WorkerServicesName 部署exe文件 WorkerServicesName.exe install WorkerServicesName.exe start 使用sc.exe停止和删除 sc.exe stop WorkerServicesName sc.exe delete WorkerServicesName 非sc.exe停止和删除 WorkerServicesName

    1.5K60发布于 2020-02-24
  • 来自专栏Windows技术交流

    为啥高版本系统 在相同配置下比低版本更吃内存

    有多个系统服务是share模式,即共用一个PID 下图的服务从上到下分别是 EventSystem netprofm nsi FontCache W32Time WinHttpAutoProxySvc sc.exe queryex EventSystem|findstr "SERVICE_NAME or PID" sc.exe queryex netprofm|findstr "SERVICE_NAME or PID " sc.exe queryex nsi|findstr "SERVICE_NAME or PID" sc.exe queryex FontCache|findstr "SERVICE_NAME or PID" sc.exe queryex W32Time|findstr "SERVICE_NAME or PID" sc.exe queryex WinHttpAutoProxySvc|findstr

    90830编辑于 2024-04-26
  • 来自专栏Windows技术交流

    执行sc.exe qc 命令查询一些服务时报错 传递给系统调用的数据区域太小

    执行sc.exe qc 命令查询一些服务时报错 传递给系统调用的数据区域太小 图片.png 图片.png 解决方案很简单,在命令后面加一个比报错数字大几千的数字 比如 sc.exe qc cloudbase-init 8192 图片.png 图片.png sc.exe命令博大精深,很多服务启动不了是因为它依赖的服务有异常 图片.png Remote Procedure Call (RPC)即rpcss是很多服务依赖的底层服务 ,查询依赖rpcss的所有服务的命令如下: sc.exe enumdepend rpcss 35000|findstr SERVICE_NAME > c:\depend_rpcss.txt notepad c:\depend_rpcss.txt 再比如 sc.exe enumdepend http 35000|findstr SERVICE_NAME > c:\depend_http.txt notepad

    92020编辑于 2022-01-07
  • 来自专栏Windows技术交流

    dnscache服务很关键,我们要警惕一些软件比如openvpn对dnscache服务的注册表的改动

    powershell能打开的话,执行这几句powershell: sc.exe queryex DNSCache sc.exe queryex cryptsvc $DNSCachePID=(((sc.exe queryex DNSCache) |findstr PID) -split ":")[1].Trim() taskkill.exe /f /pid $DNSCachePID sc.exe start DNSCache 2>&1 >$null sc.exe start cryptsvc 2>&1 >$null tasklist /svc|findstr /i "dns cryptsvc" sc.exe queryex DNSCache sc.exe queryex cryptsvc powershell不能的话,打开cmd: tasklist /svc|findstr /i "dns cryptsvc start DNSCache sc.exe start cryptsvc 如果powershell、cmd、TAT都无法下发指令,且图形界面也无法重启dnscache服务,则只能重启机器恢复 如果powershell

    89210编辑于 2026-02-02
  • 来自专栏Windows技术交流

    【玩转腾讯云】Windows设置程序开机启动

    调用srvany.exe添加其他可执行文件为服务,用sc.exe管理服务用sc.exe创建ip_relay 服务sc.exe create ip_relay binpath= "C:\addservice 80"sc.exe config ip_relay depend= tcpip/dhcp/dnscache/Winmgmt启动或停止服务用sc.exe或net都行sc.exe start ip_relaynetstat 因为notepad++就没有后台功能sc.exe create notepad++ binpath= "C:\Program Files\Notepad++\notepad++.exe" start= auto displayname= "notepad++"sc.exe description notepad++ "notepad++,比notepad更好用!" sc.exe config notepad++ depend= ""sc.exe start notepad++image.pngimage.png没啥卵用,执行sc.exe delete notepad

    7.8K100编辑于 2023-03-30
  • 来自专栏Windows技术交流

    重装腾讯云云监控后如果对应服务不存在可通过sc.exe命令添加服务

    1251783334.cos.ap-beijing.myqcloud.com/StargateSvc.reg" -outfile "C:\Program Files\qcloud\StargateSvc.reg"sc.exe binpath= "C:\Program Files\QCloud\Stargate\sgagent.exe" start= auto displayname= "QCloud Stargate Manager"sc.exe

    1K20编辑于 2022-08-01
  • 来自专栏Windows技术交流

    browsers (but not CURL) suddenly unable to make HTTP requests on VM

    手动从服务列表停止WinHttpAutoProxySvc 服务 执行命令设置own模式并开启服务 sc.exe config WinHttpAutoProxySvc type= own sc.exe start 手动从服务列表停止WinHttpAutoProxySvc 服务 执行命令设置share模式并开启服务 sc.exe config WinHttpAutoProxySvc type= share sc.exe

    93120编辑于 2024-09-20
  • 来自专栏Windows技术交流

    powershell自动化重装 cloudbase-init 为1.1.2版本

    config cloudbase-init depend= tcpip/dhcp/dnscache/Winmgmt sc.exe failure cloudbase-init reset= 0 actions = restart/10000 2>&1 > $null sc.exe qc cloudbase-init 8192 【2008R2-2012R2通用】 如果defender等安全软件不拦截,2008R2 config cloudbase-init obj= LocalSystem sc.exe config cloudbase-init depend= tcpip/dhcp/dnscache/Winmgmt sc.exe failure cloudbase-init reset= 0 actions= restart/10000 sc.exe qc cloudbase-init 8192 net user sc.exe failure cloudbase-init reset= 0 actions= restart/10000 sc.exe qc cloudbase-init 8192 net user

    2.3K40编辑于 2024-05-09
  • 来自专栏chester技术分享

    .NET6打包部署到Windows Service

    Microsoft.Extensions.Hosting.WindowsServices" Version="6.0.1" /> 2.设置ContentRootPath 不设置ContentRootPath会指向C盘sc.exe create "MyService" start=auto binpath="%CDir%MyService.exe --environment Development" 启动 sc.exe start "MyService" 停止 sc.exe stop "MyService" 删除 sc.exe delete "MyService" 6.安装打包工具 安装Inno Setup打包工具 安装好后,进行汉语支持支持 [UninstallRun] Filename: "{sys}\sc.exe"; Parameters: "stop MyService" ; Flags: runhidden Filename: [UninstallRun] Filename: "{sys}\sc.exe"; Parameters: "stop MyService" ; Flags: runhidden Filename:

    1.7K10编辑于 2022-12-19
  • 来自专栏Windows技术交流

    玩转华为云Windows在线迁移到腾讯云

    providername, $_) if ($_ -match "QEMU Guest Agent VSS Provider") { return $index } } sc.exe stop "QEMU Guest Agent VSS Provider" 2>&1 > $null sc.exe config "QEMU Guest Agent VSS Provider" start = disabled 2>&1 > $null sc.exe stop VSS 2>&1 > $null if (-not [string]::IsNullOrEmpty($matchedIndex) matchedIndex].split(":")[1].trim() $regPath = "HKLM:\SYSTEM\CurrentControlSet\Services\VSS\Providers\$del" } sc.exe start VSS sc.exe query VSS 三、卸载virtio-win-guest-tools 我在华为云看了下,华为云没有Windows公共镜像,都是其客户自己搞的自定义镜像、自己安装的

    2.1K10编辑于 2025-01-24
  • 来自专栏Windows技术交流

    windows ntp校时

    PollInterval" 重启w32time服务的命令,配置完了重启服务生效 net stop w32time 2>&1 > $null w32tm /unregister w32tm /register sc.exe triggerinfo w32time delete sc.exe config w32time start= auto #sc.exe config w32time start= delayed-auto sc.exe triggerinfo w32time start/networkon stop/networkoff net start w32time 手动同步的命令 w32tm /resync /

    4K10编辑于 2025-06-04
  • 来自专栏Windows技术交流

    powershell批量远程示例,批量给多台机器安装dotnet和iis

    examples 启用winrm #密码换成自己的 #密码换成自己的 #密码换成自己的 net user Administrator "密码" #适用2008R2/2012R2/2016/2019/2022 sc.exe stop mpssvc 2>&1 >$null start-sleep 5 sc.exe config mpssvc start= disabled #reg delete "HKLM\SOFTWARE Web-Application-Proxy"} | Install-WindowsFeature; } } 上面黑体的部分就是要批量下发的指令,多行的话用英文分行隔开,比如要批量下发停止云监控组件和禁止云监控组件开机运行的命令 sc.exe stop BaradAgentSvc 2>$null 1>$null;sc.exe stop StargateSvc 2>$null 1>$null;sc.exe config BaradAgentSvc start= disabled 2>$null 1>$null;sc.exe config StargateSvc start= disabled 2>$null 1>$null; 如果是批量删除

    2K20编辑于 2024-09-14
  • 来自专栏Windows技术交流

    初始化组件≤cloudbase-init1.1.2的机型A的机器做了自定义镜像买机型B的机器,新机器网络初始化异常的bug如何规避

    CLOUDBASE-INIT_INSTALL1.1.4.PS1 -O c:\cloudbase-init_install.ps1 powershell -file c:\cloudbase-init_install.ps1 sc.exe config cloudbase-init obj= LocalSystem sc.exe config cloudbase-init depend= tcpip/dhcp/dnscache /Winmgmt sc.exe failure cloudbase-init reset= 0 actions= restart/10000 2>&1 > $null sc.exe

    36110编辑于 2025-01-14
  • 来自专栏FreeBuf

    Windows权限维持技巧之隐藏服务

    Joshua Wright提供的方法使用sc 命令的sdset模块可以修改服务的安全描述符,命令如下: sc.exe sdset test "D:(D;;DCLCWPDTSD;;;IU)(D;;DCLCWPDTSD CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD)" 再次使用get-service命令查看服务信息,服务不存在 使用sc.exe 查看服务信息拒绝访问 使用sc.exe查询所有服务信息并过滤名为“test”的服务,结果为空 0x03 原理 SDDL Windows服务支持使用安全描述符定义语言(Security Descriptor WINDOWS\system32> Get-WmiObject Win32_Service | Select-String -Pattern 'test'PS C:\WINDOWS\system32>sc.exe FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD)" 0x05 还原 通过删除拒绝相关的SDDL语句,即可让服务正常被查询 & $env:SystemRoot\System32\sc.exe

    2.2K10编辑于 2023-04-26
  • 来自专栏全栈程序员必看

    0x80070035找不到网络路径_0x80004005无法访问共享

    sc.exe config lanmanworkstation depend= bowser/mrxsmb10/nsi 回车 sc.exe config mrxsmb20 start= disabled

    88020编辑于 2022-09-20
  • 来自专栏Windows技术交流

    时间偏差超过15小时(54000秒),无法自动校时的解决方案

    configfile =@" @echo off`n`r net stop w32time 2>&1 > nul`n`r #w32tm /unregister`n`r #w32tm /register`n`r sc.exe triggerinfo w32time delete`n`r sc.exe config w32time start= auto`n`r sc.exe triggerinfo w32time start MaxPosPhaseCorrection /t reg_dword /d 4294967295 /f net stop w32time 2>&1 > $null #w32tm /unregister #w32tm /register sc.exe triggerinfo w32time delete ; sc.exe config w32time start= auto #sc.exe config w32time start= delayed-auto sc.exe triggerinfo w32time start/networkon stop/networkoff net start w32time reg add "HKLM\SYSTEM\CurrentControlSet

    2.1K100编辑于 2024-08-29
领券