Quote from mishem on October 31, 2021, 2:52 pmСмена раскладки перед выполнением скрипта не помогла
У меня помогает на вин 10. Возможно в региональных настройках что то нужно изменить.
и поскольку VNW их не поддерживает, они отображаются вместо вопросительных знаков.
У меня то при русской раскладке отображается все нормально. ;)
Not so important information for those who have a non-Russian system installed.
Смена раскладки перед выполнением скрипта не помогла
У меня помогает на вин 10. Возможно в региональных настройках что то нужно изменить.
и поскольку VNW их не поддерживает, они отображаются вместо вопросительных знаков.
У меня то при русской раскладке отображается все нормально. ;)
Not so important information for those who have a non-Russian system installed.

Quote from DaviddeArgentina on November 2, 2021, 11:43 pmMore Scripts from PowerShell
This Scripts are based on System, Memory, and more info
(Separate each script independently and save as .PS1 file for later use)
This is the new list:
# this is a comment in PowerShell / Esto es un comentario en PowerShell
#######################################################################
# Get a large kind of info into a file (or whatever...)
$ret = Get-ComputerInfo
# Save the Result info into a file called "C:\Your\path\ComputerInfo.txt" << Change as you need
echo $ret | Out-File -FilePath C:\Your\path\ComputerInfo.txt# Set the returned value ( the result file name) to VisualNeoWin
# you should process a .txt file as usually into NPW (FlileRead and so on...)Set-Clipboard -Value "C:\Your\path\ComputerInfo.txt"
#######################################################################
# Get the processors speed$ret = Get-WmiObject Win32_Processor | Select-Object -Expand MaxClockSpeed
Set-Clipboard -Value $ret#######################################################################
# Get the Processor Time$ret = (Get-Counter '\Processor(_Total)\% Processor Time').CounterSamples.CookedValue
Set-Clipboard -Value $ret#######################################################################
# Get Memory available (in MB)$ret = (Get-Counter '\Memory\Available MBytes').CounterSamples.CookedValue
Set-Clipboard -Value $ret#######################################################################
# Get number of processors$ret = (Get-CimInstance -ClassName Win32_ComputerSystem).NumberOfProcessors
Set-Clipboard -Value $ret#######################################################################
# Get number of cores$ret = (Get-CimInstance -ClassName Win32_Processor | Measure-Object -Property NumberOfCores -Sum).Sum
Set-Clipboard -Value $ret#######################################################################
# Get number of logical processors$ret = (Get-CimInstance -ClassName Win32_Processor | Measure-Object -Property NumberOfLogicalProcessors -Sum).Sum
Set-Clipboard -Value $ret#######################################################################
# Get a lot of systeminfo$ret = systeminfo
Set-Clipboard -Value $ret#######################################################################
# Get another kind of info$ret = Get-WmiObject -Class Win32_Processor -ComputerName. | Select-Object -Property [a-z]*
Set-Clipboard -Value $ret#######################################################################
# Get info of processor$ret = Get-CimInstance -ClassName Win32_Processor
Set-Clipboard -Value $ret#######################################################################
# Get Memory status just now!cls
$totalRam = (Get-CimInstance Win32_PhysicalMemory | Measure-Object -Property capacity -Sum).Sum
$date = Get-Date -Format "yyyy-MM-dd HH:mm:ss"
$cpuTime = (Get-Counter '\Processor(_Total)\% Processor Time').CounterSamples.CookedValue
$availMem = (Get-Counter '\Memory\Available MBytes').CounterSamples.CookedValue
$res = $date + ' > CPU: ' + $cpuTime.ToString("#,0.000") + '%, Avail. Mem.: ' + $availMem.ToString("N0") + 'MB (' + (104857600 * $availMem / $totalRam).ToString("#,0.0") + '%)'
Set-Clipboard -Value $res
Another 0.01
David de Argentina
More Scripts from PowerShell
This Scripts are based on System, Memory, and more info
(Separate each script independently and save as .PS1 file for later use)
This is the new list:
# this is a comment in PowerShell / Esto es un comentario en PowerShell
#######################################################################
# Get a large kind of info into a file (or whatever...)
$ret = Get-ComputerInfo
# Save the Result info into a file called "C:\Your\path\ComputerInfo.txt" << Change as you need
echo $ret | Out-File -FilePath C:\Your\path\ComputerInfo.txt
# Set the returned value ( the result file name) to VisualNeoWin
# you should process a .txt file as usually into NPW (FlileRead and so on...)
Set-Clipboard -Value "C:\Your\path\ComputerInfo.txt"
#######################################################################
# Get the processors speed
$ret = Get-WmiObject Win32_Processor | Select-Object -Expand MaxClockSpeed
Set-Clipboard -Value $ret
#######################################################################
# Get the Processor Time
$ret = (Get-Counter '\Processor(_Total)\% Processor Time').CounterSamples.CookedValue
Set-Clipboard -Value $ret
#######################################################################
# Get Memory available (in MB)
$ret = (Get-Counter '\Memory\Available MBytes').CounterSamples.CookedValue
Set-Clipboard -Value $ret
#######################################################################
# Get number of processors
$ret = (Get-CimInstance -ClassName Win32_ComputerSystem).NumberOfProcessors
Set-Clipboard -Value $ret
#######################################################################
# Get number of cores
$ret = (Get-CimInstance -ClassName Win32_Processor | Measure-Object -Property NumberOfCores -Sum).Sum
Set-Clipboard -Value $ret
#######################################################################
# Get number of logical processors
$ret = (Get-CimInstance -ClassName Win32_Processor | Measure-Object -Property NumberOfLogicalProcessors -Sum).Sum
Set-Clipboard -Value $ret
#######################################################################
# Get a lot of systeminfo
$ret = systeminfo
Set-Clipboard -Value $ret
#######################################################################
# Get another kind of info
$ret = Get-WmiObject -Class Win32_Processor -ComputerName. | Select-Object -Property [a-z]*
Set-Clipboard -Value $ret
#######################################################################
# Get info of processor
$ret = Get-CimInstance -ClassName Win32_Processor
Set-Clipboard -Value $ret
#######################################################################
# Get Memory status just now!
cls
$totalRam = (Get-CimInstance Win32_PhysicalMemory | Measure-Object -Property capacity -Sum).Sum
$date = Get-Date -Format "yyyy-MM-dd HH:mm:ss"
$cpuTime = (Get-Counter '\Processor(_Total)\% Processor Time').CounterSamples.CookedValue
$availMem = (Get-Counter '\Memory\Available MBytes').CounterSamples.CookedValue
$res = $date + ' > CPU: ' + $cpuTime.ToString("#,0.000") + '%, Avail. Mem.: ' + $availMem.ToString("N0") + 'MB (' + (104857600 * $availMem / $totalRam).ToString("#,0.0") + '%)'
Set-Clipboard -Value $res
Another 0.01
David de Argentina