header
header Register : : Login header
header
divider
menuleft
menuright
submenu
left

[August 25th, 2008] Check the home page regarding PowerShell related news from a brand new sponsor: Idera

Services Startname Query, PW Change, Restart
Last Post 07 Aug 2008 02:11 AM by halr9000. 4 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
ssaehrigUser is Offline
New Member
New Member
Posts:31

--
06 Aug 2008 08:21 PM  

I have created this script to query a range of servers specified in a text file. then for each server in list the script will query all services for services running as a specific name. In addition the script changes the passwod and restarts all services providing feedback to the console. I have attached the script for review becasue it is rather large. This is my first peer review Script and i know this script could be more efficient. Any feedback is appreciated.

Steven

Here is a link to the file on my site.

http://saehrig.com/ops/ServiceAccountQuery.Restart.ChgPW.ps1 

Steven Saehrig
MCP, MCTS
ShayUser is Offline
Basic Member
Basic Member
Posts:271
Avatar

--
06 Aug 2008 09:16 PM  

I can't download the attachement, the link is broken

Shay Levy
Windows PowerShell MVP
http://blogs.microsoft.co.il/blogs/ScriptFanatic
halr9000User is Offline
PowerShell MVP, Site Admin
Basic Member
Basic Member
Posts:334
Avatar

--
07 Aug 2008 01:47 AM  
I've got my people looking into the attachment issue. Steven, in the meantime, can you paste it up on this pastebin?
Community Director, PowerShellCommunity.org
Co-host, PowerScripting Podcast
Author, TechProsaic
ssaehrigUser is Offline
New Member
New Member
Posts:31

--
07 Aug 2008 01:52 AM  
Thanks Hal. I copied the script to the Paste Bin.
Steven Saehrig
MCP, MCTS
halr9000User is Offline
PowerShell MVP, Site Admin
Basic Member
Basic Member
Posts:334
Avatar

--
07 Aug 2008 02:11 AM  
You are supposed to tell everyone the URL. :D http://posh.jaykul.com/p/1263
Community Director, PowerShellCommunity.org
Co-host, PowerScripting Podcast
Author, TechProsaic
You are not authorized to post a reply.

Active Forums 4.1
right
   
footer Sponsored by Quest Software • SAPIEN Technologies • ShellTools, LLC • Microsoft Windows Server 2008 footer
footer