POWERSHELL import-CSV "" | foreach { $result = Test-Connection -ComputerName $_.Name -Count 1 -Quiet $_.name, $result -join ',' | out-file "c:\scripts\PingSweep\computer_results.txt" -Append } COMMAND /BATCH SCRIPT Create list of computers…
PowerShell : Get COMPUTER objects of a specific group ( this example gets the properties “description” of each object )
# Get COMPUTER objects of a specific group ( this example gets the properties “description” of each object ) # List in a table format Name and Computer Description PropertiesGet-AdGroupMember…
VMworld 2018 Barcelona Highlights
Stephen Hackers from Hot Wired IT Solutions affiliate partner to HTG (Howell Technology Group) made the trip to VMworld Barcelona 2018 with Kevin Howell (HTG), Graham Wight (HTG) and Tony…
List User Profile Status On A Client Windows 10 Machine
Run on client machine to see the status of user profiles on a Windows10 machine Type the following PowerShell command : gwmi win32_userprofile | select localpath, roamingpath, status
New Release: PowerCLI 11.0.0
New Release: PowerCLI 11.0.0 New Release: PowerCLI 11.0.0 PowerCLI has been moving at quite the rapid pace over the last 2 years. In 2018, we’ve been releasing roughly every other…
List Computers in Specific OU which are Enabled and Output to CSV
# Out puts computer accounts including status Enabled True or False # Targets a specific OU # Lists computer names # OU Variable to set $OU_HotWiredUK_location = "OU=Computers,OU=HotWiredHQ,OU=UK,DC=test,DC=com" # Out…
List Members of a specific AD group
#List Members of a specific AD group – output Username and User Full Name Get-ADGroupMember -Identity "AD GROUP NAME" | Select samAccountName, Name
Files Older Than 3 Months Combined Total File Size
A requirement to identify the total file size of all files not used in the last 3 months. This was the solution #Run as administrator #You need to have permission…
Task : Output A List Of Home Drive Paths Configured In Active Directory
#DSQuery dsquery user -name "*" -limit 0 | dsget user -samid -hmdir -hmdrv -profile >c:\temp\usersV2.txt #PowerShell # More flexibility # Includes the state of the computer account (Enable or…
List all users in the domain and email addresses
import-module activedirectory #List all users in the domain # Display Name and Email Address get-aduser -Filter * -SearchBase "dc=Test,dc=com" -Properties Displayname,emailaddress | select displayname ,emailaddress | Export-Csv C:\temp\users_and_email.csv