tag:blogger.com,1999:blog-546036873798832453.post3839871377522594695..comments2023-10-09T06:28:49.766-07:00Comments on PowerShell Scripts Blog: Get-UpTime.ps1Unknownnoreply@blogger.comBlogger4125tag:blogger.com,1999:blog-546036873798832453.post-48371883562023474312013-06-18T07:21:15.121-07:002013-06-18T07:21:15.121-07:00Thomas-
I have about zero scripting experience, so...Thomas-<br />I have about zero scripting experience, so you may not want to respond to my question, but how can I adapt this script to run against a list of computers in a single domain? I can create a text file with the computer names no problem. I am familiar with the concept of variables but not in the context of scripting.Pathttps://www.blogger.com/profile/15294257253603574364noreply@blogger.comtag:blogger.com,1999:blog-546036873798832453.post-37291280002337233262013-04-11T07:18:05.556-07:002013-04-11T07:18:05.556-07:00Thank you. I found the mistake. The numbers for ...Thank you. I found the mistake. The numbers for each line needed to be deleted.Anonymoushttps://www.blogger.com/profile/04731144847305710385noreply@blogger.comtag:blogger.com,1999:blog-546036873798832453.post-27115000245045498922013-04-11T07:16:28.134-07:002013-04-11T07:16:28.134-07:00I just checked the script and it works perfectly h...I just checked the script and it works perfectly here. <br /><br />You may have cut/pasted incorrectly. It looks like when you did the cut/paste, you may have accidentally included the line numbers.<br />Thomas Leehttps://www.blogger.com/profile/05591926562143348089noreply@blogger.comtag:blogger.com,1999:blog-546036873798832453.post-21288034919538485062013-04-11T06:36:23.424-07:002013-04-11T06:36:23.424-07:00Bad numeric constant: 28..
At C:\users\rob.meier\D...Bad numeric constant: 28..<br />At C:\users\rob.meier\Documents\Get-UpTime.ps1:28 char:4<br />+ 28. <<<< function WMIDateStringToDate($Bootup) {<br /> + CategoryInfo : ParserError: (28.:String) [], ParseException<br /> + FullyQualifiedErrorId : BadNumericConstantAnonymoushttps://www.blogger.com/profile/04731144847305710385noreply@blogger.com