Load the Script Configuration File in Other PowerShell Tools
If you want to work with vSphere PowerCLI from another PowerShell-based tool, such as PowerShell Plus or PowerGUI, you must load the default script configuration file manually.Read More
View ArticleIntroducing the Pipeline and ForEach
Last month, in "Where-Object and the Pipeline," I showed you PowerShell's pipeline and the pipeline's Secret Name ($_). In previous columns, you've seen how the pipeline can let you combine two Active...
View ArticlePowershell: Dell Client System Update for the SCCM & MDT Build
The DCSU is a great utility that Dell has made available to update the drivers and driver applications on Dell systems. The industry I work in requires specific drivers for specific applications, which...
View ArticlePowershell: Add/Remove Program entries
Sometimes it is necessary to add an add/remove programs entry. There are instances where an application is independent and requires not installation and you want to make sure it is copied to the...
View ArticleCreate a log file?
I have a Powershell script I've written that "builds" a Windows 7 PC with all the accounts, apps, users, etc that we need. Is there a simple way to create a log that lets you know all went okay? For...
View ArticleAdd-Type -Path c:\scripts\validateMatches.dll failing.
I can get Add-Type -Path c:\scripts\validateMatches.vb to work with the script below but trying to reference the compiled version fails. This script just adds a [ValidateMatches] type and is identical...
View ArticleRemote powershell execution
I have a mixture of Windows 7 and XP machines that I need to setup to enable them as clients to remote execute a SQL SSIS package. The package and RDBMS is located on a Windows 2008 server. On the...
View ArticlePull MsolAccountSku info from office365
Hi,I'm trying to pull information from office365 about licence which are available. $a = Get-MsolAccountSku;$licene = @();$count=1;foreach ( $aa in $a ){ $t = ($aa.ActiveUnits -...
View ArticleRun the batch file in remote system
I have batch file which is residing in the remote system (C:\RunJob.bat) Batch file contains code to open notepad.exeRemote system name : RemoteSysLocal system name : MohanSysHow do i run the...
View ArticleSearching files in Windows with Powershell
By supplesoftware Searching files in Windows with Powershell. 06Aug09. The new (well, not that new now) Windows search is way annoying, so I thought may be I could use Powershell for searching. This is...
View ArticleGetting latest file name from file and test
Normal 0 false false false EN-IE X-NONE X-NONEHello, Wondering if the below scenario is possible I have a folder that contains flat files and are named in sequence 111,112,113,114 etc Each day I...
View ArticleCalling Web Services in Password Reset Server with PowerShell
Here is an example of using PowerShell script calls Authenticate, UserEnrolled and ImportAnswers. Note that the you will need PowerShell 2.0 (and not the default 1.0) installed to run the script....
View ArticleSend Lync Instant Message with the PowerShell script
This script will send an Instant Message to Lync Client Contact for User.Read More
View ArticleRemoving Old SQL Server backup files with PowerShell
A common question that comes up during my PowerShell Restore presentation is on how to delete your old SQL Server backups after a certain period of time. This is especially important for those DBAs who...
View ArticlePresentation and Demo scripts from PowerShell Backup and Restore sessions at...
Here are the Presentation and the demo scripts I was using during my SQL Server Backups and Restores with PowerShell sessions at the Birmingham and Norwich SQLRelay events.Read More
View ArticleGet-Process in PowerShell 4
PowerShell v4 enables you to see the user account associated with the processRead More
View ArticleCreate a Scheduled Task With PowerShell
Going into the GUI and creating a scheduled task is not rocket science, and now, either is creating a scheduled task via PowerShell. There is now a ScheduledTasks PowerShell module to help with...
View ArticleReplacing "Everyone" with "Authenticated Users" for Print$ with PowerShell
Good Evening all. I am currently trying to figure out how to either 1) replace the existing Everyone group on the Print$ share with Authenticated Users or 2) use PowerShell to add Authenticated Users...
View ArticleMail enable users from csv and log
Here is what I know:I have a csv export from groupwise (attached here but only containing an example user)I have to mail enable thousands of users in exchange 2013 CU2 and the AD objects exist:1....
View ArticlePopulating extensionattribute10 for multiple users
I have 4750 active directory accounts with extensionAttribute10 is emptyI would like to populate that field extensionAttribute 10 with firstname.lastname@company.caHow would I do this in powershell? I...
View Article