Author |
Message |
Topic: Error in Powershell Script |
bgorton
Replies: 1
Views: 6536
|
Forum: Configuration, Maintenance, Troubleshooting Posted: Wed Dec 11, 2019 3:46 pm Subject: 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 ---#
#regi ... |
Topic: Call out Variables in Powershell |
bgorton
Replies: 7
Views: 13120
|
Forum: Configuration, Maintenance, Troubleshooting Posted: Wed Nov 27, 2019 12:03 pm Subject: Call out Variables in Powershell |
That worked, thank you so much for your help! |
Topic: Call out Variables in Powershell |
bgorton
Replies: 7
Views: 13120
|
Forum: Configuration, Maintenance, Troubleshooting Posted: Tue Nov 26, 2019 1:07 pm Subject: Call out Variables in Powershell |
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 Pa ... |
Topic: Call out Variables in Powershell |
bgorton
Replies: 7
Views: 13120
|
Forum: Configuration, Maintenance, Troubleshooting Posted: Tue Nov 26, 2019 10:45 am Subject: Call out Variables in Powershell |
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 u ... |
Topic: Call out Variables in Powershell |
bgorton
Replies: 7
Views: 13120
|
Forum: Configuration, Maintenance, Troubleshooting Posted: Mon Nov 25, 2019 5:35 pm Subject: 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 th ... |
Topic: Server not found or responding. Error #70: Permission denie |
bgorton
Replies: 3
Views: 9937
|
Forum: Configuration, Maintenance, Troubleshooting Posted: Tue Aug 06, 2019 8:14 am Subject: Server not found or responding. Error #70: Permission denie |
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 ... |
Topic: Server not found or responding. Error #70: Permission denie |
bgorton
Replies: 3
Views: 9937
|
Forum: Configuration, Maintenance, Troubleshooting Posted: Mon Aug 05, 2019 3:18 pm Subject: 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 ... |
Topic: Calling out HM Variables in Powershell script |
bgorton
Replies: 8
Views: 14544
|
Forum: Configuration, Maintenance, Troubleshooting Posted: Mon Jun 03, 2019 9:00 am Subject: Calling out HM Variables in Powershell script |
Frustrating. When I specify my Input and Output files like this:
$inputfile = "I:\drs\LOGS\STAT" + $Args[0] + "\UnivMgr.log"
$outputfile = "C:\HostMonitor ... |
Topic: Calling out HM Variables in Powershell script |
bgorton
Replies: 8
Views: 14544
|
Forum: Configuration, Maintenance, Troubleshooting Posted: Thu May 30, 2019 2:12 pm Subject: Calling out HM Variables in Powershell script |
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 ... |
Topic: Calling out HM Variables in Powershell script |
bgorton
Replies: 8
Views: 14544
|
Forum: Configuration, Maintenance, Troubleshooting Posted: Thu May 30, 2019 8:23 am Subject: Calling out HM Variables in Powershell script |
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 ... |
Topic: Calling out HM Variables in Powershell script |
bgorton
Replies: 8
Views: 14544
|
Forum: Configuration, Maintenance, Troubleshooting Posted: Wed May 29, 2019 3:43 pm Subject: 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 ... |
|