Page 3 of 4 FirstFirst 1234 LastLast
Results 31 to 45 of 53
  1. #31
    WS Lounge VIP access-mdb's Avatar
    Join Date
    Dec 2009
    Location
    Oxfordshire, UK
    Posts
    2,025
    Thanks
    162
    Thanked 188 Times in 181 Posts
    I don't use homegroup and I also am not aware of stopping any services (though I'm not sure which ones you're meaning).
    What do you mean nothing is impossible? I've been doing nothing for years.

  2. #32
    WS Lounge VIP Browni's Avatar
    Join Date
    Dec 2009
    Location
    Rochdale, UK
    Posts
    1,752
    Thanks
    39
    Thanked 178 Times in 155 Posts
    Code:
    Windows PowerShell
    Copyright (C) 2016 Microsoft Corporation. All rights reserved.
    
    PS C:\WINDOWS\system32> winrm s winrm/config/client '@{TrustedHosts="Ian-W10"}'
    Client
        NetworkDelayms = 5000
        URLPrefix = wsman
        AllowUnencrypted = false
        Auth
            Basic = true
            Digest = true
            Kerberos = true
            Negotiate = true
            Certificate = true
            CredSSP = false
        DefaultPorts
            HTTP = 5985
            HTTPS = 5986
        TrustedHosts = Ian-W10
    
    PS C:\WINDOWS\system32>

  3. #33
    Administrator
    Join Date
    Mar 2001
    Location
    St Louis, Missouri, USA
    Posts
    24,239
    Thanks
    5
    Thanked 1,187 Times in 1,040 Posts
    Here's my results:

    Client
    NetworkDelayms = 30000
    URLPrefix = wsman
    AllowUnencrypted = false
    Auth
    Basic = true
    Digest = true
    Kerberos = true
    Negotiate = true
    Certificate = true
    CredSSP = false
    DefaultPorts
    HTTP = 5985
    HTTPS = 5986
    TrustedHosts =*my-pc-name
    Joe

  4. #34
    WS Lounge VIP access-mdb's Avatar
    Join Date
    Dec 2009
    Location
    Oxfordshire, UK
    Posts
    2,025
    Thanks
    162
    Thanked 188 Times in 181 Posts
    Mine is the same as Ian's, bar the PC name of course.
    What do you mean nothing is impossible? I've been doing nothing for years.

  5. #35
    Administrator
    Join Date
    Mar 2001
    Location
    St Louis, Missouri, USA
    Posts
    24,239
    Thanks
    5
    Thanked 1,187 Times in 1,040 Posts
    Joe

  6. #36
    Super Moderator RetiredGeek's Avatar
    Join Date
    Mar 2004
    Location
    Manning, South Carolina
    Posts
    9,941
    Thanks
    418
    Thanked 1,592 Times in 1,444 Posts
    Joe,

    Thanks,

    I've been through those and my book Mastering PowerShell and still I can't figure why this works on my machines and nobody else's!

    Today I tried, via TeamViewer, to run the program on my cousins machine with same results 20-20 works 30-20 doesn't! I even tried to initiate an interactive session via Enter-PSSession and that also failed. This was after entering Enable-PSRemoting -Force -SkipNetworkProfileCheck.

    I'm Stumped!

    Thanks again for the references.
    May the Forces of good computing be with you!

    RG

    PowerShell & VBA Rule!

    My Systems: Desktop Specs
    Laptop Specs

  7. #37
    Administrator
    Join Date
    Mar 2001
    Location
    St Louis, Missouri, USA
    Posts
    24,239
    Thanks
    5
    Thanked 1,187 Times in 1,040 Posts
    Everything sure seems to point to an authentication issue. Have you done any changes to authentication?
    Joe

  8. #38
    Super Moderator RetiredGeek's Avatar
    Join Date
    Mar 2004
    Location
    Manning, South Carolina
    Posts
    9,941
    Thanks
    418
    Thanked 1,592 Times in 1,444 Posts
    Quote Originally Posted by JoeP517 View Post
    Everything sure seems to point to an authentication issue. Have you done any changes to authentication?
    Joe,

    Not to my knowledge. The only thing I have setup up is that there is the same account on all my machines (UserId & PW) and the Users Documents folders (which have been moved to the G: drive on all machines) are shared. Both HomeGroup services are disabled and standard networking is in use.

    May the Forces of good computing be with you!

    RG

    PowerShell & VBA Rule!

    My Systems: Desktop Specs
    Laptop Specs

  9. #39
    Administrator
    Join Date
    Mar 2001
    Location
    St Louis, Missouri, USA
    Posts
    24,239
    Thanks
    5
    Thanked 1,187 Times in 1,040 Posts
    Are you only using a local user or is it*a Microsoft account?*
    Joe

  10. #40
    Super Moderator RetiredGeek's Avatar
    Join Date
    Mar 2004
    Location
    Manning, South Carolina
    Posts
    9,941
    Thanks
    418
    Thanked 1,592 Times in 1,444 Posts
    Joe,

    No MS Accounts I had to much trouble networking when I had a MS Account on the Insider Ed. laptop. All machines using local accounts w/same UID & PW!

    I'm planning, when I get the time, to do a Win 10 Reset, after taking an image, and see what happens on a clean install and try to work from there.

    HTH
    May the Forces of good computing be with you!

    RG

    PowerShell & VBA Rule!

    My Systems: Desktop Specs
    Laptop Specs

  11. #41
    Administrator
    Join Date
    Mar 2001
    Location
    St Louis, Missouri, USA
    Posts
    24,239
    Thanks
    5
    Thanked 1,187 Times in 1,040 Posts
    Can you still switch to an*MSA on the laptop?
    Joe

  12. #42
    Super Moderator RetiredGeek's Avatar
    Join Date
    Mar 2004
    Location
    Manning, South Carolina
    Posts
    9,941
    Thanks
    418
    Thanked 1,592 Times in 1,444 Posts
    Joe,

    I guess I could.

    This morning I took an Image and then did a reset w/keep files.
    Versions 18.7, 20.20,20.21 all worked on the Local machine.

    Version 30.30 Failed on the New-PSSession command.
    Turned on network discovery - Failed
    Changed to advanced sharing and shared Documents folder w/authorized users. - Failed

    Ran My Enable-PSRemoting.ps1 file - Success
    Unshared Documents - Success
    Turned off Discovery - Success
    Rebooted J-I-C - Success

    I'm now in the process of doing another refresh. My plan is to try to run the program out of the box. If that fails I'll run the Enable-PSRemoting.ps1 file (I do need to change that name to not conflict with the cmdlet!).

    More to come...
    May the Forces of good computing be with you!

    RG

    PowerShell & VBA Rule!

    My Systems: Desktop Specs
    Laptop Specs

  13. #43
    Super Moderator RetiredGeek's Avatar
    Join Date
    Mar 2004
    Location
    Manning, South Carolina
    Posts
    9,941
    Thanks
    418
    Thanked 1,592 Times in 1,444 Posts
    It gets interestinger and interestinger!

    Completed a second Refresh and now the program works directly out of the box on the Local Machine!

    Of course I can't connect to that machine from my desktop unless I change the network settings. At least this is what I would have assumed! It works although I do get a rather disconcerting message:
    Code:
    WARNING: Cannot connect to DellXPS14z. Find out if it exists. If so, ensure it i
    s online or check whether it is affected by firewall settings.
    Here's the output file to prove it: CMsPCInfoV30-30 for DELLXPS14Z.txt

    Here's the version I'm using for testing: CMsPCInfo-PSDev4.zip

    Note: the old version that worked before will no longer work when trying to get to the refreshed laptop from my desktop telling me that the RPC server can not be contacted. I'm sure that is the network settings but will check.

    So now I'm at a total loss! IDEAS?
    Last edited by RetiredGeek; 2017-02-08 at 14:50.
    May the Forces of good computing be with you!

    RG

    PowerShell & VBA Rule!

    My Systems: Desktop Specs
    Laptop Specs

  14. #44
    Super Moderator RetiredGeek's Avatar
    Join Date
    Mar 2004
    Location
    Manning, South Carolina
    Posts
    9,941
    Thanks
    418
    Thanked 1,592 Times in 1,444 Posts
    Note: the old version that worked before will no longer work when trying to get to the refreshed laptop from my desktop telling me that the RPC server can not be contacted. I'm sure that is the network settings but will check.
    Changing the Laptop to Use Userid/Passwords to connect to other PCs AND Allow Printer & File Sharing fixed that problem as I thought it would, e.g. No HomeGroups!

    Now version 30-30 works both locally on the refreshed laptop and remotely from my desktop!

    Success, here at least. Hopefully, somebody out there will be able to replicate my results with the above information.

    Last edited by RetiredGeek; 2017-02-08 at 15:08.
    May the Forces of good computing be with you!

    RG

    PowerShell & VBA Rule!

    My Systems: Desktop Specs
    Laptop Specs

  15. #45
    WS Lounge VIP Browni's Avatar
    Join Date
    Dec 2009
    Location
    Rochdale, UK
    Posts
    1,752
    Thanks
    39
    Thanked 178 Times in 155 Posts
    It runs but throws lots of errors
    Code:
    New-PSSession : [IAN-W10] Connecting to remote server IAN-W10 failed with the following error message : WinRM cannot
    process the request. The following error with errorcode 0x8009030e occurred while using Negotiate authentication: A
    specified logon session does not exist. It may already have been terminated.
     Possible causes are:
      -The user name or password specified are invalid.
      -Kerberos is used when no authentication method and no user name are specified.
      -Kerberos accepts domain user names, but not local user names.
      -The Service Principal Name (SPN) for the remote computer name and port does not exist.
      -The client and remote computers are in different domains and there is no trust between the two domains.
     After checking for the above issues, try the following:
      -Check the Event Viewer for events related to authentication.
      -Change the authentication method; add the destination computer to the WinRM TrustedHosts configuration setting or
    use HTTPS transport.
     Note that computers in the TrustedHosts list might not be authenticated.
       -For more information about WinRM configuration, run the following command: winrm help config. For more
    information, see the about_Remote_Troubleshooting Help topic.
     Other Possible Cause:
      -The domain or computer name was not included with the specified credential, for example: DOMAIN\UserName or
    COMPUTER\UserName.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:3170 char:9
    +   $CS = New-PSSession -ComputerName "$CompName"
    +         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin
       gTransportException
        + FullyQualifiedErrorId : 1312,PSSessionOpenFailed
    Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument
    that is not null or empty, and then try the command again.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:346 char:32
    +   $CompSysObj = Invoke-Command @ICArgs
    +                                ~~~~~~~
        + CategoryInfo          : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand
    
    Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument
    that is not null or empty, and then try the command again.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:420 char:32
    +   $enclosure =  Invoke-Command @ICArgs
    +                                ~~~~~~~
        + CategoryInfo          : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand
    
    Cannot index into a null array.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:422 char:3
    +   $ChassisNo = $enclosure.ChassisTypes[0]
    +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
        + FullyQualifiedErrorId : NullArray
    
    Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument
    that is not null or empty, and then try the command again.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:440 char:33
    +   $BIOSObject =  Invoke-Command @ICArgs
    +                                 ~~~~~~~
        + CategoryInfo          : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand
    
    Get-BiosType : Cannot bind argument to parameter 'CS' because it is null.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:468 char:30
    +     Switch (Get-BiosType -CS $CS) {
    +                              ~~~
        + CategoryInfo          : InvalidData: (:) [Get-BiosType], ParameterBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Get-BiosType
    
    Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument
    that is not null or empty, and then try the command again.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:500 char:32
    +   $CPU_Object = Invoke-Command @ICArgs
    +                                ~~~~~~~
        + CategoryInfo          : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand
    
    Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument
    that is not null or empty, and then try the command again.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:549 char:32
    +   $MemoryInfo = Invoke-Command @ICArgs  |
    +                                ~~~~~~~
        + CategoryInfo          : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand
    
    Get-MaxLength : Cannot bind argument to parameter 'TestObj' because it is null.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:553 char:29
    +      Get-MaxLength -TestObj $MemoryInfo.Manufacturer -MinLen 12
    +                             ~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidData: (:) [Get-MaxLength], ParameterBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Get-MaxLength
    
    Format-Table : The Width key has no value.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:571 char:31
    +   $MemoryInfo = $MemoryInfo | Format-Table -Property $fmtMEM |
    +                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidArgument: (:) [Format-Table], NotSupportedException
        + FullyQualifiedErrorId : DictionaryKeyMissingValue,Microsoft.PowerShell.Commands.FormatTableCommand
    Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument
    that is not null or empty, and then try the command again.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:643 char:27
    +   $Video = Invoke-Command @ICArgs
    +                           ~~~~~~~
        + CategoryInfo          : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand
    
    Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument
    that is not null or empty, and then try the command again.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:696 char:26
    +   $Mons = Invoke-Command @ICArgs
    +                          ~~~~~~~
        + CategoryInfo          : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand
    
    Add-Member : Cannot bind argument to parameter 'InputObject' because it is null.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:701 char:11
    +   $Mons | Add-Member @AMArgs
    +           ~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidData: (:) [Add-Member], ParameterBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.AddMemberCo
       mmand
    
    Get-MaxLength : Cannot bind argument to parameter 'TestObj' because it is null.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:750 char:35
    +   $MNLen = Get-MaxLength -TestObj $Mons.Name         -MinLen 12
    +                                   ~~~~~~~~~~
        + CategoryInfo          : InvalidData: (:) [Get-MaxLength], ParameterBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Get-MaxLength
    
    Get-MaxLength : Cannot bind argument to parameter 'TestObj' because it is null.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:751 char:35
    +   $MFLen = Get-MaxLength -TestObj $Mons.Manufacturer -MinLen 12
    +                                   ~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidData: (:) [Get-MaxLength], ParameterBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Get-MaxLength
    
    Format-Table : The Width key has no value.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:778 char:18
    +          $mons | Format-Table -Property $monfmt | Out-String
    +                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidArgument: (:) [Format-Table], NotSupportedException
        + FullyQualifiedErrorId : DictionaryKeyMissingValue,Microsoft.PowerShell.Commands.FormatTableCommand
    Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument
    that is not null or empty, and then try the command again.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:812 char:35
    +     $PhyDiskInfo = Invoke-Command @PDIArgs
    +                                   ~~~~~~~~
        + CategoryInfo          : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand
    
    Add-Member : Cannot bind argument to parameter 'InputObject' because it is null.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:819 char:20
    +     $PhyDiskInfo | Add-Member @AMArgs
    +                    ~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidData: (:) [Add-Member], ParameterBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.AddMemberCo
       mmand
    
    Add-Member : Cannot bind argument to parameter 'InputObject' because it is null.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:824 char:20
    +     $PhyDiskInfo | Add-Member @AMArgs
    +                    ~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidData: (:) [Add-Member], ParameterBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.AddMemberCo
       mmand
    
    Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument
    that is not null or empty, and then try the command again.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:840 char:35
    +     $RotateSpeed = Invoke-Command @ICArgs
    +                                   ~~~~~~~
        + CategoryInfo          : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand
    
    Cannot index into a null array.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:878 char:23
    +   $TrimStatus = (&{If([int]$TrimVal[1] -eq 0)
    +                       ~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
        + FullyQualifiedErrorId : NullArray
    
    Get-MaxLength : Cannot bind argument to parameter 'TestObj' because it is null.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:888 char:28
    +     Get-MaxLength -TestObj $PhyDiskInfo.Model        -MinLen 4
    +                            ~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidData: (:) [Get-MaxLength], ParameterBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Get-MaxLength
    
    Get-MaxLength : Cannot bind argument to parameter 'TestObj' because it is null.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:890 char:28
    +     Get-MaxLength -TestObj $PhyDiskInfo.SerialNumber -MinLen 13
    +                            ~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidData: (:) [Get-MaxLength], ParameterBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Get-MaxLength
    
    Format-Table : The Width key has no value.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:925 char:12
    +            Format-Table -Property $fmtPhyDisk1 | Out-String
    +            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidArgument: (:) [Format-Table], NotSupportedException
        + FullyQualifiedErrorId : DictionaryKeyMissingValue,Microsoft.PowerShell.Commands.FormatTableCommand
    Format-Table : The Width key has no value.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:934 char:12
    +            Format-Table -Property $fmtPhyDisk2 | Out-String
    +            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidArgument: (:) [Format-Table], NotSupportedException
        + FullyQualifiedErrorId : DictionaryKeyMissingValue,Microsoft.PowerShell.Commands.FormatTableCommand
    Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument
    that is not null or empty, and then try the command again.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:2560 char:18
    +   Invoke-Command @ICArgs
    +                  ~~~~~~~
        + CategoryInfo          : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand
    
    Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument
    that is not null or empty, and then try the command again.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:995 char:33
    +    $Partitions = Invoke-Command @ICArgs
    +                                 ~~~~~~~
        + CategoryInfo          : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand
    
    Add-Member : Cannot bind argument to parameter 'InputObject' because it is null.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:999 char:16
    +  $Partitions | Add-Member @AMArgs
    +                ~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidData: (:) [Add-Member], ParameterBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.AddMemberCo
       mmand
    
    Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument
    that is not null or empty, and then try the command again.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:1023 char:30
    +   $CD      =  Invoke-Command @ICArgs
    +                              ~~~~~~~
        + CategoryInfo          : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand
    
    Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument
    that is not null or empty, and then try the command again.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:1058 char:34
    +   $MappedDrives = Invoke-Command @ICArgs
    +                                  ~~~~~~~
        + CategoryInfo          : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand
    
    Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument
    that is not null or empty, and then try the command again.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:1121 char:33
    +   $ShareInfo  = Invoke-Command  @ICArgs |
    +                                 ~~~~~~~
        + CategoryInfo          : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand
    
    Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument
    that is not null or empty, and then try the command again.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:1267 char:31
    +     $NetInfo = Invoke-Command @ICArgs
    +                               ~~~~~~~
        + CategoryInfo          : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand
    
    Get-MaxLength : Cannot bind argument to parameter 'TestObj' because it is null.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:1269 char:39
    +     $NameLen = Get-MaxLength -TestObj $NetInfo.Name -MinLen 10
    +                                       ~~~~~~~~~~~~~
        + CategoryInfo          : InvalidData: (:) [Get-MaxLength], ParameterBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Get-MaxLength
    
    Format-Table : The Width key has no value.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:1281 char:12
    +            Format-Table -Property $fmtNet -wrap | Out-String
    +            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidArgument: (:) [Format-Table], NotSupportedException
        + FullyQualifiedErrorId : DictionaryKeyMissingValue,Microsoft.PowerShell.Commands.FormatTableCommand
    Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument
    that is not null or empty, and then try the command again.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:1300 char:30
    +     $IPInfo = invoke-command @ICArgs
    +                              ~~~~~~~
        + CategoryInfo          : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand
    
    Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument
    that is not null or empty, and then try the command again.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:1362 char:39
    +   $tboxPrinters.Text = Invoke-Command @ICArgs |
    +                                       ~~~~~~~
        + CategoryInfo          : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand
    
    Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument
    that is not null or empty, and then try the command again.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:1375 char:29
    +   $CurOS   = Invoke-Command @ICArgs
    +                             ~~~~~~~
        + CategoryInfo          : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand
    
    Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument
    that is not null or empty, and then try the command again.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:2722 char:30
    +      Invoke-Command -Session $cs -ScriptBlock $SBCode
    +                              ~~~
        + CategoryInfo          : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand
    
    Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument
    that is not null or empty, and then try the command again.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:1402 char:36
    +   $LastBootUpTime = Invoke-Command @ICArgs
    +                                    ~~~~~~~
        + CategoryInfo          : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand
    
    Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument
    that is not null or empty, and then try the command again.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:1422 char:35
    +     $OSCompacted = Invoke-Command @ICArgs
    +                                   ~~~~~~~
        + CategoryInfo          : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand
    
    Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument
    that is not null or empty, and then try the command again.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:1448 char:30
    +     $RO     = Invoke-Command @ROArgs
    +                              ~~~~~~~
        + CategoryInfo          : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand
    
    Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument
    that is not null or empty, and then try the command again.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:2422 char:24
    +   $av = Invoke-Command @ICArgs
    +                        ~~~~~~~
        + CategoryInfo          : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand
    
    Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument
    that is not null or empty, and then try the command again.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:2672 char:19
    +    Invoke-Command @ICArgs
    +                   ~~~~~~~
        + CategoryInfo          : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand
    
    Get-MaxLength : Cannot bind argument to parameter 'TestObj' because it is null.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:1625 char:36
    +   $UIDLen = Get-MaxLength -TestObj $uai.Name   -MinLen 6
    +                                    ~~~~~~~~~
        + CategoryInfo          : InvalidData: (:) [Get-MaxLength], ParameterBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Get-MaxLength
    
    Get-MaxLength : Cannot bind argument to parameter 'TestObj' because it is null.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:1626 char:36
    +   $WGLen  = Get-MaxLength -TestObj $uai.Domain -MinLen 9
    +                                    ~~~~~~~~~~~
        + CategoryInfo          : InvalidData: (:) [Get-MaxLength], ParameterBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Get-MaxLength
    
    Format-Table : The Width key has no value.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:1647 char:19
    +   $uai   = $uai | Format-Table -Property $fmtAcct | Out-String
    +                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidArgument: (:) [Format-Table], NotSupportedException
        + FullyQualifiedErrorId : DictionaryKeyMissingValue,Microsoft.PowerShell.Commands.FormatTableCommand
    Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument
    that is not null or empty, and then try the command again.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:1719 char:33
    +   $DriverInfo =  Invoke-Command @ICArgs |
    +                                 ~~~~~~~
        + CategoryInfo          : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand
    
    Get-MaxLength : Cannot bind argument to parameter 'TestObj' because it is null.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:1725 char:28
    +     Get-MaxLength -TestObj $DriverInfo.DriverVersion -MinLen 14
    +                            ~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidData: (:) [Get-MaxLength], ParameterBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Get-MaxLength
    
    Format-Table : The Width key has no value.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:1738 char:19
    +     $DriverInfo | Format-Table -Property $fmtDRVR | Out-String
    +                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidArgument: (:) [Format-Table], NotSupportedException
        + FullyQualifiedErrorId : DictionaryKeyMissingValue,Microsoft.PowerShell.Commands.FormatTableCommand
    Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument
    that is not null or empty, and then try the command again.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:1918 char:26
    +   $Prop = Invoke-Command @ICArgs
    +                          ~~~~~~~
        + CategoryInfo          : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand
    
    Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument
    that is not null or empty, and then try the command again.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:1936 char:28
    +   $Prop   = Invoke-Command @ICArgs
    +                            ~~~~~~~
        + CategoryInfo          : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand
    
    You cannot call a method on a null-valued expression.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:1940 char:23
    +       ARIV = ([Bool]$($Prop.HibernateEnabled.Equals(1)))}
    +                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
        + FullyQualifiedErrorId : InvokeMethodOnNull
    
    Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument
    that is not null or empty, and then try the command again.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:1953 char:18
    +   Invoke-Command @ICArgs |
    +                  ~~~~~~~
        + CategoryInfo          : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand
    
    Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument
    that is not null or empty, and then try the command again.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:1972 char:28
    +   $UAC    = invoke-command @ICArgs
    +                            ~~~~~~~
        + CategoryInfo          : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand
    
    You cannot call a method on a null-valued expression.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:1974 char:3
    +   $ARArgs = @{ARIN = 'Registry: UAC Enabled'
    +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
        + FullyQualifiedErrorId : InvokeMethodOnNull
    
    Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument
    that is not null or empty, and then try the command again.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:1988 char:30
    +   $ScvsList = Invoke-Command @ICArgs
    +                              ~~~~~~~
        + CategoryInfo          : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand
    
    Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument
    that is not null or empty, and then try the command again.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:2042 char:34
    +   $colBatStatus = Invoke-Command @ICArgs
    +                                  ~~~~~~~
        + CategoryInfo          : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand
    
    Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument
    that is not null or empty, and then try the command again.
    At D:\Downloads\CMsPCInfo-PSDev4\CMsPCInfo-PSDev4.ps1:2112 char:31
    +    $colItems = Invoke-Command @ICArgs
    +                               ~~~~~~~
        + CategoryInfo          : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand
    Attached Files Attached Files

Page 3 of 4 FirstFirst 1234 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •