Error en VBA

Juan Francisco Olarte Paz 21 Reputation points
2021-02-09T03:07:28.457+00:00

Please Help with this error at code

C:\Windows\system32>powershell -command "get-wmiobject wmimonitorid -namespace root\wmi|foreach-object{($.SerialnumberID|foreach-object{[char]$}) -join „"}". Falta la cadena en el terminador: ". + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException + FullyQualifiedErrorId : TerminatorExpectedAtEndOfString

C:\Windows\system32>

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,463 questions
0 comments No comments
{count} votes

Accepted answer
  1. Ian Xue (Shanghai Wicresoft Co., Ltd.) 34,271 Reputation points Microsoft Vendor
    2021-02-09T04:10:54.26+00:00

    Hi,

    Please check if this works

    powershell -command "get-wmiobject wmimonitorid -namespace root\wmi|foreach-object{($_.SerialnumberID|foreach-object{[char]$_}) -join ''}"   
    

    Best Regards,
    Ian Xue

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful