Need help on output
I have a script below to gather Driver Name and Version from a conputer list but can't seem to get the output format I wanted in either excel or html format belowDriverNamame Computer1...
View ArticleImport data from Powershell to SQL Server
Hi everyone, Not sure of this is the easist way. But id like to get a list of all the Servers in AD into a table in SQL Server. I can get the list of servers from AD in powershell. But i cant find a...
View ArticleOut-GridView column width
Is it possible to pre-set column width here, using the @{} constructor or whatever? I can get a Select-Object @{name=''; expression=''} | Out-Gridview to work but adding a width= fails.
View Article3 different behaviors for the same script
FolksI have a script to copy backup files from local server to a remote archive location.Delete the files on the archive location that are more than 5 days old.The same exact script gives three...
View ArticlePowerShell for Penetration Testers
Slides of the Workshop I gave at BlackHat Europe 2013. Read More
View ArticleManaging an Outlook Mailbox with PowerShell
Have you ever needed to find an e-mail message from one or two years ago that, if you couldn’t find it, might adversely affect your circumstances? Does your company automatically delete messages from...
View ArticleRead XML File
The code below runs fine on PowerShell versions 2.0 and 3.0 when using Data.xml Example 1. However, if I introduce a second category as seen in Data.xml Example 2, the code continues to work in...
View ArticleSQL Server 2012 Integration Services - PowerShell-Based Project Deployment
As we have demonstrated in the recent article published on this forum, you have the option of leveraging the capabilities and flexibility of PowerShell when automating management of SQL Server 2012...
View ArticleWindows Management Framework 3.0 with PowerShell 3.0, WMI, WinRM
Microsoft has released Windows Management Framework 3.0 with Windows PowerShell 3.0, WMI, WinRM and PowerShell Web Service for Windows 8 and Windows Server 2012. Windows PowerShell 3.0 provides support...
View ArticleImport-CSV / Export-CSV with special characters / Bug?
Is there a way to make import/export-csv work with special characters? Try this:cd $homemd öttödir | select-object Name | export-csvtest.csvimport-csvtest.csvAll special characters appear as "?". -Tobias
View ArticleAdd-Printerdriver with INF-Path
Hi,i´m currently writing a powershell script to automate print queues, printers, ports...All works fine, but the following cmdlet not:Add-PrinterDriver -Name "Testprinter" -InfPath...
View ArticleAdding local user accounts to Local administrator group
I am currently working on a project to create a standard local administrator account on multiple servers. So far I have the following powershell script, the only problem I am having is adding the user...
View ArticleExporting ouput
Dear All,I have this script which gathers inactive computer objects since last 90 daysHow can I extact this on to a csv file? Not sure what other code will be addedhere's my...
View ArticleA Month of PowerShell
This page is the landing page for the month-long blog series “A Month of PowerShell”.Read More
View ArticleBuildDeploySupport: Sharing PowerShell scripts in Octopus
It's common to have multiple projects in Octopus that need to do the same tasks during deployment, such as configuring IIS. Copy and pasting the scripts is certainly one approach, but not ideal. In...
View ArticleWindows PowerShell 3.0 SDK Sample Pack
We're pleased to announce the availability of the Windows PowerShell 3.0 SDK Sample Pack. For Windows PowerShell 3.0, the SDK samples work a little differently than in previous releases of Windows...
View ArticleWindows Server 2012: How Active Directory Administrative Center Has Changed
The ADAC's new capabilities make it easier to transition to automated management.Read More
View ArticleCreate WSD Port
How do I add a printer that is connected to a WSD port. I've the IP Address of the device that I need to connect to. I tried the followingAdd-Printer -Name 'test print' -DeviceURL 'ipaddress'. I've the...
View ArticlePowershell activie directory 2008 - please help
Hi there I am trying to get a list of all user accounts whose password will expire and move them a new ou called"expired accounts" is that possible ? I have done the first part of the script using...
View ArticleSuggestion for PoSh code in posts
I've noticed that if I put a fairly long line of code in a post, especially if I use the code markup tool, the line seems to overflow beyond the width of the posted message blurb. I'm not suggesting a...
View Article