install MSI application on a remote machine
Hello experts,I am trying to install an MSI application on a remote server from my system. I have got all the necessary access rights to that box. I am running the below command to install this on...
View ArticleManage Windows Azure AD using Windows PowerShell
Well I am a huge fan of Microsoft Office 365 and we are not only using this in our company, I am also using Office 365 for my mothers restaurant. It helps us organzise stuff very easily and allows us...
View ArticleRegistry find and change
I have been tasked lately with changing some registry entries found by security scans. The scan finds that services are missing quotes in the image path and this is for some reason not secure. The key...
View ArticleArchive Fies older than X days.
HelloI have been using the script that Marc Johnson provided on Powershell.com. I have an issue when the script complets the first time everything runs ok and the files get moved to the archive...
View ArticleTry..Catch within a new-object?
Hey all I have a script and I am trying to perform a try...catch statement with a new object hash table but I am getting an error:Script$lines = @()foreach($msolUser in (Get-MSOLUser -All)){...
View ArticleDetermine OS Architecture and run application
I have a program I want to copy to a number of computers, but first I want powershell to determine OS Architecture, and copy over the appropriate program for that OS before execution. I just have this...
View Articlewhats the best way to clean up or remove the server names?
HelloI am writing a script to audit and clean up our print scripts. The script will will get all of the printers out of text files in a network share. The design should get all unique printers mapped...
View ArticleCopy SCCM 2007 Programs with PowerShell
Often times I find myself wanting to create almost identical programs for packages with maybe a slight change here or there. Example: I have a package that installs an application where I want one...
View ArticleWindows PowerShell Examples for Content Management
This article covers some basic content management usage scenarios using Windows PowerShell for System Center 2012 R2 Configuration Manager. Included are examples on how to create a site system and...
View ArticleAutomated Permissions Auditing With Powershell and T-SQL: Part 3
In this episode, I’m going to start introducing some of the Powershell elements that tie this audit process together.Read More
View ArticleGet PowerShell Version with WMI
With the release of PowerShell 4.0, it is possible you might end up with a mix of systems in your environment. I know I do because I do a lot of writing, testing and development that requires multiple...
View ArticleHow to Turn Your Surface RT into a PowerShell Scripting Powerhouse
How can I get the PowerShell ISE and all the PowerShell modules I need on my Surface RT tablet?Read More
View ArticleHow to configure Powershell to work with Windows Azure AD
In a previous TechTip, I discussed the specifics and nuances of how to install and configure Powershell for use with Office 365. For 99% of the things that I’ve needed Powershell for in 365, this setup...
View ArticleFind SharePoint 2013 App Info Using PowerShell
I've been playing a lot with PowerShell and SharePoint 2013 lately, and by a lot, I mean A LOT! One of the new additions with SharePoint 2013, is the set of new cmdlets that allow Sharepoint...
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 ArticleHelp with if statement in parameter
Can I run this as a parameter?$Switch = if ((Get-VMSwitch).Name.count -gt 1) {(Get-VMSwitch).Name -notmatch "SCSI" | select -First 1} else {(Get-VMSwitch).name} It seems to work on the command line but...
View ArticleTime out for Splash Screen
I have created a splash screen for the GUI I am working on and I cannot get the Splash Screen to disappear after 3 seconds.Here is the code:<#Program:Personal Information Manager...
View ArticleHow to set a password for a workgroup Server 2008r2 user account
Subject about spells it out. I have searched and tried both WMIObject win32_UserAccount and also ADSI but it looks like neither allow the password to be set. I have 14 non-domain joined servers that I...
View ArticleHow to Use the PowerShell Help System Efficiently
The PowerShell help system is very useful and that’s about the only tool you will ever need to use PowerShell efficiently. As it is a shell with no graphics on its interface, you won’t see any flashy...
View Article