Just a quick thought 31 OCT = 25 DEC Enjoy
Archive for October, 2013
those really nice people at www.manning.com have some real bargains this weekend: Thursday October 31–Half off all MEAPs Friday November 1–Half off all pBooks Saturday November 2–Half off all eBooks Sunday November 3–Half off any purchase enjoy
WMI Query Language – WQL – is used to either form a query directly or indirectly in the –Filter parameter of Get-WmiObject and Get-CimInstance. $query = "SELECT * FROM Win32_LogicalDisk WHERE DriveType = 3" Get-CimInstance -Query $query OR using the –Filter parameter Get-CimInstance -ClassName Win32_LogicalDisk -Filter "DriveType = 3" WQL is a limited subset of […]
Using WQL
Posted by: | October 30, 2013 | No Comment |WMI Query Language – WQL – is used to either form a query directly or indirectly in the –Filter parameter of Get-WmiObject and Get-CimInstance. $query = “SELECT * FROM Win32_LogicalDisk WHERE DriveType = 3″Get-CimInstance -Query $query OR using the –Filter … Continue reading →
Manning’s deal of the day is Learn SCCM 2012 in a Month of Lunches – get 50% off – today only at www.manning.com
This type of construction has been part of PowerShell since the very beginning: Get-Process | where {$_.Handles -gt 500} Get some data and use where-object to filter the data based on the value of some property. $_ represents the object on the pipeline. PowerShell 3.0 introduced a simpler syntax Get-Process | where Handles -gt […]
Manning have started the early access program (MEAP) for Learn SCCM 2012 in a Month of Lunches – http://www.manning.com/bannan SCCM is a major component for managing your environment. Looking forward to reading it – especially as it has a chapter devoted to PowerShell
The updated PowerShell help files are available for all but a handful of modules – the outstanding ones should be available this week. Time to run update-help
Have you ever tried anything like this: Get-ADUser -Filter * -Properties * | Select Name, LastLogondate, PasswordNeverExpires, Enabled, @{N=’OU’; E={($($_.distinguishedName) -split ",",2)[1] }}, Memberof | Export-csv -Path users.csv -NoTypeInformation You want some basic information about the users plus their group membership What you get is this Name : Fred Friday LastLogondate : PasswordNeverExpires […]
Back in this post http://richardspowershellblog.wordpress.com/2012/02/29/setting-a-users-home-directory/ I looked at setting the users home directory. I recently got a question about using a CSV file for input. CSV files have been around for years and are likely to be with us for a long time to come – its a very useful and compact format. using a […]
Categories
- .NET
- Active Directory
- Architecture
- Azure
- Bash
- BITS
- Books
- CDXML
- CIM
- Cloud
- COM
- Containers
- Deep Dive
- Desired State Configuration
- DevOps
- DHCP
- DNS
- DSC
- European Summit
- Events
- Exchange
- File System
- Firewall
- General
- General IT Matters
- Hyper-V
- IIS
- Infrastructure
- IT Community
- IT Security
- Learning PowerShell
- Linux
- Math
- Microsoft
- Modules
- Nano Server
- Networking
- Office 2010
- Office 2013
- Open Source
- Opinion
- Outlook
- Philosophy
- PowerShell
- PowerShell 7
- PowerShell and .NET
- PowerShell and Active Directory
- PowerShell and CIM
- PowerShell and Exchange 2007
- PowerShell and IIS
- PowerShell and SQL Server
- PowerShell and WMI
- PowerShell Basics
- PowerShell original
- PowerShell Summit
- PowerShell User Group
- PowerShell User Group 2
- PowerShell v2
- PowerShell V3
- PowerShell v4
- PowerShell v5
- PowerShell v6
- PowerShell.org
- PowerShellGet
- PowerShellV2
- PSAM
- Rant
- Registry
- Scripting
- Scripting Games
- Scripting Games 2104
- Security
- SQL Server
- Storage
- Strings
- Summit
- Technology
- Uncategorized
- Virtualization
- Windows 10
- Windows 2012 R2
- Windows 7
- Windows 8
- Windows 8 Server
- Windows 8.1
- Windows Server
- Windows server 1709
- Windows Server 2008
- Windows Server 2008 R2
- Windows Server 2012
- Windows Server 2012 R2
- Windows Server 2016
- Windows Server 2019
- WMFv5
- WPF
- WSUS