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.
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...
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...
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...
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
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 =...
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
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...
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)
{...
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.
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.
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...
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...
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...
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?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.