Transaction log size report
Hello everyone.I have a script that runs to get transaction log size. It runs, produces the output file.However when it runs it does produce errors in the ISE.I will include the script and then the...
View ArticleAdd-Printer and Add-PrinterDriver not in v2?
I am currently working with Powershell v2 on a Windows 7 system. Wanted to learn how to add printer drivers and printers, found information online about Add-Printer and Add-PrinterDriver from...
View Articlesql and get-command output
when I type ps c:> help SQL > c:\sqlcommandlist.txtget-command - name *sql* > c:\sqllist.txtI get two different outputs ...Can someone educate me about this...
View ArticleBulk AD Account creation script
Hi, I'm trying to get a script that creates Active Directory users in bulk from a .csv file to work. Here is what I have so far. I'm getting an unexpected token error. I have changed the domain in line...
View ArticleLast Time Domain Admins Changed Password
My manager just asked me for a report for all domain admins in a group called Domain Admins. The report should include when the last time all members of the group changed their password. I am new to...
View ArticleSetting a maximum depth level on -recurse
Hello All,Is there a simply way to set a maximum number of levels -resurse will go to down a directory structure i.e. say 5 levels when doing something like thisget-childitem c:\ -filter "*.exe"...
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 ArticleActive Directory Script fails
I'm trying to write a script that adds a user to Active Directory. I have been tweaking it a lot but I haven't been able to get it to work correctly. When I run the commands manually in Powershell I...
View Articlepower shell script to install app-v application
Hi all, I am a begineer to power shell. I wanted to know how can install app-v application using power shell scripting.I wanted help from you guys to this question.Thanks in advance
View ArticleSharePoint, PowerShell and Network Latency
I was listening to Todd Klindt and Shane Young at TechEd North America this year (the link goes to the recording of the session). The session was on the basics of SharePoint 2013 administration....
View Article'Casting' an Object Spell in PowerShell
One handy PowerShell trick is to tell the engine to treat something as a particular type of object.Read More
View ArticleUse 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 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 Article