Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. cojast08

    CPU Temperature/ Fan Speed

    Thank you for the information. I will give those scripts a try and let you know. I was trying to avoid a third party app if at all possible.
  2. cojast08

    CPU Temperature/ Fan Speed

    OK I have come up short on this so maybe it is not possible. I am looking for a script that will display the speed of the CPU fan and/or any other Fans in the computer(power supply or other) and also looking for a way to display CPU temperature.
  3. cojast08

    IF Null

    Thanks I found that putting it this way fixes the my issue If (!($subsite)) {code} Appears this is another way to have a blank or null varible
  4. cojast08

    IF Null

    I am hoping this is an easy one for you all and I am just over looking a small mistake. $mainOU = Read-Host -Prompt 'NorthAmerica, SouthAmerica, Africa, etc.?' $site = Read-Host -Prompt 'Site?' $subsite = Read-Host -Prompt 'Computers, Servers, Users, etc.?' $dept = Read-Host -Prompt 'You can...
  5. cojast08

    How to verify DNS to DHCP

    OK where do I get the tools to run the DHCPServer modules... right now that is the first error that I am getting that the module or cmdlet is not valid. Once I can get that fixed I can move on to the next issue. I might not need the computer txt answer file if I can get the DHCP to check the...
  6. cojast08

    How to verify DNS to DHCP

    Ok looks like the only ones I have are as followed ISE Microsoft.Powershell.Managment Microsoft.Powershell.Utility
  7. cojast08

    How to verify DNS to DHCP

    Well I don't have a input file as I was assuming this script was creating the file once I put in the export to csv command. I thought that by coding the servername and scope that I would not need an input file. Again still learning all this powershell language just by reading on google so if I...
  8. cojast08

    How to verify DNS to DHCP

    Maybe I am missing something that I don't realize. I am running powershell from a windows 7 machine using powershell v5. I am getting this error code below. Do I need to install something else? The term 'Get-DhcpServerv4Lease' is not recognized as the name of a cmdlet
  9. cojast08

    How to verify DNS to DHCP

    This is what I got but it is not working so not for sure. Still learning this stuff. $leases = Get-DhcpServerv4Lease -ScopeId 192.168.0.0 -ComputerName "myServer" foreach ($lease in $leases) { $hostname = $lease.HostName $ipAddress = $lease.IPAddress $dnsHostNameEntry =...
  10. cojast08

    Script to delete Services not running

    Correct. I have a specific list of services that are not windows services but third party application that need to run when computer is turned on. Thank you for the cautionary statement
  11. cojast08

    Script to delete Services not running

    Thanks for the help this is working great
  12. cojast08

    How to verify DNS to DHCP

    Not for sure if I am over looking something but I have not been able to find a good way to verify that DNS entries are correct for my computers. If anyone has an idea or has already done this and would like to share that would be awesome. I have all my computers in a text file from AD that I...
  13. cojast08

    Script to delete Services not running

    With the below code now it no longer scans the computers or atleast I should say I now get a blank report. When I check the computer it still has the extra services so it is not deleting either. Function servicestatus ($serverlist, $serviceslist) { foreach ($machineName in $serverlist) {...
  14. cojast08

    Script to delete Services not running

    Will that work if $service has a wildcard. so lets say the service is TEST1 and the next service is TEST2 and so forth. I want to say any TEST* that is not running delete. Remember the service name is different on every computer only the first few characters are the same.
  15. cojast08

    Script to delete Services not running

    That is the point where I am not for sure how to do it. Right now I am just using a command prompt and typing in SC \\servername delete "servicesname" I am asking for help to try and incorporate it into the powershell script based on the criteria in the original post.
  16. cojast08

    Script to delete Services not running

    ############################Define Server & Services Variable ############### $serverList = Get-Content ".\server.txt" $servicesList = Get-Content ".\services.txt" #############################Define other variables########################## $report = ".\report.csv" $smtphost =...
  17. cojast08

    Script to delete Services not running

    I currently have a powershell script that searches all my computers that are listed in a text document for a service that is listed in another text document. and then it displays if the service is running or stopped or not installed. What I need to do is set it up so that if the service is...
  18. cojast08

    Automating reports that are generated from a website

    I tried that too and it takes me to an about webspage instead of the login page. what I mean is when I open up IE and I type in http://mysite it will automatically direct me to http://mysite/web/login. However in the script below when the invoke runs it takes me to a web address of...
  19. cojast08

    Automating reports that are generated from a website

    Blister Thank you again for the help. I was able to get the pop up to request the username but it is not putting it in the fields. Below is what I have. The website opens up and goes to the main page. # URL of the site that will be launched. $Url = “http://www.mysite.com” $title = "User...
  20. cojast08

    Automating reports that are generated from a website

    Blister Thank you for your response. Since I am still learning powershell my question now is where does this code go? Do I still use the invoke-webrequest line to launch the website? Does this code automatically know which field is the userid and which is the password?

Part and Inventory Search

Back
Top