In this article, we will look at configuring the Zabbix Agent to retrieve monitoring data from PowerShell scripts. Let’s look at two PowerShell scripts to get some data into Zabbix. The first returns the number of active RDP user sessions on a Windows RDS server, and the second returns t...
So, these are the standard methods you can use to convert string to date in PowerShell. If you have any questions or concerns about the process, feel free to mention them in the comments section below. User forum 0 messages Sort by:...
## SET YOUR TIME LIMIT ## IN THIS EXAMPLE 1 MINUTE, BUT YOU CAN ALSO USE HOURS/DAYS # $TimeSpan = New-TimeSpan -Days 1 -Hours 2 -Minutes 30 $TimeSpan = New-TimeSpan -Minutes 1 $EndTime = (Get-Date).AddMinutes($TimeSpan.TotalMinutes).ToString("HH:mm") ## START TIM...
In this article Overview Sample PowerShell Code Acknowledgements & Links Overview There may be a time when Netlogon Debug Logging is required over a prolonged period of time, and all entries must be saved. The standard size of the Netlogon.log is 20mb which rolls over...
PowerShell Copy-Item with Folder Structure Get-ChildItem Sort By Date in PowerShell Bijay Kumar I am Bijay a Microsoft MVP (10 times –My MVP Profile) in SharePoint and have more than 17 years of expertise in SharePoint Online Office 365, SharePoint subscription edition, and SharePoint 2019...
"Get-EventLog: Attempted to perform an unauthorized operation" - why?? "Get-WmiObject not supported" when using WmiMonitorID class "make sure that the assembly containing this type is loaded" disagnostic "Register this connection's addresses in DNS" <- can this be set with Powershell? "S...
Creating the Source Data File Using a PowerShell ScriptTo create the source data file using a PowerShell script, you need to run the script called Get-LicensingInputFromAD.ps1.You can find the code for this script at the end of this article in the secti...
Add the server and clients to the Dashboard Open a Command Prompt window as an administrator. Type cd "\Program Files\Windows Server\Bin", and press the Enter key. Type WssPowerShell.exe, and then press the Enter key. Type Add-WssLocalMachineCert, and then press the Enter key. ...
#2. Delete Multiple Files using PowerShell Deleting a file or a folder with PowerShell is easy; you just need the right command. When using PowerShell to delete files, it can get a bit difficult, but don't worry. Please follow the steps below. 🌟Tip: In this command, "Remove-item...
These events contain data about the user, time, computer and type of user logon. Using the PowerShell script provided above, you can get a user login history report without having to manually crawl through the event logs.ScriptOpen the PowerShell ISE → Run the following sc...