Search found 11 matches

by bgorton
Wed Dec 11, 2019 3:46 pm
Forum: Configuration, Maintenance, Troubleshooting
Topic: Error in Powershell Script
Replies: 1
Views: 7201

Error in Powershell Script

I have the following PS script I am trying to run thru Script Manager $ELSystem = ".\EL-System.log" $ELApp = ".\EL-apps.log" #end region variables #--- SCRIPT ---# #region script $system = Get-WinEvent -ComputerName $Args -FilterHashtable @{logname='system';Level=2} | Where-Objec...
by bgorton
Wed Nov 27, 2019 12:03 pm
Forum: Configuration, Maintenance, Troubleshooting
Topic: Call out Variables in Powershell
Replies: 7
Views: 14604

That worked, thank you so much for your help!
by bgorton
Tue Nov 26, 2019 1:07 pm
Forum: Configuration, Maintenance, Troubleshooting
Topic: Call out Variables in Powershell
Replies: 7
Views: 14604

Ok, that makes sense, but its not working for me. When I specify in HM in my paramaters "%fvar_ip%" "%fvar_hostname%" and tab to another box, my IP and Hostname populate in the Params box. But in my script, when I specify to output to .\$args[1].csv, I am not getting any output. ...
by bgorton
Tue Nov 26, 2019 10:45 am
Forum: Configuration, Maintenance, Troubleshooting
Topic: Call out Variables in Powershell
Replies: 7
Views: 14604

In my HostMonitor test, I am running a Shell Script. In the Params box, I specify %fvar_ip% which is set as a Variable to the stations IP address. Within the Script Manger, I am calling my Scritpt using powershell.exe %script% %params% The IP address is passed to my script and is used to connect to ...
by bgorton
Mon Nov 25, 2019 5:35 pm
Forum: Configuration, Maintenance, Troubleshooting
Topic: Call out Variables in Powershell
Replies: 7
Views: 14604

Call out Variables in Powershell

I have some custom variables (ex. fvar_hostname = ' hostname ) that I used in HostMonitor. I have a Powershell script I am running thru Script Manager. In my script I call out my parameters from HM that I want to use (typically is is fvar_ip, or the IP address of the station I am testing against. Wi...
by bgorton
Tue Aug 06, 2019 8:14 am
Forum: Configuration, Maintenance, Troubleshooting
Topic: Server not found or responding. Error #70: Permission denie
Replies: 3
Views: 10727

When I use the built-in Drive Space test on a Windows 10 station, it returns Error: Access is denied. This station is on our domain. When I use the built-in Drive Space test on a Windows 7 station, the test runs as designed and returns a value. This station is on the same domain as the Windows 10 st...
by bgorton
Mon Aug 05, 2019 3:18 pm
Forum: Configuration, Maintenance, Troubleshooting
Topic: Server not found or responding. Error #70: Permission denie
Replies: 3
Views: 10727

Server not found or responding. Error #70: Permission denie

I know what the culprit is, but first, let me give you the info: I am running a VBS HD Script from HostMonitor. If needed, I can post the code I am using. When I run this test against a Windows 7 station, it responds back with the primary Drive Letter, Percentage Free, and (GB Free). For example, C:...
by bgorton
Mon Jun 03, 2019 9:00 am
Forum: Configuration, Maintenance, Troubleshooting
Topic: Calling out HM Variables in Powershell script
Replies: 8
Views: 17651

Frustrating. When I specify my Input and Output files like this: $inputfile = "I:\drs\LOGS\STAT" + $Args[0] + "\UnivMgr.log" $outputfile = "C:\HostMonitor\UserLogTimes\STAT" + $Args[0] + "_UserLog.log" Then I Try this in HM, specifying 570 as my Params, I get ...
by bgorton
Thu May 30, 2019 2:12 pm
Forum: Configuration, Maintenance, Troubleshooting
Topic: Calling out HM Variables in Powershell script
Replies: 8
Views: 17651

Ok, progress. Now when I run the script, my first 2 lines look like this: $Output = Select-String -Path "I:\DRS\Logs\STAT$arg\UnivMgr.log" -Pattern "User($Login|$Logout)" | Select-Object -Last 1 $Output.line | Out-file "C:\HostMonitor\UserLogTimes\STAT$arg_UserLog.log" ...
by bgorton
Thu May 30, 2019 8:23 am
Forum: Configuration, Maintenance, Troubleshooting
Topic: Calling out HM Variables in Powershell script
Replies: 8
Views: 17651

Something still isn't right. My Start cmd line in the Script Manager is: c:\hostmonitor\powershell.exe %fvar_station% Then in my PS script I call out the $Args in the place where I want to place the %fvar_station%, like this: \Logs\STAT$Args\Logfile.log And my response in HM is "Error: Invalid ...
by bgorton
Wed May 29, 2019 3:43 pm
Forum: Configuration, Maintenance, Troubleshooting
Topic: Calling out HM Variables in Powershell script
Replies: 8
Views: 17651

Calling out HM Variables in Powershell script

Within the Properties -> Variables of my sub-folders, I have a folder variable named %fvar_station%. This Station ID is a 3 digit number unique to each computer in my environment, and on the local workstation this 3 digit code is used when creating log files for an application, in a file format like...