Learn a New PowerShell Cmdlet Today
…
continue reading
Download the MP3 Podcast In this episode we look at how we can turn PowerShell objects into comma separated strings and files Append Example: Get-Process |select name,id |ConvertTo-Csv -NoTypeInformation |select -Skip 1 |out-file filetoappend.txt Brought to you by The Windows PowerShell Bible 2.0 and PowerShellGroup.Org…
…
continue reading
Download the MP3 Podcast In this episode we explore all of the possibilities for one of the most used PowerShell cmdlets. Basic Example: Get-Process |select name, id Parameters discussed: First Last Skip Unique Return a string collection of the process names rather than an object with only a name property Get-Process |select -ExpandProperty Name Re…
…
continue reading
Download the MP3 Podcast In this episode we look at how you can stop the pipeline and suppress output with Out-Null. Brought to you by The Windows PowerShell Bible 2.0 and PowerShellGroup.Orgעל ידי Tome Tanasovski
…
continue reading
Download the MP3 Podcast In this episode we look at how you can use break and continue to control the flow of loops. Brought to you by The Windows PowerShell Bible 2.0 and PowerShellGroup.Orgעל ידי Tome Tanasovski
…
continue reading
Download the MP3 PodcastIn this episode we look at how you can easily concatenate paths with Join-Path. $dir = 'C:\users'$child = 'tome'Join-Path $dir $childc:\users\tomeJoin-Path c:,d: NewDirc:\NewDird:\NewDir Brought to you by The Windows PowerShell Bible 2.0 and PowerShellGroup.Orgעל ידי Tome Tanasovski
…
continue reading
Download the MP3 Podcast In this episode we look at how you can carve up strings that make up strings of text that make up paths with Split-Path: By default – returns parent path Split-Path c:\users\tomec:\user Leaf – returns the end of the path (file or directory name) Split-Path c:\users\tome -Leaftome NoQualifier – removes the drive letter from …
…
continue reading
Download the MP3 Podcast In this episode we look at how you can Backup, Restore, and Import Group Policy Objects using Windows PowerShell and the cmdlets that come with the Group Policy module in the latest version of RSAT and the GPMC. $dir = '\\server1\gpobackups'# BackupsGet-GPO -All |Backup-GPO -Path $dirGet-GPO remoting |Backup-GPO -Path $dir#…
…
continue reading
Download the MP3 Podcast In this episode we look at how you can generate an RSOP with Windows PowerShell by using Get-GPResultantSetOfPolicy by using the GroupPolicy module that comes with the GPMC that is bundled in Windows Server 2008 R2 and the most recent version of RSAT. # Populate dir with the current dir regardless of whether# you are in a s…
…
continue reading