Use PowerShell To Control How PDFs Open
We’re unashamed fans of PowerShell around these parts, and here’s another handy application for it: changing the way PDF files open from SharePoint document libraries that use Office Web Apps.Read More
View ArticleAltaro Blog for Hyper-V & Windows Adminstrators: Manage Hyper-V with PowerShell
If you’ve been reading my posts, you should realize I am a huge proponent of Windows PowerShell. The number one attraction for me, is that if I can run a command to process a single thing, like a file,...
View ArticleWorking with PowerShell Scripts
Although Windows PowerShell is probably most commonly thought of as a command line environment for administrators, it can be used for more than just running commands. PowerShell can also be used to...
View ArticleExporting Mailbox Permissions
Hi all,In our Exchange 2007 environment, I have this Powershell script which outputs mailboxes, which users have access to them and the type of access, such as Full Access, Delete Items etc. into a...
View ArticlePowerShell Custom Object Data into SQL Server Table
Trying to populate a SQL table with contents from a custom object. The custom object will write to an out-file if it is just a text file. However, I want to take the results in the custom object and...
View ArticleOut-File for loop help
How can I use Out-File for something like this bit $Computers = Get-Content -Path c:\computer.txtforeach ($Computer in $computers){ Get-Service -DisplayName "*Spooler*" -computer $Computer | select...
View Articleremoving local profiles remotely
When imaging computers we usually create a profile temp before joining the domain. These should be deleted but many times this is overlooked. what i need is a line of script that looks at the remote...
View ArticleRUN THE QUERY CONNECT WITH ORACLE DATABASE USING POWERSHELL
I want to connect to Oracle database using powershell ,I have a query which has field which keeps changing I want that Query to take the field automatically from a file connect to database & run...
View ArticleREPLACE NULL VALUE to SOME MEANINGFUL VALUE IN SPECIFIC COLUMN OF .CSV FILE
In an .csv file I want to replace the null values in a column with value I know how to use it for complete .csv file where ever null replace with NA Can somebody suggest how to this for one specific...
View ArticleWhy the difference in the output format?
I am new to PS and using the PowerShell ISE tool. At the bottom of my ISE screen I have a blue command window. In that window I will type this. Get-Content "c:\temp\atl.txt" the output is...
View Articlewrite-host
Hi I'm using the following script$a = Get-Content "c:\servers.txt"foreach ($i in $a) {$files= get-content "c:\test.txt"foreach ($file in $files){Copy-Item $file -Destination \\$i\C$\ -force}} to copy...
View ArticleCatching particular WMI exception
Hello AllCan someone please help me with the following question.I am trying to be more specifc when catching exceptions if I do the followingGet-WmiObject -ComputerName Server1 -Class Win32_PowerPlan...
View ArticleDocumenting My Scripts... Any idea / Ready Documents to follow?
Hello, I want to document all my scripts for future reference and to describe what each script does, from where it pick the file paths, what result it gets and where it dumps the result.. Thinking of...
View ArticleView total memory
What do I need to do to view Total Physical Memory ona) local machineB) Remote machine
View Articlehandling certificate template using PowerShell
Hi,I'm using the following script in order to create a certificate template. It is working, But there are some points that I'm failing to handle:1) After creating the new certificate template using the...
View ArticleError with the 'Get-Command'
Hello,I am a new powershell user who received the following error message after entering Get-Command at the prompt.'Get-Command' is not recognized as an internal or external command, operable program...
View ArticleSet-DistributionGroup with linked mailbox users
I was hoping to give managed by rights to users that are linked in my exchange 2010 enviroment.the PS below is unable to find user object. Set-DistributionGroup -Identity...
View ArticlePopuplating EmailAddress field with Firstname.lastname@company.ca
We have over 400 users which emailaddress = no.email@company.ca in powershell I want to populate the emailaddress to firstname.lastname@company.caI start with this command but do not know how to change...
View Article-recurse not working as expected
I am currently writing a Powershell script (and learning it as I go along) to build a Windows 7 PC (users, applications, printers, etc) and am running into an issue with -recurse not running as I...
View ArticleUser directories don't exist after creation
I found these wonderful modules/functions:http://gallery.technet.microsoft.com/scriptcenter/f75801e7-169a-4737-952c-1341abea5823and am using them in my script for Windows 7 PC builds, but have run into...
View Article