Guest User

Untitled

a guest
May 26th, 2019
8
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Hi, first at all thank you for this life saver script for big environment :)
  2. But I have issue with implementing it …
  3. I think I done all what you suggest in readme, but issue is that I cannot successfully start script with flags, only standalone.. with flags get data in database but also got errors like:
  4. <blockquote>
  5. ...
  6. Setting last ran to 05/26/2019 15:25:42
  7. Updating local logfile with results
  8. Updating fileshare logfile with results
  9. Out-File : The network name cannot be found.
  10. At \\sccm\d$\ClientHealth\ConfigMgrClientHealth.ps1:266 char:16
  11. + $obj | Out-File -Encoding utf8 -Append $logFile
  12. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  13. + CategoryInfo : OpenError: (:) [Out-File], IOException
  14. + FullyQualifiedErrorId : FileOpenFailure,Microsoft.PowerShell.Commands.OutFileCommand
  15. Updating SQL database with results
  16. </blockquote>
  17. some kind of file share permissions problem?
  18.  
  19. second thing is this extension for sccm, cannot install it, always get error:
  20. <blockquote>
  21. PS D:\ClientHealth\Console Extension> powershell ./Install.ps1 -Path "D:\Program Files\ConfigMgr Client Health Console Extension" -ScheduledTaskName "ConfigMgr Client Health" -MaxThreads "40"
  22. powershell : D:\ClientHealth\Console Extension\Install.ps1 : A positional parameter cannot
  23. At line:1 char:1
  24. + powershell ./Install.ps1 -Path "D:\Program Files\ConfigMgr Client Hea ...
  25. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  26. + CategoryInfo : NotSpecified: (D:\ClientHealth...rameter cannot :String) [], RemoteException
  27. + FullyQualifiedErrorId : NativeCommandError
  28.  
  29. be found that accepts argument 'Files\ConfigMgr'.
  30. At line:1 char:1
  31. + ./Install.ps1 -Path D:\Program Files\ConfigMgr Client Health Console ...
  32. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  33. + CategoryInfo : InvalidArgument: (:) [Install.ps1], ParameterBin
  34. dingException
  35. + FullyQualifiedErrorId : PositionalParameterNotFound,Install.ps1</blockquote>
RAW Paste Data