Run-Command.ps1 : Run External Commands with Power!
Import-ADUser: All I can say is WoW! Posh 55 / Vbscript 210
Accessing SQL Server data through PowerShell
vbscriptInPosh
Wednesday, October 17, 2007
Monday, August 20, 2007
Wednesday, August 15, 2007
Friday, August 10, 2007
Wednesday, August 8, 2007
Monday, August 6, 2007
.psbase or when what you see isn't what you want to see
so i have been seeing the .psbase thing in posh scripts and blindly using it because it works in the scripts that seem to need it but understand what it is and why it is used?????
i finally read Tobias' 'ADSI Connecting to Domains/Computers and Binding to Objects' where he does a nice job of explaining .psbase and why you use it
in fact his MASTERING POWERSHELL IN YOUR LUNCH BREAK: series is well worth your time
what i think i have learned is that you use .pbase when you need more information than is provided by get-member you need to do this because the info provided by get-member is sometimes filtered by posh
here some examples from dat 6
$domain get-member
$domain.psbase get-member
$computer get-member
$computer.psbase get-member
$domain = [ADSI]" "
$domain.psbase.children % {
"Name: " + $_.name
"DistinguishedName: " + $_.distinguishedName
"Class: " + $_.objectClass[$_.objectClass.count -1]
"========================================"
}
bottom line when i run an object through get-member and don't see what i am looking for i'll do that object.psbase thing before posting a ?
thanks tobias
i finally read Tobias' 'ADSI Connecting to Domains/Computers and Binding to Objects' where he does a nice job of explaining .psbase and why you use it
in fact his MASTERING POWERSHELL IN YOUR LUNCH BREAK: series is well worth your time
what i think i have learned is that you use .pbase when you need more information than is provided by get-member you need to do this because the info provided by get-member is sometimes filtered by posh
here some examples from dat 6
$domain get-member
$domain.psbase get-member
$computer get-member
$computer.psbase get-member
$domain = [ADSI]" "
$domain.psbase.children % {
"Name: " + $_.name
"DistinguishedName: " + $_.distinguishedName
"Class: " + $_.objectClass[$_.objectClass.count -1]
"========================================"
}
bottom line when i run an object through get-member and don't see what i am looking for i'll do that object.psbase thing before posting a ?
thanks tobias
Saturday, August 4, 2007
misc tips not yet classified
Powershell - Ying Li at myITforum.com
PowerShell script to assign symantec antivirus parent server to multiple clients based on their default gateway
Powershell script to get Symantec Antivirus Client version and virus definition date
PowerShell script to get Computers Chassis Types
Windows Powershell Profiles
Powershell script to manipulate string.
Powershell script to manipulate string
Powershell script to check folder size
PowerShell script to update DNS Search Order on a particular NIC on multiple remote machines - Ying Li at myITforum.com
How to enter password as secure string
The Comlet to record a PowerShell session
One step further - PowerShell script to modify multiple users' property in Active Directory
PowerShellers How to easy format date-time
Windows PowerShell Get-Process Piped to Dir
Windows PowerShell Editing your Profile file
Windows PowerShell How does Select-String work with Pipelines of objects
PowerShellers Spring-cleaning of a PowerShell profile
James Manning's blog Quick test to see which URL's are still valid
Windows PowerShell Sunday morning drive with my hair on fire Types-Community-Synthetic types-Democracy-Cool XML tricks
James Manning's blog using PowerShell for Outlook automation
James Manning's blog why share-able functions shouldn't be in your PowerShell profile
James Manning's blog Various PowerShell scripts
James Manning's blog using PowerShell for Outlook automation
PowerShell script to assign symantec antivirus parent server to multiple clients based on their default gateway
Powershell script to get Symantec Antivirus Client version and virus definition date
PowerShell script to get Computers Chassis Types
Windows Powershell Profiles
Powershell script to manipulate string.
Powershell script to manipulate string
Powershell script to check folder size
PowerShell script to update DNS Search Order on a particular NIC on multiple remote machines - Ying Li at myITforum.com
How to enter password as secure string
The Comlet to record a PowerShell session
One step further - PowerShell script to modify multiple users' property in Active Directory
PowerShellers How to easy format date-time
Windows PowerShell Get-Process Piped to Dir
Windows PowerShell Editing your Profile file
Windows PowerShell How does Select-String work with Pipelines of objects
PowerShellers Spring-cleaning of a PowerShell profile
James Manning's blog Quick test to see which URL's are still valid
Windows PowerShell Sunday morning drive with my hair on fire Types-Community-Synthetic types-Democracy-Cool XML tricks
James Manning's blog using PowerShell for Outlook automation
James Manning's blog why share-able functions shouldn't be in your PowerShell profile
James Manning's blog Various PowerShell scripts
James Manning's blog using PowerShell for Outlook automation
Subscribe to:
Posts (Atom)