Home
Language
English
TΓΌrkΓ§e
Bahasa Indonesia
About
Privacy Policy
Terms of Service
Pricing
Sign In
Download All
Share
Powershell Basics
@PowershellBasic
Learn Powershell one snippet at a time
Iowa, USA
Joined October 2016
4
Following
10
Followers
64
Posts
Powershell Basics
@PowershellBasic
over 8 years ago
What have you done with
#Powershell
lately?
Powershell Basics
@PowershellBasic
almost 9 years ago
Want to find out what your org has hidden within AD? Get-ADUser -identity <username> -Properites *
Powershell Basics
@PowershellBasic
over 9 years ago
@nixcraft
Windows doesn't let you do this. But it will gladly let you delete most of the HKLM\Software reg keys which has a similar effect
Powershell Basics
@PowershellBasic
over 9 years ago
@nixcraft
https://t.co/nH7WgDAGTD . There are several providers with unmetered monthly traffic offers.
Who to follow
Martin Himken | MVP
@MHimken
#MVP #Intune, plus #ITSec #EMS #Azure and #ConfigMgr - Managing your endpoints with Microsoft since 2012. Tweets are my own and do not represent my employer.
Ragnar Harper
@rharper
Techie - working at AWS Norway. Impressed by technology since 6 years old, loved technology since 9. ex-Microsoft. Views and opinions my own.
Thomas Kapusciok
@kakashicopynina
#DevOps #PowerShell #MDT #Docker #Kubernetes #VFX #Design #CICD #DSC #Azure
Powershell Basics
@PowershellBasic
over 9 years ago
Put Measure-Command in front of your code to see how long it will take to run. This helps identify what the slowest part of your code is.
Powershell Basics
@PowershellBasic
almost 10 years ago
You can use Get-Content or, a shorter version you can use gc
Powershell Basics
@PowershellBasic
almost 10 years ago
Get-ADUser <username> -Properties * | Select-Object -expandproperty ScriptPath ....Working with AD to get a users logon script.
Powershell Basics
@PowershellBasic
almost 10 years ago
@PowershellBasic
Get Windows services set to auto but not running
Powershell Basics
@PowershellBasic
almost 10 years ago
Get-WmiObject win32_service | Where-Object -FilterScript { $_.state -ne "Running" -and $_.StartMode -eq "Auto" }).Name
Powershell Basics
@PowershellBasic
almost 10 years ago
wmic bios get smbiosbiosversion ...Get your BIOS version from
#Powershell
Powershell Basics
@PowershellBasic
almost 10 years ago
Don't let other people's personal prefs dictate how you write code. Some ppl will argue against using write-host. If it works for u, use it
Powershell Basics
@PowershellBasic
almost 10 years ago
Did you know you can run cmd prompt commands from powershell? Try it, type: ipconfig
Powershell Basics
@PowershellBasic
almost 10 years ago
Powershell uses WMI to get info from a computer, either local or remote. Here's a list of the classes we reference https://t.co/HWfM3YLvuf
Powershell Basics
@PowershellBasic
almost 10 years ago
Get-Hotfix -id kb2849697 ....Using
#Powershell
to find out if you have KB2849697 installed. Use: Get-Hotfix ...To get all patches installed
Powershell Basics
@PowershellBasic
almost 10 years ago
gwmi win32_startupcommand ...Lists what's configured to start when Windows does
Powershell Basics
@PowershellBasic
almost 10 years ago
gwmi win32_product | Select Name,Version ...Using
#Powershell
to list installed programs and their respective version number.
Powershell Basics
@PowershellBasic
almost 10 years ago
get-date -format MM/dd/yyyy ....Get todays date in a readable format
Powershell Basics
@PowershellBasic
almost 10 years ago
@NickAskilmy
Some people just don't care if their code is readable by anyone else...smh
Powershell Basics
@PowershellBasic
almost 10 years ago
When writing code, don't be that person that uses single letters for your variable names. Foreach ($i in $a) {....That's just terrible
Powershell Basics
@PowershellBasic
almost 10 years ago
@PowershellBasic
I wrote it, so feel free to offer any suggestions(Outside of not using write-host, of course)
Last Seen Users on Sotwe
Pak Guru Kasno
Seen from
Poland
hall heldor
Seen from
Indonesia
βͺICEπ·οΈ
Qadir Khan
Seen from
Bahrain
TΓΌrk Δ°fΕa Foto
Seen from
Turkey
ηΊ―ζ ε°η«π±
Seen from
Canada
SINIH SAMA TANTE
Seen from
Singapore
EternalLoad
Seen from
Canada
HAYALΔ°MSΔ°N
Seen from
Turkey
Thanh Kien
Seen from
Vietnam
Trends for you
1
#AEWAllOut
Under 10K tweets
2
Lincoln Riley
Under 10K tweets
3
Barcelos
Under 10K tweets
4
Tati
Under 10K tweets
5
Kamario Taylor
Under 10K tweets
6
Demond Williams
Under 10K tweets
7
Gophers
Under 10K tweets
8
Jedd Fisch
Under 10K tweets
9
Georgia Tech
Under 10K tweets
10
Alberto Mendoza
Under 10K tweets
Most Popular Users
1
Elon Musk
@elonmusk
241.7M followers
2
Barack Obama
@barackobama
119M followers
3
Cristiano Ronaldo
@cristiano
114.4M followers
4
Donald J. Trump
@realdonaldtrump
111.9M followers
5
Narendra Modi
@narendramodi
107.2M followers
6
Rihanna
@rihanna
98.7M followers
7
NASA
@nasa
92.4M followers
8
Justin Bieber
@justinbieber
91.8M followers
9
KATY PERRY
@katyperry
90M followers
10
Taylor Swift
@taylorswift13
83.9M followers
11
Lady Gaga
@ladygaga
75.4M followers
12
Virat Kohli
@imvkohli
73.4M followers
13
Kim Kardashian
@kimkardashian
70.9M followers
14
YouTube
@youtube
68.8M followers
15
Neymar Jr
@neymarjr
66.4M followers
16
Bill Gates
@billgates
65.2M followers
17
Selena Gomez
@selenagomez
63.1M followers
18
The Ellen Show
@theellenshow
62.3M followers
19
CNN
@cnn
61.8M followers
20
X
@x
60.7M followers
Olivia
Online
β¨
β
π«