Skip to content
Archive of posts tagged Powershell

Free PowerShell book

If you’re just learning PowerShell or you’re already a top scriptwizard “Mastering Powershell” might prove to be a useful resource. Besides the usual scripting basics like variables, functions, pipes and so on the later chapters show some usage of the scripting language for some more concrete problems like XML manipulation or user account management. Just [...]

Prezentare Windows Powershell

Avand in vedere “succesul” prezentarii de Powershell de saptamana trecuta am decis sa public prezentarea si codul demo. Have fun! Windows Powershell Windows Powershell Demo Code Windows Power Shell Publish at Scribd or explore others: Study Guides, Notes, School Work powershell

Microsoft Academic Tour and Innovation Briefing

Joi 7 Mai ora 14.00 in sala EC105 din Facultatea de Automatica si Calculatoare are loc Microsoft Academic Tour. Hot Topics: Windows 7 RC1 si Internet Explorer 8. Joi 14 Mai ora 14.00 in sala EC105 din Facultatea de Automatica si Calculatoare are loc Microsoft Innovation Briefing. Hot Topics: Windows Azure si Windows Powershell. Prezentarea [...]

PowerShell Server

Meseriasii de la /n (aia care dadeau stickere moca) au un produs tare fain. Ii zice powershell server si jucaria iti transforma masina windows din o statie unde poti face chestii doar via GUI in una bucata statie accesibila remote via ssh. SSH vine de la Secure shell. Ei bine daca secure e clar ce [...]

Powershell 2 CTP3

Ocupati cu cumparaturile de sezon si cu facutul de sarmale si carnati putini au observat ca echipa de produs de la Powershell s-a tinut de cuvant si a lansat la apa o versiune noua de powershell 2 : CTP3 (ctp=community technology preview). Facilitatile noi  sunt destul de consistente: imbunatariri majore in ceea ce priveste remotingul, [...]

Quickie: Get free disk space with Powershell and wmi

Quick and dirty gc work.txt |foreach{ $val=(gwmi -computername $_ -Query “SELECT FreeSpace FROM Win32_LogicalDisk WHERE DeviceID = ‘C:’”).FreeSpace / 1Gb; echo “$_ $val” }

Quckie: Group Policy Refresh on Demand

Tooluri necesare: 1) Powershell 2) Scula asta. Exista si un cmdlet care face direct chestia asta dar nu merge in powershell 2.0. Pana cand apare ne descurcam cu exeul. 3) Numele workstationurilor in format csv $comp = Import-Csv .\workstations.csv |select computername|select computername foreach ($i in $comp) {.\Rgprefresh.exe /m:$comp}

PowerShell WakeOnLan v0.2

Scriptul de ieri l-am extins si i-am adaugat functii de remote shutdown si restart. Ca bonus am adaugat si epic fail si putina validare. #wakeonlan $computer function WakeOnLan($computer) { $select=$select |where-object {$_.computername -eq $computer} |Select-Object mac if ($select.mac -eq $null) { echo "workstation not found.epic fail. use all to wake’em all" } else { $select.mac [...]

PowerShell Wake on Lan v0.1

Wake on lan e o functie disponibila pe orice placa de baza mai noua de 1900 toamna ce te lasa sa pornesti de la distanta un calculator. Principiul de functionare e cam asa: trimiti pe retea un pachet “special” ce contine MAC-ul statiei ce ce vrei sa o pornesti. Daca e configurata corect si e [...]