tag:blogger.com,1999:blog-6125467510413081087.post3983175465648449058..comments2023-06-26T04:54:43.841-07:00Comments on I.T. Monsterrrrrr's Blog: Powershell: Get the Services Running and Their Service Accounts on a list of Remote Machines Anonymoushttp://www.blogger.com/profile/06263249428700913934noreply@blogger.comBlogger8125tag:blogger.com,1999:blog-6125467510413081087.post-60585650581937160592018-01-04T13:24:28.244-08:002018-01-04T13:24:28.244-08:00This is ideal. One factor that doesn't seem to...This is ideal. One factor that doesn't seem to work for me is the structure-desk or layout-large perform.<a href="https://sites.google.com/view/date-night-movies/home" rel="nofollow"> watch online movies</a><br /> The understanding is truncated. Is there a method to get this to show it like your illustration.Anonymoushttps://www.blogger.com/profile/06742865217768283837noreply@blogger.comtag:blogger.com,1999:blog-6125467510413081087.post-16174236012725073752017-07-12T00:32:50.398-07:002017-07-12T00:32:50.398-07:00Its OK. I was being silly. I was running it locall...Its OK. I was being silly. I was running it locally and when I ran it from a server it worked.<br /><br />Thanks again. great script. Really helpfulAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6125467510413081087.post-35652560590977288362017-07-11T05:52:17.773-07:002017-07-11T05:52:17.773-07:00Hi,
This is perfect. One thing that doesn't s...Hi,<br /><br />This is perfect. One thing that doesn't seem to work for me is the format-table or format-wide function. The information is truncated. Is there a way to get this to show it like your example.<br /><br />Thanks in advance<br /><br />ChetAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6125467510413081087.post-8683015991940042412013-08-19T15:20:10.894-07:002013-08-19T15:20:10.894-07:00JP, in a nut shell the above script had the requir...JP, in a nut shell the above script had the requirement to get the account running the service and the Get-Service cmdlet at the time of writing did not include the account running the service. In order to get the name of the account I chose to query WMI which does get the account name, so that is the big reason for using WMI above! To query for only one service you would use the Get-Service Anonymoushttps://www.blogger.com/profile/06263249428700913934noreply@blogger.comtag:blogger.com,1999:blog-6125467510413081087.post-53882689570181281672013-08-14T22:01:42.720-07:002013-08-14T22:01:42.720-07:00Hello, I am trying to do this, but I was wondering...Hello, I am trying to do this, but I was wondering why use wmi as opposed to the built-in get-service in powershell? I'm not sure as I'm learning and haven't found any good answer to that question.<br /><br />I also only want to query for 1 specific service name, and report on if it's installed, and the status of the service, and output to excel and html to compare as I have to Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6125467510413081087.post-19747007819760127612013-07-25T13:23:56.982-07:002013-07-25T13:23:56.982-07:00Looks like the blog didnt like the carrots I put o...Looks like the blog didnt like the carrots I put on the last reply, change line 1 to:<br />$ServerArray=Get-Content [path to text file]Anonymoushttps://www.blogger.com/profile/06263249428700913934noreply@blogger.comtag:blogger.com,1999:blog-6125467510413081087.post-23122554951872711452013-07-25T13:18:32.469-07:002013-07-25T13:18:32.469-07:00Mauricio,
I know this is a pretty late response, b...Mauricio,<br />I know this is a pretty late response, but in case you were still looking for this answer, here is a short explanation of how to read the host names from a file. Simply put the names of the hosts in a text file, one per line, and using the following script change line 1 to:<br />$ServerArray=Get-Content <br />Thats it! The script will loop through each of the hosts you provided in Anonymoushttps://www.blogger.com/profile/06263249428700913934noreply@blogger.comtag:blogger.com,1999:blog-6125467510413081087.post-71531303720725346602013-06-26T22:53:25.731-07:002013-06-26T22:53:25.731-07:00I have a list of servers (txt file), I need to get...I have a list of servers (txt file), I need to get the services running in all this from my workastation, How can I load, read and use the list to get the remote info from servers,Mauricio Delgado Robleshttps://www.blogger.com/profile/06554612852729655116noreply@blogger.com