Definicija parametara za PowerShell

[int]$variable # 32-bit integer mit Vorzeichen [long]$variable # 64-bit integer mit Vorzeichen [string]$variable # string mit unicode characters [char]$variable # A unicode 16-bit character [byte]$variable # 8-bit Zahl [bool]$variable # Boolean True/False [decimal]$variable # 128-bit Dezimalzahl [single]$variable # Single-precision 32-bit … Continue reading

CPU+RAM(%) na udaljenom serveru iz CLI

To mi treba ko leba 🙂 CPU Nisam našla baš klasičan CLI, ali jesam iz PowerShell-a (link) : PS C:\Users\velda.ebel>Get-Counter -ComputerName localhost ‘\Process(*)\% Processor Time’ | Select-Object -ExpandProperty countersamples | Select-Object -Property instancename, cookedvalue| Sort-Object -Property cookedvalue -Descending| Select-Object -First … Continue reading

PowerShell i Linux

Šta je uopšte PowerShell (ili skraćeno POSH) : A shell is basically a user interface that gives you access to various services of an operating system. A shell can be command-line based or it can include a graphical user interface … Continue reading