{"id":299,"date":"2017-04-10T12:18:55","date_gmt":"2017-04-10T18:18:55","guid":{"rendered":"https:\/\/sysadminnightmare.com\/?p=299"},"modified":"2017-04-10T12:18:55","modified_gmt":"2017-04-10T18:18:55","slug":"quick-powershell-shortcut","status":"publish","type":"post","link":"https:\/\/sysadminnightmare.com\/index.php\/2017\/04\/10\/quick-powershell-shortcut\/","title":{"rendered":"Quick Powershell ShortCut"},"content":{"rendered":"<p>Shortcut<br \/>\nIf you are using the where command<br \/>\n<code> Get-Mailbox * | Where-Object {$_.EmailAddress -like \"*something.com\"}<\/code><br \/>\nyou can use a question mark<br \/>\n<code> Get-Mailbox * | ? {$_.EmailAddress -like \"*something.com\"}<\/code><\/p>\n<p>Some others I often use:<\/p>\n<ul>\nFormat-List = FL<br \/>\nFormat-Table = FT<br \/>\nGet-Item = gi<br \/>\nExport-CSV = epcsv<br \/>\nImport-PSSession = ipsn<br \/>\nAdd-PsSnapIn = asnp\n<\/ul>\n<p>More detailed list here: <a href=\"https:\/\/ss64.com\/ps\/\">https:\/\/ss64.com\/ps\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Shortcut If you are using the where command Get-Mailbox * | Where-Object {$_.EmailAddress -like &#8220;*something.com&#8221;} you can use a question mark Get-Mailbox * | ? {$_.EmailAddress -like &#8220;*something.com&#8221;} Some others I often use: Format-List = FL Format-Table = FT Get-Item = gi Export-CSV = epcsv Import-PSSession = ipsn Add-PsSnapIn =&#8230; <a class=\"continue-reading-link\" href=\"https:\/\/sysadminnightmare.com\/index.php\/2017\/04\/10\/quick-powershell-shortcut\/\"> Continue reading <span class=\"meta-nav\">&rarr; <\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[2,4,7,8],"tags":[],"class_list":["post-299","post","type-post","status-publish","format-standard","hentry","category-admin","category-exchange","category-powershell-2","category-tech-tips-101"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2bgeE-4P","_links":{"self":[{"href":"https:\/\/sysadminnightmare.com\/index.php\/wp-json\/wp\/v2\/posts\/299","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sysadminnightmare.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sysadminnightmare.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sysadminnightmare.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sysadminnightmare.com\/index.php\/wp-json\/wp\/v2\/comments?post=299"}],"version-history":[{"count":1,"href":"https:\/\/sysadminnightmare.com\/index.php\/wp-json\/wp\/v2\/posts\/299\/revisions"}],"predecessor-version":[{"id":300,"href":"https:\/\/sysadminnightmare.com\/index.php\/wp-json\/wp\/v2\/posts\/299\/revisions\/300"}],"wp:attachment":[{"href":"https:\/\/sysadminnightmare.com\/index.php\/wp-json\/wp\/v2\/media?parent=299"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sysadminnightmare.com\/index.php\/wp-json\/wp\/v2\/categories?post=299"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sysadminnightmare.com\/index.php\/wp-json\/wp\/v2\/tags?post=299"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}